public static final class Protos.TwoWayChannelMessage extends com.google.protobuf.GeneratedMessage implements Protos.TwoWayChannelMessageOrBuilder
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".
Modifier and Type | Class and Description |
---|---|
static class |
Protos.TwoWayChannelMessage.Builder
Protobuf type
paymentchannels.TwoWayChannelMessage |
static class |
Protos.TwoWayChannelMessage.MessageType
Protobuf enum
paymentchannels.TwoWayChannelMessage.MessageType |
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>
Modifier and Type | Field and Description |
---|---|
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 |
PAYMENT_ACK_FIELD_NUMBER |
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 |
Modifier and Type | Method and Description |
---|---|
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.PaymentAck |
getPaymentAck()
optional .paymentchannels.PaymentAck payment_ack = 11; |
Protos.PaymentAckOrBuilder |
getPaymentAckOrBuilder()
optional .paymentchannels.PaymentAck payment_ack = 11; |
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 |
hasPaymentAck()
optional .paymentchannels.PaymentAck payment_ack = 11; |
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) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<Protos.TwoWayChannelMessage> PARSER
public static final int TYPE_FIELD_NUMBER
public static final int CLIENT_VERSION_FIELD_NUMBER
public static final int SERVER_VERSION_FIELD_NUMBER
public static final int INITIATE_FIELD_NUMBER
public static final int PROVIDE_REFUND_FIELD_NUMBER
public static final int RETURN_REFUND_FIELD_NUMBER
public static final int PROVIDE_CONTRACT_FIELD_NUMBER
public static final int UPDATE_PAYMENT_FIELD_NUMBER
public static final int PAYMENT_ACK_FIELD_NUMBER
public static final int SETTLEMENT_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
public static Protos.TwoWayChannelMessage getDefaultInstance()
public Protos.TwoWayChannelMessage getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.TwoWayChannelMessage> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
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.
hasType
in interface Protos.TwoWayChannelMessageOrBuilder
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.
getType
in interface Protos.TwoWayChannelMessageOrBuilder
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.
hasClientVersion
in interface Protos.TwoWayChannelMessageOrBuilder
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.
getClientVersion
in interface Protos.TwoWayChannelMessageOrBuilder
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.
getClientVersionOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasServerVersion()
optional .paymentchannels.ServerVersion server_version = 3;
hasServerVersion
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ServerVersion getServerVersion()
optional .paymentchannels.ServerVersion server_version = 3;
getServerVersion
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ServerVersionOrBuilder getServerVersionOrBuilder()
optional .paymentchannels.ServerVersion server_version = 3;
getServerVersionOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasInitiate()
optional .paymentchannels.Initiate initiate = 4;
hasInitiate
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.Initiate getInitiate()
optional .paymentchannels.Initiate initiate = 4;
getInitiate
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.InitiateOrBuilder getInitiateOrBuilder()
optional .paymentchannels.Initiate initiate = 4;
getInitiateOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasProvideRefund()
optional .paymentchannels.ProvideRefund provide_refund = 5;
hasProvideRefund
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ProvideRefund getProvideRefund()
optional .paymentchannels.ProvideRefund provide_refund = 5;
getProvideRefund
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ProvideRefundOrBuilder getProvideRefundOrBuilder()
optional .paymentchannels.ProvideRefund provide_refund = 5;
getProvideRefundOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasReturnRefund()
optional .paymentchannels.ReturnRefund return_refund = 6;
hasReturnRefund
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ReturnRefund getReturnRefund()
optional .paymentchannels.ReturnRefund return_refund = 6;
getReturnRefund
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ReturnRefundOrBuilder getReturnRefundOrBuilder()
optional .paymentchannels.ReturnRefund return_refund = 6;
getReturnRefundOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasProvideContract()
optional .paymentchannels.ProvideContract provide_contract = 7;
hasProvideContract
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ProvideContract getProvideContract()
optional .paymentchannels.ProvideContract provide_contract = 7;
getProvideContract
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ProvideContractOrBuilder getProvideContractOrBuilder()
optional .paymentchannels.ProvideContract provide_contract = 7;
getProvideContractOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasUpdatePayment()
optional .paymentchannels.UpdatePayment update_payment = 8;
hasUpdatePayment
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.UpdatePayment getUpdatePayment()
optional .paymentchannels.UpdatePayment update_payment = 8;
getUpdatePayment
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.UpdatePaymentOrBuilder getUpdatePaymentOrBuilder()
optional .paymentchannels.UpdatePayment update_payment = 8;
getUpdatePaymentOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasPaymentAck()
optional .paymentchannels.PaymentAck payment_ack = 11;
hasPaymentAck
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.PaymentAck getPaymentAck()
optional .paymentchannels.PaymentAck payment_ack = 11;
getPaymentAck
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.PaymentAckOrBuilder getPaymentAckOrBuilder()
optional .paymentchannels.PaymentAck payment_ack = 11;
getPaymentAckOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasSettlement()
optional .paymentchannels.Settlement settlement = 9;
hasSettlement
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.Settlement getSettlement()
optional .paymentchannels.Settlement settlement = 9;
getSettlement
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.SettlementOrBuilder getSettlementOrBuilder()
optional .paymentchannels.Settlement settlement = 9;
getSettlementOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public boolean hasError()
optional .paymentchannels.Error error = 10;
hasError
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.Error getError()
optional .paymentchannels.Error error = 10;
getError
in interface Protos.TwoWayChannelMessageOrBuilder
public Protos.ErrorOrBuilder getErrorOrBuilder()
optional .paymentchannels.Error error = 10;
getErrorOrBuilder
in interface Protos.TwoWayChannelMessageOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TwoWayChannelMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TwoWayChannelMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TwoWayChannelMessage parseFrom(InputStream input) throws IOException
IOException
public static Protos.TwoWayChannelMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.TwoWayChannelMessage parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.TwoWayChannelMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.TwoWayChannelMessage.Builder newBuilder()
public Protos.TwoWayChannelMessage.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.TwoWayChannelMessage.Builder newBuilder(Protos.TwoWayChannelMessage prototype)
public Protos.TwoWayChannelMessage.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.TwoWayChannelMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2016. All rights reserved.