public static final class Database.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder> implements DatabaseOrBuilder
A Cloud Firestore Database. Currently only one database is allowed per cloud project; this database must have a `database_id` of '(default)'.Protobuf type
google.firestore.admin.v1.Database
Modifier and Type | Method and Description |
---|---|
Database.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Database |
build() |
Database |
buildPartial() |
Database.Builder |
clear() |
Database.Builder |
clearAppEngineIntegrationMode()
The App Engine integration mode to use for this database.
|
Database.Builder |
clearConcurrencyMode()
The concurrency control mode to use for this database.
|
Database.Builder |
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.
|
Database.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Database.Builder |
clearKeyPrefix()
Output only.
|
Database.Builder |
clearLocationId()
The location of the database.
|
Database.Builder |
clearName()
The resource name of the Database.
|
Database.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Database.Builder |
clearType()
The type of the database.
|
Database.Builder |
clone() |
Database.AppEngineIntegrationMode |
getAppEngineIntegrationMode()
The App Engine integration mode to use for this database.
|
int |
getAppEngineIntegrationModeValue()
The App Engine integration mode to use for this database.
|
Database.ConcurrencyMode |
getConcurrencyMode()
The concurrency control mode to use for this database.
|
int |
getConcurrencyModeValue()
The concurrency control mode to use for this database.
|
Database |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
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.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 |
getKeyPrefix()
Output only.
|
com.google.protobuf.ByteString |
getKeyPrefixBytes()
Output only.
|
String |
getLocationId()
The location of the database.
|
com.google.protobuf.ByteString |
getLocationIdBytes()
The location of the database.
|
String |
getName()
The resource name of the Database.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the Database.
|
Database.DatabaseType |
getType()
The type of the database.
|
int |
getTypeValue()
The type of the database.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Database.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Database.Builder |
mergeFrom(Database other) |
Database.Builder |
mergeFrom(com.google.protobuf.Message other) |
Database.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Database.Builder |
setAppEngineIntegrationMode(Database.AppEngineIntegrationMode value)
The App Engine integration mode to use for this database.
|
Database.Builder |
setAppEngineIntegrationModeValue(int value)
The App Engine integration mode to use for this database.
|
Database.Builder |
setConcurrencyMode(Database.ConcurrencyMode value)
The concurrency control mode to use for this database.
|
Database.Builder |
setConcurrencyModeValue(int value)
The concurrency control mode to use for this database.
|
Database.Builder |
setEtag(String 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.
|
Database.Builder |
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.
|
Database.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Database.Builder |
setKeyPrefix(String value)
Output only.
|
Database.Builder |
setKeyPrefixBytes(com.google.protobuf.ByteString value)
Output only.
|
Database.Builder |
setLocationId(String value)
The location of the database.
|
Database.Builder |
setLocationIdBytes(com.google.protobuf.ByteString value)
The location of the database.
|
Database.Builder |
setName(String value)
The resource name of the Database.
|
Database.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the Database.
|
Database.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Database.Builder |
setType(Database.DatabaseType value)
The type of the database.
|
Database.Builder |
setTypeValue(int value)
The type of the database.
|
Database.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Database build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Database buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Database.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>
public Database.Builder mergeFrom(Database other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public Database.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>
IOException
public String getName()
The resource name of the Database. Format: `projects/{project}/databases/{database}`
string name = 1;
getName
in interface DatabaseOrBuilder
public com.google.protobuf.ByteString getNameBytes()
The resource name of the Database. Format: `projects/{project}/databases/{database}`
string name = 1;
getNameBytes
in interface DatabaseOrBuilder
public Database.Builder setName(String value)
The resource name of the Database. Format: `projects/{project}/databases/{database}`
string name = 1;
value
- The name to set.public Database.Builder clearName()
The resource name of the Database. Format: `projects/{project}/databases/{database}`
string name = 1;
public Database.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the Database. Format: `projects/{project}/databases/{database}`
string name = 1;
value
- The bytes for name to set.public String getLocationId()
The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;
getLocationId
in interface DatabaseOrBuilder
public com.google.protobuf.ByteString getLocationIdBytes()
The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;
getLocationIdBytes
in interface DatabaseOrBuilder
public Database.Builder setLocationId(String value)
The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;
value
- The locationId to set.public Database.Builder clearLocationId()
The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;
public Database.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;
value
- The bytes for locationId to set.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;
getTypeValue
in interface DatabaseOrBuilder
public Database.Builder setTypeValue(int value)
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;
value
- The enum numeric value on the wire for type to set.public Database.DatabaseType 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;
getType
in interface DatabaseOrBuilder
public Database.Builder setType(Database.DatabaseType value)
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;
value
- The type to set.public Database.Builder 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;
public int getConcurrencyModeValue()
The concurrency control mode to use for this database.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
getConcurrencyModeValue
in interface DatabaseOrBuilder
public Database.Builder setConcurrencyModeValue(int value)
The concurrency control mode to use for this database.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
value
- The enum numeric value on the wire for concurrencyMode to set.public Database.ConcurrencyMode getConcurrencyMode()
The concurrency control mode to use for this database.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
getConcurrencyMode
in interface DatabaseOrBuilder
public Database.Builder setConcurrencyMode(Database.ConcurrencyMode value)
The concurrency control mode to use for this database.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
value
- The concurrencyMode to set.public Database.Builder clearConcurrencyMode()
The concurrency control mode to use for this database.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
public int getAppEngineIntegrationModeValue()
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
getAppEngineIntegrationModeValue
in interface DatabaseOrBuilder
public Database.Builder setAppEngineIntegrationModeValue(int value)
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
value
- The enum numeric value on the wire for appEngineIntegrationMode to set.public Database.AppEngineIntegrationMode getAppEngineIntegrationMode()
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
getAppEngineIntegrationMode
in interface DatabaseOrBuilder
public Database.Builder setAppEngineIntegrationMode(Database.AppEngineIntegrationMode value)
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
value
- The appEngineIntegrationMode to set.public Database.Builder clearAppEngineIntegrationMode()
The App Engine integration mode to use for this database.
.google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
public String 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];
getKeyPrefix
in interface DatabaseOrBuilder
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];
getKeyPrefixBytes
in interface DatabaseOrBuilder
public Database.Builder setKeyPrefix(String value)
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];
value
- The keyPrefix to set.public Database.Builder 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];
public Database.Builder setKeyPrefixBytes(com.google.protobuf.ByteString value)
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];
value
- The bytes for keyPrefix to set.public String 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;
getEtag
in interface DatabaseOrBuilder
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;
getEtagBytes
in interface DatabaseOrBuilder
public Database.Builder setEtag(String 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.
string etag = 99;
value
- The etag to set.public Database.Builder 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;
public Database.Builder 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.
string etag = 99;
value
- The bytes for etag to set.public final Database.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
public final Database.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
Copyright © 2023 Google LLC. All rights reserved.