Class Database (2.4.0)

public sealed class Database : IMessage<Database>, IEquatable<Database>, IDeepCloneable<Database>, IBufferMessage, IMessage

A Cloud Firestore Database. Currently only one database is allowed per cloud project; this database must have a database_id of '(default)'.

Inheritance

Object > Database

Namespace

Google.Cloud.Firestore.Admin.V1

Assembly

Google.Cloud.Firestore.Admin.V1.dll

Constructors

Database()

public Database()

Database(Database)

public Database(Database other)
Parameter
NameDescription
otherDatabase

Properties

ConcurrencyMode

public Database.Types.ConcurrencyMode ConcurrencyMode { get; set; }

The concurrency control mode to use for this database.

Property Value
TypeDescription
Database.Types.ConcurrencyMode

DatabaseName

public DatabaseName DatabaseName { get; set; }

DatabaseName-typed view over the Name resource name property.

Property Value
TypeDescription
DatabaseName

Etag

public string Etag { get; set; }

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.

Property Value
TypeDescription
String

LocationId

public string LocationId { get; set; }

The location of the database. Available databases are listed at https://cloud.google.com/firestore/docs/locations.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

The resource name of the Database. Format: projects/{project}/databases/{database}

Property Value
TypeDescription
String

Type

public Database.Types.DatabaseType Type { get; set; }

The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.

Property Value
TypeDescription
Database.Types.DatabaseType