google-cloud-firestore-admin-v1 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 548a3b96f21015d0c8fa10757f7cf61cd3b41a8e9fb710068d7cd210dc9baf29
4
- data.tar.gz: eef95e6aef0799ff3c87708c208f48015ca018cef34d989c2d6ac8afa47ab550
3
+ metadata.gz: c801c56c700954feeeb3b4d13895cb83586647314648d152e22977446ffd68be
4
+ data.tar.gz: 3f2b31b3ee99c3a0c607dc7cf6ce7ac1b0bd3a42c0d488ad1f2bcd4801a96b03
5
5
  SHA512:
6
- metadata.gz: 1c45b3e621947127d1a80ebf104696861be9768aa538537da7926e6e4d667d829e7ba4d0b35e66c78428a5e20932dd8a0cf0b12040dfa90d05f2b52dcd9bce26
7
- data.tar.gz: 84a4eda5f197d893a8367678a6de130c796696a4e58ecf17c83803793de0b695a6fdb6097bf42dbfe19935ff5b676a231b5e45227996965c4f15d90ccba79597
6
+ metadata.gz: f33929e454f7ebbbb6a43f06930866502abb8581f576eea8dc9dbac4c5de184b51ad213eefdcb8116d904561b9b8af7857e165c10b2ce6992e92cc33b572bc79
7
+ data.tar.gz: 894b336175c2b3da8391cd1c40849a31f3f56ea8510eaa98c3ea81e052113acf9a15549f288e8e519561b98f90805d1bd43753123776b8894ad126b5bc7179df
@@ -138,6 +138,8 @@ module Google
138
138
 
139
139
  default_config.rpcs.restore_database.timeout = 120.0
140
140
 
141
+ default_config.rpcs.clone_database.timeout = 120.0
142
+
141
143
  default_config
142
144
  end
143
145
  yield @configure if block_given?
@@ -3276,6 +3278,153 @@ module Google
3276
3278
  raise ::Google::Cloud::Error.from_error(e)
3277
3279
  end
3278
3280
 
3281
+ ##
3282
+ # Creates a new database by cloning an existing one.
3283
+ #
3284
+ # The new database must be in the same cloud region or multi-region location
3285
+ # as the existing database. This behaves similar to
3286
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client#create_database FirestoreAdmin.CreateDatabase}
3287
+ # except instead of creating a new empty database, a new database is created
3288
+ # with the database type, index configuration, and documents from an existing
3289
+ # database.
3290
+ #
3291
+ # The {::Google::Longrunning::Operation long-running operation} can be used to
3292
+ # track the progress of the clone, with the Operation's
3293
+ # {::Google::Longrunning::Operation#metadata metadata} field type being the
3294
+ # {::Google::Cloud::Firestore::Admin::V1::CloneDatabaseMetadata CloneDatabaseMetadata}.
3295
+ # The {::Google::Longrunning::Operation#response response} type is the
3296
+ # {::Google::Cloud::Firestore::Admin::V1::Database Database} if the clone was
3297
+ # successful. The new database is not readable or writeable until the LRO has
3298
+ # completed.
3299
+ #
3300
+ # @overload clone_database(request, options = nil)
3301
+ # Pass arguments to `clone_database` via a request object, either of type
3302
+ # {::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest} or an equivalent Hash.
3303
+ #
3304
+ # @param request [::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest, ::Hash]
3305
+ # A request object representing the call parameters. Required. To specify no
3306
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3307
+ # @param options [::Gapic::CallOptions, ::Hash]
3308
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3309
+ #
3310
+ # @overload clone_database(parent: nil, database_id: nil, pitr_snapshot: nil, encryption_config: nil, tags: nil)
3311
+ # Pass arguments to `clone_database` via keyword arguments. Note that at
3312
+ # least one keyword argument is required. To specify no parameters, or to keep all
3313
+ # the default parameter values, pass an empty Hash as a request object (see above).
3314
+ #
3315
+ # @param parent [::String]
3316
+ # Required. The project to clone the database in. Format is
3317
+ # `projects/{project_id}`.
3318
+ # @param database_id [::String]
3319
+ # Required. The ID to use for the database, which will become the final
3320
+ # component of the database's resource name. This database ID must not be
3321
+ # associated with an existing database.
3322
+ #
3323
+ # This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
3324
+ # with first character a letter and the last a letter or a number. Must not
3325
+ # be UUID-like /[0-9a-f]\\{8}(-[0-9a-f]\\{4})\\{3}-[0-9a-f]\\{12}/.
3326
+ #
3327
+ # "(default)" database ID is also valid.
3328
+ # @param pitr_snapshot [::Google::Cloud::Firestore::Admin::V1::PitrSnapshot, ::Hash]
3329
+ # Required. Specification of the PITR data to clone from. The source database
3330
+ # must exist.
3331
+ #
3332
+ # The cloned database will be created in the same location as the source
3333
+ # database.
3334
+ # @param encryption_config [::Google::Cloud::Firestore::Admin::V1::Database::EncryptionConfig, ::Hash]
3335
+ # Optional. Encryption configuration for the cloned database.
3336
+ #
3337
+ # If this field is not specified, the cloned database will use
3338
+ # the same encryption configuration as the source database, namely
3339
+ # {::Google::Cloud::Firestore::Admin::V1::Database::EncryptionConfig#use_source_encryption use_source_encryption}.
3340
+ # @param tags [::Hash{::String => ::String}]
3341
+ # Optional. Immutable. Tags to be bound to the cloned database.
3342
+ #
3343
+ # The tags should be provided in the format of
3344
+ # `tagKeys/{tag_key_id} -> tagValues/{tag_value_id}`.
3345
+ #
3346
+ # @yield [response, operation] Access the result along with the RPC operation
3347
+ # @yieldparam response [::Gapic::Operation]
3348
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3349
+ #
3350
+ # @return [::Gapic::Operation]
3351
+ #
3352
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3353
+ #
3354
+ # @example Basic example
3355
+ # require "google/cloud/firestore/admin/v1"
3356
+ #
3357
+ # # Create a client object. The client can be reused for multiple calls.
3358
+ # client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Client.new
3359
+ #
3360
+ # # Create a request. To set request fields, pass in keyword arguments.
3361
+ # request = Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest.new
3362
+ #
3363
+ # # Call the clone_database method.
3364
+ # result = client.clone_database request
3365
+ #
3366
+ # # The returned object is of type Gapic::Operation. You can use it to
3367
+ # # check the status of an operation, cancel it, or wait for results.
3368
+ # # Here is how to wait for a response.
3369
+ # result.wait_until_done! timeout: 60
3370
+ # if result.response?
3371
+ # p result.response
3372
+ # else
3373
+ # puts "No response received."
3374
+ # end
3375
+ #
3376
+ def clone_database request, options = nil
3377
+ raise ::ArgumentError, "request must be provided" if request.nil?
3378
+
3379
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest
3380
+
3381
+ # Converts hash and nil to an options object
3382
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3383
+
3384
+ # Customize the options with defaults
3385
+ metadata = @config.rpcs.clone_database.metadata.to_h
3386
+
3387
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3388
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3389
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3390
+ gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION
3391
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3392
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3393
+
3394
+ header_params = {}
3395
+ if request.pitr_snapshot&.database
3396
+ regex_match = %r{^projects/(?<project_id>[^/]+)(?:/.*)?$}.match request.pitr_snapshot.database
3397
+ if regex_match
3398
+ header_params["project_id"] = regex_match["project_id".to_s]
3399
+ end
3400
+ end
3401
+ if request.pitr_snapshot&.database
3402
+ regex_match = %r{^projects/[^/]+/databases/(?<database_id>[^/]+)(?:/.*)?$}.match request.pitr_snapshot.database
3403
+ if regex_match
3404
+ header_params["database_id"] = regex_match["database_id".to_s]
3405
+ end
3406
+ end
3407
+
3408
+ request_params_header = URI.encode_www_form header_params
3409
+ metadata[:"x-goog-request-params"] ||= request_params_header
3410
+
3411
+ options.apply_defaults timeout: @config.rpcs.clone_database.timeout,
3412
+ metadata: metadata,
3413
+ retry_policy: @config.rpcs.clone_database.retry_policy
3414
+
3415
+ options.apply_defaults timeout: @config.timeout,
3416
+ metadata: @config.metadata,
3417
+ retry_policy: @config.retry_policy
3418
+
3419
+ @firestore_admin_stub.call_rpc :clone_database, request, options: options do |response, operation|
3420
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3421
+ yield response, operation if block_given?
3422
+ throw :response, response
3423
+ end
3424
+ rescue ::GRPC::BadStatus => e
3425
+ raise ::Google::Cloud::Error.from_error(e)
3426
+ end
3427
+
3279
3428
  ##
