org.bitcoin.paymentchannel
Class Protos.TwoWayChannelMessage

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

public static final class Protos.TwoWayChannelMessage
extends com.google.protobuf.GeneratedMessage
implements Protos.TwoWayChannelMessageOrBuilder

Protobuf type paymentchannels.TwoWayChannelMessage

 This message is designed to be either sent raw over the network (e.g. length prefixed) or embedded inside another
 protocol that is being extended to support micropayments. In this file "primary" typically can be read as "client"
 and "secondary" as "server".
 

See Also:
Serialized Form

Nested Class Summary
static class Protos.TwoWayChannelMessage.Builder
          Protobuf type paymentchannels.TwoWayChannelMessage
static class Protos.TwoWayChannelMessage.MessageType
          Protobuf enum paymentchannels.TwoWayChannelMessage.MessageType
 
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 CLIENT_VERSION_FIELD_NUMBER
           
static int ERROR_FIELD_NUMBER
           
static int INITIATE_FIELD_NUMBER
           
static com.google.protobuf.Parser<Protos.TwoWayChannelMessage> PARSER
           
static int PROVIDE_CONTRACT_FIELD_NUMBER
           
static int PROVIDE_REFUND_FIELD_NUMBER
           
static int RETURN_REFUND_FIELD_NUMBER
           
static int SERVER_VERSION_FIELD_NUMBER
           
static int SETTLEMENT_FIELD_NUMBER
           
static int TYPE_FIELD_NUMBER
           
static int UPDATE_PAYMENT_FIELD_NUMBER
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Method Summary
 Protos.ClientVersion getClientVersion()
          optional .paymentchannels.ClientVersion client_version = 2;
 Protos.ClientVersionOrBuilder getClientVersionOrBuilder()
          optional .paymentchannels.ClientVersion client_version = 2;
static Protos.TwoWayChannelMessage getDefaultInstance()
           
 Protos.TwoWayChannelMessage getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 Protos.Error getError()
          optional .paymentchannels.Error error = 10;
 Protos.ErrorOrBuilder getErrorOrBuilder()
          optional .paymentchannels.Error error = 10;
 Protos.Initiate getInitiate()
          optional .paymentchannels.Initiate initiate = 4;
 Protos.InitiateOrBuilder getInitiateOrBuilder()
          optional .paymentchannels.Initiate initiate = 4;
 com.google.protobuf.Parser<Protos.TwoWayChannelMessage> getParserForType()
           
 Protos.ProvideContract getProvideContract()
          optional .paymentchannels.ProvideContract provide_contract = 7;
 Protos.ProvideContractOrBuilder getProvideContractOrBuilder()
          optional .paymentchannels.ProvideContract provide_contract = 7;
 Protos.ProvideRefund getProvideRefund()
          optional .paymentchannels.ProvideRefund provide_refund = 5;
 Protos.ProvideRefundOrBuilder getProvideRefundOrBuilder()
          optional .paymentchannels.ProvideRefund provide_refund = 5;
 Protos.ReturnRefund getReturnRefund()
          optional .paymentchannels.ReturnRefund return_refund = 6;
 Protos.ReturnRefundOrBuilder getReturnRefundOrBuilder()
          optional .paymentchannels.ReturnRefund return_refund = 6;
 int getSerializedSize()
           
 Protos.ServerVersion getServerVersion()
          optional .paymentchannels.ServerVersion server_version = 3;
 Protos.ServerVersionOrBuilder getServerVersionOrBuilder()
          optional .paymentchannels.ServerVersion server_version = 3;
 Protos.Settlement getSettlement()
          optional .paymentchannels.Settlement settlement = 9;
 Protos.SettlementOrBuilder getSettlementOrBuilder()
          optional .paymentchannels.Settlement settlement = 9;
 Protos.TwoWayChannelMessage.MessageType getType()
          required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;
 com.google.protobuf.UnknownFieldSet getUnknownFields()
           
 Protos.UpdatePayment getUpdatePayment()
          optional .paymentchannels.UpdatePayment update_payment = 8;
 Protos.UpdatePaymentOrBuilder getUpdatePaymentOrBuilder()
          optional .paymentchannels.UpdatePayment update_payment = 8;
 boolean hasClientVersion()
          optional .paymentchannels.ClientVersion client_version = 2;
 boolean hasError()
          optional .paymentchannels.Error error = 10;
 boolean hasInitiate()
          optional .paymentchannels.Initiate initiate = 4;
 boolean hasProvideContract()
          optional .paymentchannels.ProvideContract provide_contract = 7;
 boolean hasProvideRefund()
          optional .paymentchannels.ProvideRefund provide_refund = 5;
 boolean hasReturnRefund()
          optional .paymentchannels.ReturnRefund return_refund = 6;
 boolean hasServerVersion()
          optional .paymentchannels.ServerVersion server_version = 3;
 boolean hasSettlement()
          optional .paymentchannels.Settlement settlement = 9;
 boolean hasType()
          required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;
 boolean hasUpdatePayment()
          optional .paymentchannels.UpdatePayment update_payment = 8;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
