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, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<Protos.TwoWayChannelMessage> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic 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.TwoWayChannelMessageOrBuilderpublic 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.TwoWayChannelMessageOrBuilderpublic 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.TwoWayChannelMessageOrBuilderpublic 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.TwoWayChannelMessageOrBuilderpublic 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.TwoWayChannelMessageOrBuilderpublic boolean hasServerVersion()
optional .paymentchannels.ServerVersion server_version = 3;hasServerVersion in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ServerVersion getServerVersion()
optional .paymentchannels.ServerVersion server_version = 3;getServerVersion in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ServerVersionOrBuilder getServerVersionOrBuilder()
optional .paymentchannels.ServerVersion server_version = 3;getServerVersionOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasInitiate()
optional .paymentchannels.Initiate initiate = 4;hasInitiate in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.Initiate getInitiate()
optional .paymentchannels.Initiate initiate = 4;getInitiate in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.InitiateOrBuilder getInitiateOrBuilder()
optional .paymentchannels.Initiate initiate = 4;getInitiateOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasProvideRefund()
optional .paymentchannels.ProvideRefund provide_refund = 5;hasProvideRefund in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ProvideRefund getProvideRefund()
optional .paymentchannels.ProvideRefund provide_refund = 5;getProvideRefund in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ProvideRefundOrBuilder getProvideRefundOrBuilder()
optional .paymentchannels.ProvideRefund provide_refund = 5;getProvideRefundOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasReturnRefund()
optional .paymentchannels.ReturnRefund return_refund = 6;hasReturnRefund in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ReturnRefund getReturnRefund()
optional .paymentchannels.ReturnRefund return_refund = 6;getReturnRefund in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ReturnRefundOrBuilder getReturnRefundOrBuilder()
optional .paymentchannels.ReturnRefund return_refund = 6;getReturnRefundOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasProvideContract()
optional .paymentchannels.ProvideContract provide_contract = 7;hasProvideContract in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ProvideContract getProvideContract()
optional .paymentchannels.ProvideContract provide_contract = 7;getProvideContract in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ProvideContractOrBuilder getProvideContractOrBuilder()
optional .paymentchannels.ProvideContract provide_contract = 7;getProvideContractOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasUpdatePayment()
optional .paymentchannels.UpdatePayment update_payment = 8;hasUpdatePayment in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.UpdatePayment getUpdatePayment()
optional .paymentchannels.UpdatePayment update_payment = 8;getUpdatePayment in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.UpdatePaymentOrBuilder getUpdatePaymentOrBuilder()
optional .paymentchannels.UpdatePayment update_payment = 8;getUpdatePaymentOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasPaymentAck()
optional .paymentchannels.PaymentAck payment_ack = 11;hasPaymentAck in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.PaymentAck getPaymentAck()
optional .paymentchannels.PaymentAck payment_ack = 11;getPaymentAck in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.PaymentAckOrBuilder getPaymentAckOrBuilder()
optional .paymentchannels.PaymentAck payment_ack = 11;getPaymentAckOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasSettlement()
optional .paymentchannels.Settlement settlement = 9;hasSettlement in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.Settlement getSettlement()
optional .paymentchannels.Settlement settlement = 9;getSettlement in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.SettlementOrBuilder getSettlementOrBuilder()
optional .paymentchannels.Settlement settlement = 9;getSettlementOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasError()
optional .paymentchannels.Error error = 10;hasError in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.Error getError()
optional .paymentchannels.Error error = 10;getError in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ErrorOrBuilder getErrorOrBuilder()
optional .paymentchannels.Error error = 10;getErrorOrBuilder in interface Protos.TwoWayChannelMessageOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TwoWayChannelMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TwoWayChannelMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TwoWayChannelMessage parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.TwoWayChannelMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.TwoWayChannelMessage parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protos.TwoWayChannelMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protos.TwoWayChannelMessage.Builder newBuilder()
public Protos.TwoWayChannelMessage.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.TwoWayChannelMessage.Builder newBuilder(Protos.TwoWayChannelMessage prototype)
public Protos.TwoWayChannelMessage.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protos.TwoWayChannelMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.