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
,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 type
payments.Payment
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionaddAllRefundTo
(Iterable<? extends Protos.Output> values) Where to send refunds, if a refund is necessaryaddAllTransactions
(Iterable<? extends com.google.protobuf.ByteString> values) Signed transactions that satisfy PaymentDetails.outputsaddRefundTo
(int index, Protos.Output value) Where to send refunds, if a refund is necessaryaddRefundTo
(int index, Protos.Output.Builder builderForValue) Where to send refunds, if a refund is necessaryaddRefundTo
(Protos.Output value) Where to send refunds, if a refund is necessaryaddRefundTo
(Protos.Output.Builder builderForValue) Where to send refunds, if a refund is necessaryaddTransactions
(com.google.protobuf.ByteString value) Signed transactions that satisfy PaymentDetails.outputsHuman-readable message for the merchantFrom PaymentDetails.merchant_dataWhere to send refunds, if a refund is necessarySigned transactions that satisfy PaymentDetails.outputsgetMemo()
Human-readable message for the merchantcom.google.protobuf.ByteString
Human-readable message for the merchantcom.google.protobuf.ByteString
From PaymentDetails.merchant_datagetRefundTo
(int index) Where to send refunds, if a refund is necessaryint
Where to send refunds, if a refund is necessaryWhere to send refunds, if a refund is necessarycom.google.protobuf.ByteString
getTransactions
(int index) Signed transactions that satisfy PaymentDetails.outputsint
Signed transactions that satisfy PaymentDetails.outputsList<com.google.protobuf.ByteString>
Signed transactions that satisfy PaymentDetails.outputsboolean
hasMemo()
Human-readable message for the merchantboolean
From PaymentDetails.merchant_dataremoveRefundTo
(int index) Where to send refunds, if a refund is necessaryHuman-readable message for the merchantsetMemoBytes
(com.google.protobuf.ByteString value) Human-readable message for the merchantsetMerchantData
(com.google.protobuf.ByteString value) From PaymentDetails.merchant_datasetRefundTo
(int index, Protos.Output value) Where to send refunds, if a refund is necessarysetRefundTo
(int index, Protos.Output.Builder builderForValue) Where to send refunds, if a refund is necessarysetTransactions
(int index, com.google.protobuf.ByteString value) Signed transactions that satisfy PaymentDetails.outputsMethods 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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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
From PaymentDetails.merchant_data
optional bytes merchant_data = 1;
- Parameters:
value
- The merchantData to set.- Returns:
- This builder for chaining.
-
clearMerchantData
From PaymentDetails.merchant_data
optional bytes merchant_data = 1;
- Returns:
- This builder for chaining.
-
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
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;
- Parameters:
value
- The transactions to set.- Returns:
- This builder for chaining.
-
addTransactions
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(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
Signed transactions that satisfy PaymentDetails.outputs
repeated bytes transactions = 2;
- Returns:
- This builder for chaining.
-
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
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
- Specified by:
getRefundTo
in interfaceProtos.PaymentOrBuilder
-
setRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
setRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
addAllRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
clearRefundTo
Where to send refunds, if a refund is necessary
repeated .payments.Output refund_to = 3;
-
removeRefundTo
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
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
Human-readable message for the merchant
optional string memo = 4;
- Parameters:
value
- The memo to set.- Returns:
- This builder for chaining.
-
clearMemo
Human-readable message for the merchant
optional string memo = 4;
- Returns:
- This builder for chaining.
-
setMemoBytes
Human-readable message for the merchant
optional string memo = 4;
- Parameters:
value
- The bytes for memo to set.- Returns:
- This builder for chaining.
-