org.bitcoin.paymentchannel
Class Protos.Error

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.AbstractMessage
          extended by com.google.protobuf.GeneratedMessage
              extended by org.bitcoin.paymentchannel.Protos.Error
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Protos.ErrorOrBuilder
Enclosing class:
Protos

public static final class Protos.Error
extends com.google.protobuf.GeneratedMessage
implements Protos.ErrorOrBuilder

Protobuf type 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)
 

See Also:
Serialized Form

Nested Class Summary
static class Protos.Error.Builder
          Protobuf type paymentchannels.Error
static class Protos.Error.ErrorCode
          Protobuf enum paymentchannels.Error.ErrorCode
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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>
 
Field Summary
static int CODE_FIELD_NUMBER
           
static int EXPECTED_VALUE_FIELD_NUMBER
           
static int EXPLANATION_FIELD_NUMBER
           
static com.google.protobuf.Parser<Protos.Error> PARSER
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Method Summary
 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)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessage
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
 
Methods inherited from class com.google.protobuf.AbstractMessage
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, hasField
 
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 

Field Detail

PARSER

public static com.google.protobuf.Parser<Protos.Error> PARSER

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
See Also:
Constant Field Values

EXPLANATION_FIELD_NUMBER

public static final int EXPLANATION_FIELD_NUMBER
See Also:
Constant Field Values

EXPECTED_VALUE_FIELD_NUMBER

public static final int EXPECTED_VALUE_FIELD_NUMBER
See Also:
Constant Field Values
Method Detail

getDefaultInstance

public static Protos.Error getDefaultInstance()

getDefaultInstanceForType

public Protos.Error getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

getUnknownFields

public final com.google.protobuf.UnknownFieldSet getUnknownFields()
Specified by:
getUnknownFields in interface com.google.protobuf.MessageOrBuilder
Overrides:
getUnknownFields in class com.google.protobuf.GeneratedMessage

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage

getParserForType

public com.google.protobuf.Parser<Protos.Error> getParserForType()
Specified by:
getParserForType in interface com.google.protobuf.Message
Specified by:
getParserForType in interface com.google.protobuf.MessageLite
Overrides:
getParserForType in class com.google.protobuf.GeneratedMessage

hasCode

public boolean hasCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];

Specified by:
hasCode in interface Protos.ErrorOrBuilder

getCode

public Protos.Error.ErrorCode getCode()
optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];

Specified by:
getCode in interface Protos.ErrorOrBuilder

hasExplanation

public boolean hasExplanation()
optional string explanation = 2;
 NOT SAFE FOR HTML WITHOUT ESCAPING
 

Specified by:
hasExplanation in interface Protos.ErrorOrBuilder

getExplanation

public String getExplanation()
optional string explanation = 2;
 NOT SAFE FOR HTML WITHOUT ESCAPING
 

Specified by:
getExplanation in interface Protos.ErrorOrBuilder

getExplanationBytes

public com.google.protobuf.ByteString getExplanationBytes()
optional string explanation = 2;
 NOT SAFE FOR HTML WITHOUT ESCAPING
 

Specified by:
getExplanationBytes in interface Protos.ErrorOrBuilder

hasExpectedValue

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.
 

Specified by:
hasExpectedValue in interface Protos.ErrorOrBuilder

getExpectedValue

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.
 

Specified by:
getExpectedValue in interface Protos.ErrorOrBuilder

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output)
             throws IOException
Specified by:
writeTo in interface com.google.protobuf.MessageLite
Overrides:
writeTo in class com.google.protobuf.AbstractMessage
Throws:
IOException

getSerializedSize

public int getSerializedSize()
Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite
Overrides:
getSerializedSize in class com.google.protobuf.AbstractMessage

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Overrides:
writeReplace in class com.google.protobuf.GeneratedMessage
Throws:
ObjectStreamException

parseFrom

public static Protos.Error parseFrom(com.google.protobuf.ByteString data)
                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static Protos.Error parseFrom(com.google.protobuf.ByteString data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static Protos.Error parseFrom(byte[] data)
                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static Protos.Error parseFrom(byte[] data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static Protos.Error parseFrom(InputStream input)
                              throws IOException
Throws:
IOException

parseFrom

public static Protos.Error parseFrom(InputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws IOException
Throws:
IOException

parseDelimitedFrom

public static Protos.Error parseDelimitedFrom(InputStream input)
                                       throws IOException
Throws:
IOException

parseDelimitedFrom

public static Protos.Error parseDelimitedFrom(InputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
Throws:
IOException

parseFrom

public static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input)
                              throws IOException
Throws:
IOException

parseFrom

public static Protos.Error parseFrom(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws IOException
Throws:
IOException

newBuilder

public static Protos.Error.Builder newBuilder()

newBuilderForType

public Protos.Error.Builder newBuilderForType()
Specified by:
newBuilderForType in interface com.google.protobuf.Message
Specified by:
newBuilderForType in interface com.google.protobuf.MessageLite

newBuilder

public static Protos.Error.Builder newBuilder(Protos.Error prototype)

toBuilder

public Protos.Error.Builder toBuilder()
Specified by:
toBuilder in interface com.google.protobuf.Message
Specified by:
toBuilder in interface com.google.protobuf.MessageLite

newBuilderForType

protected Protos.Error.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
Specified by:
newBuilderForType in class com.google.protobuf.GeneratedMessage


Copyright © 2014. All rights reserved.