org.bitcoin.paymentchannel
Class Protos.ClientVersion.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.ClientVersion.Builder>
              extended by org.bitcoin.paymentchannel.Protos.ClientVersion.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Protos.ClientVersionOrBuilder
Enclosing class:
Protos.ClientVersion

public static final class Protos.ClientVersion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Protos.ClientVersion.Builder>
implements Protos.ClientVersionOrBuilder

Protobuf type paymentchannels.ClientVersion

 Sent by primary to secondary on opening the connection. If anything is received before this is
 sent, the socket is closed.
 


Method Summary
 Protos.ClientVersion build()
           
 Protos.ClientVersion buildPartial()
           
 Protos.ClientVersion.Builder clear()
           
 Protos.ClientVersion.Builder clearMajor()
          required int32 major = 1;
 Protos.ClientVersion.Builder clearMinor()
          optional int32 minor = 2 [default = 0];
 Protos.ClientVersion.Builder clearPreviousChannelContractHash()
          optional bytes previous_channel_contract_hash = 3;
 Protos.ClientVersion.Builder clone()
           
 Protos.ClientVersion getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 int getMajor()
          required int32 major = 1;
 int getMinor()
          optional int32 minor = 2 [default = 0];
 com.google.protobuf.ByteString getPreviousChannelContractHash()
          optional bytes previous_channel_contract_hash = 3;
 boolean hasMajor()
          required int32 major = 1;
 boolean hasMinor()
          optional int32 minor = 2 [default = 0];
 boolean hasPreviousChannelContractHash()
          optional bytes previous_channel_contract_hash = 3;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 Protos.ClientVersion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.ClientVersion.Builder mergeFrom(com.google.protobuf.Message other)
           
 Protos.ClientVersion.Builder mergeFrom(Protos.ClientVersion other)
           
 Protos.ClientVersion.Builder setMajor(int value)
          required int32 major = 1;
 Protos.ClientVersion.Builder setMinor(int value)
          optional int32 minor = 2 [default = 0];
 Protos.ClientVersion.Builder setPreviousChannelContractHash(com.google.protobuf.ByteString value)
          optional bytes previous_channel_contract_hash = 3;
 
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.ClientVersion.Builder>

clear

public Protos.ClientVersion.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.ClientVersion.Builder>

clone

public Protos.ClientVersion.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.ClientVersion.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.ClientVersion.Builder>

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

public Protos.ClientVersion.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.ClientVersion.Builder>

mergeFrom

public Protos.ClientVersion.Builder mergeFrom(Protos.ClientVersion 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.ClientVersion.Builder>

mergeFrom

public Protos.ClientVersion.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.ClientVersion.Builder>
Throws:
IOException

hasMajor

public boolean hasMajor()
required int32 major = 1;

Specified by:
hasMajor in interface Protos.ClientVersionOrBuilder

getMajor

public int getMajor()
required int32 major = 1;

Specified by:
getMajor in interface Protos.ClientVersionOrBuilder

setMajor

public Protos.ClientVersion.Builder setMajor(int value)
required int32 major = 1;


clearMajor

public Protos.ClientVersion.Builder clearMajor()
required int32 major = 1;


hasMinor

public boolean hasMinor()
optional int32 minor = 2 [default = 0];

Specified by:
hasMinor in interface Protos.ClientVersionOrBuilder

getMinor

public int getMinor()
optional int32 minor = 2 [default = 0];

Specified by:
getMinor in interface Protos.ClientVersionOrBuilder

setMinor

public Protos.ClientVersion.Builder setMinor(int value)
optional int32 minor = 2 [default = 0];


clearMinor

public Protos.ClientVersion.Builder clearMinor()
optional int32 minor = 2 [default = 0];


hasPreviousChannelContractHash

public boolean hasPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3;
 The hash of the multisig contract of a previous channel. This indicates that the primary
 wishes to reopen the given channel. If the server is willing to reopen it, it simply
 responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise
 follows SERVER_VERSION with an Initiate representing a new channel
 

Specified by:
hasPreviousChannelContractHash in interface Protos.ClientVersionOrBuilder

getPreviousChannelContractHash

public com.google.protobuf.ByteString getPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3;
 The hash of the multisig contract of a previous channel. This indicates that the primary
 wishes to reopen the given channel. If the server is willing to reopen it, it simply
 responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise
 follows SERVER_VERSION with an Initiate representing a new channel
 

Specified by:
getPreviousChannelContractHash in interface Protos.ClientVersionOrBuilder

setPreviousChannelContractHash

public Protos.ClientVersion.Builder setPreviousChannelContractHash(com.google.protobuf.ByteString value)
optional bytes previous_channel_contract_hash = 3;
 The hash of the multisig contract of a previous channel. This indicates that the primary
 wishes to reopen the given channel. If the server is willing to reopen it, it simply
 responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise
 follows SERVER_VERSION with an Initiate representing a new channel
 


clearPreviousChannelContractHash

public Protos.ClientVersion.Builder clearPreviousChannelContractHash()
optional bytes previous_channel_contract_hash = 3;
 The hash of the multisig contract of a previous channel. This indicates that the primary
 wishes to reopen the given channel. If the server is willing to reopen it, it simply
 responds with a SERVER_VERSION and then immediately sends a CHANNEL_OPEN, it otherwise
 follows SERVER_VERSION with an Initiate representing a new channel
 



Copyright © 2014. All rights reserved.