public static final class Protos.TwoWayChannelMessage extends com.google.protobuf.GeneratedMessageV3 implements Protos.TwoWayChannelMessageOrBuilder
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".Protobuf type
paymentchannels.TwoWayChannelMessage| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.TwoWayChannelMessage.Builder
This message is designed to be either sent raw over the network (e.g.
|
static class |
Protos.TwoWayChannelMessage.MessageType
Protobuf enum
paymentchannels.TwoWayChannelMessage.MessageType |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 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
Deprecated.
|
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 |
|---|---|
boolean |
equals(java.lang.Object obj) |
Protos.ClientVersion |
getClientVersion()
Now one optional field for each message.
|
Protos.ClientVersionOrBuilder |
getClientVersionOrBuilder()
Now one optional field for each message.
|
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()
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.
|
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()
Now one optional field for each message.
|
boolean |
hasError()
optional .paymentchannels.Error error = 10; |
int |
hashCode() |
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()
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.
|
boolean |
hasUpdatePayment()
optional .paymentchannels.UpdatePayment update_payment = 8; |
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) |
static Protos.TwoWayChannelMessage |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.TwoWayChannelMessage |
parseDelimitedFrom(java.io.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(java.nio.ByteBuffer data) |
static Protos.TwoWayChannelMessage |
parseFrom(java.nio.ByteBuffer 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(java.io.InputStream input) |
static Protos.TwoWayChannelMessage |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protos.TwoWayChannelMessage> |
parser() |
Protos.TwoWayChannelMessage.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
@Deprecated public static final com.google.protobuf.Parser<Protos.TwoWayChannelMessage> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasType()
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.
required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;hasType in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.TwoWayChannelMessage.MessageType getType()
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.
required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;getType in interface Protos.TwoWayChannelMessageOrBuilderpublic boolean hasClientVersion()
Now one optional field for each message. Only the field specified by type should be read.
optional .paymentchannels.ClientVersion client_version = 2;hasClientVersion in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ClientVersion getClientVersion()
Now one optional field for each message. Only the field specified by type should be read.
optional .paymentchannels.ClientVersion client_version = 2;getClientVersion in interface Protos.TwoWayChannelMessageOrBuilderpublic Protos.ClientVersionOrBuilder getClientVersionOrBuilder()
Now one optional field for each message. Only the field specified by type should be read.
optional .paymentchannels.ClientVersion client_version = 2;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.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Protos.TwoWayChannelMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.TwoWayChannelMessage parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic 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(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TwoWayChannelMessage parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TwoWayChannelMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TwoWayChannelMessage parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.TwoWayChannelMessage.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protos.TwoWayChannelMessage.Builder newBuilder()
public 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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Protos.TwoWayChannelMessage getDefaultInstance()
public static com.google.protobuf.Parser<Protos.TwoWayChannelMessage> parser()
public 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.GeneratedMessageV3public Protos.TwoWayChannelMessage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder