Package org.bitcoinj.protobuf.payments
Class Protos.PaymentRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder>
-
- org.bitcoinj.protobuf.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 class
Protos.PaymentRequest.Builder
Protobuf 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 int
PAYMENT_DETAILS_VERSION_FIELD_NUMBER
static int
PKI_DATA_FIELD_NUMBER
static int
PKI_TYPE_FIELD_NUMBER
static int
SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER
static int
SIGNATURE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
static Protos.PaymentRequest
getDefaultInstance()
int
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 signaturestatic Protos.PaymentRequest.Builder
newBuilder()
static Protos.PaymentRequest.Builder
newBuilder(Protos.PaymentRequest prototype)
static Protos.PaymentRequest
parseDelimitedFrom(java.io.InputStream input)
static Protos.PaymentRequest
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.PaymentRequest
parseFrom(byte[] data)
static Protos.PaymentRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.PaymentRequest
parseFrom(com.google.protobuf.ByteString data)
static Protos.PaymentRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.PaymentRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static Protos.PaymentRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.PaymentRequest
parseFrom(java.io.InputStream input)
static Protos.PaymentRequest
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Protos.PaymentRequest
parseFrom(java.nio.ByteBuffer data)
static Protos.PaymentRequest
parseFrom(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:
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.
-
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.
-
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.
-
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.
-
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.
-
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:
dynamicMethod
in 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()
-
-