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, 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 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.GeneratedMessage
public java.lang.String getUserId()
Subscription User ID.
string user_id = 1 [json_name = "userId"];
getUserId
in interface ValidatedSubscriptionOrBuilder
public com.google.protobuf.ByteString getUserIdBytes()
Subscription User ID.
string user_id = 1 [json_name = "userId"];
getUserIdBytes
in interface ValidatedSubscriptionOrBuilder
public java.lang.String getProductId()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];
getProductId
in interface ValidatedSubscriptionOrBuilder
public com.google.protobuf.ByteString getProductIdBytes()
Purchase Product ID.
string product_id = 2 [json_name = "productId"];
getProductIdBytes
in interface ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public int getStoreValue()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];
getStoreValue
in interface ValidatedSubscriptionOrBuilder
public StoreProvider getStore()
Store identifier
.nakama.api.StoreProvider store = 4 [json_name = "store"];
getStore
in interface ValidatedSubscriptionOrBuilder
public boolean hasPurchaseTime()
UNIX Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];
hasPurchaseTime
in interface ValidatedSubscriptionOrBuilder
public com.google.protobuf.Timestamp getPurchaseTime()
UNIX Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];
getPurchaseTime
in interface ValidatedSubscriptionOrBuilder
public com.google.protobuf.TimestampOrBuilder getPurchaseTimeOrBuilder()
UNIX Timestamp when the purchase was done.
.google.protobuf.Timestamp purchase_time = 5 [json_name = "purchaseTime"];
getPurchaseTimeOrBuilder
in interface ValidatedSubscriptionOrBuilder
public boolean hasCreateTime()
UNIX Timestamp when the receipt validation was stored in DB.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];
hasCreateTime
in interface ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public boolean hasUpdateTime()
UNIX Timestamp when the receipt validation was updated in DB.
.google.protobuf.Timestamp update_time = 7 [json_name = "updateTime"];
hasUpdateTime
in interface ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public int getEnvironmentValue()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 8 [json_name = "environment"];
getEnvironmentValue
in interface ValidatedSubscriptionOrBuilder
public StoreEnvironment getEnvironment()
Whether the purchase was done in production or sandbox environment.
.nakama.api.StoreEnvironment environment = 8 [json_name = "environment"];
getEnvironment
in interface ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public 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 ValidatedSubscriptionOrBuilder
public java.lang.String getProviderResponse()
Raw provider validation response body.
string provider_response = 11 [json_name = "providerResponse"];
getProviderResponse
in interface ValidatedSubscriptionOrBuilder
public com.google.protobuf.ByteString getProviderResponseBytes()
Raw provider validation response body.
string provider_response = 11 [json_name = "providerResponse"];
getProviderResponseBytes
in interface ValidatedSubscriptionOrBuilder
public java.lang.String getProviderNotification()
Raw provider notification body.
string provider_notification = 12 [json_name = "providerNotification"];
getProviderNotification
in interface ValidatedSubscriptionOrBuilder
public com.google.protobuf.ByteString getProviderNotificationBytes()
Raw provider notification body.
string provider_notification = 12 [json_name = "providerNotification"];
getProviderNotificationBytes
in interface ValidatedSubscriptionOrBuilder
public boolean getActive()
Whether the subscription is currently active or not.
bool active = 13 [json_name = "active"];
getActive
in interface ValidatedSubscriptionOrBuilder
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 ValidatedSubscription parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedSubscription parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedSubscription parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedSubscription parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedSubscription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedSubscription parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValidatedSubscription parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ValidatedSubscription parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ValidatedSubscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ValidatedSubscription parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ValidatedSubscription parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static ValidatedSubscription parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public ValidatedSubscription.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ValidatedSubscription.Builder newBuilder()
public static ValidatedSubscription.Builder newBuilder(ValidatedSubscription prototype)
public ValidatedSubscription.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ValidatedSubscription.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static ValidatedSubscription getDefaultInstance()
public static com.google.protobuf.Parser<ValidatedSubscription> parser()
public com.google.protobuf.Parser<ValidatedSubscription> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public ValidatedSubscription getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder