Package com.google.firestore.admin.v1
Class Database.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Database.Builder>
com.google.firestore.admin.v1.Database.Builder
- All Implemented Interfaces:
DatabaseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Database
public static final class Database.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Database.Builder>
implements DatabaseOrBuilder
A Cloud Firestore Database.Protobuf type
google.firestore.admin.v1.Database-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The App Engine integration mode to use for this database.Optional.The concurrency control mode to use for this database.Output only.Immutable.State of delete protection for the database.Output only.Output only.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.Optional.Output only.Output only.The location of the database.Optional.The resource name of the Database.Whether to enable the PITR feature on this database.Output only.Immutable.Output only.The type of the database.clearUid()Output only.Output only.Output only.booleancontainsTags(String key) Optional.The App Engine integration mode to use for this database.intThe App Engine integration mode to use for this database.Optional.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.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Immutable.intImmutable.State of delete protection for the database.intState of delete protection for the database.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput 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.Deprecated.getName()The resource name of the Database.com.google.protobuf.ByteStringThe resource name of the 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.Output only.Output 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.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.DurationOutput only.com.google.protobuf.Duration.BuilderOutput only.com.google.protobuf.DurationOrBuilderOutput only.booleanOptional.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanOptional.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeDeleteTime(com.google.protobuf.Timestamp value) Output only.mergeEarliestVersionTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.mergeVersionRetentionPeriod(com.google.protobuf.Duration value) Output only.putAllTags(Map<String, String> values) Optional.Optional.removeTags(String key) Optional.The App Engine integration mode to use for this database.setAppEngineIntegrationModeValue(int value) The App Engine integration mode to use for this database.setCmekConfig(Database.CmekConfig value) Optional.setCmekConfig(Database.CmekConfig.Builder builderForValue) Optional.The concurrency control mode to use for this database.setConcurrencyModeValue(int value) The concurrency control mode to use for this database.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Immutable.setDatabaseEditionValue(int value) Immutable.State of delete protection for the database.setDeleteProtectionStateValue(int value) State of delete protection for the database.setDeleteTime(com.google.protobuf.Timestamp value) Output only.setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEarliestVersionTime(com.google.protobuf.Timestamp value) Output only.setEarliestVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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.setEtagBytes(com.google.protobuf.ByteString value) 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.Optional.setFirestoreDataAccessModeValue(int value) Optional.setFreeTier(boolean value) Output only.setKeyPrefix(String value) Output only.setKeyPrefixBytes(com.google.protobuf.ByteString value) Output only.setLocationId(String value) The location of the database.setLocationIdBytes(com.google.protobuf.ByteString value) The location of the database.Optional.setMongodbCompatibleDataAccessModeValue(int value) Optional.The resource name of the Database.setNameBytes(com.google.protobuf.ByteString value) The resource name of the Database.Whether to enable the PITR feature on this database.setPointInTimeRecoveryEnablementValue(int value) Whether to enable the PITR feature on this database.setPreviousId(String value) Output only.setPreviousIdBytes(com.google.protobuf.ByteString value) Output only.Immutable.setRealtimeUpdatesModeValue(int value) Immutable.setSourceInfo(Database.SourceInfo value) Output only.setSourceInfo(Database.SourceInfo.Builder builderForValue) Output only.setType(Database.DatabaseType value) The type of the database.setTypeValue(int value) The type of the database.Output only.setUidBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVersionRetentionPeriod(com.google.protobuf.Duration value) Output only.setVersionRetentionPeriod(com.google.protobuf.Duration.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Database.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Database.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Database.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Database.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Database.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Database.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Database.Builder>
-
mergeFrom
public Database.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Database.Builder>- Throws:
IOException
-
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.
-
setName
The resource name of the Database. Format: `projects/{project}/databases/{database}`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name of the Database. Format: `projects/{project}/databases/{database}`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name of the Database. Format: `projects/{project}/databases/{database}`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setUid
Output only. The system-generated UUID4 for this Database.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
Output only. The system-generated UUID4 for this Database.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUidBytes
Output only. The system-generated UUID4 for this Database.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
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.
-
setCreateTime
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]; -
setCreateTime
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]; -
mergeCreateTime
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]; -
clearCreateTime
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]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()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]; -
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.
-
setUpdateTime
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]; -
setUpdateTime
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]; -
mergeUpdateTime
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]; -
clearUpdateTime
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]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()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]; -
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.
-
setDeleteTime
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]; -
setDeleteTime
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]; -
mergeDeleteTime
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]; -
clearDeleteTime
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]; -
getDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()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]; -
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.
-
setLocationId
The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;- Parameters:
value- The locationId to set.- Returns:
- This builder for chaining.
-
clearLocationId
The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;- Returns:
- This builder for chaining.
-
setLocationIdBytes
The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;- Parameters:
value- The bytes for locationId to set.- Returns:
- This builder for chaining.
-
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.
-
setTypeValue
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;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
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.
-
setType
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;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
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;- Returns:
- This builder for chaining.
-
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.
-
setConcurrencyModeValue
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;- Parameters:
value- The enum numeric value on the wire for concurrencyMode to set.- Returns:
- This builder for chaining.
-
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.
-
setConcurrencyMode
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;- Parameters:
value- The concurrencyMode to set.- Returns:
- This builder for chaining.
-
clearConcurrencyMode
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;- Returns:
- This builder for chaining.
-
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.
-
setVersionRetentionPeriod
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]; -
setVersionRetentionPeriod
public Database.Builder setVersionRetentionPeriod(com.google.protobuf.Duration.Builder builderForValue) 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]; -
mergeVersionRetentionPeriod
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]; -
clearVersionRetentionPeriod
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]; -
getVersionRetentionPeriodBuilder
public com.google.protobuf.Duration.Builder getVersionRetentionPeriodBuilder()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]; -
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.
-
setEarliestVersionTime
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]; -
setEarliestVersionTime
public Database.Builder setEarliestVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) 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]; -
mergeEarliestVersionTime
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]; -
clearEarliestVersionTime
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]; -
getEarliestVersionTimeBuilder
public com.google.protobuf.Timestamp.Builder getEarliestVersionTimeBuilder()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]; -
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.
-
setPointInTimeRecoveryEnablementValue
Whether to enable the PITR feature on this database.
.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;- Parameters:
value- The enum numeric value on the wire for pointInTimeRecoveryEnablement to set.- Returns:
- This builder for chaining.
-
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.
-
setPointInTimeRecoveryEnablement
public Database.Builder setPointInTimeRecoveryEnablement(Database.PointInTimeRecoveryEnablement value) Whether to enable the PITR feature on this database.
.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;- Parameters:
value- The pointInTimeRecoveryEnablement to set.- Returns:
- This builder for chaining.
-
clearPointInTimeRecoveryEnablement
Whether to enable the PITR feature on this database.
.google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;- Returns:
- This builder for chaining.
-
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.
-
setAppEngineIntegrationModeValue
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;- Parameters:
value- The enum numeric value on the wire for appEngineIntegrationMode to set.- Returns:
- This builder for chaining.
-
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.
-
setAppEngineIntegrationMode
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;- Parameters:
value- The appEngineIntegrationMode to set.- Returns:
- This builder for chaining.
-
clearAppEngineIntegrationMode
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;- Returns:
- This builder for chaining.
-
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.
-
setKeyPrefix
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];- Parameters:
value- The keyPrefix to set.- Returns:
- This builder for chaining.
-
clearKeyPrefix
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];- Returns:
- This builder for chaining.
-
setKeyPrefixBytes
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];- Parameters:
value- The bytes for keyPrefix to set.- Returns:
- This builder for chaining.
-
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.
-
setDeleteProtectionStateValue
State of delete protection for the database.
.google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;- Parameters:
value- The enum numeric value on the wire for deleteProtectionState to set.- Returns:
- This builder for chaining.
-
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.
-
setDeleteProtectionState
State of delete protection for the database.
.google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;- Parameters:
value- The deleteProtectionState to set.- Returns:
- This builder for chaining.
-
clearDeleteProtectionState
State of delete protection for the database.
.google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;- Returns:
- This builder for chaining.
-
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.
-
setCmekConfig
Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
setCmekConfig
Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCmekConfig
Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
clearCmekConfig
Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
getCmekConfigBuilder
Optional. Presence indicates CMEK is enabled for this database.
.google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
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.
-
setPreviousId
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];- Parameters:
value- The previousId to set.- Returns:
- This builder for chaining.
-
clearPreviousId
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];- Returns:
- This builder for chaining.
-
setPreviousIdBytes
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];- Parameters:
value- The bytes for previousId to set.- Returns:
- This builder for chaining.
-
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.
-
setSourceInfo
Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSourceInfo
Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeSourceInfo
Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSourceInfo
Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSourceInfoBuilder
Output only. Information about the provenance of this database.
.google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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
-
clearTags
-
removeTags
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]; -
getMutableTags
Deprecated.Use alternate mutation accessors instead. -
putTags
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]; -
putAllTags
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]; -
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.
-
setFreeTier
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];- Parameters:
value- The freeTier to set.- Returns:
- This builder for chaining.
-
clearFreeTier
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];- Returns:
- This builder for chaining.
-
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.
-
setEtag
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;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
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;- Returns:
- This builder for chaining.
-
setEtagBytes
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;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
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.
-
setDatabaseEditionValue
Immutable. The edition of the database.
.google.firestore.admin.v1.Database.DatabaseEdition database_edition = 28 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for databaseEdition to set.- Returns:
- This builder for chaining.
-
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.
-
setDatabaseEdition
Immutable. The edition of the database.
.google.firestore.admin.v1.Database.DatabaseEdition database_edition = 28 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The databaseEdition to set.- Returns:
- This builder for chaining.
-
clearDatabaseEdition
Immutable. The edition of the database.
.google.firestore.admin.v1.Database.DatabaseEdition database_edition = 28 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
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.
-
setRealtimeUpdatesModeValue
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];- Parameters:
value- The enum numeric value on the wire for realtimeUpdatesMode to set.- Returns:
- This builder for chaining.
-
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.
-
setRealtimeUpdatesMode
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];- Parameters:
value- The realtimeUpdatesMode to set.- Returns:
- This builder for chaining.
-
clearRealtimeUpdatesMode
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];- Returns:
- This builder for chaining.
-
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.
-
setFirestoreDataAccessModeValue
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];- Parameters:
value- The enum numeric value on the wire for firestoreDataAccessMode to set.- Returns:
- This builder for chaining.
-
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.
-
setFirestoreDataAccessMode
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];- Parameters:
value- The firestoreDataAccessMode to set.- Returns:
- This builder for chaining.
-
clearFirestoreDataAccessMode
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];- Returns:
- This builder for chaining.
-
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.
-
setMongodbCompatibleDataAccessModeValue
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];- Parameters:
value- The enum numeric value on the wire for mongodbCompatibleDataAccessMode to set.- Returns:
- This builder for chaining.
-
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.
-
setMongodbCompatibleDataAccessMode
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];- Parameters:
value- The mongodbCompatibleDataAccessMode to set.- Returns:
- This builder for chaining.
-
clearMongodbCompatibleDataAccessMode
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];- Returns:
- This builder for chaining.
-