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 type
payments.PaymentRequest
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
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 Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
memoizedSerializedSize, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Protos.PaymentRequest
int
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 signaturenewBuilder
(Protos.PaymentRequest prototype) static Protos.PaymentRequest
parseDelimitedFrom
(InputStream input) static Protos.PaymentRequest
parseDelimitedFrom
(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
(InputStream input) static Protos.PaymentRequest
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentRequest
parseFrom
(ByteBuffer data) static Protos.PaymentRequest
parseFrom
(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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
PAYMENT_DETAILS_VERSION_FIELD_NUMBER
public static final int PAYMENT_DETAILS_VERSION_FIELD_NUMBER- See Also:
-
PKI_TYPE_FIELD_NUMBER
public static final int PKI_TYPE_FIELD_NUMBER- See Also:
-
PKI_DATA_FIELD_NUMBER
public static final int PKI_DATA_FIELD_NUMBER- See Also:
-
SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER
public static final int SERIALIZED_PAYMENT_DETAILS_FIELD_NUMBER- See Also:
-
SIGNATURE_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Protos.PaymentRequest parseFrom(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
- Throws:
IOException
-
parseFrom
public static Protos.PaymentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Protos.PaymentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.PaymentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Protos.PaymentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,
Protos.PaymentRequest.Builder>
-
getDefaultInstance
-
parser
-