Service Client: Google::Firestore::Admin::V1::FirestoreAdmin::FirestoreAdminClient
Client stub representing the remote FirestoreAdmin gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to firestore.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Firestore::Admin::V1::FirestoreAdmin - Compiled Protocol Buffers messages for google/firestore/admin/v1/firestore_admin.proto
SYNOPSIS
use Google::Firestore::Admin::V1::FirestoreAdmin;
my $msg = Google::Firestore::Admin::V1::FirestoreAdmin::ListDatabasesRequest->new({
parent => $parent,
show_deleted => $show_deleted,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Firestore::Admin::V1::FirestoreAdmin::ListDatabasesRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/firestore/admin/v1/firestore_admin.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::FirestoreAdmin::ListDatabasesRequest
A request to list the Firestore Databases in all locations for a project.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. A parent name of the form `projects/{project_id}`
$msg->show_deleted()/$msg->show_deleted($value)Type:
BoolIf true, also returns deleted resources.
Google::Firestore::Admin::V1::FirestoreAdmin::CreateDatabaseRequest
The request for [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. A parent name of the form `projects/{project_id}`
$msg->database()/$msg->database($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database)Required. The Database to create.
$msg->database_id()/$msg->database_id($value)Type:
StringRequired. The ID to use for the database, which will become the final component of the database's resource name.
This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
"(default)" database ID is also valid if the database is Standard edition.
Google::Firestore::Admin::V1::FirestoreAdmin::CreateDatabaseMetadata
Metadata related to the create database operation.
Inherits from Protobuf::Message.
Google::Firestore::Admin::V1::FirestoreAdmin::ListDatabasesResponse
The list of databases for a project.
Inherits from Protobuf::Message.
Accessors
$msg->databases()/$msg->databases($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database)The databases in the project.
$msg->unreachable()/$msg->unreachable($value)Type:
StringIn the event that data about individual databases cannot be listed they will be recorded here.
An example entry might be: projects/some_project/locations/some_location This can happen if the Cloud Region that the Database resides in is currently unavailable. In this case we can't fetch all the details about the database. You may be able to get a more detailed error message (or possibly fetch the resource) by sending a 'Get' request for the resource or a 'List' request for the specific location.
Google::Firestore::Admin::V1::FirestoreAdmin::GetDatabaseRequest
The request for [FirestoreAdmin.GetDatabase][google.firestore.admin.v1.FirestoreAdmin.GetDatabase].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::UpdateDatabaseRequest
The request for [FirestoreAdmin.UpdateDatabase][google.firestore.admin.v1.FirestoreAdmin.UpdateDatabase].
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database)Required. The database to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Firestore::Admin::V1::FirestoreAdmin::UpdateDatabaseMetadata
Metadata related to the update database operation.
Inherits from Protobuf::Message.
Google::Firestore::Admin::V1::FirestoreAdmin::DeleteDatabaseRequest
The request for [FirestoreAdmin.DeleteDatabase][google.firestore.admin.v1.FirestoreAdmin.DeleteDatabase].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}`
$msg->etag()/$msg->etag($value)Type:
StringThe current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.
Google::Firestore::Admin::V1::FirestoreAdmin::DeleteDatabaseMetadata
Metadata related to the delete database operation.
Inherits from Protobuf::Message.
Google::Firestore::Admin::V1::FirestoreAdmin::CreateUserCredsRequest
The request for [FirestoreAdmin.CreateUserCreds][google.firestore.admin.v1.FirestoreAdmin.CreateUserCreds].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. A parent name of the form `projects/{project_id}/databases/{database_id}`
$msg->user_creds()/$msg->user_creds($value)Type:
Message(Google::Firestore::Admin::V1::UserCreds::UserCreds)Required. The user creds to create.
$msg->user_creds_id()/$msg->user_creds_id($value)Type:
StringRequired. The ID to use for the user creds, which will become the final component of the user creds's resource name.
This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
Google::Firestore::Admin::V1::FirestoreAdmin::GetUserCredsRequest
The request for [FirestoreAdmin.GetUserCreds][google.firestore.admin.v1.FirestoreAdmin.GetUserCreds].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::ListUserCredsRequest
The request for [FirestoreAdmin.ListUserCreds][google.firestore.admin.v1.FirestoreAdmin.ListUserCreds].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. A parent database name of the form `projects/{project_id}/databases/{database_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::ListUserCredsResponse
The response for [FirestoreAdmin.ListUserCreds][google.firestore.admin.v1.FirestoreAdmin.ListUserCreds].
Inherits from Protobuf::Message.
Accessors
$msg->user_creds()/$msg->user_creds($value)Type:
Message(Google::Firestore::Admin::V1::UserCreds::UserCreds)The user creds for the database.
Google::Firestore::Admin::V1::FirestoreAdmin::EnableUserCredsRequest
The request for [FirestoreAdmin.EnableUserCreds][google.firestore.admin.v1.FirestoreAdmin.EnableUserCreds].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::DisableUserCredsRequest
The request for [FirestoreAdmin.DisableUserCreds][google.firestore.admin.v1.FirestoreAdmin.DisableUserCreds].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::ResetUserPasswordRequest
The request for [FirestoreAdmin.ResetUserPassword][google.firestore.admin.v1.FirestoreAdmin.ResetUserPassword].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::DeleteUserCredsRequest
The request for [FirestoreAdmin.DeleteUserCreds][google.firestore.admin.v1.FirestoreAdmin.DeleteUserCreds].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/userCreds/{user_creds_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::CreateBackupScheduleRequest
The request for [FirestoreAdmin.CreateBackupSchedule][google.firestore.admin.v1.FirestoreAdmin.CreateBackupSchedule].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent database.
Format `projects/{project}/databases/{database}`$msg->backup_schedule()/$msg->backup_schedule($value)Type:
Message(Google::Firestore::Admin::V1::Schedule::BackupSchedule)Required. The backup schedule to create.
Google::Firestore::Admin::V1::FirestoreAdmin::GetBackupScheduleRequest
The request for [FirestoreAdmin.GetBackupSchedule][google.firestore.admin.v1.FirestoreAdmin.GetBackupSchedule].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the backup schedule.
Format `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
Google::Firestore::Admin::V1::FirestoreAdmin::UpdateBackupScheduleRequest
The request for [FirestoreAdmin.UpdateBackupSchedule][google.firestore.admin.v1.FirestoreAdmin.UpdateBackupSchedule].
Inherits from Protobuf::Message.
Accessors
$msg->backup_schedule()/$msg->backup_schedule($value)Type:
Message(Google::Firestore::Admin::V1::Schedule::BackupSchedule)Required. The backup schedule to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to be updated.
Google::Firestore::Admin::V1::FirestoreAdmin::ListBackupSchedulesRequest
The request for [FirestoreAdmin.ListBackupSchedules][google.firestore.admin.v1.FirestoreAdmin.ListBackupSchedules].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent database.
Format is `projects/{project}/databases/{database}`.
Google::Firestore::Admin::V1::FirestoreAdmin::ListBackupSchedulesResponse
The response for [FirestoreAdmin.ListBackupSchedules][google.firestore.admin.v1.FirestoreAdmin.ListBackupSchedules].
Inherits from Protobuf::Message.
Accessors
$msg->backup_schedules()/$msg->backup_schedules($value)Type:
Message(Google::Firestore::Admin::V1::Schedule::BackupSchedule)List of all backup schedules.
Google::Firestore::Admin::V1::FirestoreAdmin::DeleteBackupScheduleRequest
The request for [FirestoreAdmin.DeleteBackupSchedules][].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the backup schedule.
Format `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
Google::Firestore::Admin::V1::FirestoreAdmin::CreateIndexRequest
The request for [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
$msg->index()/$msg->index($value)Type:
Message(Google::Firestore::Admin::V1::Index::Index)Required. The composite index to create.
Google::Firestore::Admin::V1::FirestoreAdmin::ListIndexesRequest
The request for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
$msg->filter()/$msg->filter($value)Type:
StringThe filter to apply to list results.
$msg->page_size()/$msg->page_size($value)Type:
Int32The number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, returned from a previous call to [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes], that may be used to get the next page of results.
Google::Firestore::Admin::V1::FirestoreAdmin::ListIndexesResponse
The response for [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes].
Inherits from Protobuf::Message.
Accessors
$msg->indexes()/$msg->indexes($value)Type:
Message(Google::Firestore::Admin::V1::Index::Index)The requested indexes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA page token that may be used to request another page of results. If blank, this is the last page.
Google::Firestore::Admin::V1::FirestoreAdmin::GetIndexRequest
The request for [FirestoreAdmin.GetIndex][google.firestore.admin.v1.FirestoreAdmin.GetIndex].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::DeleteIndexRequest
The request for [FirestoreAdmin.DeleteIndex][google.firestore.admin.v1.FirestoreAdmin.DeleteIndex].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::UpdateFieldRequest
The request for [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
Inherits from Protobuf::Message.
Accessors
$msg->field()/$msg->field($value)Type:
Message(Google::Firestore::Admin::V1::Field::Field)Required. The field to be updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field.
Google::Firestore::Admin::V1::FirestoreAdmin::GetFieldRequest
The request for [FirestoreAdmin.GetField][google.firestore.admin.v1.FirestoreAdmin.GetField].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
Google::Firestore::Admin::V1::FirestoreAdmin::ListFieldsRequest
The request for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
$msg->filter()/$msg->filter($value)Type:
StringThe filter to apply to list results. Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields that have been explicitly overridden. To issue this query, call [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with a filter that includes `indexConfig.usesAncestorConfig:false` or `ttlConfig:*`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, returned from a previous call to [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields], that may be used to get the next page of results.
Google::Firestore::Admin::V1::FirestoreAdmin::ListFieldsResponse
The response for [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields].
Inherits from Protobuf::Message.
Accessors
$msg->fields()/$msg->fields($value)Type:
Message(Google::Firestore::Admin::V1::Field::Field)The requested fields.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA page token that may be used to request another page of results. If blank, this is the last page.
Google::Firestore::Admin::V1::FirestoreAdmin::ExportDocumentsRequest
The request for [FirestoreAdmin.ExportDocuments][google.firestore.admin.v1.FirestoreAdmin.ExportDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Database to export. Should be of the form: `projects/{project_id}/databases/{database_id}`.
$msg->collection_ids()/$msg->collection_ids($value)Type:
StringIDs of the collection groups to export. Unspecified means all collection groups. Each collection group in this list must be unique.
$msg->output_uri_prefix()/$msg->output_uri_prefix($value)Type:
StringThe output URI. Currently only supports Google Cloud Storage URIs of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional Google Cloud Storage namespace path. When choosing a name, be sure to consider Google Cloud Storage naming guidelines: https://cloud.google.com/storage/docs/naming. If the URI is a bucket (without a namespace path), a prefix will be generated based on the start time.
$msg->namespace_ids()/$msg->namespace_ids($value)Type:
StringAn empty list represents all namespaces. This is the preferred usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
$msg->snapshot_time()/$msg->snapshot_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The timestamp that corresponds to the version of the database to be exported. The timestamp must be in the past, rounded to the minute and not older than [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time]. If specified, then the exported documents will represent a consistent view of the database at the provided time. Otherwise, there are no guarantees about the consistency of the exported documents.
Google::Firestore::Admin::V1::FirestoreAdmin::ImportDocumentsRequest
The request for [FirestoreAdmin.ImportDocuments][google.firestore.admin.v1.FirestoreAdmin.ImportDocuments].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`.
$msg->collection_ids()/$msg->collection_ids($value)Type:
StringIDs of the collection groups to import. Unspecified means all collection groups that were included in the export. Each collection group in this list must be unique.
$msg->input_uri_prefix()/$msg->input_uri_prefix($value)Type:
StringLocation of the exported files. This must match the output_uri_prefix of an ExportDocumentsResponse from an export that has completed successfully. See: [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
$msg->namespace_ids()/$msg->namespace_ids($value)Type:
StringAn empty list represents all namespaces. This is the preferred usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
Google::Firestore::Admin::V1::FirestoreAdmin::BulkDeleteDocumentsRequest
The request for [FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments].
When both collection_ids and namespace_ids are set, only documents satisfying both conditions will be deleted.
Requests with namespace_ids and collection_ids both empty will be rejected. Please use [FirestoreAdmin.DeleteDatabase][google.firestore.admin.v1.FirestoreAdmin.DeleteDatabase] instead.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Database to operate. Should be of the form: `projects/{project_id}/databases/{database_id}`.
$msg->collection_ids()/$msg->collection_ids($value)Type:
StringOptional. IDs of the collection groups to delete. Unspecified means all collection groups.
Each collection group in this list must be unique.
$msg->namespace_ids()/$msg->namespace_ids($value)Type:
StringOptional. Namespaces to delete.
An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces.
An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them.
Each namespace in this list must be unique.
Google::Firestore::Admin::V1::FirestoreAdmin::BulkDeleteDocumentsResponse
The response for [FirestoreAdmin.BulkDeleteDocuments][google.firestore.admin.v1.FirestoreAdmin.BulkDeleteDocuments].
Inherits from Protobuf::Message.
Google::Firestore::Admin::V1::FirestoreAdmin::GetBackupRequest
The request for [FirestoreAdmin.GetBackup][google.firestore.admin.v1.FirestoreAdmin.GetBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the backup to fetch.
Format is `projects/{project}/locations/{location}/backups/{backup}`.
Google::Firestore::Admin::V1::FirestoreAdmin::ListBackupsRequest
The request for [FirestoreAdmin.ListBackups][google.firestore.admin.v1.FirestoreAdmin.ListBackups].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location to list backups from.
Format is `projects/{project}/locations/{location}`. Use `{location} = '-'` to list backups from all locations for the given project. This allows listing backups from a single location or from all locations.
$msg->filter()/$msg->filter($value)Type:
StringAn expression that filters the list of returned backups.
A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive.
The following fields in the [Backup][google.firestore.admin.v1.Backup] are eligible for filtering:
* `database_uid` (supports `=` only)
Google::Firestore::Admin::V1::FirestoreAdmin::ListBackupsResponse
The response for [FirestoreAdmin.ListBackups][google.firestore.admin.v1.FirestoreAdmin.ListBackups].
Inherits from Protobuf::Message.
Accessors
$msg->backups()/$msg->backups($value)Type:
Message(Google::Firestore::Admin::V1::Backup::Backup)List of all backups for the project.
$msg->unreachable()/$msg->unreachable($value)Type:
StringList of locations that existing backups were not able to be fetched from.
Instead of failing the entire requests when a single location is unreachable, this response returns a partial result set and list of locations unable to be reached here. The request can be retried against a single location to get a concrete error.
Google::Firestore::Admin::V1::FirestoreAdmin::DeleteBackupRequest
The request for [FirestoreAdmin.DeleteBackup][google.firestore.admin.v1.FirestoreAdmin.DeleteBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the backup to delete.
format is `projects/{project}/locations/{location}/backups/{backup}`.
Google::Firestore::Admin::V1::FirestoreAdmin::RestoreDatabaseRequest
The request message for [FirestoreAdmin.RestoreDatabase][google.firestore.admin.v1.FirestoreAdmin.RestoreDatabase].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project to restore the database in. Format is `projects/{project_id}`.
$msg->database_id()/$msg->database_id($value)Type:
StringRequired. The ID to use for the database, which will become the final component of the database's resource name. This database ID must not be associated with an existing database.
This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
"(default)" database ID is also valid if the database is Standard edition.
$msg->backup()/$msg->backup($value)Type:
StringRequired. Backup to restore from. Must be from the same project as the parent.
The restored database will be created in the same location as the source backup.
Format is: `projects/{project_id}/locations/{location}/backups/{backup}`
$msg->encryption_config()/$msg->encryption_config($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database::EncryptionConfig)Optional. Encryption configuration for the restored database.
If this field is not specified, the restored database will use the same encryption configuration as the backup, namely [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
$msg->tags()/$msg->tags($value)Type:
Message(Google::Firestore::Admin::V1::FirestoreAdmin::RestoreDatabaseRequest::TagsEntry)Optional. Immutable. Tags to be bound to the restored database.
The tags should be provided in the format of `tagKeys/{tag_key_id} -> tagValues/{tag_value_id}`.
Google::Firestore::Admin::V1::FirestoreAdmin::CloneDatabaseRequest
The request message for [FirestoreAdmin.CloneDatabase][google.firestore.admin.v1.FirestoreAdmin.CloneDatabase].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project to clone the database in. Format is `projects/{project_id}`.
$msg->database_id()/$msg->database_id($value)Type:
StringRequired. The ID to use for the database, which will become the final component of the database's resource name. This database ID must not be associated with an existing database.
This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
"(default)" database ID is also valid if the database is Standard edition.
$msg->pitr_snapshot()/$msg->pitr_snapshot($value)Type:
Message(Google::Firestore::Admin::V1::Snapshot::PitrSnapshot)Required. Specification of the PITR data to clone from. The source database must exist.
The cloned database will be created in the same location as the source database.
$msg->encryption_config()/$msg->encryption_config($value)Type:
Message(Google::Firestore::Admin::V1::Database::Database::EncryptionConfig)Optional. Encryption configuration for the cloned database.
If this field is not specified, the cloned database will use the same encryption configuration as the source database, namely [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
$msg->tags()/$msg->tags($value)Type:
Message(Google::Firestore::Admin::V1::FirestoreAdmin::CloneDatabaseRequest::TagsEntry)Optional. Immutable. Tags to be bound to the cloned database.
The tags should be provided in the format of `tagKeys/{tag_key_id} -> tagValues/{tag_value_id}`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Firestore::Admin::V1::FirestoreAdmin::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.