public static final class Protos.Error.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder> implements Protos.ErrorOrBuilder
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)Protobuf type
paymentchannels.Error
Modifier and Type | Method and Description |
---|---|
Protos.Error.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
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()
Can be set by the client when erroring to the server if a value was out of range.
|
Protos.Error.Builder |
clearExplanation()
NOT SAFE FOR HTML WITHOUT ESCAPING
|
Protos.Error.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Error.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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()
Can be set by the client when erroring to the server if a value was out of range.
|
java.lang.String |
getExplanation()
NOT SAFE FOR HTML WITHOUT ESCAPING
|
com.google.protobuf.ByteString |
getExplanationBytes()
NOT SAFE FOR HTML WITHOUT ESCAPING
|
boolean |
hasCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
boolean |
hasExpectedValue()
Can be set by the client when erroring to the server if a value was out of range.
|
boolean |
hasExplanation()
NOT SAFE FOR HTML WITHOUT ESCAPING
|
protected com.google.protobuf.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Error.Builder |
setCode(Protos.Error.ErrorCode value)
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
Protos.Error.Builder |
setExpectedValue(long value)
Can be set by the client when erroring to the server if a value was out of range.
|
Protos.Error.Builder |
setExplanation(java.lang.String value)
NOT SAFE FOR HTML WITHOUT ESCAPING
|
Protos.Error.Builder |
setExplanationBytes(com.google.protobuf.ByteString value)
NOT SAFE FOR HTML WITHOUT ESCAPING
|
Protos.Error.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Error.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Error.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder>
public Protos.Error.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder>
public Protos.Error.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder>
public Protos.Error.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder>
public Protos.Error.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder>
public Protos.Error.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.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.GeneratedMessageV3.Builder<Protos.Error.Builder>
public Protos.Error.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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>
java.io.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()
NOT SAFE FOR HTML WITHOUT ESCAPING
optional string explanation = 2;
hasExplanation
in interface Protos.ErrorOrBuilder
public java.lang.String getExplanation()
NOT SAFE FOR HTML WITHOUT ESCAPING
optional string explanation = 2;
getExplanation
in interface Protos.ErrorOrBuilder
public com.google.protobuf.ByteString getExplanationBytes()
NOT SAFE FOR HTML WITHOUT ESCAPING
optional string explanation = 2;
getExplanationBytes
in interface Protos.ErrorOrBuilder
public Protos.Error.Builder setExplanation(java.lang.String value)
NOT SAFE FOR HTML WITHOUT ESCAPING
optional string explanation = 2;
public Protos.Error.Builder clearExplanation()
NOT SAFE FOR HTML WITHOUT ESCAPING
optional string explanation = 2;
public Protos.Error.Builder setExplanationBytes(com.google.protobuf.ByteString value)
NOT SAFE FOR HTML WITHOUT ESCAPING
optional string explanation = 2;
public boolean hasExpectedValue()
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
optional uint64 expected_value = 3;
hasExpectedValue
in interface Protos.ErrorOrBuilder
public long getExpectedValue()
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
optional uint64 expected_value = 3;
getExpectedValue
in interface Protos.ErrorOrBuilder
public Protos.Error.Builder setExpectedValue(long value)
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
optional uint64 expected_value = 3;
public Protos.Error.Builder clearExpectedValue()
Can be set by the client when erroring to the server if a value was out of range. Can help with debugging.
optional uint64 expected_value = 3;
public final Protos.Error.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder>
public final Protos.Error.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protos.Error.Builder>