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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
@Deprecated public static final com.google.protobuf.Parser<Protos.TwoWayChannelMessage> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public 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.TwoWayChannelMessageOrBuilder
public 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.TwoWayChannelMessageOrBuilder
public 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.TwoWayChannelMessageOrBuilder
public 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.TwoWayChannelMessageOrBuilder
public 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.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.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Protos.TwoWayChannelMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TwoWayChannelMessage parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TwoWayChannelMessage parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.TwoWayChannelMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TwoWayChannelMessage parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TwoWayChannelMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
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()
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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Protos.TwoWayChannelMessage getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder