google-cloud-firestore 1.4.4 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/CHANGELOG.md +55 -0
  4. data/lib/google-cloud-firestore.rb +15 -21
  5. data/lib/google/cloud/firestore.rb +12 -23
  6. data/lib/google/cloud/firestore/client.rb +12 -14
  7. data/lib/google/cloud/firestore/collection_reference.rb +1 -0
  8. data/lib/google/cloud/firestore/collection_reference_list.rb +137 -0
  9. data/lib/google/cloud/firestore/convert.rb +39 -39
  10. data/lib/google/cloud/firestore/credentials.rb +2 -2
  11. data/lib/google/cloud/firestore/document_listener.rb +86 -7
  12. data/lib/google/cloud/firestore/document_reference.rb +9 -10
  13. data/lib/google/cloud/firestore/document_reference/list.rb +2 -2
  14. data/lib/google/cloud/firestore/document_snapshot.rb +5 -6
  15. data/lib/google/cloud/firestore/query.rb +127 -34
  16. data/lib/google/cloud/firestore/query_listener.rb +82 -1
  17. data/lib/google/cloud/firestore/service.rb +63 -104
  18. data/lib/google/cloud/firestore/transaction.rb +2 -2
  19. data/lib/google/cloud/firestore/version.rb +1 -1
  20. data/lib/google/cloud/firestore/watch/inventory.rb +2 -0
  21. data/lib/google/cloud/firestore/watch/listener.rb +32 -25
  22. data/lib/google/cloud/firestore/watch/order.rb +1 -1
  23. metadata +9 -107
  24. data/lib/google/cloud/firestore/admin.rb +0 -144
  25. data/lib/google/cloud/firestore/admin/v1.rb +0 -151
  26. data/lib/google/cloud/firestore/admin/v1/credentials.rb +0 -44
  27. data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/field.rb +0 -86
  28. data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/firestore_admin.rb +0 -161
  29. data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/index.rb +0 -142
  30. data/lib/google/cloud/firestore/admin/v1/doc/google/longrunning/operations.rb +0 -51
  31. data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/any.rb +0 -131
  32. data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/empty.rb +0 -29
  33. data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/field_mask.rb +0 -222
  34. data/lib/google/cloud/firestore/admin/v1/doc/google/rpc/status.rb +0 -39
  35. data/lib/google/cloud/firestore/admin/v1/firestore_admin_client.rb +0 -902
  36. data/lib/google/cloud/firestore/admin/v1/firestore_admin_client_config.json +0 -76
  37. data/lib/google/cloud/firestore/v1.rb +0 -152
  38. data/lib/google/cloud/firestore/v1/credentials.rb +0 -42
  39. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/common.rb +0 -64
  40. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/document.rb +0 -136
  41. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/firestore.rb +0 -566
  42. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/query.rb +0 -227
  43. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/write.rb +0 -241
  44. data/lib/google/cloud/firestore/v1/doc/google/protobuf/any.rb +0 -131
  45. data/lib/google/cloud/firestore/v1/doc/google/protobuf/empty.rb +0 -29
  46. data/lib/google/cloud/firestore/v1/doc/google/protobuf/timestamp.rb +0 -113
  47. data/lib/google/cloud/firestore/v1/doc/google/protobuf/wrappers.rb +0 -26
  48. data/lib/google/cloud/firestore/v1/doc/google/rpc/status.rb +0 -39
  49. data/lib/google/cloud/firestore/v1/firestore_client.rb +0 -1011
  50. data/lib/google/cloud/firestore/v1/firestore_client_config.json +0 -105
  51. data/lib/google/cloud/firestore/v1beta1.rb +0 -162
  52. data/lib/google/cloud/firestore/v1beta1/credentials.rb +0 -42
  53. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/common.rb +0 -64
  54. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb +0 -136
  55. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb +0 -564
  56. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/query.rb +0 -227
  57. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb +0 -237
  58. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/any.rb +0 -131
  59. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/empty.rb +0 -29
  60. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/timestamp.rb +0 -113
  61. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/wrappers.rb +0 -26
  62. data/lib/google/cloud/firestore/v1beta1/doc/google/rpc/status.rb +0 -39
  63. data/lib/google/cloud/firestore/v1beta1/firestore_client.rb +0 -1021
  64. data/lib/google/cloud/firestore/v1beta1/firestore_client_config.json +0 -100
  65. data/lib/google/firestore/admin/v1/field_pb.rb +0 -32
  66. data/lib/google/firestore/admin/v1/firestore_admin_pb.rb +0 -84
  67. data/lib/google/firestore/admin/v1/firestore_admin_services_pb.rb +0 -94
  68. data/lib/google/firestore/admin/v1/index_pb.rb +0 -58
  69. data/lib/google/firestore/admin/v1/location_pb.rb +0 -22
  70. data/lib/google/firestore/admin/v1/operation_pb.rb +0 -90
  71. data/lib/google/firestore/v1/common_pb.rb +0 -45
  72. data/lib/google/firestore/v1/document_pb.rb +0 -50
  73. data/lib/google/firestore/v1/firestore_pb.rb +0 -222
  74. data/lib/google/firestore/v1/firestore_services_pb.rb +0 -80
  75. data/lib/google/firestore/v1/query_pb.rb +0 -107
  76. data/lib/google/firestore/v1/write_pb.rb +0 -80
  77. data/lib/google/firestore/v1beta1/common_pb.rb +0 -45
  78. data/lib/google/firestore/v1beta1/document_pb.rb +0 -50
  79. data/lib/google/firestore/v1beta1/firestore_pb.rb +0 -222
  80. data/lib/google/firestore/v1beta1/firestore_services_pb.rb +0 -89
  81. data/lib/google/firestore/v1beta1/query_pb.rb +0 -107
  82. data/lib/google/firestore/v1beta1/write_pb.rb +0 -79
@@ -1,45 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/firestore/v1/common.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_message "google.firestore.v1.DocumentMask" do
11
- repeated :field_paths, :string, 1
12
- end
13
- add_message "google.firestore.v1.Precondition" do
14
- oneof :condition_type do
15
- optional :exists, :bool, 1
16
- optional :update_time, :message, 2, "google.protobuf.Timestamp"
17
- end
18
- end
19
- add_message "google.firestore.v1.TransactionOptions" do
20
- oneof :mode do
21
- optional :read_only, :message, 2, "google.firestore.v1.TransactionOptions.ReadOnly"
22
- optional :read_write, :message, 3, "google.firestore.v1.TransactionOptions.ReadWrite"
23
- end
24
- end
25
- add_message "google.firestore.v1.TransactionOptions.ReadWrite" do
26
- optional :retry_transaction, :bytes, 1
27
- end
28
- add_message "google.firestore.v1.TransactionOptions.ReadOnly" do
29
- oneof :consistency_selector do
30
- optional :read_time, :message, 2, "google.protobuf.Timestamp"
31
- end
32
- end
33
- end
34
-
35
- module Google
36
- module Firestore
37
- module V1
38
- DocumentMask = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.DocumentMask").msgclass
39
- Precondition = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Precondition").msgclass
40
- TransactionOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.TransactionOptions").msgclass
41
- TransactionOptions::ReadWrite = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.TransactionOptions.ReadWrite").msgclass
42
- TransactionOptions::ReadOnly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.TransactionOptions.ReadOnly").msgclass
43
- end
44
- end
45
- end
@@ -1,50 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/firestore/v1/document.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/struct_pb'
8
- require 'google/protobuf/timestamp_pb'
9
- require 'google/type/latlng_pb'
10
- require 'google/api/annotations_pb'
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_message "google.firestore.v1.Document" do
13
- optional :name, :string, 1
14
- map :fields, :string, :message, 2, "google.firestore.v1.Value"
15
- optional :create_time, :message, 3, "google.protobuf.Timestamp"
16
- optional :update_time, :message, 4, "google.protobuf.Timestamp"
17
- end
18
- add_message "google.firestore.v1.Value" do
19
- oneof :value_type do
20
- optional :null_value, :enum, 11, "google.protobuf.NullValue"
21
- optional :boolean_value, :bool, 1
22
- optional :integer_value, :int64, 2
23
- optional :double_value, :double, 3
24
- optional :timestamp_value, :message, 10, "google.protobuf.Timestamp"
25
- optional :string_value, :string, 17
26
- optional :bytes_value, :bytes, 18
27
- optional :reference_value, :string, 5
28
- optional :geo_point_value, :message, 8, "google.type.LatLng"
29
- optional :array_value, :message, 9, "google.firestore.v1.ArrayValue"
30
- optional :map_value, :message, 6, "google.firestore.v1.MapValue"
31
- end
32
- end
33
- add_message "google.firestore.v1.ArrayValue" do
34
- repeated :values, :message, 1, "google.firestore.v1.Value"
35
- end
36
- add_message "google.firestore.v1.MapValue" do
37
- map :fields, :string, :message, 1, "google.firestore.v1.Value"
38
- end
39
- end
40
-
41
- module Google
42
- module Firestore
43
- module V1
44
- Document = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Document").msgclass
45
- Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Value").msgclass
46
- ArrayValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.ArrayValue").msgclass
47
- MapValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.MapValue").msgclass
48
- end
49
- end
50
- end
@@ -1,222 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/firestore/v1/firestore.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/firestore/v1/common_pb'
11
- require 'google/firestore/v1/document_pb'
12
- require 'google/firestore/v1/query_pb'
13
- require 'google/firestore/v1/write_pb'
14
- require 'google/protobuf/empty_pb'
15
- require 'google/protobuf/timestamp_pb'
16
- require 'google/rpc/status_pb'
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_message "google.firestore.v1.GetDocumentRequest" do
19
- optional :name, :string, 1
20
- optional :mask, :message, 2, "google.firestore.v1.DocumentMask"
21
- oneof :consistency_selector do
22
- optional :transaction, :bytes, 3
23
- optional :read_time, :message, 5, "google.protobuf.Timestamp"
24
- end
25
- end
26
- add_message "google.firestore.v1.ListDocumentsRequest" do
27
- optional :parent, :string, 1
28
- optional :collection_id, :string, 2
29
- optional :page_size, :int32, 3
30
- optional :page_token, :string, 4
31
- optional :order_by, :string, 6
32
- optional :mask, :message, 7, "google.firestore.v1.DocumentMask"
33
- optional :show_missing, :bool, 12
34
- oneof :consistency_selector do
35
- optional :transaction, :bytes, 8
36
- optional :read_time, :message, 10, "google.protobuf.Timestamp"
37
- end
38
- end
39
- add_message "google.firestore.v1.ListDocumentsResponse" do
40
- repeated :documents, :message, 1, "google.firestore.v1.Document"
41
- optional :next_page_token, :string, 2
42
- end
43
- add_message "google.firestore.v1.CreateDocumentRequest" do
44
- optional :parent, :string, 1
45
- optional :collection_id, :string, 2
46
- optional :document_id, :string, 3
47
- optional :document, :message, 4, "google.firestore.v1.Document"
48
- optional :mask, :message, 5, "google.firestore.v1.DocumentMask"
49
- end
50
- add_message "google.firestore.v1.UpdateDocumentRequest" do
51
- optional :document, :message, 1, "google.firestore.v1.Document"
52
- optional :update_mask, :message, 2, "google.firestore.v1.DocumentMask"
53
- optional :mask, :message, 3, "google.firestore.v1.DocumentMask"
54
- optional :current_document, :message, 4, "google.firestore.v1.Precondition"
55
- end
56
- add_message "google.firestore.v1.DeleteDocumentRequest" do
57
- optional :name, :string, 1
58
- optional :current_document, :message, 2, "google.firestore.v1.Precondition"
59
- end
60
- add_message "google.firestore.v1.BatchGetDocumentsRequest" do
61
- optional :database, :string, 1
62
- repeated :documents, :string, 2
63
- optional :mask, :message, 3, "google.firestore.v1.DocumentMask"
64
- oneof :consistency_selector do
65
- optional :transaction, :bytes, 4
66
- optional :new_transaction, :message, 5, "google.firestore.v1.TransactionOptions"
67
- optional :read_time, :message, 7, "google.protobuf.Timestamp"
68
- end
69
- end
70
- add_message "google.firestore.v1.BatchGetDocumentsResponse" do
71
- optional :transaction, :bytes, 3
72
- optional :read_time, :message, 4, "google.protobuf.Timestamp"
73
- oneof :result do
74
- optional :found, :message, 1, "google.firestore.v1.Document"
75
- optional :missing, :string, 2
76
- end
77
- end
78
- add_message "google.firestore.v1.BeginTransactionRequest" do
79
- optional :database, :string, 1
80
- optional :options, :message, 2, "google.firestore.v1.TransactionOptions"
81
- end
82
- add_message "google.firestore.v1.BeginTransactionResponse" do
83
- optional :transaction, :bytes, 1
84
- end
85
- add_message "google.firestore.v1.CommitRequest" do
86
- optional :database, :string, 1
87
- repeated :writes, :message, 2, "google.firestore.v1.Write"
88
- optional :transaction, :bytes, 3
89
- end
90
- add_message "google.firestore.v1.CommitResponse" do
91
- repeated :write_results, :message, 1, "google.firestore.v1.WriteResult"
92
- optional :commit_time, :message, 2, "google.protobuf.Timestamp"
93
- end
94
- add_message "google.firestore.v1.RollbackRequest" do
95
- optional :database, :string, 1
96
- optional :transaction, :bytes, 2
97
- end
98
- add_message "google.firestore.v1.RunQueryRequest" do
99
- optional :parent, :string, 1
100
- oneof :query_type do
101
- optional :structured_query, :message, 2, "google.firestore.v1.StructuredQuery"
102
- end
103
- oneof :consistency_selector do
104
- optional :transaction, :bytes, 5
105
- optional :new_transaction, :message, 6, "google.firestore.v1.TransactionOptions"
106
- optional :read_time, :message, 7, "google.protobuf.Timestamp"
107
- end
108
- end
109
- add_message "google.firestore.v1.RunQueryResponse" do
110
- optional :transaction, :bytes, 2
111
- optional :document, :message, 1, "google.firestore.v1.Document"
112
- optional :read_time, :message, 3, "google.protobuf.Timestamp"
113
- optional :skipped_results, :int32, 4
114
- end
115
- add_message "google.firestore.v1.WriteRequest" do
116
- optional :database, :string, 1
117
- optional :stream_id, :string, 2
118
- repeated :writes, :message, 3, "google.firestore.v1.Write"
119
- optional :stream_token, :bytes, 4
120
- map :labels, :string, :string, 5
121
- end
122
- add_message "google.firestore.v1.WriteResponse" do
123
- optional :stream_id, :string, 1
124
- optional :stream_token, :bytes, 2
125
- repeated :write_results, :message, 3, "google.firestore.v1.WriteResult"
126
- optional :commit_time, :message, 4, "google.protobuf.Timestamp"
127
- end
128
- add_message "google.firestore.v1.ListenRequest" do
129
- optional :database, :string, 1
130
- map :labels, :string, :string, 4
131
- oneof :target_change do
132
- optional :add_target, :message, 2, "google.firestore.v1.Target"
133
- optional :remove_target, :int32, 3
134
- end
135
- end
136
- add_message "google.firestore.v1.ListenResponse" do
137
- oneof :response_type do
138
- optional :target_change, :message, 2, "google.firestore.v1.TargetChange"
139
- optional :document_change, :message, 3, "google.firestore.v1.DocumentChange"
140
- optional :document_delete, :message, 4, "google.firestore.v1.DocumentDelete"
141
- optional :document_remove, :message, 6, "google.firestore.v1.DocumentRemove"
142
- optional :filter, :message, 5, "google.firestore.v1.ExistenceFilter"
143
- end
144
- end
145
- add_message "google.firestore.v1.Target" do
146
- optional :target_id, :int32, 5
147
- optional :once, :bool, 6
148
- oneof :target_type do
149
- optional :query, :message, 2, "google.firestore.v1.Target.QueryTarget"
150
- optional :documents, :message, 3, "google.firestore.v1.Target.DocumentsTarget"
151
- end
152
- oneof :resume_type do
153
- optional :resume_token, :bytes, 4
154
- optional :read_time, :message, 11, "google.protobuf.Timestamp"
155
- end
156
- end
157
- add_message "google.firestore.v1.Target.DocumentsTarget" do
158
- repeated :documents, :string, 2
159
- end
160
- add_message "google.firestore.v1.Target.QueryTarget" do
161
- optional :parent, :string, 1
162
- oneof :query_type do
163
- optional :structured_query, :message, 2, "google.firestore.v1.StructuredQuery"
164
- end
165
- end
166
- add_message "google.firestore.v1.TargetChange" do
167
- optional :target_change_type, :enum, 1, "google.firestore.v1.TargetChange.TargetChangeType"
168
- repeated :target_ids, :int32, 2
169
- optional :cause, :message, 3, "google.rpc.Status"
170
- optional :resume_token, :bytes, 4
171
- optional :read_time, :message, 6, "google.protobuf.Timestamp"
172
- end
173
- add_enum "google.firestore.v1.TargetChange.TargetChangeType" do
174
- value :NO_CHANGE, 0
175
- value :ADD, 1
176
- value :REMOVE, 2
177
- value :CURRENT, 3
178
- value :RESET, 4
179
- end
180
- add_message "google.firestore.v1.ListCollectionIdsRequest" do
181
- optional :parent, :string, 1
182
- optional :page_size, :int32, 2
183
- optional :page_token, :string, 3
184
- end
185
- add_message "google.firestore.v1.ListCollectionIdsResponse" do
186
- repeated :collection_ids, :string, 1
187
- optional :next_page_token, :string, 2
188
- end
189
- end
190
-
191
- module Google
192
- module Firestore
193
- module V1
194
- GetDocumentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.GetDocumentRequest").msgclass
195
- ListDocumentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.ListDocumentsRequest").msgclass
196
- ListDocumentsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.ListDocumentsResponse").msgclass
197
- CreateDocumentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.CreateDocumentRequest").msgclass
198
- UpdateDocumentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.UpdateDocumentRequest").msgclass
199
- DeleteDocumentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.DeleteDocumentRequest").msgclass
200
- BatchGetDocumentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.BatchGetDocumentsRequest").msgclass
201
- BatchGetDocumentsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.BatchGetDocumentsResponse").msgclass
202
- BeginTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.BeginTransactionRequest").msgclass
203
- BeginTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.BeginTransactionResponse").msgclass
204
- CommitRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.CommitRequest").msgclass
205
- CommitResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.CommitResponse").msgclass
206
- RollbackRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.RollbackRequest").msgclass
207
- RunQueryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.RunQueryRequest").msgclass
208
- RunQueryResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.RunQueryResponse").msgclass
209
- WriteRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.WriteRequest").msgclass
210
- WriteResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.WriteResponse").msgclass
211
- ListenRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.ListenRequest").msgclass
212
- ListenResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.ListenResponse").msgclass
213
- Target = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Target").msgclass
214
- Target::DocumentsTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Target.DocumentsTarget").msgclass
215
- Target::QueryTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Target.QueryTarget").msgclass
216
- TargetChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.TargetChange").msgclass
217
- TargetChange::TargetChangeType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.TargetChange.TargetChangeType").enummodule
218
- ListCollectionIdsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.ListCollectionIdsRequest").msgclass
219
- ListCollectionIdsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.ListCollectionIdsResponse").msgclass
220
- end
221
- end
222
- end
@@ -1,80 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/firestore/v1/firestore.proto for package 'google.firestore.v1'
3
- # Original file comments:
4
- # Copyright 2020 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
- require 'grpc'
21
- require 'google/firestore/v1/firestore_pb'
22
-
23
- module Google
24
- module Firestore
25
- module V1
26
- module Firestore
27
- # Specification of the Firestore API.
28
- #
29
- # The Cloud Firestore service.
30
- #
31
- # Cloud Firestore is a fast, fully managed, serverless, cloud-native NoSQL
32
- # document database that simplifies storing, syncing, and querying data for
33
- # your mobile, web, and IoT apps at global scale. Its client libraries provide
34
- # live synchronization and offline support, while its security features and
35
- # integrations with Firebase and Google Cloud Platform (GCP) accelerate
36
- # building truly serverless apps.
37
- class Service
38
-
39
- include GRPC::GenericService
40
-
41
- self.marshal_class_method = :encode
42
- self.unmarshal_class_method = :decode
43
- self.service_name = 'google.firestore.v1.Firestore'
44
-
45
- # Gets a single document.
46
- rpc :GetDocument, GetDocumentRequest, Document
47
- # Lists documents.
48
- rpc :ListDocuments, ListDocumentsRequest, ListDocumentsResponse
49
- # Updates or inserts a document.
50
- rpc :UpdateDocument, UpdateDocumentRequest, Document
51
- # Deletes a document.
52
- rpc :DeleteDocument, DeleteDocumentRequest, Google::Protobuf::Empty
53
- # Gets multiple documents.
54
- #
55
- # Documents returned by this method are not guaranteed to be returned in the
56
- # same order that they were requested.
57
- rpc :BatchGetDocuments, BatchGetDocumentsRequest, stream(BatchGetDocumentsResponse)
58
- # Starts a new transaction.
59
- rpc :BeginTransaction, BeginTransactionRequest, BeginTransactionResponse
60
- # Commits a transaction, while optionally updating documents.
61
- rpc :Commit, CommitRequest, CommitResponse
62
- # Rolls back a transaction.
63
- rpc :Rollback, RollbackRequest, Google::Protobuf::Empty
64
- # Runs a query.
65
- rpc :RunQuery, RunQueryRequest, stream(RunQueryResponse)
66
- # Streams batches of document updates and deletes, in order.
67
- rpc :Write, stream(WriteRequest), stream(WriteResponse)
68
- # Listens to changes.
69
- rpc :Listen, stream(ListenRequest), stream(ListenResponse)
70
- # Lists all the collection IDs underneath a document.
71
- rpc :ListCollectionIds, ListCollectionIdsRequest, ListCollectionIdsResponse
72
- # Creates a new document.
73
- rpc :CreateDocument, CreateDocumentRequest, Document
74
- end
75
-
76
- Stub = Service.rpc_stub_class
77
- end
78
- end
79
- end
80
- end
@@ -1,107 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/firestore/v1/query.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/firestore/v1/document_pb'
8
- require 'google/protobuf/wrappers_pb'
9
- require 'google/api/annotations_pb'
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_message "google.firestore.v1.StructuredQuery" do
12
- optional :select, :message, 1, "google.firestore.v1.StructuredQuery.Projection"
13
- repeated :from, :message, 2, "google.firestore.v1.StructuredQuery.CollectionSelector"
14
- optional :where, :message, 3, "google.firestore.v1.StructuredQuery.Filter"
15
- repeated :order_by, :message, 4, "google.firestore.v1.StructuredQuery.Order"
16
- optional :start_at, :message, 7, "google.firestore.v1.Cursor"
17
- optional :end_at, :message, 8, "google.firestore.v1.Cursor"
18
- optional :offset, :int32, 6
19
- optional :limit, :message, 5, "google.protobuf.Int32Value"
20
- end
21
- add_message "google.firestore.v1.StructuredQuery.CollectionSelector" do
22
- optional :collection_id, :string, 2
23
- optional :all_descendants, :bool, 3
24
- end
25
- add_message "google.firestore.v1.StructuredQuery.Filter" do
26
- oneof :filter_type do
27
- optional :composite_filter, :message, 1, "google.firestore.v1.StructuredQuery.CompositeFilter"
28
- optional :field_filter, :message, 2, "google.firestore.v1.StructuredQuery.FieldFilter"
29
- optional :unary_filter, :message, 3, "google.firestore.v1.StructuredQuery.UnaryFilter"
30
- end
31
- end
32
- add_message "google.firestore.v1.StructuredQuery.CompositeFilter" do
33
- optional :op, :enum, 1, "google.firestore.v1.StructuredQuery.CompositeFilter.Operator"
34
- repeated :filters, :message, 2, "google.firestore.v1.StructuredQuery.Filter"
35
- end
36
- add_enum "google.firestore.v1.StructuredQuery.CompositeFilter.Operator" do
37
- value :OPERATOR_UNSPECIFIED, 0
38
- value :AND, 1
39
- end
40
- add_message "google.firestore.v1.StructuredQuery.FieldFilter" do
41
- optional :field, :message, 1, "google.firestore.v1.StructuredQuery.FieldReference"
42
- optional :op, :enum, 2, "google.firestore.v1.StructuredQuery.FieldFilter.Operator"
43
- optional :value, :message, 3, "google.firestore.v1.Value"
44
- end
45
- add_enum "google.firestore.v1.StructuredQuery.FieldFilter.Operator" do
46
- value :OPERATOR_UNSPECIFIED, 0
47
- value :LESS_THAN, 1
48
- value :LESS_THAN_OR_EQUAL, 2
49
- value :GREATER_THAN, 3
50
- value :GREATER_THAN_OR_EQUAL, 4
51
- value :EQUAL, 5
52
- value :ARRAY_CONTAINS, 7
53
- value :IN, 8
54
- value :ARRAY_CONTAINS_ANY, 9
55
- end
56
- add_message "google.firestore.v1.StructuredQuery.Projection" do
57
- repeated :fields, :message, 2, "google.firestore.v1.StructuredQuery.FieldReference"
58
- end
59
- add_message "google.firestore.v1.StructuredQuery.UnaryFilter" do
60
- optional :op, :enum, 1, "google.firestore.v1.StructuredQuery.UnaryFilter.Operator"
61
- oneof :operand_type do
62
- optional :field, :message, 2, "google.firestore.v1.StructuredQuery.FieldReference"
63
- end
64
- end
65
- add_enum "google.firestore.v1.StructuredQuery.UnaryFilter.Operator" do
66
- value :OPERATOR_UNSPECIFIED, 0
67
- value :IS_NAN, 2
68
- value :IS_NULL, 3
69
- end
70
- add_message "google.firestore.v1.StructuredQuery.FieldReference" do
71
- optional :field_path, :string, 2
72
- end
73
- add_message "google.firestore.v1.StructuredQuery.Order" do
74
- optional :field, :message, 1, "google.firestore.v1.StructuredQuery.FieldReference"
75
- optional :direction, :enum, 2, "google.firestore.v1.StructuredQuery.Direction"
76
- end
77
- add_enum "google.firestore.v1.StructuredQuery.Direction" do
78
- value :DIRECTION_UNSPECIFIED, 0
79
- value :ASCENDING, 1
80
- value :DESCENDING, 2
81
- end
82
- add_message "google.firestore.v1.Cursor" do
83
- repeated :values, :message, 1, "google.firestore.v1.Value"
84
- optional :before, :bool, 2
85
- end
86
- end
87
-
88
- module Google
89
- module Firestore
90
- module V1
91
- StructuredQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery").msgclass
92
- StructuredQuery::CollectionSelector = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.CollectionSelector").msgclass
93
- StructuredQuery::Filter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Filter").msgclass
94
- StructuredQuery::CompositeFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.CompositeFilter").msgclass
95
- StructuredQuery::CompositeFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.CompositeFilter.Operator").enummodule
96
- StructuredQuery::FieldFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldFilter").msgclass
97
- StructuredQuery::FieldFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldFilter.Operator").enummodule
98
- StructuredQuery::Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Projection").msgclass
99
- StructuredQuery::UnaryFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter").msgclass
100
- StructuredQuery::UnaryFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter.Operator").enummodule
101
- StructuredQuery::FieldReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldReference").msgclass
102
- StructuredQuery::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Order").msgclass
103
- StructuredQuery::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Direction").enummodule
104
- Cursor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Cursor").msgclass
105
- end
106
- end
107
- end