NAME
Google::Firestore::Admin::V1::Database - Compiled Protocol Buffers messages for google/firestore/admin/v1/database.proto
SYNOPSIS
use Google::Firestore::Admin::V1::Database;
my $msg = Google::Firestore::Admin::V1::Database::Database->new({
name => $name,
uid => $uid,
create_time => $create_time,
update_time => $update_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Firestore::Admin::V1::Database::Database->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/firestore/admin/v1/database.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Firestore::Admin::V1::Database::Database
A Cloud Firestore Database.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the Database. Format: `projects/{project}/databases/{database}`
$msg->uid()/$msg->uid($value)Type:
StringOutput only. The system-generated UUID4 for this Database.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)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.
$msg->delete_time()/$msg->delete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp at which this database was deleted. Only set if the database has been deleted.
$msg->location_id()/$msg->location_id($value)Type:
StringThe location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations.
$msg->type()/$msg->type($value)Type:
Enum(Google::Firestore::Admin::V1::Database::DatabaseType)The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose.
$msg->concurrency_mode()/$msg->concurrency_mode($value)Type:
Enum(Google::Firestore::Admin::V1::Database::ConcurrencyMode)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.
$msg->version_retention_period()/$msg->version_retention_period($value)Type:
Message(Google::Protobuf::Duration::Duration)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.
$msg->earliest_version_time()/$msg->earliest_version_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)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.
$msg->point_in_time_recovery_enablement()/$msg->point_in_time_recovery_enablement($value)Type:
Enum(Google::Firestore::Admin::V1::Database::PointInTimeRecoveryEnablement)Whether to enable the PITR feature on this database.
$msg->app_engine_integration_mode()/$msg->app_engine_integration_mode($value)Type:
Enum(Google::Firestore::Admin::V1::Database::AppEngineIntegrationMode)The App Engine integration mode to use for this database.
$msg->key_prefix()/$msg->key_prefix($value)Type:
StringOutput 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).
$msg->delete_protection_state()/$msg->delete_protection_state($value)Type:
Enum(Google::Firestore::Admin::V1::Database::DeleteProtectionState)State of delete protection for the database.
$msg->cmek_config()/$msg->cmek_config($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database::CmekConfig)Optional. Presence indicates CMEK is enabled for this database.
$msg->previous_id()/$msg->previous_id($value)Type:
StringOutput only. The database resource's prior database ID. This field is only populated for deleted databases.
$msg->source_info()/$msg->source_info($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database::SourceInfo)Output only. Information about the provenance of this database.
$msg->tags()/$msg->tags($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database::TagsEntry)Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
$msg->free_tier()/$msg->free_tier($value)Type:
BoolOutput 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.
$msg->etag()/$msg->etag($value)Type:
StringThis 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.
$msg->database_edition()/$msg->database_edition($value)Type:
Enum(Google::Firestore::Admin::V1::Database::DatabaseEdition)Immutable. The edition of the database.
$msg->realtime_updates_mode()/$msg->realtime_updates_mode($value)Type:
Enum(Google::Firestore::Admin::V1::RealtimeUpdatesMode)Immutable. The default Realtime Updates mode to use for this database.
$msg->firestore_data_access_mode()/$msg->firestore_data_access_mode($value)Type:
Enum(Google::Firestore::Admin::V1::Database::DataAccessMode)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.
$msg->mongodb_compatible_data_access_mode()/$msg->mongodb_compatible_data_access_mode($value)Type:
Enum(Google::Firestore::Admin::V1::Database::DataAccessMode)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.
Enum: Database::DatabaseType
DATABASE_TYPE_UNSPECIFIED=>0FIRESTORE_NATIVE=>1DATASTORE_MODE=>2
Enum: Database::ConcurrencyMode
CONCURRENCY_MODE_UNSPECIFIED=>0OPTIMISTIC=>1PESSIMISTIC=>2OPTIMISTIC_WITH_ENTITY_GROUPS=>3
Enum: Database::PointInTimeRecoveryEnablement
POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED=>0POINT_IN_TIME_RECOVERY_ENABLED=>1POINT_IN_TIME_RECOVERY_DISABLED=>2
Enum: Database::AppEngineIntegrationMode
APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED=>0ENABLED=>1DISABLED=>2
Enum: Database::DeleteProtectionState
DELETE_PROTECTION_STATE_UNSPECIFIED=>0DELETE_PROTECTION_DISABLED=>1DELETE_PROTECTION_ENABLED=>2
Enum: Database::DatabaseEdition
DATABASE_EDITION_UNSPECIFIED=>0STANDARD=>1ENTERPRISE=>2
Enum: Database::DataAccessMode
DATA_ACCESS_MODE_UNSPECIFIED=>0DATA_ACCESS_MODE_ENABLED=>1DATA_ACCESS_MODE_DISABLED=>2
SEE ALSO
Protobuf, Protobuf::Message, Google::Firestore::Admin::V1::Database::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.