Class Protos.Payment.Builder

    • Method Detail

      • hasMerchantData

        public boolean hasMerchantData()
         From PaymentDetails.merchant_data
         
        optional bytes merchant_data = 1;
        Specified by:
        hasMerchantData in interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.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 interface Protos.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.
      • getRefundToCount

        public int getRefundToCount()
         Where to send refunds, if a refund is necessary
         
        repeated .payments.Output refund_to = 3;
        Specified by:
        getRefundToCount in interface Protos.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;
      • 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;
      • 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 interface Protos.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 interface Protos.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 interface Protos.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.