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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.GeneratedMessagepublic java.lang.String getUserId()
Purchase User ID.
string user_id = 1 [json_name = "userId"];getUserId in interface ValidatedPurchaseOrBuilderpublic com.google.protobuf.ByteString getUserIdBytes()
Purchase User ID.
string user_id = 1 [json_name = "userId"];getUserIdBytes in interface ValidatedPurchaseOrBuilderpublic java.lang.String getProductId()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];getProductId in interface ValidatedPurchaseOrBuilderpublic com.google.protobuf.ByteString getProductIdBytes()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];getProductIdBytes in interface ValidatedPurchaseOrBuilderpublic java.lang.String getTransactionId()
Purchase Transaction ID.
string transaction_id = 3 [json_name = "transactionId"];getTransactionId in interface ValidatedPurchaseOrBuilderpublic com.google.protobuf.ByteString getTransactionIdBytes()
Purchase Transaction ID.
string transaction_id = 3 [json_name = "transactionId"];getTransactionIdBytes in interface ValidatedPurchaseOrBuilderpublic int getStoreValue()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];getStoreValue in interface ValidatedPurchaseOrBuilderpublic StoreProvider getStore()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];getStore in interface ValidatedPurchaseOrBuilderpublic boolean hasPurchaseTime()
Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];hasPurchaseTime in interface ValidatedPurchaseOrBuilderpublic com.google.protobuf.Timestamp getPurchaseTime()
Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];getPurchaseTime in interface ValidatedPurchaseOrBuilderpublic com.google.protobuf.TimestampOrBuilder getPurchaseTimeOrBuilder()
Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];getPurchaseTimeOrBuilder in interface ValidatedPurchaseOrBuilderpublic boolean hasCreateTime()
Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];hasCreateTime in interface ValidatedPurchaseOrBuilderpublic 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 ValidatedPurchaseOrBuilderpublic 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 ValidatedPurchaseOrBuilderpublic boolean hasUpdateTime()
Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];hasUpdateTime in interface ValidatedPurchaseOrBuilderpublic 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 ValidatedPurchaseOrBuilderpublic 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 ValidatedPurchaseOrBuilderpublic boolean hasRefundTime()
Timestamp when the purchase was refunded. Set to UNIX
.google.protobuf.Timestamp refund_time = 8 [json_name = "refundTime"];hasRefundTime in interface ValidatedPurchaseOrBuilderpublic 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 ValidatedPurchaseOrBuilderpublic 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 ValidatedPurchaseOrBuilderpublic java.lang.String getProviderResponse()
Raw provider validation response.
string provider_response = 9 [json_name = "providerResponse"];getProviderResponse in interface ValidatedPurchaseOrBuilderpublic com.google.protobuf.ByteString getProviderResponseBytes()
Raw provider validation response.
string provider_response = 9 [json_name = "providerResponse"];getProviderResponseBytes in interface ValidatedPurchaseOrBuilderpublic int getEnvironmentValue()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 10 [json_name = "environment"];getEnvironmentValue in interface ValidatedPurchaseOrBuilderpublic StoreEnvironment getEnvironment()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 10 [json_name = "environment"];getEnvironment in interface ValidatedPurchaseOrBuilderpublic boolean getSeenBefore()
Whether the purchase had already been validated by Nakama before.
bool seen_before = 11 [json_name = "seenBefore"];getSeenBefore in interface ValidatedPurchaseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ValidatedPurchase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedPurchase parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedPurchase parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedPurchase parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedPurchase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedPurchase parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedPurchase parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedPurchase parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedPurchase parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedPurchase parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedPurchase parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedPurchase parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ValidatedPurchase.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ValidatedPurchase.Builder newBuilder()
public static ValidatedPurchase.Builder newBuilder(ValidatedPurchase prototype)
public ValidatedPurchase.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ValidatedPurchase.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static ValidatedPurchase getDefaultInstance()
public static com.google.protobuf.Parser<ValidatedPurchase> parser()
public com.google.protobuf.Parser<ValidatedPurchase> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic ValidatedPurchase getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder