google-cloud-firestore 1.4.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/CHANGELOG.md +47 -0
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google-cloud-firestore.rb +14 -21
- data/lib/google/cloud/firestore.rb +12 -23
- data/lib/google/cloud/firestore/client.rb +12 -14
- data/lib/google/cloud/firestore/collection_reference.rb +1 -0
- data/lib/google/cloud/firestore/collection_reference_list.rb +137 -0
- data/lib/google/cloud/firestore/convert.rb +39 -39
- data/lib/google/cloud/firestore/credentials.rb +2 -2
- data/lib/google/cloud/firestore/document_reference.rb +8 -8
- data/lib/google/cloud/firestore/document_reference/list.rb +2 -2
- data/lib/google/cloud/firestore/document_snapshot.rb +4 -4
- data/lib/google/cloud/firestore/query.rb +114 -22
- data/lib/google/cloud/firestore/service.rb +63 -104
- data/lib/google/cloud/firestore/transaction.rb +2 -2
- data/lib/google/cloud/firestore/version.rb +1 -1
- data/lib/google/cloud/firestore/watch/inventory.rb +2 -0
- data/lib/google/cloud/firestore/watch/listener.rb +9 -9
- data/lib/google/cloud/firestore/watch/order.rb +1 -1
- metadata +11 -109
- data/lib/google/cloud/firestore/admin.rb +0 -144
- data/lib/google/cloud/firestore/admin/v1.rb +0 -151
- data/lib/google/cloud/firestore/admin/v1/credentials.rb +0 -44
- data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/field.rb +0 -86
- data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/firestore_admin.rb +0 -161
- data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/index.rb +0 -142
- data/lib/google/cloud/firestore/admin/v1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/firestore/admin/v1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/firestore/admin/v1/firestore_admin_client.rb +0 -902
- data/lib/google/cloud/firestore/admin/v1/firestore_admin_client_config.json +0 -71
- data/lib/google/cloud/firestore/v1.rb +0 -152
- data/lib/google/cloud/firestore/v1/credentials.rb +0 -42
- data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/common.rb +0 -64
- data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/document.rb +0 -136
- data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/firestore.rb +0 -566
- data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/query.rb +0 -227
- data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/write.rb +0 -241
- data/lib/google/cloud/firestore/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/firestore/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/firestore/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/firestore/v1/doc/google/protobuf/wrappers.rb +0 -26
- data/lib/google/cloud/firestore/v1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/firestore/v1/firestore_client.rb +0 -1011
- data/lib/google/cloud/firestore/v1/firestore_client_config.json +0 -100
- data/lib/google/cloud/firestore/v1beta1.rb +0 -160
- data/lib/google/cloud/firestore/v1beta1/credentials.rb +0 -42
- data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/common.rb +0 -64
- data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb +0 -136
- data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb +0 -564
- data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/query.rb +0 -227
- data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb +0 -237
- data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/wrappers.rb +0 -26
- data/lib/google/cloud/firestore/v1beta1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/firestore/v1beta1/firestore_client.rb +0 -1019
- data/lib/google/cloud/firestore/v1beta1/firestore_client_config.json +0 -100
- data/lib/google/firestore/admin/v1/field_pb.rb +0 -32
- data/lib/google/firestore/admin/v1/firestore_admin_pb.rb +0 -84
- data/lib/google/firestore/admin/v1/firestore_admin_services_pb.rb +0 -94
- data/lib/google/firestore/admin/v1/index_pb.rb +0 -58
- data/lib/google/firestore/admin/v1/location_pb.rb +0 -22
- data/lib/google/firestore/admin/v1/operation_pb.rb +0 -90
- data/lib/google/firestore/v1/common_pb.rb +0 -45
- data/lib/google/firestore/v1/document_pb.rb +0 -50
- data/lib/google/firestore/v1/firestore_pb.rb +0 -222
- data/lib/google/firestore/v1/firestore_services_pb.rb +0 -80
- data/lib/google/firestore/v1/query_pb.rb +0 -107
- data/lib/google/firestore/v1/write_pb.rb +0 -80
- data/lib/google/firestore/v1beta1/common_pb.rb +0 -45
- data/lib/google/firestore/v1beta1/document_pb.rb +0 -50
- data/lib/google/firestore/v1beta1/firestore_pb.rb +0 -222
- data/lib/google/firestore/v1beta1/firestore_services_pb.rb +0 -89
- data/lib/google/firestore/v1beta1/query_pb.rb +0 -107
- data/lib/google/firestore/v1beta1/write_pb.rb +0 -79
@@ -1,100 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.firestore.v1beta1.Firestore": {
|
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
|
-
"streaming": {
|
22
|
-
"initial_retry_delay_millis": 100,
|
23
|
-
"retry_delay_multiplier": 1.3,
|
24
|
-
"max_retry_delay_millis": 60000,
|
25
|
-
"initial_rpc_timeout_millis": 300000,
|
26
|
-
"rpc_timeout_multiplier": 1.0,
|
27
|
-
"max_rpc_timeout_millis": 300000,
|
28
|
-
"total_timeout_millis": 600000
|
29
|
-
}
|
30
|
-
},
|
31
|
-
"methods": {
|
32
|
-
"DeleteDocument": {
|
33
|
-
"timeout_millis": 60000,
|
34
|
-
"retry_codes_name": "idempotent",
|
35
|
-
"retry_params_name": "default"
|
36
|
-
},
|
37
|
-
"BatchGetDocuments": {
|
38
|
-
"timeout_millis": 60000,
|
39
|
-
"retry_codes_name": "idempotent",
|
40
|
-
"retry_params_name": "streaming"
|
41
|
-
},
|
42
|
-
"BeginTransaction": {
|
43
|
-
"timeout_millis": 60000,
|
44
|
-
"retry_codes_name": "idempotent",
|
45
|
-
"retry_params_name": "default"
|
46
|
-
},
|
47
|
-
"Rollback": {
|
48
|
-
"timeout_millis": 60000,
|
49
|
-
"retry_codes_name": "idempotent",
|
50
|
-
"retry_params_name": "default"
|
51
|
-
},
|
52
|
-
"RunQuery": {
|
53
|
-
"timeout_millis": 60000,
|
54
|
-
"retry_codes_name": "idempotent",
|
55
|
-
"retry_params_name": "streaming"
|
56
|
-
},
|
57
|
-
"Write": {
|
58
|
-
"timeout_millis": 60000,
|
59
|
-
"retry_codes_name": "non_idempotent",
|
60
|
-
"retry_params_name": "streaming"
|
61
|
-
},
|
62
|
-
"Listen": {
|
63
|
-
"timeout_millis": 60000,
|
64
|
-
"retry_codes_name": "idempotent",
|
65
|
-
"retry_params_name": "streaming"
|
66
|
-
},
|
67
|
-
"ListCollectionIds": {
|
68
|
-
"timeout_millis": 60000,
|
69
|
-
"retry_codes_name": "idempotent",
|
70
|
-
"retry_params_name": "default"
|
71
|
-
},
|
72
|
-
"GetDocument": {
|
73
|
-
"timeout_millis": 60000,
|
74
|
-
"retry_codes_name": "idempotent",
|
75
|
-
"retry_params_name": "default"
|
76
|
-
},
|
77
|
-
"ListDocuments": {
|
78
|
-
"timeout_millis": 60000,
|
79
|
-
"retry_codes_name": "idempotent",
|
80
|
-
"retry_params_name": "default"
|
81
|
-
},
|
82
|
-
"CreateDocument": {
|
83
|
-
"timeout_millis": 60000,
|
84
|
-
"retry_codes_name": "non_idempotent",
|
85
|
-
"retry_params_name": "default"
|
86
|
-
},
|
87
|
-
"UpdateDocument": {
|
88
|
-
"timeout_millis": 60000,
|
89
|
-
"retry_codes_name": "non_idempotent",
|
90
|
-
"retry_params_name": "default"
|
91
|
-
},
|
92
|
-
"Commit": {
|
93
|
-
"timeout_millis": 60000,
|
94
|
-
"retry_codes_name": "non_idempotent",
|
95
|
-
"retry_params_name": "default"
|
96
|
-
}
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
@@ -1,32 +0,0 @@
|
|
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/api/resource_pb'
|
8
|
-
require 'google/firestore/admin/v1/index_pb'
|
9
|
-
require 'google/api/annotations_pb'
|
10
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
-
add_message "google.firestore.admin.v1.Field" do
|
12
|
-
optional :name, :string, 1
|
13
|
-
optional :index_config, :message, 2, "google.firestore.admin.v1.Field.IndexConfig"
|
14
|
-
end
|
15
|
-
add_message "google.firestore.admin.v1.Field.IndexConfig" do
|
16
|
-
repeated :indexes, :message, 1, "google.firestore.admin.v1.Index"
|
17
|
-
optional :uses_ancestor_config, :bool, 2
|
18
|
-
optional :ancestor_field, :string, 3
|
19
|
-
optional :reverting, :bool, 4
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Firestore
|
25
|
-
module Admin
|
26
|
-
module V1
|
27
|
-
Field = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Field").msgclass
|
28
|
-
Field::IndexConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Field.IndexConfig").msgclass
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
@@ -1,84 +0,0 @@
|
|
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/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
require 'google/firestore/admin/v1/field_pb'
|
12
|
-
require 'google/firestore/admin/v1/index_pb'
|
13
|
-
require 'google/longrunning/operations_pb'
|
14
|
-
require 'google/protobuf/empty_pb'
|
15
|
-
require 'google/protobuf/field_mask_pb'
|
16
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
|
-
add_message "google.firestore.admin.v1.CreateIndexRequest" do
|
18
|
-
optional :parent, :string, 1
|
19
|
-
optional :index, :message, 2, "google.firestore.admin.v1.Index"
|
20
|
-
end
|
21
|
-
add_message "google.firestore.admin.v1.ListIndexesRequest" do
|
22
|
-
optional :parent, :string, 1
|
23
|
-
optional :filter, :string, 2
|
24
|
-
optional :page_size, :int32, 3
|
25
|
-
optional :page_token, :string, 4
|
26
|
-
end
|
27
|
-
add_message "google.firestore.admin.v1.ListIndexesResponse" do
|
28
|
-
repeated :indexes, :message, 1, "google.firestore.admin.v1.Index"
|
29
|
-
optional :next_page_token, :string, 2
|
30
|
-
end
|
31
|
-
add_message "google.firestore.admin.v1.GetIndexRequest" do
|
32
|
-
optional :name, :string, 1
|
33
|
-
end
|
34
|
-
add_message "google.firestore.admin.v1.DeleteIndexRequest" do
|
35
|
-
optional :name, :string, 1
|
36
|
-
end
|
37
|
-
add_message "google.firestore.admin.v1.UpdateFieldRequest" do
|
38
|
-
optional :field, :message, 1, "google.firestore.admin.v1.Field"
|
39
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
40
|
-
end
|
41
|
-
add_message "google.firestore.admin.v1.GetFieldRequest" do
|
42
|
-
optional :name, :string, 1
|
43
|
-
end
|
44
|
-
add_message "google.firestore.admin.v1.ListFieldsRequest" do
|
45
|
-
optional :parent, :string, 1
|
46
|
-
optional :filter, :string, 2
|
47
|
-
optional :page_size, :int32, 3
|
48
|
-
optional :page_token, :string, 4
|
49
|
-
end
|
50
|
-
add_message "google.firestore.admin.v1.ListFieldsResponse" do
|
51
|
-
repeated :fields, :message, 1, "google.firestore.admin.v1.Field"
|
52
|
-
optional :next_page_token, :string, 2
|
53
|
-
end
|
54
|
-
add_message "google.firestore.admin.v1.ExportDocumentsRequest" do
|
55
|
-
optional :name, :string, 1
|
56
|
-
repeated :collection_ids, :string, 2
|
57
|
-
optional :output_uri_prefix, :string, 3
|
58
|
-
end
|
59
|
-
add_message "google.firestore.admin.v1.ImportDocumentsRequest" do
|
60
|
-
optional :name, :string, 1
|
61
|
-
repeated :collection_ids, :string, 2
|
62
|
-
optional :input_uri_prefix, :string, 3
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
module Google
|
67
|
-
module Firestore
|
68
|
-
module Admin
|
69
|
-
module V1
|
70
|
-
CreateIndexRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.CreateIndexRequest").msgclass
|
71
|
-
ListIndexesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListIndexesRequest").msgclass
|
72
|
-
ListIndexesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListIndexesResponse").msgclass
|
73
|
-
GetIndexRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.GetIndexRequest").msgclass
|
74
|
-
DeleteIndexRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.DeleteIndexRequest").msgclass
|
75
|
-
UpdateFieldRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.UpdateFieldRequest").msgclass
|
76
|
-
GetFieldRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.GetFieldRequest").msgclass
|
77
|
-
ListFieldsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListFieldsRequest").msgclass
|
78
|
-
ListFieldsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ListFieldsResponse").msgclass
|
79
|
-
ExportDocumentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ExportDocumentsRequest").msgclass
|
80
|
-
ImportDocumentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.ImportDocumentsRequest").msgclass
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
@@ -1,94 +0,0 @@
|
|
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
|
@@ -1,58 +0,0 @@
|
|
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/resource_pb'
|
8
|
-
require 'google/api/annotations_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "google.firestore.admin.v1.Index" do
|
11
|
-
optional :name, :string, 1
|
12
|
-
optional :query_scope, :enum, 2, "google.firestore.admin.v1.Index.QueryScope"
|
13
|
-
repeated :fields, :message, 3, "google.firestore.admin.v1.Index.IndexField"
|
14
|
-
optional :state, :enum, 4, "google.firestore.admin.v1.Index.State"
|
15
|
-
end
|
16
|
-
add_message "google.firestore.admin.v1.Index.IndexField" do
|
17
|
-
optional :field_path, :string, 1
|
18
|
-
oneof :value_mode do
|
19
|
-
optional :order, :enum, 2, "google.firestore.admin.v1.Index.IndexField.Order"
|
20
|
-
optional :array_config, :enum, 3, "google.firestore.admin.v1.Index.IndexField.ArrayConfig"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
add_enum "google.firestore.admin.v1.Index.IndexField.Order" do
|
24
|
-
value :ORDER_UNSPECIFIED, 0
|
25
|
-
value :ASCENDING, 1
|
26
|
-
value :DESCENDING, 2
|
27
|
-
end
|
28
|
-
add_enum "google.firestore.admin.v1.Index.IndexField.ArrayConfig" do
|
29
|
-
value :ARRAY_CONFIG_UNSPECIFIED, 0
|
30
|
-
value :CONTAINS, 1
|
31
|
-
end
|
32
|
-
add_enum "google.firestore.admin.v1.Index.QueryScope" do
|
33
|
-
value :QUERY_SCOPE_UNSPECIFIED, 0
|
34
|
-
value :COLLECTION, 1
|
35
|
-
value :COLLECTION_GROUP, 2
|
36
|
-
end
|
37
|
-
add_enum "google.firestore.admin.v1.Index.State" do
|
38
|
-
value :STATE_UNSPECIFIED, 0
|
39
|
-
value :CREATING, 1
|
40
|
-
value :READY, 2
|
41
|
-
value :NEEDS_REPAIR, 3
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
module Google
|
46
|
-
module Firestore
|
47
|
-
module Admin
|
48
|
-
module V1
|
49
|
-
Index = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index").msgclass
|
50
|
-
Index::IndexField = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField").msgclass
|
51
|
-
Index::IndexField::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.Order").enummodule
|
52
|
-
Index::IndexField::ArrayConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.ArrayConfig").enummodule
|
53
|
-
Index::QueryScope = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.QueryScope").enummodule
|
54
|
-
Index::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.State").enummodule
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,22 +0,0 @@
|
|
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
|
@@ -1,90 +0,0 @@
|
|
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
|