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 signatureintoptional uint32 payment_details_version = 1 [default = 1];com.google.protobuf.ByteStringdepends on pki_typenone / x509+sha256 / x509+sha1com.google.protobuf.ByteStringnone / x509+sha256 / x509+sha1com.google.protobuf.ByteStringPaymentDetailscom.google.protobuf.ByteStringpki-dependent signaturebooleanoptional uint32 payment_details_version = 1 [default = 1];booleandepends on pki_typebooleannone / x509+sha256 / x509+sha1booleanPaymentDetailsbooleanpki-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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
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
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:
hasPkiTypein interfaceProtos.PaymentRequestOrBuilder- Returns:
- Whether the pkiType field is set.
-
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
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:
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
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:
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
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
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.
-