org.bitcoin.paymentchannel
Class Protos.ClientVersion

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.ClientVersion
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Protos.ClientVersionOrBuilder
Enclosing class:
Protos

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

See Also:
Serialized Form

Nested Class Summary
static class Protos.ClientVersion.Builder
          Protobuf type paymentchannels.ClientVersion
 
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 MAJOR_FIELD_NUMBER
           
static int MINOR_FIELD_NUMBER
           
static com.google.protobuf.Parser<Protos.ClientVersion> PARSER
           
static int PREVIOUS_CHANNEL_CONTRACT_HASH_FIELD_NUMBER
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Method Summary
static Protos.ClientVersion getDefaultInstance()
           
 Protos.ClientVersion getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 int getMajor()
          required int32 major = 1;
 int getMinor()
          optional int32 minor = 2 [default = 0];
 com.google.protobuf.Parser<Protos.ClientVersion> getParserForType()
           
 com.google.protobuf.ByteString getPreviousChannelContractHash()
          optional bytes previous_channel_contract_hash = 3;
 int getSerializedSize()
           
 com.google.protobuf.UnknownFieldSet getUnknownFields()
           
 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()
           
static Protos.ClientVersion.Builder newBuilder()
           
static Protos.ClientVersion.Builder newBuilder(Protos.ClientVersion prototype)
           
 Protos.ClientVersion.Builder newBuilderForType()
           
protected  Protos.ClientVersion.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
           
static Protos.ClientVersion parseDelimitedFrom(InputStream input)
           
static Protos.ClientVersion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.ClientVersion parseFrom(byte[] data)
           
static Protos.ClientVersion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.ClientVersion parseFrom(com.google.protobuf.ByteString data)
           
static Protos.ClientVersion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.ClientVersion parseFrom(com.google.protobuf.CodedInputStream input)
           
static Protos.ClientVersion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.ClientVersion parseFrom(InputStream input)
           
static Protos.ClientVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.ClientVersion.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.ClientVersion> PARSER

MAJOR_FIELD_NUMBER

public static final int MAJOR_FIELD_NUMBER
See Also:
Constant Field Values

MINOR_FIELD_NUMBER

public static final int MINOR_FIELD_NUMBER
See Also:
Constant Field Values

PREVIOUS_CHANNEL_CONTRACT_HASH_FIELD_NUMBER

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

getDefaultInstance

public static Protos.ClientVersion getDefaultInstance()

getDefaultInstanceForType

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

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

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

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

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.ClientVersion parseFrom(com.google.protobuf.ByteString data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static Protos.ClientVersion 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.ClientVersion parseFrom(byte[] data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

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

parseFrom

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

parseFrom

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

parseDelimitedFrom

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

parseDelimitedFrom

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

parseFrom

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

parseFrom

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

newBuilder

public static Protos.ClientVersion.Builder newBuilder()

newBuilderForType

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

newBuilder

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

toBuilder

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

newBuilderForType

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


Copyright © 2014. All rights reserved.