org.bitcoin.paymentchannel
Class Protos.Error.Builder

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

public static final class Protos.Error.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>
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)
 


Method Summary
 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()
          optional uint64 expected_value = 3;
 Protos.Error.Builder clearExplanation()
          optional string explanation = 2;
 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()
          optional uint64 expected_value = 3;
 String getExplanation()
          optional string explanation = 2;
 com.google.protobuf.ByteString getExplanationBytes()
          optional string explanation = 2;
 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()
           
 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 setCode(Protos.Error.ErrorCode value)
          optional .paymentchannels.Error.ErrorCode code = 1 [default = OTHER];
 Protos.Error.Builder setExpectedValue(long value)
          optional uint64 expected_value = 3;
 Protos.Error.Builder setExplanation(String value)
          optional string explanation = 2;
 Protos.Error.Builder setExplanationBytes(com.google.protobuf.ByteString value)
          optional string explanation = 2;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

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.Builder<Protos.Error.Builder>

clear

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

clone

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

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

public Protos.Error.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Error.Builder>

mergeFrom

public Protos.Error.Builder mergeFrom(Protos.Error other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Protos.Error.Builder>

mergeFrom

public Protos.Error.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                               throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Protos.Error.Builder>
Throws:
IOException

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

setCode

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


clearCode

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


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

setExplanation

public Protos.Error.Builder setExplanation(String value)
optional string explanation = 2;
 NOT SAFE FOR HTML WITHOUT ESCAPING
 


clearExplanation

public Protos.Error.Builder clearExplanation()
optional string explanation = 2;
 NOT SAFE FOR HTML WITHOUT ESCAPING
 


setExplanationBytes

public Protos.Error.Builder setExplanationBytes(com.google.protobuf.ByteString value)
optional string explanation = 2;
 NOT SAFE FOR HTML WITHOUT ESCAPING
 


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

setExpectedValue

public Protos.Error.Builder setExpectedValue(long value)
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.
 


clearExpectedValue

public Protos.Error.Builder clearExpectedValue()
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.
 



Copyright © 2014. All rights reserved.