Class Protos.PaymentRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentRequest,Protos.PaymentRequest.Builder>
org.bitcoin.protocols.payments.Protos.PaymentRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.PaymentRequestOrBuilder
Enclosing class:
Protos.PaymentRequest

public static final class Protos.PaymentRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.PaymentRequest,Protos.PaymentRequest.Builder> implements Protos.PaymentRequestOrBuilder
Protobuf type payments.PaymentRequest
  • Method Details

    • hasPaymentDetailsVersion

      public boolean hasPaymentDetailsVersion()
      optional uint32 payment_details_version = 1 [default = 1];
      Specified by:
      hasPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder
      Returns:
      Whether the paymentDetailsVersion field is set.
    • getPaymentDetailsVersion

      public int getPaymentDetailsVersion()
      optional uint32 payment_details_version = 1 [default = 1];
      Specified by:
      getPaymentDetailsVersion in interface Protos.PaymentRequestOrBuilder
      Returns:
      The paymentDetailsVersion.
    • setPaymentDetailsVersion

      public Protos.PaymentRequest.Builder setPaymentDetailsVersion(int value)
      optional uint32 payment_details_version = 1 [default = 1];
      Parameters:
      value - The paymentDetailsVersion to set.
      Returns:
      This builder for chaining.
    • clearPaymentDetailsVersion

      public Protos.PaymentRequest.Builder clearPaymentDetailsVersion()
      optional uint32 payment_details_version = 1 [default = 1];
      Returns:
      This builder for chaining.
    • hasPkiType

      public boolean hasPkiType()
       none / x509+sha256 / x509+sha1
       
      optional string pki_type = 2 [default = "none"];
      Specified by:
      hasPkiType in interface Protos.PaymentRequestOrBuilder
      Returns:
      Whether the pkiType field is set.
    • getPkiType

      public String getPkiType()
       none / x509+sha256 / x509+sha1
       
      optional string pki_type = 2 [default = "none"];
      Specified by:
      getPkiType in interface Protos.PaymentRequestOrBuilder
      Returns:
      The pkiType.
    • getPkiTypeBytes

      public com.google.protobuf.ByteString getPkiTypeBytes()
       none / x509+sha256 / x509+sha1
       
      optional string pki_type = 2 [default = "none"];
      Specified by:
      getPkiTypeBytes in interface Protos.PaymentRequestOrBuilder
      Returns:
      The bytes for pkiType.
    • setPkiType

      public Protos.PaymentRequest.Builder setPkiType(String value)
       none / x509+sha256 / x509+sha1
       
      optional string pki_type = 2 [default = "none"];
      Parameters:
      value - The pkiType to set.
      Returns:
      This builder for chaining.
    • clearPkiType

      public Protos.PaymentRequest.Builder clearPkiType()
       none / x509+sha256 / x509+sha1
       
      optional string pki_type = 2 [default = "none"];
      Returns:
      This builder for chaining.
    • setPkiTypeBytes

      public Protos.PaymentRequest.Builder setPkiTypeBytes(com.google.protobuf.ByteString value)
       none / x509+sha256 / x509+sha1
       
      optional string pki_type = 2 [default = "none"];
      Parameters:
      value - The bytes for pkiType to set.
      Returns:
      This builder for chaining.
    • hasPkiData

      public boolean hasPkiData()
       depends on pki_type
       
      optional bytes pki_data = 3;
      Specified by:
      hasPkiData in interface Protos.PaymentRequestOrBuilder
      Returns:
      Whether the pkiData field is set.
    • getPkiData

      public com.google.protobuf.ByteString getPkiData()
       depends on pki_type
       
      optional bytes pki_data = 3;
      Specified by:
      getPkiData in interface Protos.PaymentRequestOrBuilder
      Returns:
      The pkiData.
    • setPkiData

      public Protos.PaymentRequest.Builder setPkiData(com.google.protobuf.ByteString value)
       depends on pki_type
       
      optional bytes pki_data = 3;
      Parameters:
      value - The pkiData to set.
      Returns:
      This builder for chaining.
    • clearPkiData

      public Protos.PaymentRequest.Builder clearPkiData()
       depends on pki_type
       
      optional bytes pki_data = 3;
      Returns:
      This builder for chaining.
    • hasSerializedPaymentDetails

      public boolean hasSerializedPaymentDetails()
       PaymentDetails
       
      required bytes serialized_payment_details = 4;
      Specified by:
      hasSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder
      Returns:
      Whether the serializedPaymentDetails field is set.
    • getSerializedPaymentDetails

      public com.google.protobuf.ByteString getSerializedPaymentDetails()
       PaymentDetails
       
      required bytes serialized_payment_details = 4;
      Specified by:
      getSerializedPaymentDetails in interface Protos.PaymentRequestOrBuilder
      Returns:
      The serializedPaymentDetails.
    • setSerializedPaymentDetails

      public Protos.PaymentRequest.Builder setSerializedPaymentDetails(com.google.protobuf.ByteString value)
       PaymentDetails
       
      required bytes serialized_payment_details = 4;
      Parameters:
      value - The serializedPaymentDetails to set.
      Returns:
      This builder for chaining.
    • clearSerializedPaymentDetails

      public Protos.PaymentRequest.Builder clearSerializedPaymentDetails()
       PaymentDetails
       
      required bytes serialized_payment_details = 4;
      Returns:
      This builder for chaining.
    • hasSignature

      public boolean hasSignature()
       pki-dependent signature
       
      optional bytes signature = 5;
      Specified by:
      hasSignature in interface Protos.PaymentRequestOrBuilder
      Returns:
      Whether the signature field is set.
    • getSignature

      public com.google.protobuf.ByteString getSignature()
       pki-dependent signature
       
      optional bytes signature = 5;
      Specified by:
      getSignature in interface Protos.PaymentRequestOrBuilder
      Returns:
      The signature.
    • setSignature

      public Protos.PaymentRequest.Builder setSignature(com.google.protobuf.ByteString value)
       pki-dependent signature
       
      optional bytes signature = 5;
      Parameters:
      value - The signature to set.
      Returns:
      This builder for chaining.
    • clearSignature

      public Protos.PaymentRequest.Builder clearSignature()
       pki-dependent signature
       
      optional bytes signature = 5;
      Returns:
      This builder for chaining.