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, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<Protos.Error> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];hasCode in interface Protos.ErrorOrBuilderpublic Protos.Error.ErrorCode getCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];getCode in interface Protos.ErrorOrBuilderpublic boolean hasExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
hasExplanation in interface Protos.ErrorOrBuilderpublic String getExplanation()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
getExplanation in interface Protos.ErrorOrBuilderpublic com.google.protobuf.ByteString getExplanationBytes()
optional string explanation = 2;
NOT SAFE FOR HTML WITHOUT ESCAPING
getExplanationBytes in interface Protos.ErrorOrBuilderpublic 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.ErrorOrBuilderpublic 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.ErrorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static Protos.Error parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Error parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Error parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.Error parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.Error parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Error parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.Error parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.Error.Builder newBuilder()
public Protos.Error.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.Error.Builder newBuilder(Protos.Error prototype)
public Protos.Error.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.Error.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.