Package com.google.firestore.admin.v1
Class Database
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.firestore.admin.v1.Database
- All Implemented Interfaces:
DatabaseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Database
extends com.google.protobuf.GeneratedMessage
implements DatabaseOrBuilder
A Cloud Firestore Database.Protobuf type
google.firestore.admin.v1.Database- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of App Engine integration mode.static final classA Cloud Firestore Database.static final classThe CMEK (Customer Managed Encryption Key) configuration for a Firestore database.static interfacestatic enumThe type of concurrency control mode for transactions.static enumThe data access mode.static enumThe edition of the database.static enumThe type of the database.static enumThe delete protection state of the database.static final classEncryption configuration for a new database being created from another source.static interfacestatic enumPoint In Time Recovery feature enablement.static final classInformation about the provenance of this database.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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 extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested 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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsTags(String key) Optional.booleanThe App Engine integration mode to use for this database.intThe App Engine integration mode to use for this database.Optional.Optional.The concurrency control mode to use for this database.intThe concurrency control mode to use for this database.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Immutable.intImmutable.static DatabaseState of delete protection for the database.intState of delete protection for the database.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getEtag()This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.com.google.protobuf.ByteStringThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.Optional.intOptional.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.The location of the database.com.google.protobuf.ByteStringThe location of the database.Optional.intOptional.getName()The resource name of the Database.com.google.protobuf.ByteStringThe resource name of the Database.com.google.protobuf.Parser<Database>Whether to enable the PITR feature on this database.intWhether to enable the PITR feature on this database.Output only.com.google.protobuf.ByteStringOutput only.Immutable.intImmutable.intOutput only.Output only.getTags()Deprecated.intOptional.Optional.getTagsOrDefault(String key, String defaultValue) Optional.getTagsOrThrow(String key) Optional.getType()The type of the database.intThe type of the database.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.DurationOutput only.com.google.protobuf.DurationOrBuilderOutput only.booleanOptional.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Database.Builderstatic Database.BuildernewBuilder(Database prototype) protected Database.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DatabaseparseDelimitedFrom(InputStream input) static DatabaseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseparseFrom(byte[] data) static DatabaseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseparseFrom(com.google.protobuf.ByteString data) static DatabaseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseparseFrom(com.google.protobuf.CodedInputStream input) static DatabaseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseparseFrom(InputStream input) static DatabaseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DatabaseparseFrom(ByteBuffer data) static DatabaseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Database>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
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.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER- See Also:
-
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
CONCURRENCY_MODE_FIELD_NUMBER
public static final int CONCURRENCY_MODE_FIELD_NUMBER- See Also:
-
VERSION_RETENTION_PERIOD_FIELD_NUMBER
public static final int VERSION_RETENTION_PERIOD_FIELD_NUMBER- See Also:
-
EARLIEST_VERSION_TIME_FIELD_NUMBER
public static final int EARLIEST_VERSION_TIME_FIELD_NUMBER- See Also:
-
POINT_IN_TIME_RECOVERY_ENABLEMENT_FIELD_NUMBER
public static final int POINT_IN_TIME_RECOVERY_ENABLEMENT_FIELD_NUMBER- See Also:
-
APP_ENGINE_INTEGRATION_MODE_FIELD_NUMBER
public static final int APP_ENGINE_INTEGRATION_MODE_FIELD_NUMBER- See Also:
-
KEY_PREFIX_FIELD_NUMBER
public static final int KEY_PREFIX_FIELD_NUMBER- See Also:
-
DELETE_PROTECTION_STATE_FIELD_NUMBER
public static final int DELETE_PROTECTION_STATE_FIELD_NUMBER- See Also:
-
CMEK_CONFIG_FIELD_NUMBER
public static final int CMEK_CONFIG_FIELD_NUMBER- See Also:
-
PREVIOUS_ID_FIELD_NUMBER
public static final int PREVIOUS_ID_FIELD_NUMBER- See Also:
-
SOURCE_INFO_FIELD_NUMBER
public static final int SOURCE_INFO_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
FREE_TIER_FIELD_NUMBER
public static final int FREE_TIER_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
DATABASE_EDITION_FIELD_NUMBER
public static final int DATABASE_EDITION_FIELD_NUMBER- See Also:
-
REALTIME_UPDATES_MODE_FIELD_NUMBER
public static final int REALTIME_UPDATES_MODE_FIELD_NUMBER- See Also:
-
FIRESTORE_DATA_ACCESS_MODE_FIELD_NUMBER
public static final int FIRESTORE_DATA_ACCESS_MODE_FIELD_NUMBER- See Also:
-
MONGODB_COMPATIBLE_DATA_ACCESS_MODE_FIELD_NUMBER
public static final int MONGODB_COMPATIBLE_DATA_ACCESS_MODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
The resource name of the Database. Format: `projects/{project}/databases/{database}`string name = 1;- Specified by:
getNamein interfaceDatabaseOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the Database. Format: `projects/{project}/databases/{database}`string name = 1;- Specified by:
getNameBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for name.
-
getUid
Output only. The system-generated UUID4 for this Database.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceDatabaseOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()Output only. The system-generated UUID4 for this Database.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for uid.
-
hasCreateTime
public boolean hasCreateTime()Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceDatabaseOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceDatabaseOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceDatabaseOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceDatabaseOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceDatabaseOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceDatabaseOrBuilder
-
hasDeleteTime
public boolean hasDeleteTime()Output only. The timestamp at which this database was deleted. Only set if the database has been deleted.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDeleteTimein interfaceDatabaseOrBuilder- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
public com.google.protobuf.Timestamp getDeleteTime()Output only. The timestamp at which this database was deleted. Only set if the database has been deleted.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimein interfaceDatabaseOrBuilder- Returns:
- The deleteTime.
-
getDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()Output only. The timestamp at which this database was deleted. Only set if the database has been deleted.
.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimeOrBuilderin interfaceDatabaseOrBuilder
-
getLocationId
The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;- Specified by:
getLocationIdin interfaceDatabaseOrBuilder- Returns:
- The locationId.
-
getLocationIdBytes
public com.google.protobuf.ByteString getLocationIdBytes()The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;- Specified by:
getLocationIdBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for locationId.
-
getTypeValue
public int getTypeValue()The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
.google.firestore.admin.v1.Database.DatabaseType type = 10;- Specified by:
getTypeValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
.google.firestore.admin.v1.Database.DatabaseType type = 10;- Specified by:
getTypein interfaceDatabaseOrBuilder- Returns:
- The type.
-
getConcurrencyModeValue
public int getConcurrencyModeValue()The concurrency control mode to use for this database. If unspecified in a CreateDatabase request, this will default based on the database edition: Optimistic for Enterprise and Pessimistic for all other databases.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;- Specified by:
getConcurrencyModeValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for concurrencyMode.
-
getConcurrencyMode
The concurrency control mode to use for this database. If unspecified in a CreateDatabase request, this will default based on the database edition: Optimistic for Enterprise and Pessimistic for all other databases.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;- Specified by:
getConcurrencyModein interfaceDatabaseOrBuilder- Returns:
- The concurrencyMode.
-
hasVersionRetentionPeriod
public boolean hasVersionRetentionPeriod()Output only. The period during which past versions of data are retained in the database. Any [read][google.firestore.v1.GetDocumentRequest.read_time] or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify a `read_time` within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
.google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasVersionRetentionPeriodin interfaceDatabaseOrBuilder- Returns:
- Whether the versionRetentionPeriod field is set.
-
getVersionRetentionPeriod
public com.google.protobuf.Duration getVersionRetentionPeriod()Output only. The period during which past versions of data are retained in the database. Any [read][google.firestore.v1.GetDocumentRequest.read_time] or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify a `read_time` within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
.google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionRetentionPeriodin interfaceDatabaseOrBuilder- Returns:
- The versionRetentionPeriod.
-
getVersionRetentionPeriodOrBuilder
public com.google.protobuf.DurationOrBuilder getVersionRetentionPeriodOrBuilder()Output only. The period during which past versions of data are retained in the database. Any [read][google.firestore.v1.GetDocumentRequest.read_time] or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify a `read_time` within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour.
.google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionRetentionPeriodOrBuilderin interfaceDatabaseOrBuilder
-
hasEarliestVersionTime
public boolean hasEarliestVersionTime()Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
.google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEarliestVersionTimein interfaceDatabaseOrBuilder- Returns:
- Whether the earliestVersionTime field is set.
-
getEarliestVersionTime
public com.google.protobuf.Timestamp getEarliestVersionTime()Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
.google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEarliestVersionTimein interfaceDatabaseOrBuilder- Returns:
- The earliestVersionTime.
-
getEarliestVersionTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder()Output only. The earliest timestamp at which older versions of the data can be read from the database. See [version_retention_period] above; this field is populated with `now - version_retention_period`. This value is continuously updated, and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
.google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEarliestVersionTimeOrBuilderin interfaceDatabaseOrBuilder
-
getPointInTimeRecoveryEnablementValue
public int getPointInTimeRecoveryEnablementValue()Whether to enable the PITR feature on this database.
.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;- Specified by:
getPointInTimeRecoveryEnablementValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for pointInTimeRecoveryEnablement.
-
getPointInTimeRecoveryEnablement
Whether to enable the PITR feature on this database.
.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;- Specified by:
getPointInTimeRecoveryEnablementin interfaceDatabaseOrBuilder- Returns:
- The pointInTimeRecoveryEnablement.
-
getAppEngineIntegrationModeValue
public int getAppEngineIntegrationModeValue()The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;- Specified by:
getAppEngineIntegrationModeValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for appEngineIntegrationMode.
-
getAppEngineIntegrationMode
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;- Specified by:
getAppEngineIntegrationModein interfaceDatabaseOrBuilder- Returns:
- The appEngineIntegrationMode.
-
getKeyPrefix
Output only. The key_prefix for this database. This key_prefix is used, in combination with the project ID ("<key prefix>~<project id>") to construct the application ID that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).string key_prefix = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKeyPrefixin interfaceDatabaseOrBuilder- Returns:
- The keyPrefix.
-
getKeyPrefixBytes
public com.google.protobuf.ByteString getKeyPrefixBytes()Output only. The key_prefix for this database. This key_prefix is used, in combination with the project ID ("<key prefix>~<project id>") to construct the application ID that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL-encoded keys is the project_id (eg: foo instead of v~foo).string key_prefix = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getKeyPrefixBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for keyPrefix.
-
getDeleteProtectionStateValue
public int getDeleteProtectionStateValue()State of delete protection for the database.
.google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;- Specified by:
getDeleteProtectionStateValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for deleteProtectionState.
-
getDeleteProtectionState
State of delete protection for the database.
.google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;- Specified by:
getDeleteProtectionStatein interfaceDatabaseOrBuilder- Returns:
- The deleteProtectionState.
-
hasCmekConfig
public boolean hasCmekConfig()Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCmekConfigin interfaceDatabaseOrBuilder- Returns:
- Whether the cmekConfig field is set.
-
getCmekConfig
Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCmekConfigin interfaceDatabaseOrBuilder- Returns:
- The cmekConfig.
-
getCmekConfigOrBuilder
Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCmekConfigOrBuilderin interfaceDatabaseOrBuilder
-
getPreviousId
Output only. The database resource's prior database ID. This field is only populated for deleted databases.
string previous_id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPreviousIdin interfaceDatabaseOrBuilder- Returns:
- The previousId.
-
getPreviousIdBytes
public com.google.protobuf.ByteString getPreviousIdBytes()Output only. The database resource's prior database ID. This field is only populated for deleted databases.
string previous_id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPreviousIdBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for previousId.
-
hasSourceInfo
public boolean hasSourceInfo()Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSourceInfoin interfaceDatabaseOrBuilder- Returns:
- Whether the sourceInfo field is set.
-
getSourceInfo
Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceInfoin interfaceDatabaseOrBuilder- Returns:
- The sourceInfo.
-
getSourceInfoOrBuilder
Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceInfoOrBuilderin interfaceDatabaseOrBuilder
-
getTagsCount
public int getTagsCount()Description copied from interface:DatabaseOrBuilderOptional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
map<string, string> tags = 29 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsCountin interfaceDatabaseOrBuilder
-
containsTags
Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
map<string, string> tags = 29 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Specified by:
containsTagsin interfaceDatabaseOrBuilder
-
getTags
Deprecated.UsegetTagsMap()instead.- Specified by:
getTagsin interfaceDatabaseOrBuilder
-
getTagsMap
Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
map<string, string> tags = 29 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsMapin interfaceDatabaseOrBuilder
-
getTagsOrDefault
Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
map<string, string> tags = 29 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsOrDefaultin interfaceDatabaseOrBuilder
-
getTagsOrThrow
Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
map<string, string> tags = 29 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsOrThrowin interfaceDatabaseOrBuilder
-
hasFreeTier
public boolean hasFreeTier()Output only. Background: Free tier is the ability of a Firestore database to use a small amount of resources every day without being charged. Once usage exceeds the free tier limit further usage is charged. Whether this database can make use of the free tier. Only one database per project can be eligible for the free tier. The first (or next) database that is created in a project without a free tier database will be marked as eligible for the free tier. Databases that are created while there is a free tier database will not be eligible for the free tier.
optional bool free_tier = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasFreeTierin interfaceDatabaseOrBuilder- Returns:
- Whether the freeTier field is set.
-
getFreeTier
public boolean getFreeTier()Output only. Background: Free tier is the ability of a Firestore database to use a small amount of resources every day without being charged. Once usage exceeds the free tier limit further usage is charged. Whether this database can make use of the free tier. Only one database per project can be eligible for the free tier. The first (or next) database that is created in a project without a free tier database will be marked as eligible for the free tier. Databases that are created while there is a free tier database will not be eligible for the free tier.
optional bool free_tier = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFreeTierin interfaceDatabaseOrBuilder- Returns:
- The freeTier.
-
getEtag
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 99;- Specified by:
getEtagin interfaceDatabaseOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 99;- Specified by:
getEtagBytesin interfaceDatabaseOrBuilder- Returns:
- The bytes for etag.
-
getDatabaseEditionValue
public int getDatabaseEditionValue()Immutable. The edition of the database.
.google.firestore.admin.v1.Database.DatabaseEdition database_edition = 28 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getDatabaseEditionValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for databaseEdition.
-
getDatabaseEdition
Immutable. The edition of the database.
.google.firestore.admin.v1.Database.DatabaseEdition database_edition = 28 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getDatabaseEditionin interfaceDatabaseOrBuilder- Returns:
- The databaseEdition.
-
getRealtimeUpdatesModeValue
public int getRealtimeUpdatesModeValue()Immutable. The default Realtime Updates mode to use for this database.
.google.firestore.admin.v1.RealtimeUpdatesMode realtime_updates_mode = 31 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getRealtimeUpdatesModeValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for realtimeUpdatesMode.
-
getRealtimeUpdatesMode
Immutable. The default Realtime Updates mode to use for this database.
.google.firestore.admin.v1.RealtimeUpdatesMode realtime_updates_mode = 31 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getRealtimeUpdatesModein interfaceDatabaseOrBuilder- Returns:
- The realtimeUpdatesMode.
-
getFirestoreDataAccessModeValue
public int getFirestoreDataAccessModeValue()Optional. The Firestore API data access mode to use for this database. If not set on write: - the default value is DATA_ACCESS_MODE_DISABLED for Enterprise Edition. - the default value is DATA_ACCESS_MODE_ENABLED for Standard Edition.
.google.firestore.admin.v1.Database.DataAccessMode firestore_data_access_mode = 33 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFirestoreDataAccessModeValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for firestoreDataAccessMode.
-
getFirestoreDataAccessMode
Optional. The Firestore API data access mode to use for this database. If not set on write: - the default value is DATA_ACCESS_MODE_DISABLED for Enterprise Edition. - the default value is DATA_ACCESS_MODE_ENABLED for Standard Edition.
.google.firestore.admin.v1.Database.DataAccessMode firestore_data_access_mode = 33 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFirestoreDataAccessModein interfaceDatabaseOrBuilder- Returns:
- The firestoreDataAccessMode.
-
getMongodbCompatibleDataAccessModeValue
public int getMongodbCompatibleDataAccessModeValue()Optional. The MongoDB compatible API data access mode to use for this database. If not set on write, the default value is DATA_ACCESS_MODE_ENABLED for Enterprise Edition. The value is always DATA_ACCESS_MODE_DISABLED for Standard Edition.
.google.firestore.admin.v1.Database.DataAccessMode mongodb_compatible_data_access_mode = 34 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMongodbCompatibleDataAccessModeValuein interfaceDatabaseOrBuilder- Returns:
- The enum numeric value on the wire for mongodbCompatibleDataAccessMode.
-
getMongodbCompatibleDataAccessMode
Optional. The MongoDB compatible API data access mode to use for this database. If not set on write, the default value is DATA_ACCESS_MODE_ENABLED for Enterprise Edition. The value is always DATA_ACCESS_MODE_DISABLED for Standard Edition.
.google.firestore.admin.v1.Database.DataAccessMode mongodb_compatible_data_access_mode = 34 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMongodbCompatibleDataAccessModein interfaceDatabaseOrBuilder- Returns:
- The mongodbCompatibleDataAccessMode.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Database parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Database parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Database parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Database parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Database parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Database parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Database parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Database parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Database parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Database.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-