Package org.bitcoinj.protobuf.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.bitcoinj.protobuf.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.Builder
addAllRefundTo(java.lang.Iterable<? extends Protos.Output> values)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
addAllTransactions(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
Signed transactions that satisfy PaymentDetails.outputsProtos.Payment.Builder
addRefundTo(int index, Protos.Output value)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
addRefundTo(int index, Protos.Output.Builder builderForValue)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
addRefundTo(Protos.Output value)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
addRefundTo(Protos.Output.Builder builderForValue)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
addTransactions(com.google.protobuf.ByteString value)
Signed transactions that satisfy PaymentDetails.outputsProtos.Payment.Builder
clearMemo()
Human-readable message for the merchantProtos.Payment.Builder
clearMerchantData()
From PaymentDetails.merchant_dataProtos.Payment.Builder
clearRefundTo()
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
clearTransactions()
Signed transactions that satisfy PaymentDetails.outputsjava.lang.String
getMemo()
Human-readable message for the merchantcom.google.protobuf.ByteString
getMemoBytes()
Human-readable message for the merchantcom.google.protobuf.ByteString
getMerchantData()
From PaymentDetails.merchant_dataProtos.Output
getRefundTo(int index)
Where to send refunds, if a refund is necessaryint
getRefundToCount()
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.ByteString
getTransactions(int index)
Signed transactions that satisfy PaymentDetails.outputsint
getTransactionsCount()
Signed transactions that satisfy PaymentDetails.outputsjava.util.List<com.google.protobuf.ByteString>
getTransactionsList()
Signed transactions that satisfy PaymentDetails.outputsboolean
hasMemo()
Human-readable message for the merchantboolean
hasMerchantData()
From PaymentDetails.merchant_dataProtos.Payment.Builder
removeRefundTo(int index)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
setMemo(java.lang.String value)
Human-readable message for the merchantProtos.Payment.Builder
setMemoBytes(com.google.protobuf.ByteString value)
Human-readable message for the merchantProtos.Payment.Builder
setMerchantData(com.google.protobuf.ByteString value)
From PaymentDetails.merchant_dataProtos.Payment.Builder
setRefundTo(int index, Protos.Output value)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
setRefundTo(int index, Protos.Output.Builder builderForValue)
Where to send refunds, if a refund is necessaryProtos.Payment.Builder
setTransactions(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:
hasMerchantData
in 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:
getMerchantData
in 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:
getTransactionsList
in interfaceProtos.PaymentOrBuilder
- Returns:
- A list containing the transactions.
-
getTransactionsCount
public int getTransactionsCount()
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;
- Specified by:
getTransactionsCount
in 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:
getTransactions
in 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:
getRefundToList
in interfaceProtos.PaymentOrBuilder
-
getRefundToCount
public int getRefundToCount()
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
- Specified by:
getRefundToCount
in 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:
getRefundTo
in 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:
hasMemo
in 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:
getMemo
in interfaceProtos.PaymentOrBuilder
- Returns:
- The memo.
-
getMemoBytes
public com.google.protobuf.ByteString getMemoBytes()
Human-readable message for the merchant
optional string memo = 4;
- Specified by:
getMemoBytes
in 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.
-
-