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
,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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionoptional uint32 payment_details_version = 1 [default = 1];
depends on pki_typenone / x509+sha256 / x509+sha1PaymentDetailspki-dependent signatureint
optional uint32 payment_details_version = 1 [default = 1];
com.google.protobuf.ByteString
depends on pki_typenone / x509+sha256 / x509+sha1com.google.protobuf.ByteString
none / x509+sha256 / x509+sha1com.google.protobuf.ByteString
PaymentDetailscom.google.protobuf.ByteString
pki-dependent signatureboolean
optional uint32 payment_details_version = 1 [default = 1];
boolean
depends on pki_typeboolean
none / x509+sha256 / x509+sha1boolean
PaymentDetailsboolean
pki-dependent signaturesetPaymentDetailsVersion
(int value) optional uint32 payment_details_version = 1 [default = 1];
setPkiData
(com.google.protobuf.ByteString value) depends on pki_typesetPkiType
(String value) none / x509+sha256 / x509+sha1setPkiTypeBytes
(com.google.protobuf.ByteString value) none / x509+sha256 / x509+sha1setSerializedPaymentDetails
(com.google.protobuf.ByteString value) PaymentDetailssetSignature
(com.google.protobuf.ByteString value) pki-dependent signatureMethods 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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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
optional uint32 payment_details_version = 1 [default = 1];
- Parameters:
value
- The paymentDetailsVersion to set.- Returns:
- This builder for chaining.
-
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
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
none / x509+sha256 / x509+sha1
optional string pki_type = 2 [default = "none"];
- Parameters:
value
- The pkiType to set.- Returns:
- This builder for chaining.
-
clearPkiType
none / x509+sha256 / x509+sha1
optional string pki_type = 2 [default = "none"];
- Returns:
- This builder for chaining.
-
setPkiTypeBytes
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
depends on pki_type
optional bytes pki_data = 3;
- Parameters:
value
- The pkiData to set.- Returns:
- This builder for chaining.
-
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
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
pki-dependent signature
optional bytes signature = 5;
- Parameters:
value
- The signature to set.- Returns:
- This builder for chaining.
-
clearSignature
pki-dependent signature
optional bytes signature = 5;
- Returns:
- This builder for chaining.
-