Package org.bitcoin.protocols.payments
Class Protos.Payment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Protos.Payment,Protos.Payment.Builder>
-
- org.bitcoin.protocols.payments.Protos.Payment.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable,Protos.PaymentOrBuilder
- Enclosing class:
- Protos.Payment
public static final class Protos.Payment.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.Payment,Protos.Payment.Builder> implements Protos.PaymentOrBuilder
Protobuf typepayments.Payment
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.Payment.BuilderaddAllRefundTo(java.lang.Iterable<? extends Protos.Output> values)Where to send refunds, if a refund is necessaryProtos.Payment.BuilderaddAllTransactions(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)Signed transactions that satisfy PaymentDetails.outputsProtos.Payment.BuilderaddRefundTo(int index, Protos.Output value)Where to send refunds, if a refund is necessaryProtos.Payment.BuilderaddRefundTo(int index, Protos.Output.Builder builderForValue)Where to send refunds, if a refund is necessaryProtos.Payment.BuilderaddRefundTo(Protos.Output value)Where to send refunds, if a refund is necessaryProtos.Payment.BuilderaddRefundTo(Protos.Output.Builder builderForValue)Where to send refunds, if a refund is necessaryProtos.Payment.BuilderaddTransactions(com.google.protobuf.ByteString value)Signed transactions that satisfy PaymentDetails.outputsProtos.Payment.BuilderclearMemo()Human-readable message for the merchantProtos.Payment.BuilderclearMerchantData()From PaymentDetails.merchant_dataProtos.Payment.BuilderclearRefundTo()Where to send refunds, if a refund is necessaryProtos.Payment.BuilderclearTransactions()Signed transactions that satisfy PaymentDetails.outputsjava.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 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_dataProtos.Payment.BuilderremoveRefundTo(int index)Where to send refunds, if a refund is necessaryProtos.Payment.BuildersetMemo(java.lang.String value)Human-readable message for the merchantProtos.Payment.BuildersetMemoBytes(com.google.protobuf.ByteString value)Human-readable message for the merchantProtos.Payment.BuildersetMerchantData(com.google.protobuf.ByteString value)From PaymentDetails.merchant_dataProtos.Payment.BuildersetRefundTo(int index, Protos.Output value)Where to send refunds, if a refund is necessaryProtos.Payment.BuildersetRefundTo(int index, Protos.Output.Builder builderForValue)Where to send refunds, if a refund is necessaryProtos.Payment.BuildersetTransactions(int index, com.google.protobuf.ByteString value)Signed transactions that satisfy PaymentDetails.outputs-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
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.
-
setMerchantData
public Protos.Payment.Builder setMerchantData(com.google.protobuf.ByteString value)
From PaymentDetails.merchant_data
optional bytes merchant_data = 1;- Parameters:
value- The merchantData to set.- Returns:
- This builder for chaining.
-
clearMerchantData
public Protos.Payment.Builder clearMerchantData()
From PaymentDetails.merchant_data
optional bytes merchant_data = 1;- Returns:
- This builder for chaining.
-
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.
-
setTransactions
public Protos.Payment.Builder setTransactions(int index, com.google.protobuf.ByteString value)
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;- Parameters:
value- The transactions to set.- Returns:
- This builder for chaining.
-
addTransactions
public Protos.Payment.Builder addTransactions(com.google.protobuf.ByteString value)
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;- Parameters:
value- The transactions to add.- Returns:
- This builder for chaining.
-
addAllTransactions
public Protos.Payment.Builder addAllTransactions(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;- Parameters:
values- The transactions to add.- Returns:
- This builder for chaining.
-
clearTransactions
public Protos.Payment.Builder clearTransactions()
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;- Returns:
- This builder for chaining.
-
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
-
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
-
setRefundTo
public Protos.Payment.Builder setRefundTo(int index, Protos.Output value)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
setRefundTo
public Protos.Payment.Builder setRefundTo(int index, Protos.Output.Builder builderForValue)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
public Protos.Payment.Builder addRefundTo(Protos.Output value)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
public Protos.Payment.Builder addRefundTo(int index, Protos.Output value)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
public Protos.Payment.Builder addRefundTo(Protos.Output.Builder builderForValue)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
public Protos.Payment.Builder addRefundTo(int index, Protos.Output.Builder builderForValue)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addAllRefundTo
public Protos.Payment.Builder addAllRefundTo(java.lang.Iterable<? extends Protos.Output> values)
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
clearRefundTo
public Protos.Payment.Builder clearRefundTo()
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
removeRefundTo
public Protos.Payment.Builder removeRefundTo(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.
-
setMemo
public Protos.Payment.Builder setMemo(java.lang.String value)
Human-readable message for the merchant
optional string memo = 4;- Parameters:
value- The memo to set.- Returns:
- This builder for chaining.
-
clearMemo
public Protos.Payment.Builder clearMemo()
Human-readable message for the merchant
optional string memo = 4;- Returns:
- This builder for chaining.
-
setMemoBytes
public Protos.Payment.Builder setMemoBytes(com.google.protobuf.ByteString value)
Human-readable message for the merchant
optional string memo = 4;- Parameters:
value- The bytes for memo to set.- Returns:
- This builder for chaining.
-
-