Package org.bitcoin.protocols.payments
Class Protos.PaymentRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder>
-
- org.bitcoin.protocols.payments.Protos.PaymentRequest
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Protos.PaymentRequestOrBuilder
- Enclosing class:
- Protos
public static final class Protos.PaymentRequest extends com.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder> implements Protos.PaymentRequestOrBuilder
Protobuf typepayments.PaymentRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtos.PaymentRequest.BuilderProtobuf typepayments.PaymentRequest-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends java.lang.Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm
-
-
Field Summary
Fields Modifier and Type Field Description static intPAYMENT_DETAILS_VERSION_FIELD_NUMBERstatic intPKI_DATA_FIELD_NUMBERstatic intPKI_TYPE_FIELD_NUMBERstatic intSERIALIZED_PAYMENT_DETAILS_FIELD_NUMBERstatic intSIGNATURE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)static Protos.PaymentRequestgetDefaultInstance()intgetPaymentDetailsVersion()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 signaturestatic Protos.PaymentRequest.BuildernewBuilder()static Protos.PaymentRequest.BuildernewBuilder(Protos.PaymentRequest prototype)static Protos.PaymentRequestparseDelimitedFrom(java.io.InputStream input)static Protos.PaymentRequestparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentRequestparseFrom(byte[] data)static Protos.PaymentRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentRequestparseFrom(com.google.protobuf.ByteString data)static Protos.PaymentRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentRequestparseFrom(com.google.protobuf.CodedInputStream input)static Protos.PaymentRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentRequestparseFrom(java.io.InputStream input)static Protos.PaymentRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Protos.PaymentRequestparseFrom(java.nio.ByteBuffer data)static Protos.PaymentRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Protos.PaymentRequest>parser()-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
-
-
-
Field Detail
-
PAYMENT_DETAILS_VERSION_FIELD_NUMBER
public static final int PAYMENT_DETAILS_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PKI_TYPE_FIELD_NUMBER
public static final int PKI_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PKI_DATA_FIELD_NUMBER
public static final int PKI_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER
public static final int SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SIGNATURE_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static Protos.PaymentRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.PaymentRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.PaymentRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Protos.PaymentRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.PaymentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Protos.PaymentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static Protos.PaymentRequest.Builder newBuilder()
-
newBuilder
public static Protos.PaymentRequest.Builder newBuilder(Protos.PaymentRequest prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)- Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder>
-
getDefaultInstance
public static Protos.PaymentRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Protos.PaymentRequest> parser()
-
-