static Protos.TwoWayChannelMessage.Builder newBuilder()
           
static Protos.TwoWayChannelMessage.Builder newBuilder(Protos.TwoWayChannelMessage prototype)
           
 Protos.TwoWayChannelMessage.Builder newBuilderForType()
           
protected  Protos.TwoWayChannelMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
           
static Protos.TwoWayChannelMessage parseDelimitedFrom(InputStream input)
           
static Protos.TwoWayChannelMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.TwoWayChannelMessage parseFrom(byte[] data)
           
static Protos.TwoWayChannelMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.ByteString data)
           
static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input)
           
static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static Protos.TwoWayChannelMessage parseFrom(InputStream input)
           
static Protos.TwoWayChannelMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 Protos.TwoWayChannelMessage.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.TwoWayChannelMessage> PARSER

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
See Also:
Constant Field Values

CLIENT_VERSION_FIELD_NUMBER

public static final int CLIENT_VERSION_FIELD_NUMBER
See Also:
Constant Field Values

SERVER_VERSION_FIELD_NUMBER

public static final int SERVER_VERSION_FIELD_NUMBER
See Also:
Constant Field Values

INITIATE_FIELD_NUMBER

public static final int INITIATE_FIELD_NUMBER
See Also:
Constant Field Values

PROVIDE_REFUND_FIELD_NUMBER

public static final int PROVIDE_REFUND_FIELD_NUMBER
See Also:
Constant Field Values

RETURN_REFUND_FIELD_NUMBER

public static final int RETURN_REFUND_FIELD_NUMBER
See Also:
Constant Field Values

PROVIDE_CONTRACT_FIELD_NUMBER

public static final int PROVIDE_CONTRACT_FIELD_NUMBER
See Also:
Constant Field Values

UPDATE_PAYMENT_FIELD_NUMBER

public static final int UPDATE_PAYMENT_FIELD_NUMBER
See Also:
Constant Field Values

SETTLEMENT_FIELD_NUMBER

public static final int SETTLEMENT_FIELD_NUMBER
See Also:
Constant Field Values

ERROR_FIELD_NUMBER

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

getDefaultInstance

public static Protos.TwoWayChannelMessage getDefaultInstance()

getDefaultInstanceForType

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

hasType

public boolean hasType()
required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;
 This is required so if a new message type is added in future, old software aborts trying
 to read the message as early as possible. If the message doesn't parse, the socket should
 be closed.
 

Specified by:
hasType in interface Protos.TwoWayChannelMessageOrBuilder

getType

public Protos.TwoWayChannelMessage.MessageType getType()
required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;
 This is required so if a new message type is added in future, old software aborts trying
 to read the message as early as possible. If the message doesn't parse, the socket should
 be closed.
 

Specified by:
getType in interface Protos.TwoWayChannelMessageOrBuilder

hasClientVersion

public boolean hasClientVersion()
optional .paymentchannels.ClientVersion client_version = 2;
 Now one optional field for each message. Only the field specified by type should be read.
 

Specified by:
hasClientVersion in interface Protos.TwoWayChannelMessageOrBuilder

getClientVersion

public Protos.ClientVersion getClientVersion()
optional .paymentchannels.ClientVersion client_version = 2;
 Now one optional field for each message. Only the field specified by type should be read.
 

Specified by:
getClientVersion in interface Protos.TwoWayChannelMessageOrBuilder

getClientVersionOrBuilder

public Protos.ClientVersionOrBuilder getClientVersionOrBuilder()
optional .paymentchannels.ClientVersion client_version = 2;
 Now one optional field for each message. Only the field specified by type should be read.
 

Specified by:
getClientVersionOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasServerVersion

public boolean hasServerVersion()
optional .paymentchannels.ServerVersion server_version = 3;

Specified by:
hasServerVersion in interface Protos.TwoWayChannelMessageOrBuilder

getServerVersion

public Protos.ServerVersion getServerVersion()
optional .paymentchannels.ServerVersion server_version = 3;

Specified by:
getServerVersion in interface Protos.TwoWayChannelMessageOrBuilder

getServerVersionOrBuilder

public Protos.ServerVersionOrBuilder getServerVersionOrBuilder()
optional .paymentchannels.ServerVersion server_version = 3;

Specified by:
getServerVersionOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasInitiate

public boolean hasInitiate()
optional .paymentchannels.Initiate initiate = 4;

Specified by:
hasInitiate in interface Protos.TwoWayChannelMessageOrBuilder

getInitiate

public Protos.Initiate getInitiate()
optional .paymentchannels.Initiate initiate = 4;

Specified by:
getInitiate in interface Protos.TwoWayChannelMessageOrBuilder

getInitiateOrBuilder

public Protos.InitiateOrBuilder getInitiateOrBuilder()
optional .paymentchannels.Initiate initiate = 4;

Specified by:
getInitiateOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasProvideRefund

public boolean hasProvideRefund()
optional .paymentchannels.ProvideRefund provide_refund = 5;

Specified by:
hasProvideRefund in interface Protos.TwoWayChannelMessageOrBuilder

getProvideRefund

public Protos.ProvideRefund getProvideRefund()
optional .paymentchannels.ProvideRefund provide_refund = 5;

Specified by:
getProvideRefund in interface Protos.TwoWayChannelMessageOrBuilder

getProvideRefundOrBuilder

public Protos.ProvideRefundOrBuilder getProvideRefundOrBuilder()
optional .paymentchannels.ProvideRefund provide_refund = 5;

Specified by:
getProvideRefundOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasReturnRefund

public boolean hasReturnRefund()
optional .paymentchannels.ReturnRefund return_refund = 6;

Specified by:
hasReturnRefund in interface Protos.TwoWayChannelMessageOrBuilder

getReturnRefund

public Protos.ReturnRefund getReturnRefund()
optional .paymentchannels.ReturnRefund return_refund = 6;

Specified by:
getReturnRefund in interface Protos.TwoWayChannelMessageOrBuilder

getReturnRefundOrBuilder

public Protos.ReturnRefundOrBuilder getReturnRefundOrBuilder()
optional .paymentchannels.ReturnRefund return_refund = 6;

Specified by:
getReturnRefundOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasProvideContract

public boolean hasProvideContract()
optional .paymentchannels.ProvideContract provide_contract = 7;

Specified by:
hasProvideContract in interface Protos.TwoWayChannelMessageOrBuilder

getProvideContract

public Protos.ProvideContract getProvideContract()
optional .paymentchannels.ProvideContract provide_contract = 7;

Specified by:
getProvideContract in interface Protos.TwoWayChannelMessageOrBuilder

getProvideContractOrBuilder

public Protos.ProvideContractOrBuilder getProvideContractOrBuilder()
optional .paymentchannels.ProvideContract provide_contract = 7;

Specified by:
getProvideContractOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasUpdatePayment

public boolean hasUpdatePayment()
optional .paymentchannels.UpdatePayment update_payment = 8;

Specified by:
hasUpdatePayment in interface Protos.TwoWayChannelMessageOrBuilder

getUpdatePayment

public Protos.UpdatePayment getUpdatePayment()
optional .paymentchannels.UpdatePayment update_payment = 8;

Specified by:
getUpdatePayment in interface Protos.TwoWayChannelMessageOrBuilder

getUpdatePaymentOrBuilder

public Protos.UpdatePaymentOrBuilder getUpdatePaymentOrBuilder()
optional .paymentchannels.UpdatePayment update_payment = 8;

Specified by:
getUpdatePaymentOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasSettlement

public boolean hasSettlement()
optional .paymentchannels.Settlement settlement = 9;

Specified by:
hasSettlement in interface Protos.TwoWayChannelMessageOrBuilder

getSettlement

public Protos.Settlement getSettlement()
optional .paymentchannels.Settlement settlement = 9;

Specified by:
getSettlement in interface Protos.TwoWayChannelMessageOrBuilder

getSettlementOrBuilder

public Protos.SettlementOrBuilder getSettlementOrBuilder()
optional .paymentchannels.Settlement settlement = 9;

Specified by:
getSettlementOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

hasError

public boolean hasError()
optional .paymentchannels.Error error = 10;

Specified by:
hasError in interface Protos.TwoWayChannelMessageOrBuilder

getError

public Protos.Error getError()
optional .paymentchannels.Error error = 10;

Specified by:
getError in interface Protos.TwoWayChannelMessageOrBuilder

getErrorOrBuilder

public Protos.ErrorOrBuilder getErrorOrBuilder()
optional .paymentchannels.Error error = 10;

Specified by:
getErrorOrBuilder in interface Protos.TwoWayChannelMessageOrBuilder

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

parseFrom

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

parseFrom

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

parseFrom

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

parseFrom

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

parseDelimitedFrom

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

parseDelimitedFrom

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

parseFrom

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

parseFrom

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

newBuilder

public static Protos.TwoWayChannelMessage.Builder newBuilder()

newBuilderForType

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

newBuilder

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

toBuilder

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

newBuilderForType

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


Copyright © 2014. All rights reserved.