public static final class Protos.Error extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
Protos.Error.Builder
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)
|
static class |
Protos.Error.ErrorCode
Protobuf enum
paymentchannels.Error.ErrorCode |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CODE_FIELD_NUMBER |
static int |
EXPECTED_VALUE_FIELD_NUMBER |
static int |
EXPLANATION_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.Error> |
PARSER
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Protos.Error.ErrorCode |
getCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER]; |
static Protos.Error |
getDefaultInstance() |
Protos.Error |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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
|
com.google.protobuf.Parser<Protos.Error> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Error.Builder |
newBuilder() |
static Protos.Error.Builder |
newBuilder(Protos.Error prototype) |
Protos.Error.Builder |
newBuilderForType() |
protected Protos.Error.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Error |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Error |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Error |
parseFrom(byte[] data) |
static Protos.Error |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Error |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Error |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Error |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Error |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Error |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Error |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Error |
parseFrom(java.io.InputStream input) |
static Protos.Error |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protos.Error> |
parser() |
Protos.Error.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int CODE_FIELD_NUMBER
public static final int EXPLANATION_FIELD_NUMBER
public static final int EXPECTED_VALUE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Protos.Error> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Protos.Error parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Error parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Error parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Error parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Error parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Error parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Error parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Error parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Error.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.Error.Builder newBuilder()
public static Protos.Error.Builder newBuilder(Protos.Error prototype)
public Protos.Error.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.Error.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Protos.Error getDefaultInstance()
public static com.google.protobuf.Parser<Protos.Error> parser()
public com.google.protobuf.Parser<Protos.Error> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Protos.Error getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder