public final class ValidatedPurchase extends com.google.protobuf.GeneratedMessage implements ValidatedPurchaseOrBuilder
Validated Purchase stored by Nakama.Protobuf type
nakama.api.ValidatedPurchase
Modifier and Type | Class and Description |
---|---|
static class |
ValidatedPurchase.Builder
Validated Purchase stored by Nakama.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
ENVIRONMENT_FIELD_NUMBER |
static int |
PRODUCT_ID_FIELD_NUMBER |
static int |
PROVIDER_RESPONSE_FIELD_NUMBER |
static int |
PURCHASE_TIME_FIELD_NUMBER |
static int |
REFUND_TIME_FIELD_NUMBER |
static int |
SEEN_BEFORE_FIELD_NUMBER |
static int |
STORE_FIELD_NUMBER |
static int |
TRANSACTION_ID_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
USER_ID_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
com.google.protobuf.Timestamp |
getCreateTime()
Timestamp when the receipt validation was stored in DB.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Timestamp when the receipt validation was stored in DB.
|
static ValidatedPurchase |
getDefaultInstance() |
ValidatedPurchase |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
StoreEnvironment |
getEnvironment()
Whether the purchase was done in production or sandbox environment.
|
int |
getEnvironmentValue()
Whether the purchase was done in production or sandbox environment.
|
com.google.protobuf.Parser<ValidatedPurchase> |
getParserForType() |
java.lang.String |
getProductId()
Purchase Product ID.
|
com.google.protobuf.ByteString |
getProductIdBytes()
Purchase Product ID.
|
java.lang.String |
getProviderResponse()
Raw provider validation response.
|
com.google.protobuf.ByteString |
getProviderResponseBytes()
Raw provider validation response.
|
com.google.protobuf.Timestamp |
getPurchaseTime()
Timestamp when the purchase was done.
|
com.google.protobuf.TimestampOrBuilder |
getPurchaseTimeOrBuilder()
Timestamp when the purchase was done.
|
com.google.protobuf.Timestamp |
getRefundTime()
Timestamp when the purchase was refunded.
|
com.google.protobuf.TimestampOrBuilder |
getRefundTimeOrBuilder()
Timestamp when the purchase was refunded.
|
boolean |
getSeenBefore()
Whether the purchase had already been validated by Nakama before.
|
int |
getSerializedSize() |
StoreProvider |
getStore()
Store identifier
|
int |
getStoreValue()
Store identifier
|
java.lang.String |
getTransactionId()
Purchase Transaction ID.
|
com.google.protobuf.ByteString |
getTransactionIdBytes()
Purchase Transaction ID.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Timestamp when the receipt validation was updated in DB.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Timestamp when the receipt validation was updated in DB.
|
java.lang.String |
getUserId()
Purchase User ID.
|
com.google.protobuf.ByteString |
getUserIdBytes()
Purchase User ID.
|
boolean |
hasCreateTime()
Timestamp when the receipt validation was stored in DB.
|
int |
hashCode() |
boolean |
hasPurchaseTime()
Timestamp when the purchase was done.
|
boolean |
hasRefundTime()
Timestamp when the purchase was refunded.
|
boolean |
hasUpdateTime()
Timestamp when the receipt validation was updated in DB.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ValidatedPurchase.Builder |
newBuilder() |
static ValidatedPurchase.Builder |
newBuilder(ValidatedPurchase prototype) |
ValidatedPurchase.Builder |
newBuilderForType() |
protected ValidatedPurchase.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static ValidatedPurchase |
parseDelimitedFrom(java.io.InputStream input) |
static ValidatedPurchase |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedPurchase |
parseFrom(byte[] data) |
static ValidatedPurchase |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedPurchase |
parseFrom(java.nio.ByteBuffer data) |
static ValidatedPurchase |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedPurchase |
parseFrom(com.google.protobuf.ByteString data) |
static ValidatedPurchase |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedPurchase |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ValidatedPurchase |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedPurchase |
parseFrom(java.io.InputStream input) |
static ValidatedPurchase |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ValidatedPurchase> |
parser() |
ValidatedPurchase.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int USER_ID_FIELD_NUMBER
public static final int PRODUCT_ID_FIELD_NUMBER
public static final int TRANSACTION_ID_FIELD_NUMBER
public static final int STORE_FIELD_NUMBER
public static final int PURCHASE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int REFUND_TIME_FIELD_NUMBER
public static final int PROVIDER_RESPONSE_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER
public static final int SEEN_BEFORE_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public java.lang.String getUserId()
Purchase User ID.
string user_id = 1 [json_name = "userId"];
getUserId
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.ByteString getUserIdBytes()
Purchase User ID.
string user_id = 1 [json_name = "userId"];
getUserIdBytes
in interface ValidatedPurchaseOrBuilder
public java.lang.String getProductId()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];
getProductId
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.ByteString getProductIdBytes()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];
getProductIdBytes
in interface ValidatedPurchaseOrBuilder
public java.lang.String getTransactionId()
Purchase Transaction ID.
string transaction_id = 3 [json_name = "transactionId"];
getTransactionId
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.ByteString getTransactionIdBytes()
Purchase Transaction ID.
string transaction_id = 3 [json_name = "transactionId"];
getTransactionIdBytes
in interface ValidatedPurchaseOrBuilder
public int getStoreValue()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];
getStoreValue
in interface ValidatedPurchaseOrBuilder
public StoreProvider getStore()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];
getStore
in interface ValidatedPurchaseOrBuilder
public boolean hasPurchaseTime()
Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];
hasPurchaseTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.Timestamp getPurchaseTime()
Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];
getPurchaseTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.TimestampOrBuilder getPurchaseTimeOrBuilder()
Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];
getPurchaseTimeOrBuilder
in interface ValidatedPurchaseOrBuilder
public boolean hasCreateTime()
Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];
hasCreateTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.Timestamp getCreateTime()
Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];
getCreateTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];
getCreateTimeOrBuilder
in interface ValidatedPurchaseOrBuilder
public boolean hasUpdateTime()
Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];
hasUpdateTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.Timestamp getUpdateTime()
Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];
getUpdateTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];
getUpdateTimeOrBuilder
in interface ValidatedPurchaseOrBuilder
public boolean hasRefundTime()
Timestamp when the purchase was refunded. Set to UNIX
.google.protobuf.Timestamp refund_time = 8 [json_name = "refundTime"];
hasRefundTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.Timestamp getRefundTime()
Timestamp when the purchase was refunded. Set to UNIX
.google.protobuf.Timestamp refund_time = 8 [json_name = "refundTime"];
getRefundTime
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.TimestampOrBuilder getRefundTimeOrBuilder()
Timestamp when the purchase was refunded. Set to UNIX
.google.protobuf.Timestamp refund_time = 8 [json_name = "refundTime"];
getRefundTimeOrBuilder
in interface ValidatedPurchaseOrBuilder
public java.lang.String getProviderResponse()
Raw provider validation response.
string provider_response = 9 [json_name = "providerResponse"];
getProviderResponse
in interface ValidatedPurchaseOrBuilder
public com.google.protobuf.ByteString getProviderResponseBytes()
Raw provider validation response.
string provider_response = 9 [json_name = "providerResponse"];
getProviderResponseBytes
in interface ValidatedPurchaseOrBuilder
public int getEnvironmentValue()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 10 [json_name = "environment"];
getEnvironmentValue
in interface ValidatedPurchaseOrBuilder
public StoreEnvironment getEnvironment()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 10 [json_name = "environment"];
getEnvironment
in interface ValidatedPurchaseOrBuilder
public boolean getSeenBefore()
Whether the purchase had already been validated by Nakama before.
bool seen_before = 11 [json_name = "seenBefore"];
getSeenBefore
in interface ValidatedPurchaseOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ValidatedPurchase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedPurchase parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedPurchase parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedPurchase parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedPurchase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedPurchase parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedPurchase parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ValidatedPurchase parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ValidatedPurchase parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ValidatedPurchase parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ValidatedPurchase parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static ValidatedPurchase parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public ValidatedPurchase.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ValidatedPurchase.Builder newBuilder()
public static ValidatedPurchase.Builder newBuilder(ValidatedPurchase prototype)
public ValidatedPurchase.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ValidatedPurchase.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static ValidatedPurchase getDefaultInstance()
public static com.google.protobuf.Parser<ValidatedPurchase> parser()
public com.google.protobuf.Parser<ValidatedPurchase> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public ValidatedPurchase getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder