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
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typepayments.PaymentRequestNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
memoizedSerializedSize, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Protos.PaymentRequestintoptional 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 signaturenewBuilder(Protos.PaymentRequest prototype) static Protos.PaymentRequestparseDelimitedFrom(InputStream input) static Protos.PaymentRequestparseDelimitedFrom(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(InputStream input) static Protos.PaymentRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Protos.PaymentRequestparseFrom(ByteBuffer data) static Protos.PaymentRequestparseFrom(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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
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
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(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:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Protos.PaymentRequest,Protos.PaymentRequest.Builder>
-
getDefaultInstance
-
parser
-