3280
3429
  # Configuration class for the FirestoreAdmin API.
3281
3430
  #
@@ -3597,6 +3746,11 @@ module Google
3597
3746
  # @return [::Gapic::Config::Method]
3598
3747
  #
3599
3748
  attr_reader :delete_backup_schedule
3749
+ ##
3750
+ # RPC-specific configuration for `clone_database`
3751
+ # @return [::Gapic::Config::Method]
3752
+ #
3753
+ attr_reader :clone_database
3600
3754
 
3601
3755
  # @private
3602
3756
  def initialize parent_rpcs = nil
@@ -3662,6 +3816,8 @@ module Google
3662
3816
  @update_backup_schedule = ::Gapic::Config::Method.new update_backup_schedule_config
3663
3817
  delete_backup_schedule_config = parent_rpcs.delete_backup_schedule if parent_rpcs.respond_to? :delete_backup_schedule
3664
3818
  @delete_backup_schedule = ::Gapic::Config::Method.new delete_backup_schedule_config
3819
+ clone_database_config = parent_rpcs.clone_database if parent_rpcs.respond_to? :clone_database
3820
+ @clone_database = ::Gapic::Config::Method.new clone_database_config
3665
3821
 
3666
3822
  yield self if block_given?
3667
3823
  end
@@ -140,6 +140,8 @@ module Google
140
140
 
141
141
  default_config.rpcs.restore_database.timeout = 120.0
142
142
 
143
+ default_config.rpcs.clone_database.timeout = 120.0
144
+
143
145
  default_config
144
146
  end
145
147
  yield @configure if block_given?
@@ -3052,6 +3054,137 @@ module Google
3052
3054
  raise ::Google::Cloud::Error.from_error(e)
3053
3055
  end
3054
3056
 
