public final class Database extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
Database.AppEngineIntegrationMode
The type of App Engine integration mode.
|
static class |
Database.Builder
A Cloud Firestore Database.
|
static class |
Database.ConcurrencyMode
The type of concurrency control mode for transactions.
|
static class |
Database.DatabaseType
The type of the database.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
APP_ENGINE_INTEGRATION_MODE_FIELD_NUMBER |
static int |
CONCURRENCY_MODE_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
KEY_PREFIX_FIELD_NUMBER |
static int |
LOCATION_ID_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
static Database |
getDefaultInstance() |
Database |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<Database> |
getParserForType() |
int |
getSerializedSize() |
Database.DatabaseType |
getType()
The type of the database.
|
int |
getTypeValue()
The type of the database.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Database.Builder |
newBuilder() |
static Database.Builder |
newBuilder(Database prototype) |
Database.Builder |
newBuilderForType() |
protected Database.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Database |
parseDelimitedFrom(InputStream input) |
static Database |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(byte[] data) |
static Database |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(ByteBuffer data) |
static Database |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(com.google.protobuf.ByteString data) |
static Database |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Database |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Database |
parseFrom(InputStream input) |
static Database |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Database> |
parser() |
Database.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int NAME_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int CONCURRENCY_MODE_FIELD_NUMBER
public static final int APP_ENGINE_INTEGRATION_MODE_FIELD_NUMBER
public static final int KEY_PREFIX_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 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 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.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 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.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 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.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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Database parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Database parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Database parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Database parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Database parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Database parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Database parseFrom(InputStream input) throws IOException
IOException
public static Database parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Database parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Database parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Database parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Database parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Database.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Database.Builder newBuilder()
public static Database.Builder newBuilder(Database prototype)
public Database.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Database.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Database getDefaultInstance()
public static com.google.protobuf.Parser<Database> parser()
public com.google.protobuf.Parser<Database> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Database getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.