Package org.bitcoin.protocols.payments
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,java.lang.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 typepayments.PaymentRequest 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.PaymentRequest.BuilderclearPaymentDetailsVersion()optional uint32 payment_details_version = 1 [default = 1];Protos.PaymentRequest.BuilderclearPkiData()depends on pki_typeProtos.PaymentRequest.BuilderclearPkiType()none / x509+sha256 / x509+sha1Protos.PaymentRequest.BuilderclearSerializedPaymentDetails()PaymentDetailsProtos.PaymentRequest.BuilderclearSignature()pki-dependent signatureintgetPaymentDetailsVersion()optional uint32 payment_details_version = 1 [default = 1];com.google.protobuf.ByteStringgetPkiData()depends on pki_typejava.lang.StringgetPkiType()none / x509+sha256 / x509+sha1com.google.protobuf.ByteStringgetPkiTypeBytes()none / x509+sha256 / x509+sha1com.google.protobuf.ByteStringgetSerializedPaymentDetails()PaymentDetailscom.google.protobuf.ByteStringgetSignature()pki-dependent signaturebooleanhasPaymentDetailsVersion()optional uint32 payment_details_version = 1 [default = 1];booleanhasPkiData()depends on pki_typebooleanhasPkiType()none / x509+sha256 / x509+sha1booleanhasSerializedPaymentDetails()PaymentDetailsbooleanhasSignature()pki-dependent signatureProtos.PaymentRequest.BuildersetPaymentDetailsVersion(int value)optional uint32 payment_details_version = 1 [default = 1];Protos.PaymentRequest.BuildersetPkiData(com.google.protobuf.ByteString value)depends on pki_typeProtos.PaymentRequest.BuildersetPkiType(java.lang.String value)none / x509+sha256 / x509+sha1Protos.PaymentRequest.BuildersetPkiTypeBytes(com.google.protobuf.ByteString value)none / x509+sha256 / x509+sha1Protos.PaymentRequest.BuildersetSerializedPaymentDetails(com.google.protobuf.ByteString value)PaymentDetailsProtos.PaymentRequest.BuildersetSignature(com.google.protobuf.ByteString value)pki-dependent signature- 
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
- 
hasPaymentDetailsVersion
public boolean hasPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];- Specified by:
 hasPaymentDetailsVersionin interfaceProtos.PaymentRequestOrBuilder- Returns:
 - Whether the paymentDetailsVersion field is set.
 
 
- 
getPaymentDetailsVersion
public int getPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];- Specified by:
 getPaymentDetailsVersionin interfaceProtos.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:
 hasPkiTypein interfaceProtos.PaymentRequestOrBuilder- Returns:
 - Whether the pkiType field is set.
 
 
- 
getPkiType
public java.lang.String getPkiType()
none / x509+sha256 / x509+sha1
optional string pki_type = 2 [default = "none"];- Specified by:
 getPkiTypein interfaceProtos.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:
 getPkiTypeBytesin interfaceProtos.PaymentRequestOrBuilder- Returns:
 - The bytes for pkiType.
 
 
- 
setPkiType
public Protos.PaymentRequest.Builder setPkiType(java.lang.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:
 hasPkiDatain interfaceProtos.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:
 getPkiDatain interfaceProtos.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:
 hasSerializedPaymentDetailsin interfaceProtos.PaymentRequestOrBuilder- Returns:
 - Whether the serializedPaymentDetails field is set.
 
 
- 
getSerializedPaymentDetails
public com.google.protobuf.ByteString getSerializedPaymentDetails()
PaymentDetails
required bytes serialized_payment_details = 4;- Specified by:
 getSerializedPaymentDetailsin interfaceProtos.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:
 hasSignaturein interfaceProtos.PaymentRequestOrBuilder- Returns:
 - Whether the signature field is set.
 
 
- 
getSignature
public com.google.protobuf.ByteString getSignature()
pki-dependent signature
optional bytes signature = 5;- Specified by:
 getSignaturein interfaceProtos.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.
 
 
 - 
 
 -