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
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typepayments.PaymentDetailsNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
memoizedSerializedSize, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Protos.PaymentDetailslongTimestamp; when this request should be considered invalidgetMemo()Human-readable description of request for the customercom.google.protobuf.ByteStringHuman-readable description of request for the customercom.google.protobuf.ByteStringArbitrary data to include in the Payment message"main" or "test"com.google.protobuf.ByteString"main" or "test"getOutputs(int index) Where payment should be sentintWhere 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.ByteStringURL to send Payment and get PaymentACKlonggetTime()Timestamp; when payment request createdbooleanTimestamp; when this request should be considered invalidbooleanhasMemo()Human-readable description of request for the customerbooleanArbitrary data to include in the Payment messageboolean"main" or "test"booleanURL to send Payment and get PaymentACKbooleanhasTime()Timestamp; when payment request creatednewBuilder(Protos.PaymentDetails prototype) static Protos.PaymentDetailsparseDelimitedFrom(InputStream input) static Protos.PaymentDetailsparseDelimitedFrom(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(InputStream input) static Protos.PaymentDetailsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentDetailsparseFrom(ByteBuffer data) static Protos.PaymentDetailsparseFrom(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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
hasNetworkin interfaceProtos.PaymentDetailsOrBuilder- Returns:
- Whether the network field is set.
-
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
Where payment should be sent
repeated .payments.Output outputs = 2;- Specified by:
getOutputsListin 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:
getOutputsCountin interfaceProtos.PaymentDetailsOrBuilder
-
getOutputs
Where payment should be sent
repeated .payments.Output outputs = 2;- Specified by:
getOutputsin 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:
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
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
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(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:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Protos.PaymentDetails,Protos.PaymentDetails.Builder>
-
getDefaultInstance
-
parser
-