Package org.bitcoinj.protobuf.payments
Class Protos.Payment
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder>
-
- org.bitcoinj.protobuf.payments.Protos.Payment
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Protos.PaymentOrBuilder
- Enclosing class:
- Protos
public static final class Protos.Payment extends com.google.protobuf.GeneratedMessageLite<Protos.Payment,Protos.Payment.Builder> implements Protos.PaymentOrBuilder
Protobuf typepayments.Payment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtos.Payment.BuilderProtobuf typepayments.Payment-
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 intMEMO_FIELD_NUMBERstatic intMERCHANT_DATA_FIELD_NUMBERstatic intREFUND_TO_FIELD_NUMBERstatic intTRANSACTIONS_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.PaymentgetDefaultInstance()java.lang.StringgetMemo()Human-readable message for the merchantcom.google.protobuf.ByteStringgetMemoBytes()Human-readable message for the merchantcom.google.protobuf.ByteStringgetMerchantData()From PaymentDetails.merchant_dataProtos.OutputgetRefundTo(int index)Where to send refunds, if a refund is necessaryintgetRefundToCount()Where to send refunds, if a refund is necessaryjava.util.List<Protos.Output>getRefundToList()Where to send refunds, if a refund is necessaryProtos.OutputOrBuildergetRefundToOrBuilder(int index)Where to send refunds, if a refund is necessaryjava.util.List<? extends Protos.OutputOrBuilder>getRefundToOrBuilderList()Where to send refunds, if a refund is necessarycom.google.protobuf.ByteStringgetTransactions(int index)Signed transactions that satisfy PaymentDetails.outputsintgetTransactionsCount()Signed transactions that satisfy PaymentDetails.outputsjava.util.List<com.google.protobuf.ByteString>getTransactionsList()Signed transactions that satisfy PaymentDetails.outputsbooleanhasMemo()Human-readable message for the merchantbooleanhasMerchantData()From PaymentDetails.merchant_datastatic Protos.Payment.BuildernewBuilder()static Protos.Payment.BuildernewBuilder(Protos.Payment prototype)static Protos.PaymentparseDelimitedFrom(java.io.InputStream input)static Protos.PaymentparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentparseFrom(byte[] data)static Protos.PaymentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentparseFrom(com.google.protobuf.ByteString data)static Protos.PaymentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentparseFrom(com.google.protobuf.CodedInputStream input)static Protos.PaymentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentparseFrom(java.io.InputStream input)static Protos.PaymentparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentparseFrom(java.nio.ByteBuffer data)static Protos.PaymentparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Protos.Payment>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
-
MERCHANT_DATA_FIELD_NUMBER
public static final int MERCHANT_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSACTIONS_FIELD_NUMBER
public static final int TRANSACTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REFUND_TO_FIELD_NUMBER
public static final int REFUND_TO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEMO_FIELD_NUMBER
public static final int MEMO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasMerchantData
public boolean hasMerchantData()
From PaymentDetails.merchant_data
optional bytes merchant_data = 1;- Specified by:
hasMerchantDatain interfaceProtos.PaymentOrBuilder- Returns:
- Whether the merchantData field is set.
-
getMerchantData
public com.google.protobuf.ByteString getMerchantData()
From PaymentDetails.merchant_data
optional bytes merchant_data = 1;- Specified by:
getMerchantDatain interfaceProtos.PaymentOrBuilder- Returns:
- The merchantData.
-
getTransactionsList
public java.util.List<com.google.protobuf.ByteString> getTransactionsList()
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;- Specified by:
getTransactionsListin interfaceProtos.PaymentOrBuilder- Returns:
- A list containing the transactions.
-
getTransactionsCount
public int getTransactionsCount()
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;- Specified by:
getTransactionsCountin interfaceProtos.PaymentOrBuilder- Returns:
- The count of transactions.
-
getTransactions
public com.google.protobuf.ByteString getTransactions(int index)
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;- Specified by:
getTransactionsin interfaceProtos.PaymentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The transactions at the given index.
-
getRefundToList
public java.util.List<Protos.Output> getRefundToList()
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;- Specified by:
getRefundToListin interfaceProtos.PaymentOrBuilder
-
getRefundToOrBuilderList
public java.util.List<? extends Protos.OutputOrBuilder> getRefundToOrBuilderList()
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
getRefundToCount
public int getRefundToCount()
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;- Specified by:
getRefundToCountin interfaceProtos.PaymentOrBuilder
-
getRefundTo
public Protos.Output getRefundTo(int index)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;- Specified by:
getRefundToin interfaceProtos.PaymentOrBuilder
-
getRefundToOrBuilder
public Protos.OutputOrBuilder getRefundToOrBuilder(int index)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
hasMemo
public boolean hasMemo()
Human-readable message for the merchant
optional string memo = 4;- Specified by:
hasMemoin interfaceProtos.PaymentOrBuilder- Returns:
- Whether the memo field is set.
-
getMemo
public java.lang.String getMemo()
Human-readable message for the merchant
optional string memo = 4;- Specified by:
getMemoin interfaceProtos.PaymentOrBuilder- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()
Human-readable message for the merchant
optional string memo = 4;- Specified by:
getMemoBytesin interfaceProtos.PaymentOrBuilder- Returns:
- The bytes for memo.
-
parseFrom
public static Protos.Payment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Payment parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Payment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Payment 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.Payment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Payment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.Payment parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.Payment parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.Payment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.Payment parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.Payment parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.Payment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Protos.Payment.Builder newBuilder()
-
newBuilder
public static Protos.Payment.Builder newBuilder(Protos.Payment 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.Payment,Protos.Payment.Builder>
-
getDefaultInstance
public static Protos.Payment getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Protos.Payment> parser()
-
-