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 typepayments.PaymentDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Protos.PaymentDetails.Builder
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 java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
-
-
Field Summary
Fields Modifier and Type Field Description static int
EXPIRES_FIELD_NUMBER
static int
MEMO_FIELD_NUMBER
static int
MERCHANT_DATA_FIELD_NUMBER
static int
NETWORK_FIELD_NUMBER
static int
OUTPUTS_FIELD_NUMBER
static int
PAYMENT_URL_FIELD_NUMBER
static int
TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
static Protos.PaymentDetails
getDefaultInstance()
long
getExpires()
Timestamp; when this request should be considered invalidjava.lang.String
getMemo()
Human-readable description of request for the customercom.google.protobuf.ByteString
getMemoBytes()
Human-readable description of request for the customercom.google.protobuf.ByteString
getMerchantData()
Arbitrary data to include in the Payment messagejava.lang.String
getNetwork()
"main" or "test"com.google.protobuf.ByteString
getNetworkBytes()
"main" or "test"Protos.Output
getOutputs(int index)
Where payment should be sentint
getOutputsCount()
Where payment should be sentjava.util.List<Protos.Output>
getOutputsList()
Where payment should be sentProtos.OutputOrBuilder
getOutputsOrBuilder(int index)
Where payment should be sentjava.util.List<? extends Protos.OutputOrBuilder>
getOutputsOrBuilderList()
Where payment should be sentjava.lang.String
getPaymentUrl()
URL to send Payment and get PaymentACKcom.google.protobuf.ByteString
getPaymentUrlBytes()
URL to send Payment and get PaymentACKlong
getTime()
Timestamp; when payment request createdboolean
hasExpires()
Timestamp; when this request should be considered invalidboolean
hasMemo()
Human-readable description of request for the customerboolean
hasMerchantData()
Arbitrary data to include in the Payment messageboolean
hasNetwork()
"main" or "test"boolean
hasPaymentUrl()
URL to send Payment and get PaymentACKboolean
hasTime()
Timestamp; when payment request createdstatic Protos.PaymentDetails.Builder
newBuilder()
static Protos.PaymentDetails.Builder
newBuilder(Protos.PaymentDetails prototype)
static Protos.PaymentDetails
parseDelimitedFrom(java.io.InputStream input)
static Protos.PaymentDetails
parseDelimitedFrom(java.io.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(java.io.InputStream input)
static Protos.PaymentDetails
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.PaymentDetails
parseFrom(java.nio.ByteBuffer data)
static Protos.PaymentDetails
parseFrom(java.nio.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
-
-
-
-
Field Detail
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUTS_FIELD_NUMBER
public static final int OUTPUTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPIRES_FIELD_NUMBER
public static final int EXPIRES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYMENT_URL_FIELD_NUMBER
public static final int PAYMENT_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MERCHANT_DATA_FIELD_NUMBER
public static final int MERCHANT_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public java.lang.String 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
public java.util.List<Protos.Output> getOutputsList()
Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputsList
in interfaceProtos.PaymentDetailsOrBuilder
-
getOutputsOrBuilderList
public java.util.List<? extends Protos.OutputOrBuilder> 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
public Protos.Output getOutputs(int index)
Where payment should be sent
repeated .payments.Output outputs = 2;
- Specified by:
getOutputs
in interfaceProtos.PaymentDetailsOrBuilder
-
getOutputsOrBuilder
public Protos.OutputOrBuilder getOutputsOrBuilder(int index)
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
public java.lang.String 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
public java.lang.String 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentDetails parseFrom(java.nio.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
public static Protos.PaymentDetails parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.PaymentDetails parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.PaymentDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.PaymentDetails parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.PaymentDetails parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.PaymentDetails parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Protos.PaymentDetails.Builder newBuilder()
-
newBuilder
public static Protos.PaymentDetails.Builder newBuilder(Protos.PaymentDetails prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
- Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,Protos.PaymentDetails.Builder>
-
getDefaultInstance
public static Protos.PaymentDetails getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Protos.PaymentDetails> parser()
-
-