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
  • Method Details

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