public static final class Protos.Error extends com.google.protobuf.GeneratedMessage 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 | Class and Description |
---|---|
static class |
Protos.Error.Builder
Protobuf type
paymentchannels.Error |
static class |
Protos.Error.ErrorCode
Protobuf enum
paymentchannels.Error.ErrorCode |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
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 |
Modifier and Type | Method and Description |
---|---|
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()
optional uint64 expected_value = 3; |
String |
getExplanation()
optional string explanation = 2; |
com.google.protobuf.ByteString |
getExplanationBytes()
optional string explanation = 2; |
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()
optional uint64 expected_value = 3; |
boolean |
hasExplanation()
optional string explanation = 2; |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) |
static Protos.Error |
parseDelimitedFrom(InputStream input) |
static Protos.Error |
parseDelimitedFrom(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(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(InputStream input) |
static Protos.Error |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Error.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<Protos.Error> PARSER
public static final int CODE_FIELD_NUMBER
public static final int EXPLANATION_FIELD_NUMBER
public static final int EXPECTED_VALUE_FIELD_NUMBER
public static Protos.Error getDefaultInstance()
public Protos.Error getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
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.GeneratedMessage
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()
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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
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(InputStream input) throws IOException
IOException
public static Protos.Error parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Error parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.Error parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.Error.Builder newBuilder()
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(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.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2016. All rights reserved.