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 classProtos.PaymentDetails.BuilderProtobuf 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 intEXPIRES_FIELD_NUMBERstatic intMEMO_FIELD_NUMBERstatic intMERCHANT_DATA_FIELD_NUMBERstatic intNETWORK_FIELD_NUMBERstatic intOUTPUTS_FIELD_NUMBERstatic intPAYMENT_URL_FIELD_NUMBERstatic intTIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)static Protos.PaymentDetailsgetDefaultInstance()longgetExpires()Timestamp; when this request should be considered invalidjava.lang.StringgetMemo()Human-readable description of request for the customercom.google.protobuf.ByteStringgetMemoBytes()Human-readable description of request for the customercom.google.protobuf.ByteStringgetMerchantData()Arbitrary data to include in the Payment messagejava.lang.StringgetNetwork()"main" or "test"com.google.protobuf.ByteStringgetNetworkBytes()"main" or "test"Protos.OutputgetOutputs(int index)Where payment should be sentintgetOutputsCount()Where payment should be sentjava.util.List<Protos.Output>getOutputsList()Where payment should be sentProtos.OutputOrBuildergetOutputsOrBuilder(int index)Where payment should be sentjava.util.List<? extends Protos.OutputOrBuilder>getOutputsOrBuilderList()Where payment should be sentjava.lang.StringgetPaymentUrl()URL to send Payment and get PaymentACKcom.google.protobuf.ByteStringgetPaymentUrlBytes()URL to send Payment and get PaymentACKlonggetTime()Timestamp; when payment request createdbooleanhasExpires()Timestamp; when this request should be considered invalidbooleanhasMemo()Human-readable description of request for the customerbooleanhasMerchantData()Arbitrary data to include in the Payment messagebooleanhasNetwork()"main" or "test"booleanhasPaymentUrl()URL to send Payment and get PaymentACKbooleanhasTime()Timestamp; when payment request createdstatic Protos.PaymentDetails.BuildernewBuilder()static Protos.PaymentDetails.BuildernewBuilder(Protos.PaymentDetails prototype)static Protos.PaymentDetailsparseDelimitedFrom(java.io.InputStream input)static Protos.PaymentDetailsparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentDetailsparseFrom(byte[] data)static Protos.PaymentDetailsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentDetailsparseFrom(com.google.protobuf.ByteString data)static Protos.PaymentDetailsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentDetailsparseFrom(com.google.protobuf.CodedInputStream input)static Protos.PaymentDetailsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentDetailsparseFrom(java.io.InputStream input)static Protos.PaymentDetailsparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentDetailsparseFrom(java.nio.ByteBuffer data)static Protos.PaymentDetailsparseFrom(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:
hasNetworkin 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:
getNetworkin interfaceProtos.PaymentDetailsOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
"main" or "test"
optional string network = 1 [default = "main"];- Specified by:
getNetworkBytesin 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:
getOutputsListin 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:
getOutputsCountin interfaceProtos.PaymentDetailsOrBuilder
-
getOutputs
public Protos.Output getOutputs(int index)
Where payment should be sent
repeated .payments.Output outputs = 2;- Specified by:
getOutputsin 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:
hasTimein interfaceProtos.PaymentDetailsOrBuilder- Returns:
- Whether the time field is set.
-
getTime
public long getTime()
Timestamp; when payment request created
required uint64 time = 3;- Specified by:
getTimein interfaceProtos.PaymentDetailsOrBuilder- Returns:
- The time.
-
hasExpires
public boolean hasExpires()
Timestamp; when this request should be considered invalid
optional uint64 expires = 4;- Specified by:
hasExpiresin 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:
getExpiresin interfaceProtos.PaymentDetailsOrBuilder- Returns:
- The expires.
-
hasMemo
public boolean hasMemo()
Human-readable description of request for the customer
optional string memo = 5;- Specified by:
hasMemoin 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:
getMemoin 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:
getMemoBytesin 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:
hasPaymentUrlin 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:
getPaymentUrlin 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:
getPaymentUrlBytesin 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:
hasMerchantDatain 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:
getMerchantDatain 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:
dynamicMethodin 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()
-
-