3057
+ ##
3058
+ # Creates a new database by cloning an existing one.
3059
+ #
3060
+ # The new database must be in the same cloud region or multi-region location
3061
+ # as the existing database. This behaves similar to
3062
+ # {::Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client#create_database FirestoreAdmin.CreateDatabase}
3063
+ # except instead of creating a new empty database, a new database is created
3064
+ # with the database type, index configuration, and documents from an existing
3065
+ # database.
3066
+ #
3067
+ # The {::Google::Longrunning::Operation long-running operation} can be used to
3068
+ # track the progress of the clone, with the Operation's
3069
+ # {::Google::Longrunning::Operation#metadata metadata} field type being the
3070
+ # {::Google::Cloud::Firestore::Admin::V1::CloneDatabaseMetadata CloneDatabaseMetadata}.
3071
+ # The {::Google::Longrunning::Operation#response response} type is the
3072
+ # {::Google::Cloud::Firestore::Admin::V1::Database Database} if the clone was
3073
+ # successful. The new database is not readable or writeable until the LRO has
3074
+ # completed.
3075
+ #
3076
+ # @overload clone_database(request, options = nil)
3077
+ # Pass arguments to `clone_database` via a request object, either of type
3078
+ # {::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest} or an equivalent Hash.
3079
+ #
3080
+ # @param request [::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest, ::Hash]
3081
+ # A request object representing the call parameters. Required. To specify no
3082
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3083
+ # @param options [::Gapic::CallOptions, ::Hash]
3084
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3085
+ #
3086
+ # @overload clone_database(parent: nil, database_id: nil, pitr_snapshot: nil, encryption_config: nil, tags: nil)
3087
+ # Pass arguments to `clone_database` via keyword arguments. Note that at
3088
+ # least one keyword argument is required. To specify no parameters, or to keep all
3089
+ # the default parameter values, pass an empty Hash as a request object (see above).
3090
+ #
3091
+ # @param parent [::String]
3092
+ # Required. The project to clone the database in. Format is
3093
+ # `projects/{project_id}`.
3094
+ # @param database_id [::String]
3095
+ # Required. The ID to use for the database, which will become the final
3096
+ # component of the database's resource name. This database ID must not be
3097
+ # associated with an existing database.
3098
+ #
3099
+ # This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
3100
+ # with first character a letter and the last a letter or a number. Must not
3101
+ # be UUID-like /[0-9a-f]\\{8}(-[0-9a-f]\\{4})\\{3}-[0-9a-f]\\{12}/.
3102
+ #
3103
+ # "(default)" database ID is also valid.
3104
+ # @param pitr_snapshot [::Google::Cloud::Firestore::Admin::V1::PitrSnapshot, ::Hash]
3105
+ # Required. Specification of the PITR data to clone from. The source database
3106
+ # must exist.
3107
+ #
3108
+ # The cloned database will be created in the same location as the source
3109
+ # database.
3110
+ # @param encryption_config [::Google::Cloud::Firestore::Admin::V1::Database::EncryptionConfig, ::Hash]
3111
+ # Optional. Encryption configuration for the cloned database.
3112
+ #
3113
+ # If this field is not specified, the cloned database will use
3114
+ # the same encryption configuration as the source database, namely
3115
+ # {::Google::Cloud::Firestore::Admin::V1::Database::EncryptionConfig#use_source_encryption use_source_encryption}.
3116
+ # @param tags [::Hash{::String => ::String}]
3117
+ # Optional. Immutable. Tags to be bound to the cloned database.
3118
+ #
3119
+ # The tags should be provided in the format of
3120
+ # `tagKeys/{tag_key_id} -> tagValues/{tag_value_id}`.
3121
+ # @yield [result, operation] Access the result along with the TransportOperation object
3122
+ # @yieldparam result [::Gapic::Operation]
3123
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3124
+ #
3125
+ # @return [::Gapic::Operation]
3126
+ #
3127
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3128
+ #
3129
+ # @example Basic example
3130
+ # require "google/cloud/firestore/admin/v1"
3131
+ #
3132
+ # # Create a client object. The client can be reused for multiple calls.
3133
+ # client = Google::Cloud::Firestore::Admin::V1::FirestoreAdmin::Rest::Client.new
3134
+ #
3135
+ # # Create a request. To set request fields, pass in keyword arguments.
3136
+ # request = Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest.new
3137
+ #
3138
+ # # Call the clone_database method.
3139
+ # result = client.clone_database request
3140
+ #
3141
+ # # The returned object is of type Gapic::Operation. You can use it to
3142
+ # # check the status of an operation, cancel it, or wait for results.
3143
+ # # Here is how to wait for a response.
3144
+ # result.wait_until_done! timeout: 60
3145
+ # if result.response?
3146
+ # p result.response
3147
+ # else
3148
+ # puts "No response received."
3149
+ # end
3150
+ #
3151
+ def clone_database request, options = nil
3152
+ raise ::ArgumentError, "request must be provided" if request.nil?
3153
+
3154
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest
3155
+
3156
+ # Converts hash and nil to an options object
3157
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3158
+
3159
+ # Customize the options with defaults
3160
+ call_metadata = @config.rpcs.clone_database.metadata.to_h
3161
+
3162
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3163
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3164
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3165
+ gapic_version: ::Google::Cloud::Firestore::Admin::V1::VERSION,
3166
+ transports_version_send: [:rest]
3167
+
3168
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3169
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3170
+
3171
+ options.apply_defaults timeout: @config.rpcs.clone_database.timeout,
3172
+ metadata: call_metadata,
3173
+ retry_policy: @config.rpcs.clone_database.retry_policy
3174
+
3175
+ options.apply_defaults timeout: @config.timeout,
3176
+ metadata: @config.metadata,
3177
+ retry_policy: @config.retry_policy
3178
+
3179
+ @firestore_admin_stub.clone_database request, options do |result, operation|
3180
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3181
+ yield result, operation if block_given?
3182
+ throw :response, result
3183
+ end
3184
+ rescue ::Gapic::Rest::Error => e
3185
+ raise ::Google::Cloud::Error.from_error(e)
3186
+ end
3187
+
3055
3188
  ##
3056
3189
  # Configuration class for the FirestoreAdmin REST API.
3057
3190
  #
@@ -3353,6 +3486,11 @@ module Google
3353
3486
  # @return [::Gapic::Config::Method]
3354
3487
  #
3355
3488
  attr_reader :delete_backup_schedule
3489
+ ##
3490
+ # RPC-specific configuration for `clone_database`
3491
+ # @return [::Gapic::Config::Method]
3492
+ #
3493
+ attr_reader :clone_database
3356
3494
 
3357
3495
  # @private
3358
3496
  def initialize parent_rpcs = nil
@@ -3418,6 +3556,8 @@ module Google
3418
3556
  @update_backup_schedule = ::Gapic::Config::Method.new update_backup_schedule_config
3419
3557
  delete_backup_schedule_config = parent_rpcs.delete_backup_schedule if parent_rpcs.respond_to? :delete_backup_schedule
3420
3558
  @delete_backup_schedule = ::Gapic::Config::Method.new delete_backup_schedule_config
3559
+ clone_database_config = parent_rpcs.clone_database if parent_rpcs.respond_to? :clone_database
3560
+ @clone_database = ::Gapic::Config::Method.new clone_database_config
3421
3561
 
3422
3562
  yield self if block_given?
3423
3563
  end
@@ -1314,6 +1314,46 @@ module Google
1314
1314
  end
1315
1315
  end
1316
1316
 
1317
+ ##
1318
+ # Baseline implementation for the clone_database REST call
1319
+ #
1320
+ # @param request_pb [::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest]
1321
+ # A request object representing the call parameters. Required.
1322
+ # @param options [::Gapic::CallOptions]
1323
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1324
+ #
1325
+ # @yield [result, operation] Access the result along with the TransportOperation object
1326
+ # @yieldparam result [::Google::Longrunning::Operation]
1327
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1328
+ #
1329
+ # @return [::Google::Longrunning::Operation]
1330
+ # A result object deserialized from the server's reply
1331
+ def clone_database request_pb, options = nil
1332
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1333
+
1334
+ verb, uri, query_string_params, body = ServiceStub.transcode_clone_database_request request_pb
1335
+ query_string_params = if query_string_params.any?
1336
+ query_string_params.to_h { |p| p.split "=", 2 }
1337
+ else
1338
+ {}
1339
+ end
1340
+
1341
+ response = @client_stub.make_http_request(
1342
+ verb,
1343
+ uri: uri,
1344
+ body: body || "",
1345
+ params: query_string_params,
1346
+ method_name: "clone_database",
1347
+ options: options
1348
+ )
1349
+ operation = ::Gapic::Rest::TransportOperation.new response
1350
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1351
+ catch :response do
1352
+ yield result, operation if block_given?
1353
+ result
1354
+ end
1355
+ end
1356
+
1317
1357
  ##
1318
1358
  # @private
1319
1359
  #
@@ -1978,6 +2018,28 @@ module Google
1978
2018
  )
1979
2019
  transcoder.transcode request_pb
1980
2020
  end
2021
+
2022
+ ##
2023
+ # @private
2024
+ #
2025
+ # GRPC transcoding helper method for the clone_database REST call
2026
+ #
2027
+ # @param request_pb [::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest]
2028
+ # A request object representing the call parameters. Required.
2029
+ # @return [Array(String, [String, nil], Hash{String => String})]
2030
+ # Uri, Body, Query string parameters
2031
+ def self.transcode_clone_database_request request_pb
2032
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2033
+ .with_bindings(
2034
+ uri_method: :post,
2035
+ uri_template: "/v1/{parent}/databases:clone",
2036
+ body: "*",
2037
+ matches: [
2038
+ ["parent", %r{^projects/[^/]+/?$}, false]
2039
+ ]
2040
+ )
2041
+ transcoder.transcode request_pb
2042
+ end
1981
2043
  end
