public final class Database extends 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DatabaseImplements
DatabaseOrBuilderStatic Fields
CONCURRENCY_MODE_FIELD_NUMBER
public static final int CONCURRENCY_MODE_FIELD_NUMBER
Type | Description |
int |
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Type | Description |
int |
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Database getDefaultInstance()
Type | Description |
Database |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Database.Builder newBuilder()
Type | Description |
Database.Builder |
newBuilder(Database prototype)
public static Database.Builder newBuilder(Database prototype)
Name | Description |
prototype | Database |
Type | Description |
Database.Builder |
parseDelimitedFrom(InputStream input)
public static Database parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Database |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Database parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Database parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Database parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Database parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Database parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Database parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Database |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Database> parser()
Type | Description |
Parser<Database> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getConcurrencyMode()
public Database.ConcurrencyMode getConcurrencyMode()
The concurrency control mode to use for this database.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
Type | Description |
Database.ConcurrencyMode | The concurrencyMode. |
getConcurrencyModeValue()
public int getConcurrencyModeValue()
The concurrency control mode to use for this database.
.google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
Type | Description |
int | The enum numeric value on the wire for concurrencyMode. |
getDefaultInstanceForType()
public Database getDefaultInstanceForType()
Type | Description |
Database |
getEtag()
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;
Type | Description |
String | The etag. |
getEtagBytes()
public 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;
Type | Description |
ByteString | The bytes for etag. |
getLocationId()
public String getLocationId()
The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;
Type | Description |
String | The locationId. |
getLocationIdBytes()
public ByteString getLocationIdBytes()
The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.
string location_id = 9;
Type | Description |
ByteString | The bytes for locationId. |
getName()
public String getName()
The resource name of the Database.
Format: projects/{project}/databases/{database}
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the Database.
Format: projects/{project}/databases/{database}
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<Database> getParserForType()
Type | Description |
Parser<Database> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getType()
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;
Type | Description |
Database.DatabaseType | The type. |
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;
Type | Description |
int | The enum numeric value on the wire for type. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Database.Builder newBuilderForType()
Type | Description |
Database.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Database.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Database.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Database.Builder toBuilder()
Type | Description |
Database.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |