google-cloud-firestore 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/LOGGING.md +1 -1
- data/lib/google-cloud-firestore.rb +1 -0
- data/lib/google/cloud/firestore.rb +9 -4
- data/lib/google/cloud/firestore/admin.rb +144 -0
- data/lib/google/cloud/firestore/admin/v1.rb +151 -0
- data/lib/google/cloud/firestore/admin/v1/credentials.rb +44 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/field.rb +88 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/firestore_admin.rb +161 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/index.rb +139 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/longrunning/operations.rb +51 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/any.rb +131 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/empty.rb +29 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/field_mask.rb +222 -0
- data/lib/google/cloud/firestore/admin/v1/doc/google/rpc/status.rb +87 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin_client.rb +761 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin_client_config.json +71 -0
- data/lib/google/cloud/firestore/v1.rb +2 -2
- data/lib/google/cloud/firestore/v1beta1.rb +2 -2
- data/lib/google/cloud/firestore/version.rb +1 -1
- data/lib/google/firestore/admin/v1/field_pb.rb +31 -0
- data/lib/google/firestore/admin/v1/firestore_admin_pb.rb +81 -0
- data/lib/google/firestore/admin/v1/firestore_admin_services_pb.rb +94 -0
- data/lib/google/firestore/admin/v1/index_pb.rb +56 -0
- data/lib/google/firestore/admin/v1/location_pb.rb +22 -0
- data/lib/google/firestore/admin/v1/operation_pb.rb +90 -0
- metadata +22 -3
@@ -0,0 +1,71 @@
|
|
1
|
+
{
|
2
|
+
"interfaces": {
|
3
|
+
"google.firestore.admin.v1.FirestoreAdmin": {
|
4
|
+
"retry_codes": {
|
5
|
+
"idempotent": [
|
6
|
+
"DEADLINE_EXCEEDED",
|
7
|
+
"UNAVAILABLE"
|
8
|
+
],
|
9
|
+
"non_idempotent": []
|
10
|
+
},
|
11
|
+
"retry_params": {
|
12
|
+
"default": {
|
13
|
+
"initial_retry_delay_millis": 100,
|
14
|
+
"retry_delay_multiplier": 1.3,
|
15
|
+
"max_retry_delay_millis": 60000,
|
16
|
+
"initial_rpc_timeout_millis": 20000,
|
17
|
+
"rpc_timeout_multiplier": 1.0,
|
18
|
+
"max_rpc_timeout_millis": 20000,
|
19
|
+
"total_timeout_millis": 600000
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"methods": {
|
23
|
+
"CreateIndex": {
|
24
|
+
"timeout_millis": 60000,
|
25
|
+
"retry_codes_name": "non_idempotent",
|
26
|
+
"retry_params_name": "default"
|
27
|
+
},
|
28
|
+
"ListIndexes": {
|
29
|
+
"timeout_millis": 60000,
|
30
|
+
"retry_codes_name": "idempotent",
|
31
|
+
"retry_params_name": "default"
|
32
|
+
},
|
33
|
+
"GetIndex": {
|
34
|
+
"timeout_millis": 60000,
|
35
|
+
"retry_codes_name": "idempotent",
|
36
|
+
"retry_params_name": "default"
|
37
|
+
},
|
38
|
+
"DeleteIndex": {
|
39
|
+
"timeout_millis": 60000,
|
40
|
+
"retry_codes_name": "idempotent",
|
41
|
+
"retry_params_name": "default"
|
42
|
+
},
|
43
|
+
"ImportDocuments": {
|
44
|
+
"timeout_millis": 60000,
|
45
|
+
"retry_codes_name": "non_idempotent",
|
46
|
+
"retry_params_name": "default"
|
47
|
+
},
|
48
|
+
"ExportDocuments": {
|
49
|
+
"timeout_millis": 60000,
|
50
|
+
"retry_codes_name": "non_idempotent",
|
51
|
+
"retry_params_name": "default"
|
52
|
+
},
|
53
|
+
"GetField": {
|
54
|
+
"timeout_millis": 60000,
|
55
|
+
"retry_codes_name": "idempotent",
|
56
|
+
"retry_params_name": "default"
|
57
|
+
},
|
58
|
+
"ListFields": {
|
59
|
+
"timeout_millis": 60000,
|
60
|
+
"retry_codes_name": "idempotent",
|
61
|
+
"retry_params_name": "default"
|
62
|
+
},
|
63
|
+
"UpdateField": {
|
64
|
+
"timeout_millis": 60000,
|
65
|
+
"retry_codes_name": "non_idempotent",
|
66
|
+
"retry_params_name": "default"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
35
35
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
36
36
|
# 3. [Enable the Google Cloud Firestore API.](https://console.cloud.google.com/apis/library/firestore.googleapis.com)
|
37
|
-
# 4. [Setup Authentication.](https://googleapis.
|
37
|
+
# 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-firestore/latest/file.AUTHENTICATION.html)
|
38
38
|
#
|
39
39
|
# ### Installation
|
40
40
|
# ```
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
#
|
54
54
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
55
55
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
56
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.
|
56
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
57
57
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
58
58
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
59
59
|
#
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
35
35
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
36
36
|
# 3. [Enable the Google Cloud Firestore API.](https://console.cloud.google.com/apis/library/firestore.googleapis.com)
|
37
|
-
# 4. [Setup Authentication.](https://googleapis.
|
37
|
+
# 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-firestore/latest/file.AUTHENTICATION.html)
|
38
38
|
#
|
39
39
|
# ### Installation
|
40
40
|
# ```
|
@@ -53,7 +53,7 @@ module Google
|
|
53
53
|
#
|
54
54
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
55
55
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
56
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.
|
56
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
57
57
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
58
58
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
59
59
|
#
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/firestore/admin/v1/field.proto
|
3
|
+
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/firestore/admin/v1/index_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_message "google.firestore.admin.v1.Field" do
|
11
|
+
optional :name, :string, 1
|
12
|
+
optional :index_config, :message, 2, "google.firestore.admin.v1.Field.IndexConfig"
|
13
|
+
end
|
14
|
+
add_message "google.firestore.admin.v1.Field.IndexConfig" do
|
15
|
+
repeated :indexes, :message, 1, "google.firestore.admin.v1.Index"
|
16
|
+
optional :uses_ancestor_config, :bool, 2
|
17
|
+
optional :ancestor_field, :string, 3
|
18
|
+
optional :reverting, :bool, 4
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Firestore
|
24
|
+
module Admin
|
25
|
+
module V1
|
26
|
+
Field = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Field").msgclass
|
27
|
+
Field::IndexConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Field.IndexConfig").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/firestore/admin/v1/firestore_admin.proto
|
3
|
+
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/firestore/admin/v1/field_pb'
|
9
|
+
require 'google/firestore/admin/v1/index_pb'
|
10
|
+
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_message "google.firestore.admin.v1.CreateIndexRequest" do
|
15
|
+
optional :parent, :string, 1
|
16
|
+
optional :index, :message, 2, "google.firestore.admin.v1.Index"
|
17
|
+
end
|
18
|
+
add_message "google.firestore.admin.v1.ListIndexesRequest" do
|
19
|
+
optional :parent, :string, 1
|
20
|
+
optional :filter, :string, 2
|
21
|
+
optional :page_size, :int32, 3
|
22
|
+
optional :page_token, :string, 4
|
23
|
+
end
|
24
|
+
add_message "google.firestore.admin.v1.ListIndexesResponse" do
|
25
|
+
repeated :indexes, :message, 1, "google.firestore.admin.v1.Index"
|
26
|
+
optional :next_page_token, :string, 2
|
27
|
+
end
|
28
|
+
add_message "google.firestore.admin.v1.GetIndexRequest" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
end
|
31
|
+
add_message "google.firestore.admin.v1.DeleteIndexRequest" do
|
32
|
+
optional :name, :string, 1
|
33
|
+
end
|
34
|
+
add_message "google.firestore.admin.v1.UpdateFieldRequest" do
|
35
|
+
optional :field, :message, 1, "google.firestore.admin.v1.Field"
|
36
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
37
|
+
end
|
38
|
+
add_message "google.firestore.admin.v1.GetFieldRequest" do
|
39
|
+
optional :name, :string, 1
|
40
|
+
end
|
41
|
+
add_message "google.firestore.admin.v1.ListFieldsRequest" do
|
42
|
+
optional :parent, :string, 1
|
43
|
+
optional :filter, :string, 2
|
44
|
+
optional :page_size, :int32, 3
|
45
|
+
optional :page_token, :string, 4
|
46
|
+
end
|
47
|
+
add_message "google.firestore.admin.v1.ListFieldsResponse" do
|
48
|
+
repeated :fields, :message, 1, "google.firestore.admin.v1.Field"
|
49
|
+
optional :next_page_token, :string, 2
|
50
|
+
end
|
51
|
+
add_message "google.firestore.admin.v1.ExportDocumentsRequest" do
|
52
|
+
optional :name, :string, 1
|
53
|
+
repeated :collection_ids, :string, 2
|
54
|
+
optional :output_uri_prefix, :string, 3
|
55
|
+
end
|
56
|
+
add_message "google.firestore.admin.v1.ImportDocumentsRequest" do
|
57
|
+
optional :name, :string, 1
|
58
|
+
repeated :collection_ids, :string, 2
|
59
|
+
optional :input_uri_prefix, :string, 3
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
module Google
|
64
|
+
module Firestore
|
65
|
+
module Admin
|
66
|
+
module V1
|
67
|
+
CreateIndexRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.CreateIndexRequest").msgclass
|
68
|
+
ListIndexesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListIndexesRequest").msgclass
|
69
|
+
ListIndexesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListIndexesResponse").msgclass
|
70
|
+
GetIndexRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.GetIndexRequest").msgclass
|
71
|
+
DeleteIndexRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.DeleteIndexRequest").msgclass
|
72
|
+
UpdateFieldRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.UpdateFieldRequest").msgclass
|
73
|
+
GetFieldRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.GetFieldRequest").msgclass
|
74
|
+
ListFieldsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListFieldsRequest").msgclass
|
75
|
+
ListFieldsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListFieldsResponse").msgclass
|
76
|
+
ExportDocumentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ExportDocumentsRequest").msgclass
|
77
|
+
ImportDocumentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ImportDocumentsRequest").msgclass
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/firestore/admin/v1/firestore_admin.proto for package 'google.firestore.admin.v1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2019 Google LLC.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
#
|
19
|
+
|
20
|
+
|
21
|
+
require 'grpc'
|
22
|
+
require 'google/firestore/admin/v1/firestore_admin_pb'
|
23
|
+
|
24
|
+
module Google
|
25
|
+
module Firestore
|
26
|
+
module Admin
|
27
|
+
module V1
|
28
|
+
module FirestoreAdmin
|
29
|
+
# Operations are created by service `FirestoreAdmin`, but are accessed via
|
30
|
+
# service `google.longrunning.Operations`.
|
31
|
+
class Service
|
32
|
+
|
33
|
+
include GRPC::GenericService
|
34
|
+
|
35
|
+
self.marshal_class_method = :encode
|
36
|
+
self.unmarshal_class_method = :decode
|
37
|
+
self.service_name = 'google.firestore.admin.v1.FirestoreAdmin'
|
38
|
+
|
39
|
+
# Creates a composite index. This returns a [google.longrunning.Operation][google.longrunning.Operation]
|
40
|
+
# which may be used to track the status of the creation. The metadata for
|
41
|
+
# the operation will be the type [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
|
42
|
+
rpc :CreateIndex, CreateIndexRequest, Google::Longrunning::Operation
|
43
|
+
# Lists composite indexes.
|
44
|
+
rpc :ListIndexes, ListIndexesRequest, ListIndexesResponse
|
45
|
+
# Gets a composite index.
|
46
|
+
rpc :GetIndex, GetIndexRequest, Index
|
47
|
+
# Deletes a composite index.
|
48
|
+
rpc :DeleteIndex, DeleteIndexRequest, Google::Protobuf::Empty
|
49
|
+
# Gets the metadata and configuration for a Field.
|
50
|
+
rpc :GetField, GetFieldRequest, Field
|
51
|
+
# Updates a field configuration. Currently, field updates apply only to
|
52
|
+
# single field index configuration. However, calls to
|
53
|
+
# [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField] should provide a field mask to avoid
|
54
|
+
# changing any configuration that the caller isn't aware of. The field mask
|
55
|
+
# should be specified as: `{ paths: "index_config" }`.
|
56
|
+
#
|
57
|
+
# This call returns a [google.longrunning.Operation][google.longrunning.Operation] which may be used to
|
58
|
+
# track the status of the field update. The metadata for
|
59
|
+
# the operation will be the type [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
|
60
|
+
#
|
61
|
+
# To configure the default field settings for the database, use
|
62
|
+
# the special `Field` with resource name:
|
63
|
+
# `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
|
64
|
+
rpc :UpdateField, UpdateFieldRequest, Google::Longrunning::Operation
|
65
|
+
# Lists the field configuration and metadata for this database.
|
66
|
+
#
|
67
|
+
# Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] only supports listing fields
|
68
|
+
# that have been explicitly overridden. To issue this query, call
|
69
|
+
# [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the filter set to
|
70
|
+
# `indexConfig.usesAncestorConfig:false`.
|
71
|
+
rpc :ListFields, ListFieldsRequest, ListFieldsResponse
|
72
|
+
# Exports a copy of all or a subset of documents from Google Cloud Firestore
|
73
|
+
# to another storage system, such as Google Cloud Storage. Recent updates to
|
74
|
+
# documents may not be reflected in the export. The export occurs in the
|
75
|
+
# background and its progress can be monitored and managed via the
|
76
|
+
# Operation resource that is created. The output of an export may only be
|
77
|
+
# used once the associated operation is done. If an export operation is
|
78
|
+
# cancelled before completion it may leave partial data behind in Google
|
79
|
+
# Cloud Storage.
|
80
|
+
rpc :ExportDocuments, ExportDocumentsRequest, Google::Longrunning::Operation
|
81
|
+
# Imports documents into Google Cloud Firestore. Existing documents with the
|
82
|
+
# same name are overwritten. The import occurs in the background and its
|
83
|
+
# progress can be monitored and managed via the Operation resource that is
|
84
|
+
# created. If an ImportDocuments operation is cancelled, it is possible
|
85
|
+
# that a subset of the data has already been imported to Cloud Firestore.
|
86
|
+
rpc :ImportDocuments, ImportDocumentsRequest, Google::Longrunning::Operation
|
87
|
+
end
|
88
|
+
|
89
|
+
Stub = Service.rpc_stub_class
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/firestore/admin/v1/index.proto
|
3
|
+
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_message "google.firestore.admin.v1.Index" do
|
10
|
+
optional :name, :string, 1
|
11
|
+
optional :query_scope, :enum, 2, "google.firestore.admin.v1.Index.QueryScope"
|
12
|
+
repeated :fields, :message, 3, "google.firestore.admin.v1.Index.IndexField"
|
13
|
+
optional :state, :enum, 4, "google.firestore.admin.v1.Index.State"
|
14
|
+
end
|
15
|
+
add_message "google.firestore.admin.v1.Index.IndexField" do
|
16
|
+
optional :field_path, :string, 1
|
17
|
+
oneof :value_mode do
|
18
|
+
optional :order, :enum, 2, "google.firestore.admin.v1.Index.IndexField.Order"
|
19
|
+
optional :array_config, :enum, 3, "google.firestore.admin.v1.Index.IndexField.ArrayConfig"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
add_enum "google.firestore.admin.v1.Index.IndexField.Order" do
|
23
|
+
value :ORDER_UNSPECIFIED, 0
|
24
|
+
value :ASCENDING, 1
|
25
|
+
value :DESCENDING, 2
|
26
|
+
end
|
27
|
+
add_enum "google.firestore.admin.v1.Index.IndexField.ArrayConfig" do
|
28
|
+
value :ARRAY_CONFIG_UNSPECIFIED, 0
|
29
|
+
value :CONTAINS, 1
|
30
|
+
end
|
31
|
+
add_enum "google.firestore.admin.v1.Index.QueryScope" do
|
32
|
+
value :QUERY_SCOPE_UNSPECIFIED, 0
|
33
|
+
value :COLLECTION, 1
|
34
|
+
end
|
35
|
+
add_enum "google.firestore.admin.v1.Index.State" do
|
36
|
+
value :STATE_UNSPECIFIED, 0
|
37
|
+
value :CREATING, 1
|
38
|
+
value :READY, 2
|
39
|
+
value :NEEDS_REPAIR, 3
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
module Google
|
44
|
+
module Firestore
|
45
|
+
module Admin
|
46
|
+
module V1
|
47
|
+
Index = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index").msgclass
|
48
|
+
Index::IndexField = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField").msgclass
|
49
|
+
Index::IndexField::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.Order").enummodule
|
50
|
+
Index::IndexField::ArrayConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.ArrayConfig").enummodule
|
51
|
+
Index::QueryScope = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.QueryScope").enummodule
|
52
|
+
Index::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.State").enummodule
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/firestore/admin/v1/location.proto
|
3
|
+
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/type/latlng_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_message "google.firestore.admin.v1.LocationMetadata" do
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module Google
|
15
|
+
module Firestore
|
16
|
+
module Admin
|
17
|
+
module V1
|
18
|
+
LocationMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.LocationMetadata").msgclass
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/firestore/admin/v1/operation.proto
|
3
|
+
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/firestore/admin/v1/index_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_message "google.firestore.admin.v1.IndexOperationMetadata" do
|
12
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
13
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
14
|
+
optional :index, :string, 3
|
15
|
+
optional :state, :enum, 4, "google.firestore.admin.v1.OperationState"
|
16
|
+
optional :progress_documents, :message, 5, "google.firestore.admin.v1.Progress"
|
17
|
+
optional :progress_bytes, :message, 6, "google.firestore.admin.v1.Progress"
|
18
|
+
end
|
19
|
+
add_message "google.firestore.admin.v1.FieldOperationMetadata" do
|
20
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
21
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
22
|
+
optional :field, :string, 3
|
23
|
+
repeated :index_config_deltas, :message, 4, "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta"
|
24
|
+
optional :state, :enum, 5, "google.firestore.admin.v1.OperationState"
|
25
|
+
optional :progress_documents, :message, 6, "google.firestore.admin.v1.Progress"
|
26
|
+
optional :progress_bytes, :message, 7, "google.firestore.admin.v1.Progress"
|
27
|
+
end
|
28
|
+
add_message "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta" do
|
29
|
+
optional :change_type, :enum, 1, "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType"
|
30
|
+
optional :index, :message, 2, "google.firestore.admin.v1.Index"
|
31
|
+
end
|
32
|
+
add_enum "google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType" do
|
33
|
+
value :CHANGE_TYPE_UNSPECIFIED, 0
|
34
|
+
value :ADD, 1
|
35
|
+
value :REMOVE, 2
|
36
|
+
end
|
37
|
+
add_message "google.firestore.admin.v1.ExportDocumentsMetadata" do
|
38
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
39
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
40
|
+
optional :operation_state, :enum, 3, "google.firestore.admin.v1.OperationState"
|
41
|
+
optional :progress_documents, :message, 4, "google.firestore.admin.v1.Progress"
|
42
|
+
optional :progress_bytes, :message, 5, "google.firestore.admin.v1.Progress"
|
43
|
+
repeated :collection_ids, :string, 6
|
44
|
+
optional :output_uri_prefix, :string, 7
|
45
|
+
end
|
46
|
+
add_message "google.firestore.admin.v1.ImportDocumentsMetadata" do
|
47
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
48
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
49
|
+
optional :operation_state, :enum, 3, "google.firestore.admin.v1.OperationState"
|
50
|
+
optional :progress_documents, :message, 4, "google.firestore.admin.v1.Progress"
|
51
|
+
optional :progress_bytes, :message, 5, "google.firestore.admin.v1.Progress"
|
52
|
+
repeated :collection_ids, :string, 6
|
53
|
+
optional :input_uri_prefix, :string, 7
|
54
|
+
end
|
55
|
+
add_message "google.firestore.admin.v1.ExportDocumentsResponse" do
|
56
|
+
optional :output_uri_prefix, :string, 1
|
57
|
+
end
|
58
|
+
add_message "google.firestore.admin.v1.Progress" do
|
59
|
+
optional :estimated_work, :int64, 1
|
60
|
+
optional :completed_work, :int64, 2
|
61
|
+
end
|
62
|
+
add_enum "google.firestore.admin.v1.OperationState" do
|
63
|
+
value :OPERATION_STATE_UNSPECIFIED, 0
|
64
|
+
value :INITIALIZING, 1
|
65
|
+
value :PROCESSING, 2
|
66
|
+
value :CANCELLING, 3
|
67
|
+
value :FINALIZING, 4
|
68
|
+
value :SUCCESSFUL, 5
|
69
|
+
value :FAILED, 6
|
70
|
+
value :CANCELLED, 7
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
module Google
|
75
|
+
module Firestore
|
76
|
+
module Admin
|
77
|
+
module V1
|
78
|
+
IndexOperationMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.IndexOperationMetadata").msgclass
|
79
|
+
FieldOperationMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.FieldOperationMetadata").msgclass
|
80
|
+
FieldOperationMetadata::IndexConfigDelta = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta").msgclass
|
81
|
+
FieldOperationMetadata::IndexConfigDelta::ChangeType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType").enummodule
|
82
|
+
ExportDocumentsMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ExportDocumentsMetadata").msgclass
|
83
|
+
ImportDocumentsMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ImportDocumentsMetadata").msgclass
|
84
|
+
ExportDocumentsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ExportDocumentsResponse").msgclass
|
85
|
+
Progress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Progress").msgclass
|
86
|
+
OperationState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.OperationState").enummodule
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|