1982
2044
  end
1983
2045
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Firestore
23
23
  module Admin
24
24
  module V1
25
- VERSION = "1.6.0"
25
+ VERSION = "1.7.0"
26
26
  end
27
27
  end
28
28
  end
@@ -8,12 +8,14 @@ require 'google/api/annotations_pb'
8
8
  require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
+ require 'google/api/routing_pb'
11
12
  require 'google/firestore/admin/v1/backup_pb'
12
13
  require 'google/firestore/admin/v1/database_pb'
13
14
  require 'google/firestore/admin/v1/field_pb'
14
15
  require 'google/firestore/admin/v1/index_pb'
15
16
  require 'google/firestore/admin/v1/operation_pb'
16
17
  require 'google/firestore/admin/v1/schedule_pb'
18
+ require 'google/firestore/admin/v1/snapshot_pb'
17
19
  require 'google/firestore/admin/v1/user_creds_pb'
18
20
  require 'google/longrunning/operations_pb'
19
21
  require 'google/protobuf/empty_pb'
@@ -21,7 +23,7 @@ require 'google/protobuf/field_mask_pb'
21
23
  require 'google/protobuf/timestamp_pb'
22
24
 
23
25
 
24
- descriptor_data = "\n/google/firestore/admin/v1/firestore_admin.proto\x12\x19google.firestore.admin.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/firestore/admin/v1/backup.proto\x1a(google/firestore/admin/v1/database.proto\x1a%google/firestore/admin/v1/field.proto\x1a%google/firestore/admin/v1/index.proto\x1a)google/firestore/admin/v1/operation.proto\x1a(google/firestore/admin/v1/schedule.proto\x1a*google/firestore/admin/v1/user_creds.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"g\n\x14ListDatabasesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"\xa8\x01\n\x15\x43reateDatabaseRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12:\n\x08\x64\x61tabase\x18\x02 \x01(\x0b\x32#.google.firestore.admin.v1.DatabaseB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x18\n\x16\x43reateDatabaseMetadata\"d\n\x15ListDatabasesResponse\x12\x36\n\tdatabases\x18\x01 \x03(\x0b\x32#.google.firestore.admin.v1.Database\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"M\n\x12GetDatabaseRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\"\x84\x01\n\x15UpdateDatabaseRequest\x12:\n\x08\x64\x61tabase\x18\x01 \x01(\x0b\x32#.google.firestore.admin.v1.DatabaseB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x18\n\x16UpdateDatabaseMetadata\"^\n\x15\x44\x65leteDatabaseRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\x18\n\x16\x44\x65leteDatabaseMetadata\"\xaf\x01\n\x16\x43reateUserCredsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"firestore.googleapis.com/UserCreds\x12=\n\nuser_creds\x18\x02 \x01(\x0b\x32$.google.firestore.admin.v1.UserCredsB\x03\xe0\x41\x02\x12\x1a\n\ruser_creds_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"O\n\x13GetUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"R\n\x14ListUserCredsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"firestore.googleapis.com/UserCreds\"Q\n\x15ListUserCredsResponse\x12\x38\n\nuser_creds\x18\x01 \x03(\x0b\x32$.google.firestore.admin.v1.UserCreds\"R\n\x16\x45nableUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"S\n\x17\x44isableUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"T\n\x18ResetUserPasswordRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"R\n\x16\x44\x65leteUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"\xa1\x01\n\x1b\x43reateBackupScheduleRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12G\n\x0f\x62\x61\x63kup_schedule\x18\x02 \x01(\x0b\x32).google.firestore.admin.v1.BackupScheduleB\x03\xe0\x41\x02\"Y\n\x18GetBackupScheduleRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'firestore.googleapis.com/BackupSchedule\"\x97\x01\n\x1bUpdateBackupScheduleRequest\x12G\n\x0f\x62\x61\x63kup_schedule\x18\x01 \x01(\x0b\x32).google.firestore.admin.v1.BackupScheduleB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"W\n\x1aListBackupSchedulesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\"b\n\x1bListBackupSchedulesResponse\x12\x43\n\x10\x62\x61\x63kup_schedules\x18\x01 \x03(\x0b\x32).google.firestore.admin.v1.BackupSchedule\"\\\n\x1b\x44\x65leteBackupScheduleRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'firestore.googleapis.com/BackupSchedule\"\x8c\x01\n\x12\x43reateIndexRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x34\n\x05index\x18\x02 \x01(\x0b\x32 .google.firestore.admin.v1.IndexB\x03\xe0\x41\x02\"\x8d\x01\n\x12ListIndexesRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"a\n\x13ListIndexesResponse\x12\x31\n\x07indexes\x18\x01 \x03(\x0b\x32 .google.firestore.admin.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"G\n\x0fGetIndexRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Index\"J\n\x12\x44\x65leteIndexRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Index\"{\n\x12UpdateFieldRequest\x12\x34\n\x05\x66ield\x18\x01 \x01(\x0b\x32 .google.firestore.admin.v1.FieldB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"G\n\x0fGetFieldRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Field\"\x8c\x01\n\x11ListFieldsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"_\n\x12ListFieldsResponse\x12\x30\n\x06\x66ields\x18\x01 \x03(\x0b\x32 .google.firestore.admin.v1.Field\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xce\x01\n\x16\x45xportDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x16\n\x0e\x63ollection_ids\x18\x02 \x03(\t\x12\x19\n\x11output_uri_prefix\x18\x03 \x01(\t\x12\x15\n\rnamespace_ids\x18\x04 \x03(\t\x12\x31\n\rsnapshot_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9a\x01\n\x16ImportDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x16\n\x0e\x63ollection_ids\x18\x02 \x03(\t\x12\x18\n\x10input_uri_prefix\x18\x03 \x01(\t\x12\x15\n\rnamespace_ids\x18\x04 \x03(\t\"\x8e\x01\n\x1a\x42ulkDeleteDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x1b\n\x0e\x63ollection_ids\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rnamespace_ids\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x1d\n\x1b\x42ulkDeleteDocumentsResponse\"I\n\x10GetBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66irestore.googleapis.com/Backup\"_\n\x12ListBackupsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"^\n\x13ListBackupsResponse\x12\x32\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32!.google.firestore.admin.v1.Backup\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"L\n\x13\x44\x65leteBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66irestore.googleapis.com/Backup\"\xfc\x02\n\x16RestoreDatabaseRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12\x18\n\x0b\x64\x61tabase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66irestore.googleapis.com/Backup\x12T\n\x11\x65ncryption_config\x18\t \x01(\x0b\x32\x34.google.firestore.admin.v1.Database.EncryptionConfigB\x03\xe0\x41\x01\x12Q\n\x04tags\x18\n \x03(\x0b\x32;.google.firestore.admin.v1.RestoreDatabaseRequest.TagsEntryB\x06\xe0\x41\x05\xe0\x41\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xc1/\n\x0e\x46irestoreAdmin\x12\xdb\x01\n\x0b\x43reateIndex\x12-.google.firestore.admin.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"~\xca\x41\x1f\n\x05Index\x12\x16IndexOperationMetadata\xda\x41\x0cparent,index\x82\xd3\xe4\x93\x02G\">/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes:\x05index\x12\xbd\x01\n\x0bListIndexes\x12-.google.firestore.admin.v1.ListIndexesRequest\x1a..google.firestore.admin.v1.ListIndexesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes\x12\xa7\x01\n\x08GetIndex\x12*.google.firestore.admin.v1.GetIndexRequest\x1a .google.firestore.admin.v1.Index\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}\x12\xa3\x01\n\x0b\x44\x65leteIndex\x12-.google.firestore.admin.v1.DeleteIndexRequest\x1a\x16.google.protobuf.Empty\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}\x12\xa6\x01\n\x08GetField\x12*.google.firestore.admin.v1.GetFieldRequest\x1a .google.firestore.admin.v1.Field\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/databases/*/collectionGroups/*/fields/*}\x12\xd9\x01\n\x0bUpdateField\x12-.google.firestore.admin.v1.UpdateFieldRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41\x1f\n\x05\x46ield\x12\x16\x46ieldOperationMetadata\xda\x41\x05\x66ield\x82\xd3\xe4\x93\x02L2C/v1/{field.name=projects/*/databases/*/collectionGroups/*/fields/*}:\x05\x66ield\x12\xb9\x01\n\nListFields\x12,.google.firestore.admin.v1.ListFieldsRequest\x1a-.google.firestore.admin.v1.ListFieldsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/databases/*/collectionGroups/*}/fields\x12\xdd\x01\n\x0f\x45xportDocuments\x12\x31.google.firestore.admin.v1.ExportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\x32\n\x17\x45xportDocumentsResponse\x12\x17\x45xportDocumentsMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/databases/*}:exportDocuments:\x01*\x12\xdb\x01\n\x0fImportDocuments\x12\x31.google.firestore.admin.v1.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"v\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17ImportDocumentsMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/databases/*}:importDocuments:\x01*\x12\xf2\x01\n\x13\x42ulkDeleteDocuments\x12\x35.google.firestore.admin.v1.BulkDeleteDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41:\n\x1b\x42ulkDeleteDocumentsResponse\x12\x1b\x42ulkDeleteDocumentsMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/databases/*}:bulkDeleteDocuments:\x01*\x12\xd9\x01\n\x0e\x43reateDatabase\x12\x30.google.firestore.admin.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"v\xca\x41\"\n\x08\x44\x61tabase\x12\x16\x43reateDatabaseMetadata\xda\x41\x1bparent,database,database_id\x82\xd3\xe4\x93\x02-\"!/v1/{parent=projects/*}/databases:\x08\x64\x61tabase\x12\x93\x01\n\x0bGetDatabase\x12-.google.firestore.admin.v1.GetDatabaseRequest\x1a#.google.firestore.admin.v1.Database\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/databases/*}\x12\xa6\x01\n\rListDatabases\x12/.google.firestore.admin.v1.ListDatabasesRequest\x1a\x30.google.firestore.admin.v1.ListDatabasesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/databases\x12\xdb\x01\n\x0eUpdateDatabase\x12\x30.google.firestore.admin.v1.UpdateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08\x44\x61tabase\x12\x16UpdateDatabaseMetadata\xda\x41\x14\x64\x61tabase,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v1/{database.name=projects/*/databases/*}:\x08\x64\x61tabase\x12\xb8\x01\n\x0e\x44\x65leteDatabase\x12\x30.google.firestore.admin.v1.DeleteDatabaseRequest\x1a\x1d.google.longrunning.Operation\"U\xca\x41\"\n\x08\x44\x61tabase\x12\x16\x44\x65leteDatabaseMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/databases/*}\x12\xcf\x01\n\x0f\x43reateUserCreds\x12\x31.google.firestore.admin.v1.CreateUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"c\xda\x41\x1fparent,user_creds,user_creds_id\x82\xd3\xe4\x93\x02;\"-/v1/{parent=projects/*/databases/*}/userCreds:\nuser_creds\x12\xa2\x01\n\x0cGetUserCreds\x12..google.firestore.admin.v1.GetUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/databases/*/userCreds/*}\x12\xb2\x01\n\rListUserCreds\x12/.google.firestore.admin.v1.ListUserCredsRequest\x1a\x30.google.firestore.admin.v1.ListUserCredsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/databases/*}/userCreds\x12\xb2\x01\n\x0f\x45nableUserCreds\x12\x31.google.firestore.admin.v1.EnableUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/databases/*/userCreds/*}:enable:\x01*\x12\xb5\x01\n\x10\x44isableUserCreds\x12\x32.google.firestore.admin.v1.DisableUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/databases/*/userCreds/*}:disable:\x01*\x12\xbd\x01\n\x11ResetUserPassword\x12\x33.google.firestore.admin.v1.ResetUserPasswordRequest\x1a$.google.firestore.admin.v1.UserCreds\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\";/v1/{name=projects/*/databases/*/userCreds/*}:resetPassword:\x01*\x12\x9a\x01\n\x0f\x44\x65leteUserCreds\x12\x31.google.firestore.admin.v1.DeleteUserCredsRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/databases/*/userCreds/*}\x12\x97\x01\n\tGetBackup\x12+.google.firestore.admin.v1.GetBackupRequest\x1a!.google.firestore.admin.v1.Backup\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/backups/*}\x12\xaa\x01\n\x0bListBackups\x12-.google.firestore.admin.v1.ListBackupsRequest\x1a..google.firestore.admin.v1.ListBackupsResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/backups\x12\x92\x01\n\x0c\x44\x65leteBackup\x12..google.firestore.admin.v1.DeleteBackupRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/backups/*}\x12\xbf\x01\n\x0fRestoreDatabase\x12\x31.google.firestore.admin.v1.RestoreDatabaseRequest\x1a\x1d.google.longrunning.Operation\"Z\xca\x41#\n\x08\x44\x61tabase\x12\x17RestoreDatabaseMetadata\x82\xd3\xe4\x93\x02.\")/v1/{parent=projects/*}/databases:restore:\x01*\x12\xe0\x01\n\x14\x43reateBackupSchedule\x12\x36.google.firestore.admin.v1.CreateBackupScheduleRequest\x1a).google.firestore.admin.v1.BackupSchedule\"e\xda\x41\x16parent,backup_schedule\x82\xd3\xe4\x93\x02\x46\"3/v1/{parent=projects/*/databases/*}/backupSchedules:\x0f\x62\x61\x63kup_schedule\x12\xb7\x01\n\x11GetBackupSchedule\x12\x33.google.firestore.admin.v1.GetBackupScheduleRequest\x1a).google.firestore.admin.v1.BackupSchedule\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/databases/*/backupSchedules/*}\x12\xca\x01\n\x13ListBackupSchedules\x12\x35.google.firestore.admin.v1.ListBackupSchedulesRequest\x1a\x36.google.firestore.admin.v1.ListBackupSchedulesResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/databases/*}/backupSchedules\x12\xf5\x01\n\x14UpdateBackupSchedule\x12\x36.google.firestore.admin.v1.UpdateBackupScheduleRequest\x1a).google.firestore.admin.v1.BackupSchedule\"z\xda\x41\x1b\x62\x61\x63kup_schedule,update_mask\x82\xd3\xe4\x93\x02V2C/v1/{backup_schedule.name=projects/*/databases/*/backupSchedules/*}:\x0f\x62\x61\x63kup_schedule\x12\xaa\x01\n\x14\x44\x65leteBackupSchedule\x12\x36.google.firestore.admin.v1.DeleteBackupScheduleRequest\x1a\x16.google.protobuf.Empty\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/databases/*/backupSchedules/*}\x1av\xca\x41\x18\x66irestore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xa5\x03\n\x1d\x63om.google.firestore.admin.v1B\x13\x46irestoreAdminProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::V1\xea\x41L\n!firestore.googleapis.com/Location\x12\'projects/{project}/locations/{location}\xea\x41q\n(firestore.googleapis.com/CollectionGroup\x12\x45projects/{project}/databases/{database}/collectionGroups/{collection}b\x06proto3"
26
+ descriptor_data = "\n/google/firestore/admin/v1/firestore_admin.proto\x12\x19google.firestore.admin.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a&google/firestore/admin/v1/backup.proto\x1a(google/firestore/admin/v1/database.proto\x1a%google/firestore/admin/v1/field.proto\x1a%google/firestore/admin/v1/index.proto\x1a)google/firestore/admin/v1/operation.proto\x1a(google/firestore/admin/v1/schedule.proto\x1a(google/firestore/admin/v1/snapshot.proto\x1a*google/firestore/admin/v1/user_creds.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"g\n\x14ListDatabasesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"\xa8\x01\n\x15\x43reateDatabaseRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12:\n\x08\x64\x61tabase\x18\x02 \x01(\x0b\x32#.google.firestore.admin.v1.DatabaseB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x18\n\x16\x43reateDatabaseMetadata\"d\n\x15ListDatabasesResponse\x12\x36\n\tdatabases\x18\x01 \x03(\x0b\x32#.google.firestore.admin.v1.Database\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"M\n\x12GetDatabaseRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\"\x84\x01\n\x15UpdateDatabaseRequest\x12:\n\x08\x64\x61tabase\x18\x01 \x01(\x0b\x32#.google.firestore.admin.v1.DatabaseB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x18\n\x16UpdateDatabaseMetadata\"^\n\x15\x44\x65leteDatabaseRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\x18\n\x16\x44\x65leteDatabaseMetadata\"\xaf\x01\n\x16\x43reateUserCredsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"firestore.googleapis.com/UserCreds\x12=\n\nuser_creds\x18\x02 \x01(\x0b\x32$.google.firestore.admin.v1.UserCredsB\x03\xe0\x41\x02\x12\x1a\n\ruser_creds_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"O\n\x13GetUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"R\n\x14ListUserCredsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"firestore.googleapis.com/UserCreds\"Q\n\x15ListUserCredsResponse\x12\x38\n\nuser_creds\x18\x01 \x03(\x0b\x32$.google.firestore.admin.v1.UserCreds\"R\n\x16\x45nableUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"S\n\x17\x44isableUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"T\n\x18ResetUserPasswordRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"R\n\x16\x44\x65leteUserCredsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"firestore.googleapis.com/UserCreds\"\xa1\x01\n\x1b\x43reateBackupScheduleRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12G\n\x0f\x62\x61\x63kup_schedule\x18\x02 \x01(\x0b\x32).google.firestore.admin.v1.BackupScheduleB\x03\xe0\x41\x02\"Y\n\x18GetBackupScheduleRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'firestore.googleapis.com/BackupSchedule\"\x97\x01\n\x1bUpdateBackupScheduleRequest\x12G\n\x0f\x62\x61\x63kup_schedule\x18\x01 \x01(\x0b\x32).google.firestore.admin.v1.BackupScheduleB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"W\n\x1aListBackupSchedulesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\"b\n\x1bListBackupSchedulesResponse\x12\x43\n\x10\x62\x61\x63kup_schedules\x18\x01 \x03(\x0b\x32).google.firestore.admin.v1.BackupSchedule\"\\\n\x1b\x44\x65leteBackupScheduleRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'firestore.googleapis.com/BackupSchedule\"\x8c\x01\n\x12\x43reateIndexRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x34\n\x05index\x18\x02 \x01(\x0b\x32 .google.firestore.admin.v1.IndexB\x03\xe0\x41\x02\"\x8d\x01\n\x12ListIndexesRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"a\n\x13ListIndexesResponse\x12\x31\n\x07indexes\x18\x01 \x03(\x0b\x32 .google.firestore.admin.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"G\n\x0fGetIndexRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Index\"J\n\x12\x44\x65leteIndexRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Index\"{\n\x12UpdateFieldRequest\x12\x34\n\x05\x66ield\x18\x01 \x01(\x0b\x32 .google.firestore.admin.v1.FieldB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"G\n\x0fGetFieldRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x66irestore.googleapis.com/Field\"\x8c\x01\n\x11ListFieldsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(firestore.googleapis.com/CollectionGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"_\n\x12ListFieldsResponse\x12\x30\n\x06\x66ields\x18\x01 \x03(\x0b\x32 .google.firestore.admin.v1.Field\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xce\x01\n\x16\x45xportDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x16\n\x0e\x63ollection_ids\x18\x02 \x03(\t\x12\x19\n\x11output_uri_prefix\x18\x03 \x01(\t\x12\x15\n\rnamespace_ids\x18\x04 \x03(\t\x12\x31\n\rsnapshot_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9a\x01\n\x16ImportDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x16\n\x0e\x63ollection_ids\x18\x02 \x03(\t\x12\x18\n\x10input_uri_prefix\x18\x03 \x01(\t\x12\x15\n\rnamespace_ids\x18\x04 \x03(\t\"\x8e\x01\n\x1a\x42ulkDeleteDocumentsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Database\x12\x1b\n\x0e\x63ollection_ids\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rnamespace_ids\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x1d\n\x1b\x42ulkDeleteDocumentsResponse\"I\n\x10GetBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66irestore.googleapis.com/Backup\"_\n\x12ListBackupsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!firestore.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"^\n\x13ListBackupsResponse\x12\x32\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32!.google.firestore.admin.v1.Backup\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"L\n\x13\x44\x65leteBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66irestore.googleapis.com/Backup\"\xfc\x02\n\x16RestoreDatabaseRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12\x18\n\x0b\x64\x61tabase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x66irestore.googleapis.com/Backup\x12T\n\x11\x65ncryption_config\x18\t \x01(\x0b\x32\x34.google.firestore.admin.v1.Database.EncryptionConfigB\x03\xe0\x41\x01\x12Q\n\x04tags\x18\n \x03(\x0b\x32;.google.firestore.admin.v1.RestoreDatabaseRequest.TagsEntryB\x06\xe0\x41\x05\xe0\x41\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x84\x03\n\x14\x43loneDatabaseRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!firestore.googleapis.com/Database\x12\x18\n\x0b\x64\x61tabase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x43\n\rpitr_snapshot\x18\x06 \x01(\x0b\x32\'.google.firestore.admin.v1.PitrSnapshotB\x03\xe0\x41\x02\x12T\n\x11\x65ncryption_config\x18\x04 \x01(\x0b\x32\x34.google.firestore.admin.v1.Database.EncryptionConfigB\x03\xe0\x41\x01\x12O\n\x04tags\x18\x05 \x03(\x0b\x32\x39.google.firestore.admin.v1.CloneDatabaseRequest.TagsEntryB\x06\xe0\x41\x05\xe0\x41\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xfb\x31\n\x0e\x46irestoreAdmin\x12\xdb\x01\n\x0b\x43reateIndex\x12-.google.firestore.admin.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"~\xca\x41\x1f\n\x05Index\x12\x16IndexOperationMetadata\xda\x41\x0cparent,index\x82\xd3\xe4\x93\x02G\">/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes:\x05index\x12\xbd\x01\n\x0bListIndexes\x12-.google.firestore.admin.v1.ListIndexesRequest\x1a..google.firestore.admin.v1.ListIndexesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes\x12\xa7\x01\n\x08GetIndex\x12*.google.firestore.admin.v1.GetIndexRequest\x1a .google.firestore.admin.v1.Index\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}\x12\xa3\x01\n\x0b\x44\x65leteIndex\x12-.google.firestore.admin.v1.DeleteIndexRequest\x1a\x16.google.protobuf.Empty\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}\x12\xa6\x01\n\x08GetField\x12*.google.firestore.admin.v1.GetFieldRequest\x1a .google.firestore.admin.v1.Field\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/databases/*/collectionGroups/*/fields/*}\x12\xd9\x01\n\x0bUpdateField\x12-.google.firestore.admin.v1.UpdateFieldRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41\x1f\n\x05\x46ield\x12\x16\x46ieldOperationMetadata\xda\x41\x05\x66ield\x82\xd3\xe4\x93\x02L2C/v1/{field.name=projects/*/databases/*/collectionGroups/*/fields/*}:\x05\x66ield\x12\xb9\x01\n\nListFields\x12,.google.firestore.admin.v1.ListFieldsRequest\x1a-.google.firestore.admin.v1.ListFieldsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/databases/*/collectionGroups/*}/fields\x12\xdd\x01\n\x0f\x45xportDocuments\x12\x31.google.firestore.admin.v1.ExportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\x32\n\x17\x45xportDocumentsResponse\x12\x17\x45xportDocumentsMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/databases/*}:exportDocuments:\x01*\x12\xdb\x01\n\x0fImportDocuments\x12\x31.google.firestore.admin.v1.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"v\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17ImportDocumentsMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\"1/v1/{name=projects/*/databases/*}:importDocuments:\x01*\x12\xf2\x01\n\x13\x42ulkDeleteDocuments\x12\x35.google.firestore.admin.v1.BulkDeleteDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41:\n\x1b\x42ulkDeleteDocumentsResponse\x12\x1b\x42ulkDeleteDocumentsMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/databases/*}:bulkDeleteDocuments:\x01*\x12\xd9\x01\n\x0e\x43reateDatabase\x12\x30.google.firestore.admin.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"v\xca\x41\"\n\x08\x44\x61tabase\x12\x16\x43reateDatabaseMetadata\xda\x41\x1bparent,database,database_id\x82\xd3\xe4\x93\x02-\"!/v1/{parent=projects/*}/databases:\x08\x64\x61tabase\x12\x93\x01\n\x0bGetDatabase\x12-.google.firestore.admin.v1.GetDatabaseRequest\x1a#.google.firestore.admin.v1.Database\"0\xda\x41\x04name\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/databases/*}\x12\xa6\x01\n\rListDatabases\x12/.google.firestore.admin.v1.ListDatabasesRequest\x1a\x30.google.firestore.admin.v1.ListDatabasesResponse\"2\xda\x41\x06parent\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/databases\x12\xdb\x01\n\x0eUpdateDatabase\x12\x30.google.firestore.admin.v1.UpdateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\"\n\x08\x44\x61tabase\x12\x16UpdateDatabaseMetadata\xda\x41\x14\x64\x61tabase,update_mask\x82\xd3\xe4\x93\x02\x36\x32*/v1/{database.name=projects/*/databases/*}:\x08\x64\x61tabase\x12\xb8\x01\n\x0e\x44\x65leteDatabase\x12\x30.google.firestore.admin.v1.DeleteDatabaseRequest\x1a\x1d.google.longrunning.Operation\"U\xca\x41\"\n\x08\x44\x61tabase\x12\x16\x44\x65leteDatabaseMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/databases/*}\x12\xcf\x01\n\x0f\x43reateUserCreds\x12\x31.google.firestore.admin.v1.CreateUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"c\xda\x41\x1fparent,user_creds,user_creds_id\x82\xd3\xe4\x93\x02;\"-/v1/{parent=projects/*/databases/*}/userCreds:\nuser_creds\x12\xa2\x01\n\x0cGetUserCreds\x12..google.firestore.admin.v1.GetUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/databases/*/userCreds/*}\x12\xb2\x01\n\rListUserCreds\x12/.google.firestore.admin.v1.ListUserCredsRequest\x1a\x30.google.firestore.admin.v1.ListUserCredsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/databases/*}/userCreds\x12\xb2\x01\n\x0f\x45nableUserCreds\x12\x31.google.firestore.admin.v1.EnableUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/databases/*/userCreds/*}:enable:\x01*\x12\xb5\x01\n\x10\x44isableUserCreds\x12\x32.google.firestore.admin.v1.DisableUserCredsRequest\x1a$.google.firestore.admin.v1.UserCreds\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/databases/*/userCreds/*}:disable:\x01*\x12\xbd\x01\n\x11ResetUserPassword\x12\x33.google.firestore.admin.v1.ResetUserPasswordRequest\x1a$.google.firestore.admin.v1.UserCreds\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\";/v1/{name=projects/*/databases/*/userCreds/*}:resetPassword:\x01*\x12\x9a\x01\n\x0f\x44\x65leteUserCreds\x12\x31.google.firestore.admin.v1.DeleteUserCredsRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/databases/*/userCreds/*}\x12\x97\x01\n\tGetBackup\x12+.google.firestore.admin.v1.GetBackupRequest\x1a!.google.firestore.admin.v1.Backup\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/backups/*}\x12\xaa\x01\n\x0bListBackups\x12-.google.firestore.admin.v1.ListBackupsRequest\x1a..google.firestore.admin.v1.ListBackupsResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/backups\x12\x92\x01\n\x0c\x44\x65leteBackup\x12..google.firestore.admin.v1.DeleteBackupRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/backups/*}\x12\xbf\x01\n\x0fRestoreDatabase\x12\x31.google.firestore.admin.v1.RestoreDatabaseRequest\x1a\x1d.google.longrunning.Operation\"Z\xca\x41#\n\x08\x44\x61tabase\x12\x17RestoreDatabaseMetadata\x82\xd3\xe4\x93\x02.\")/v1/{parent=projects/*}/databases:restore:\x01*\x12\xe0\x01\n\x14\x43reateBackupSchedule\x12\x36.google.firestore.admin.v1.CreateBackupScheduleRequest\x1a).google.firestore.admin.v1.BackupSchedule\"e\xda\x41\x16parent,backup_schedule\x82\xd3\xe4\x93\x02\x46\"3/v1/{parent=projects/*/databases/*}/backupSchedules:\x0f\x62\x61\x63kup_schedule\x12\xb7\x01\n\x11GetBackupSchedule\x12\x33.google.firestore.admin.v1.GetBackupScheduleRequest\x1a).google.firestore.admin.v1.BackupSchedule\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/databases/*/backupSchedules/*}\x12\xca\x01\n\x13ListBackupSchedules\x12\x35.google.firestore.admin.v1.ListBackupSchedulesRequest\x1a\x36.google.firestore.admin.v1.ListBackupSchedulesResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/databases/*}/backupSchedules\x12\xf5\x01\n\x14UpdateBackupSchedule\x12\x36.google.firestore.admin.v1.UpdateBackupScheduleRequest\x1a).google.firestore.admin.v1.BackupSchedule\"z\xda\x41\x1b\x62\x61\x63kup_schedule,update_mask\x82\xd3\xe4\x93\x02V2C/v1/{backup_schedule.name=projects/*/databases/*/backupSchedules/*}:\x0f\x62\x61\x63kup_schedule\x12\xaa\x01\n\x14\x44\x65leteBackupSchedule\x12\x36.google.firestore.admin.v1.DeleteBackupScheduleRequest\x1a\x16.google.protobuf.Empty\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/databases/*/backupSchedules/*}\x12\xb7\x02\n\rCloneDatabase\x12/.google.firestore.admin.v1.CloneDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\xca\x41!\n\x08\x44\x61tabase\x12\x15\x43loneDatabaseMetadata\x82\xd3\xe4\x93\x02,\"\'/v1/{parent=projects/*}/databases:clone:\x01*\x8a\xd3\xe4\x93\x02y\x12\x34\n\x16pitr_snapshot.database\x12\x1aprojects/{project_id=*}/**\x12\x41\n\x16pitr_snapshot.database\x12\'projects/*/databases/{database_id=*}/**\x1av\xca\x41\x18\x66irestore.googleapis.com\xd2\x41Xhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xa5\x03\n\x1d\x63om.google.firestore.admin.v1B\x13\x46irestoreAdminProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::V1\xea\x41L\n!firestore.googleapis.com/Location\x12\'projects/{project}/locations/{location}\xea\x41q\n(firestore.googleapis.com/CollectionGroup\x12\x45projects/{project}/databases/{database}/collectionGroups/{collection}b\x06proto3"
25
27
 
26
28
  pool = Google::Protobuf::DescriptorPool.generated_pool
27
29
 
@@ -44,6 +46,7 @@ rescue TypeError
44
46
  ["google.firestore.admin.v1.Field", "google/firestore/admin/v1/field.proto"],
45
47
  ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
46
48
  ["google.firestore.admin.v1.Backup", "google/firestore/admin/v1/backup.proto"],
49
+ ["google.firestore.admin.v1.PitrSnapshot", "google/firestore/admin/v1/snapshot.proto"],
47
50
  ]
48
51
  imports.each do |type_name, expected_filename|
49
52
  import_file = pool.lookup(type_name).file_descriptor
@@ -101,6 +104,7 @@ module Google
101
104
  ListBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListBackupsResponse").msgclass
102
105
  DeleteBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.DeleteBackupRequest").msgclass
103
106
  RestoreDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.RestoreDatabaseRequest").msgclass
107
+ CloneDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.CloneDatabaseRequest").msgclass
104
108
  end
105
109
  end
106
110
  end
@@ -191,6 +191,24 @@ module Google
191
191
  rpc :UpdateBackupSchedule, ::Google::Cloud::Firestore::Admin::V1::UpdateBackupScheduleRequest, ::Google::Cloud::Firestore::Admin::V1::BackupSchedule
192
192
  # Deletes a backup schedule.
193
193
  rpc :DeleteBackupSchedule, ::Google::Cloud::Firestore::Admin::V1::DeleteBackupScheduleRequest, ::Google::Protobuf::Empty
194
+ # Creates a new database by cloning an existing one.
195
+ #
196
+ # The new database must be in the same cloud region or multi-region location
197
+ # as the existing database. This behaves similar to
198
+ # [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
199
+ # except instead of creating a new empty database, a new database is created
200
+ # with the database type, index configuration, and documents from an existing
201
+ # database.
202
+ #
203
+ # The [long-running operation][google.longrunning.Operation] can be used to
204
+ # track the progress of the clone, with the Operation's
205
+ # [metadata][google.longrunning.Operation.metadata] field type being the
206
+ # [CloneDatabaseMetadata][google.firestore.admin.v1.CloneDatabaseMetadata].
207
+ # The [response][google.longrunning.Operation.response] type is the
208
+ # [Database][google.firestore.admin.v1.Database] if the clone was
209
+ # successful. The new database is not readable or writeable until the LRO has
210
+ # completed.
211
+ rpc :CloneDatabase, ::Google::Cloud::Firestore::Admin::V1::CloneDatabaseRequest, ::Google::Longrunning::Operation
194
212
  end
195
213
 
196
214
  Stub = Service.rpc_stub_class