Package org.bitcoin.protocols.payments
Class Protos.PaymentDetails
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,Protos.PaymentDetails.Builder>
org.bitcoin.protocols.payments.Protos.PaymentDetails
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Protos.PaymentDetailsOrBuilder
- Enclosing class:
- Protos
public static final class Protos.PaymentDetails
extends com.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,Protos.PaymentDetails.Builder>
implements Protos.PaymentDetailsOrBuilder
Protobuf type
payments.PaymentDetails
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Protobuf typepayments.PaymentDetails
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
memoizedSerializedSize, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Protos.PaymentDetails
long
Timestamp; when this request should be considered invalidgetMemo()
Human-readable description of request for the customercom.google.protobuf.ByteString
Human-readable description of request for the customercom.google.protobuf.ByteString
Arbitrary data to include in the Payment message"main" or "test"com.google.protobuf.ByteString
"main" or "test"getOutputs
(int index) Where payment should be sentint
Where payment should be sentWhere payment should be sentgetOutputsOrBuilder
(int index) Where payment should be sentList<? extends Protos.OutputOrBuilder>
Where payment should be sentURL to send Payment and get PaymentACKcom.google.protobuf.ByteString
URL to send Payment and get PaymentACKlong
getTime()
Timestamp; when payment request createdboolean
Timestamp; when this request should be considered invalidboolean
hasMemo()
Human-readable description of request for the customerboolean
Arbitrary data to include in the Payment messageboolean
"main" or "test"boolean
URL to send Payment and get PaymentACKboolean
hasTime()
Timestamp; when payment request creatednewBuilder
(Protos.PaymentDetails prototype) static Protos.PaymentDetails
parseDelimitedFrom
(InputStream input) static Protos.PaymentDetails
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentDetails
parseFrom
(byte[] data) static Protos.PaymentDetails
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentDetails
parseFrom
(com.google.protobuf.ByteString data) static Protos.PaymentDetails
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentDetails
parseFrom
(com.google.protobuf.CodedInputStream input) static Protos.PaymentDetails
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentDetails
parseFrom
(InputStream input) static Protos.PaymentDetails
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentDetails
parseFrom
(ByteBuffer data) static Protos.PaymentDetails
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Protos.PaymentDetails>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, 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.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER- See Also:
-
OUTPUTS_FIELD_NUMBER
public static final int OUTPUTS_FIELD_NUMBER- See Also:
-
TIME_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER- See Also:
-
EXPIRES_FIELD_NUMBER
public static final int EXPIRES_FIELD_NUMBER- See Also:
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER- See Also:
-
PAYMENT_URL_FIELD_NUMBER
public static final int PAYMENT_URL_FIELD_NUMBER- See Also:
-
MERCHANT_DATA_FIELD_NUMBER
public static final int MERCHANT_DATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasNetwork
public boolean hasNetwork()"main" or "test"
optional string network = 1 [default = "main"];
- Specified by:
hasNetwork
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
"main" or "test"
optional string network = 1 [default = "main"];
- Specified by:
getNetwork
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()"main" or "test"
optional string network = 1 [default = "main"];
- Specified by:
getNetworkBytes
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The bytes for network.
-
getOutputsList
Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputsList
in interfaceProtos.PaymentDetailsOrBuilder
-
getOutputsOrBuilderList
Where payment should be sent
repeated .payments.Output outputs = 2;
-
getOutputsCount
public int getOutputsCount()Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputsCount
in interfaceProtos.PaymentDetailsOrBuilder
-
getOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputs
in interfaceProtos.PaymentDetailsOrBuilder
-
getOutputsOrBuilder
Where payment should be sent
repeated .payments.Output outputs = 2;
-
hasTime
public boolean hasTime()Timestamp; when payment request created
required uint64 time = 3;
- Specified by:
hasTime
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the time field is set.
-
getTime
public long getTime()Timestamp; when payment request created
required uint64 time = 3;
- Specified by:
getTime
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The time.
-
hasExpires
public boolean hasExpires()Timestamp; when this request should be considered invalid
optional uint64 expires = 4;
- Specified by:
hasExpires
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the expires field is set.
-
getExpires
public long getExpires()Timestamp; when this request should be considered invalid
optional uint64 expires = 4;
- Specified by:
getExpires
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The expires.
-
hasMemo
public boolean hasMemo()Human-readable description of request for the customer
optional string memo = 5;
- Specified by:
hasMemo
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the memo field is set.
-
getMemo
Human-readable description of request for the customer
optional string memo = 5;
- Specified by:
getMemo
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()Human-readable description of request for the customer
optional string memo = 5;
- Specified by:
getMemoBytes
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The bytes for memo.
-
hasPaymentUrl
public boolean hasPaymentUrl()URL to send Payment and get PaymentACK
optional string payment_url = 6;
- Specified by:
hasPaymentUrl
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the paymentUrl field is set.
-
getPaymentUrl
URL to send Payment and get PaymentACK
optional string payment_url = 6;
- Specified by:
getPaymentUrl
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The paymentUrl.
-
getPaymentUrlBytes
public com.google.protobuf.ByteString getPaymentUrlBytes()URL to send Payment and get PaymentACK
optional string payment_url = 6;
- Specified by:
getPaymentUrlBytes
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The bytes for paymentUrl.
-
hasMerchantData
public boolean hasMerchantData()Arbitrary data to include in the Payment message
optional bytes merchant_data = 7;
- Specified by:
hasMerchantData
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- Whether the merchantData field is set.
-
getMerchantData
public com.google.protobuf.ByteString getMerchantData()Arbitrary data to include in the Payment message
optional bytes merchant_data = 7;
- Specified by:
getMerchantData
in interfaceProtos.PaymentDetailsOrBuilder
- Returns:
- The merchantData.
-
parseFrom
public static Protos.PaymentDetails parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentDetails parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentDetails parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentDetails 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.PaymentDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentDetails parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Protos.PaymentDetails parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protos.PaymentDetails parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.PaymentDetails parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.PaymentDetails parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,
Protos.PaymentDetails.Builder>
-
getDefaultInstance
-
parser
-