public final class ValidatedSubscription extends com.google.protobuf.GeneratedMessage implements ValidatedSubscriptionOrBuilder
nakama.api.ValidatedSubscription| Modifier and Type | Class and Description |
|---|---|
static class |
ValidatedSubscription.Builder
Protobuf type
nakama.api.ValidatedSubscription |
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 |
ACTIVE_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
ENVIRONMENT_FIELD_NUMBER |
static int |
EXPIRY_TIME_FIELD_NUMBER |
static int |
ORIGINAL_TRANSACTION_ID_FIELD_NUMBER |
static int |
PRODUCT_ID_FIELD_NUMBER |
static int |
PROVIDER_NOTIFICATION_FIELD_NUMBER |
static int |
PROVIDER_RESPONSE_FIELD_NUMBER |
static int |
PURCHASE_TIME_FIELD_NUMBER |
static int |
REFUND_TIME_FIELD_NUMBER |
static int |
STORE_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) |
boolean |
getActive()
Whether the subscription is currently active or not.
|
com.google.protobuf.Timestamp |
getCreateTime()
UNIX Timestamp when the receipt validation was stored in DB.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
UNIX Timestamp when the receipt validation was stored in DB.
|
static ValidatedSubscription |
getDefaultInstance() |
ValidatedSubscription |
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.Timestamp |
getExpiryTime()
Subscription expiration time.
|
com.google.protobuf.TimestampOrBuilder |
getExpiryTimeOrBuilder()
Subscription expiration time.
|
java.lang.String |
getOriginalTransactionId()
Purchase Original transaction ID (we only keep track of the original subscription, not subsequent renewals).
|
com.google.protobuf.ByteString |
getOriginalTransactionIdBytes()
Purchase Original transaction ID (we only keep track of the original subscription, not subsequent renewals).
|
com.google.protobuf.Parser<ValidatedSubscription> |
getParserForType() |
java.lang.String |
getProductId()
Purchase Product ID.
|
com.google.protobuf.ByteString |
getProductIdBytes()
Purchase Product ID.
|
java.lang.String |
getProviderNotification()
Raw provider notification body.
|
com.google.protobuf.ByteString |
getProviderNotificationBytes()
Raw provider notification body.
|
java.lang.String |
getProviderResponse()
Raw provider validation response body.
|
com.google.protobuf.ByteString |
getProviderResponseBytes()
Raw provider validation response body.
|
com.google.protobuf.Timestamp |
getPurchaseTime()
UNIX Timestamp when the purchase was done.
|
com.google.protobuf.TimestampOrBuilder |
getPurchaseTimeOrBuilder()
UNIX Timestamp when the purchase was done.
|
com.google.protobuf.Timestamp |
getRefundTime()
Subscription refund time.
|
com.google.protobuf.TimestampOrBuilder |
getRefundTimeOrBuilder()
Subscription refund time.
|
int |
getSerializedSize() |
StoreProvider |
getStore()
Store identifier
|
int |
getStoreValue()
Store identifier
|
com.google.protobuf.Timestamp |
getUpdateTime()
UNIX Timestamp when the receipt validation was updated in DB.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
UNIX Timestamp when the receipt validation was updated in DB.
|
java.lang.String |
getUserId()
Subscription User ID.
|
com.google.protobuf.ByteString |
getUserIdBytes()
Subscription User ID.
|
boolean |
hasCreateTime()
UNIX Timestamp when the receipt validation was stored in DB.
|
boolean |
hasExpiryTime()
Subscription expiration time.
|
int |
hashCode() |
boolean |
hasPurchaseTime()
UNIX Timestamp when the purchase was done.
|
boolean |
hasRefundTime()
Subscription refund time.
|
boolean |
hasUpdateTime()
UNIX Timestamp when the receipt validation was updated in DB.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ValidatedSubscription.Builder |
newBuilder() |
static ValidatedSubscription.Builder |
newBuilder(ValidatedSubscription prototype) |
ValidatedSubscription.Builder |
newBuilderForType() |
protected ValidatedSubscription.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static ValidatedSubscription |
parseDelimitedFrom(java.io.InputStream input) |
static ValidatedSubscription |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedSubscription |
parseFrom(byte[] data) |
static ValidatedSubscription |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedSubscription |
parseFrom(java.nio.ByteBuffer data) |
static ValidatedSubscription |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedSubscription |
parseFrom(com.google.protobuf.ByteString data) |
static ValidatedSubscription |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedSubscription |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ValidatedSubscription |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValidatedSubscription |
parseFrom(java.io.InputStream input) |
static ValidatedSubscription |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ValidatedSubscription> |
parser() |
ValidatedSubscription.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 ORIGINAL_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 ENVIRONMENT_FIELD_NUMBER
public static final int EXPIRY_TIME_FIELD_NUMBER
public static final int REFUND_TIME_FIELD_NUMBER
public static final int PROVIDER_RESPONSE_FIELD_NUMBER
public static final int PROVIDER_NOTIFICATION_FIELD_NUMBER
public static final int ACTIVE_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()
Subscription User ID.
string user_id = 1 [json_name = "userId"];getUserId in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.ByteString getUserIdBytes()
Subscription User ID.
string user_id = 1 [json_name = "userId"];getUserIdBytes in interface ValidatedSubscriptionOrBuilderpublic java.lang.String getProductId()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];getProductId in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.ByteString getProductIdBytes()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];getProductIdBytes in interface ValidatedSubscriptionOrBuilderpublic java.lang.String getOriginalTransactionId()
Purchase Original transaction ID (we only keep track of the original subscription, not subsequent renewals).
string original_transaction_id = 3 [json_name = "originalTransactionId"];getOriginalTransactionId in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.ByteString getOriginalTransactionIdBytes()
Purchase Original transaction ID (we only keep track of the original subscription, not subsequent renewals).
string original_transaction_id = 3 [json_name = "originalTransactionId"];getOriginalTransactionIdBytes in interface ValidatedSubscriptionOrBuilderpublic int getStoreValue()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];getStoreValue in interface ValidatedSubscriptionOrBuilderpublic StoreProvider getStore()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];getStore in interface ValidatedSubscriptionOrBuilderpublic boolean hasPurchaseTime()
UNIX Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];hasPurchaseTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.Timestamp getPurchaseTime()
UNIX Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];getPurchaseTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getPurchaseTimeOrBuilder()
UNIX Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];getPurchaseTimeOrBuilder in interface ValidatedSubscriptionOrBuilderpublic boolean hasCreateTime()
UNIX Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];hasCreateTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
UNIX Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];getCreateTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
UNIX Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];getCreateTimeOrBuilder in interface ValidatedSubscriptionOrBuilderpublic boolean hasUpdateTime()
UNIX Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];hasUpdateTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
UNIX Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];getUpdateTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
UNIX Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];getUpdateTimeOrBuilder in interface ValidatedSubscriptionOrBuilderpublic int getEnvironmentValue()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 8 [json_name = "environment"];getEnvironmentValue in interface ValidatedSubscriptionOrBuilderpublic StoreEnvironment getEnvironment()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 8 [json_name = "environment"];getEnvironment in interface ValidatedSubscriptionOrBuilderpublic boolean hasExpiryTime()
Subscription expiration time. The subscription can still be auto-renewed to extend the expiration time further.
.google.protobuf.Timestamp expiry_time = 9 [json_name = "expiryTime"];hasExpiryTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.Timestamp getExpiryTime()
Subscription expiration time. The subscription can still be auto-renewed to extend the expiration time further.
.google.protobuf.Timestamp expiry_time = 9 [json_name = "expiryTime"];getExpiryTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder()
Subscription expiration time. The subscription can still be auto-renewed to extend the expiration time further.
.google.protobuf.Timestamp expiry_time = 9 [json_name = "expiryTime"];getExpiryTimeOrBuilder in interface ValidatedSubscriptionOrBuilderpublic boolean hasRefundTime()
Subscription refund time. If this time is set, the subscription was refunded.
.google.protobuf.Timestamp refund_time = 10 [json_name = "refundTime"];hasRefundTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.Timestamp getRefundTime()
Subscription refund time. If this time is set, the subscription was refunded.
.google.protobuf.Timestamp refund_time = 10 [json_name = "refundTime"];getRefundTime in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.TimestampOrBuilder getRefundTimeOrBuilder()
Subscription refund time. If this time is set, the subscription was refunded.
.google.protobuf.Timestamp refund_time = 10 [json_name = "refundTime"];getRefundTimeOrBuilder in interface ValidatedSubscriptionOrBuilderpublic java.lang.String getProviderResponse()
Raw provider validation response body.
string provider_response = 11 [json_name = "providerResponse"];getProviderResponse in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.ByteString getProviderResponseBytes()
Raw provider validation response body.
string provider_response = 11 [json_name = "providerResponse"];getProviderResponseBytes in interface ValidatedSubscriptionOrBuilderpublic java.lang.String getProviderNotification()
Raw provider notification body.
string provider_notification = 12 [json_name = "providerNotification"];getProviderNotification in interface ValidatedSubscriptionOrBuilderpublic com.google.protobuf.ByteString getProviderNotificationBytes()
Raw provider notification body.
string provider_notification = 12 [json_name = "providerNotification"];getProviderNotificationBytes in interface ValidatedSubscriptionOrBuilderpublic boolean getActive()
Whether the subscription is currently active or not.
bool active = 13 [json_name = "active"];getActive in interface ValidatedSubscriptionOrBuilderpublic 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 ValidatedSubscription parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedSubscription parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedSubscription parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedSubscription parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedSubscription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedSubscription parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValidatedSubscription parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedSubscription parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedSubscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedSubscription parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedSubscription parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValidatedSubscription parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ValidatedSubscription.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ValidatedSubscription.Builder newBuilder()
public static ValidatedSubscription.Builder newBuilder(ValidatedSubscription prototype)
public ValidatedSubscription.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ValidatedSubscription.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static ValidatedSubscription getDefaultInstance()
public static com.google.protobuf.Parser<ValidatedSubscription> parser()
public com.google.protobuf.Parser<ValidatedSubscription> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic ValidatedSubscription getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder