public static final class Protos.Error.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder> implements Protos.ErrorOrBuilder
paymentchannels.Error
An Error can be sent by either party at any time Both parties should make an effort to send either an ERROR or a CLOSE immediately before closing the socket (unless they just received an ERROR or a CLOSE)
Modifier and Type | Method and Description |
---|---|
Protos.Error |
build() |
Protos.Error |
buildPartial() |
Protos.Error.Builder |
clear() |
Protos.Error.Builder |
clearCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
Protos.Error.Builder |
clearExpectedValue()
optional uint64 expected_value = 3; |
Protos.Error.Builder |
clearExplanation()
optional string explanation = 2; |
Protos.Error.Builder |
clone() |
Protos.Error.ErrorCode |
getCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
Protos.Error |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpectedValue()
optional uint64 expected_value = 3; |
String |
getExplanation()
optional string explanation = 2; |
com.google.protobuf.ByteString |
getExplanationBytes()
optional string explanation = 2; |
boolean |
hasCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
boolean |
hasExpectedValue()
optional uint64 expected_value = 3; |
boolean |
hasExplanation()
optional string explanation = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Error.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Error.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Error.Builder |
mergeFrom(Protos.Error other) |
Protos.Error.Builder |
setCode(Protos.Error.ErrorCode value)
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
Protos.Error.Builder |
setExpectedValue(long value)
optional uint64 expected_value = 3; |
Protos.Error.Builder |
setExplanation(String value)
optional string explanation = 2; |
Protos.Error.Builder |
setExplanationBytes(com.google.protobuf.ByteString value)
optional string explanation = 2; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>
public Protos.Error.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>
public Protos.Error.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>
public Protos.Error getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.Error build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.Error buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.Error.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.Error.Builder>
public Protos.Error.Builder mergeFrom(Protos.Error other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>
public Protos.Error.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.Error.Builder>
IOException
public boolean hasCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];
hasCode
in interface Protos.ErrorOrBuilder
public Protos.Error.ErrorCode getCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];
getCode
in interface Protos.ErrorOrBuilder
public Protos.Error.Builder setCode(Protos.Error.ErrorCode value)
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];
public Protos.Error.Builder clearCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];
public boolean hasExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
hasExplanation
in interface Protos.ErrorOrBuilder
public String getExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
getExplanation
in interface Protos.ErrorOrBuilder
public com.google.protobuf.ByteString getExplanationBytes()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
getExplanationBytes
in interface Protos.ErrorOrBuilder
public Protos.Error.Builder setExplanation(String value)
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
public Protos.Error.Builder clearExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
public Protos.Error.Builder setExplanationBytes(com.google.protobuf.ByteString value)
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
public boolean hasExpectedValue()
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
hasExpectedValue
in interface Protos.ErrorOrBuilder
public long getExpectedValue()
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
getExpectedValue
in interface Protos.ErrorOrBuilder
public Protos.Error.Builder setExpectedValue(long value)
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
public Protos.Error.Builder clearExpectedValue()
optional uint64 expected_value = 3;
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
Copyright © 2014. All rights reserved.