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.Builder
clearPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];
Protos.PaymentRequest.Builder
clearPkiData()
depends on pki_typeProtos.PaymentRequest.Builder
clearPkiType()
none / x509+sha256 / x509+sha1Protos.PaymentRequest.Builder
clearSerializedPaymentDetails()
PaymentDetailsProtos.PaymentRequest.Builder
clearSignature()
pki-dependent signatureint
getPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];
com.google.protobuf.ByteString
getPkiData()
depends on pki_typejava.lang.String
getPkiType()
none / x509+sha256 / x509+sha1com.google.protobuf.ByteString
getPkiTypeBytes()
none / x509+sha256 / x509+sha1com.google.protobuf.ByteString
getSerializedPaymentDetails()
PaymentDetailscom.google.protobuf.ByteString
getSignature()
pki-dependent signatureboolean
hasPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];
boolean
hasPkiData()
depends on pki_typeboolean
hasPkiType()
none / x509+sha256 / x509+sha1boolean
hasSerializedPaymentDetails()
PaymentDetailsboolean
hasSignature()
pki-dependent signatureProtos.PaymentRequest.Builder
setPaymentDetailsVersion(int value)
optional uint32 payment_details_version = 1 [default = 1];
Protos.PaymentRequest.Builder
setPkiData(com.google.protobuf.ByteString value)
depends on pki_typeProtos.PaymentRequest.Builder
setPkiType(java.lang.String value)
none / x509+sha256 / x509+sha1Protos.PaymentRequest.Builder
setPkiTypeBytes(com.google.protobuf.ByteString value)
none / x509+sha256 / x509+sha1Protos.PaymentRequest.Builder
setSerializedPaymentDetails(com.google.protobuf.ByteString value)
PaymentDetailsProtos.PaymentRequest.Builder
setSignature(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:
hasPaymentDetailsVersion
in interfaceProtos.PaymentRequestOrBuilder
- Returns:
- Whether the paymentDetailsVersion field is set.
-
getPaymentDetailsVersion
public int getPaymentDetailsVersion()
optional uint32 payment_details_version = 1 [default = 1];
- Specified by:
getPaymentDetailsVersion
in 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:
hasPkiType
in 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:
getPkiType
in 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:
getPkiTypeBytes
in 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:
hasPkiData
in 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:
getPkiData
in 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:
hasSerializedPaymentDetails
in 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:
getSerializedPaymentDetails
in 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:
hasSignature
in 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:
getSignature
in 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.
-
-