google-cloud-firestore 1.4.2 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/CHANGELOG.md +51 -0
  4. data/TROUBLESHOOTING.md +2 -8
  5. data/lib/google-cloud-firestore.rb +15 -21
  6. data/lib/google/cloud/firestore.rb +12 -23
  7. data/lib/google/cloud/firestore/client.rb +12 -14
  8. data/lib/google/cloud/firestore/collection_reference.rb +1 -0
  9. data/lib/google/cloud/firestore/collection_reference_list.rb +137 -0
  10. data/lib/google/cloud/firestore/convert.rb +39 -39
  11. data/lib/google/cloud/firestore/credentials.rb +2 -2
  12. data/lib/google/cloud/firestore/document_reference.rb +8 -8
  13. data/lib/google/cloud/firestore/document_reference/list.rb +2 -2
  14. data/lib/google/cloud/firestore/document_snapshot.rb +4 -4
  15. data/lib/google/cloud/firestore/query.rb +114 -22
  16. data/lib/google/cloud/firestore/service.rb +63 -104
  17. data/lib/google/cloud/firestore/transaction.rb +2 -2
  18. data/lib/google/cloud/firestore/version.rb +1 -1
  19. data/lib/google/cloud/firestore/watch/inventory.rb +2 -0
  20. data/lib/google/cloud/firestore/watch/listener.rb +9 -9
  21. data/lib/google/cloud/firestore/watch/order.rb +1 -1
  22. metadata +9 -107
  23. data/lib/google/cloud/firestore/admin.rb +0 -144
  24. data/lib/google/cloud/firestore/admin/v1.rb +0 -151
  25. data/lib/google/cloud/firestore/admin/v1/credentials.rb +0 -44
  26. data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/field.rb +0 -86
  27. data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/firestore_admin.rb +0 -161
  28. data/lib/google/cloud/firestore/admin/v1/doc/google/firestore/admin/v1/index.rb +0 -142
  29. data/lib/google/cloud/firestore/admin/v1/doc/google/longrunning/operations.rb +0 -51
  30. data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/any.rb +0 -131
  31. data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/empty.rb +0 -29
  32. data/lib/google/cloud/firestore/admin/v1/doc/google/protobuf/field_mask.rb +0 -222
  33. data/lib/google/cloud/firestore/admin/v1/doc/google/rpc/status.rb +0 -39
  34. data/lib/google/cloud/firestore/admin/v1/firestore_admin_client.rb +0 -902
  35. data/lib/google/cloud/firestore/admin/v1/firestore_admin_client_config.json +0 -71
  36. data/lib/google/cloud/firestore/v1.rb +0 -152
  37. data/lib/google/cloud/firestore/v1/credentials.rb +0 -42
  38. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/common.rb +0 -64
  39. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/document.rb +0 -136
  40. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/firestore.rb +0 -566
  41. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/query.rb +0 -227
  42. data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/write.rb +0 -241
  43. data/lib/google/cloud/firestore/v1/doc/google/protobuf/any.rb +0 -131
  44. data/lib/google/cloud/firestore/v1/doc/google/protobuf/empty.rb +0 -29
  45. data/lib/google/cloud/firestore/v1/doc/google/protobuf/timestamp.rb +0 -113
  46. data/lib/google/cloud/firestore/v1/doc/google/protobuf/wrappers.rb +0 -26
  47. data/lib/google/cloud/firestore/v1/doc/google/rpc/status.rb +0 -39
  48. data/lib/google/cloud/firestore/v1/firestore_client.rb +0 -1011
  49. data/lib/google/cloud/firestore/v1/firestore_client_config.json +0 -100
  50. data/lib/google/cloud/firestore/v1beta1.rb +0 -162
  51. data/lib/google/cloud/firestore/v1beta1/credentials.rb +0 -42
  52. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/common.rb +0 -64
  53. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/document.rb +0 -136
  54. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/firestore.rb +0 -564
  55. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/query.rb +0 -227
  56. data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb +0 -237
  57. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/any.rb +0 -131
  58. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/empty.rb +0 -29
  59. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/timestamp.rb +0 -113
  60. data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/wrappers.rb +0 -26
  61. data/lib/google/cloud/firestore/v1beta1/doc/google/rpc/status.rb +0 -39
  62. data/lib/google/cloud/firestore/v1beta1/firestore_client.rb +0 -1021
  63. data/lib/google/cloud/firestore/v1beta1/firestore_client_config.json +0 -100
  64. data/lib/google/firestore/admin/v1/field_pb.rb +0 -32
  65. data/lib/google/firestore/admin/v1/firestore_admin_pb.rb +0 -84
  66. data/lib/google/firestore/admin/v1/firestore_admin_services_pb.rb +0 -94
  67. data/lib/google/firestore/admin/v1/index_pb.rb +0 -58
  68. data/lib/google/firestore/admin/v1/location_pb.rb +0 -22
  69. data/lib/google/firestore/admin/v1/operation_pb.rb +0 -90
  70. data/lib/google/firestore/v1/common_pb.rb +0 -45
  71. data/lib/google/firestore/v1/document_pb.rb +0 -50
  72. data/lib/google/firestore/v1/firestore_pb.rb +0 -222
  73. data/lib/google/firestore/v1/firestore_services_pb.rb +0 -80
  74. data/lib/google/firestore/v1/query_pb.rb +0 -107
  75. data/lib/google/firestore/v1/write_pb.rb +0 -80
  76. data/lib/google/firestore/v1beta1/common_pb.rb +0 -45
  77. data/lib/google/firestore/v1beta1/document_pb.rb +0 -50
  78. data/lib/google/firestore/v1beta1/firestore_pb.rb +0 -222
  79. data/lib/google/firestore/v1beta1/firestore_services_pb.rb +0 -89
  80. data/lib/google/firestore/v1beta1/query_pb.rb +0 -107
  81. data/lib/google/firestore/v1beta1/write_pb.rb +0 -79
@@ -1,227 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Firestore
18
- module V1
19
- # A Firestore query.
20
- # @!attribute [rw] select
21
- # @return [Google::Firestore::V1::StructuredQuery::Projection]
22
- # The projection to return.
23
- # @!attribute [rw] from
24
- # @return [Array<Google::Firestore::V1::StructuredQuery::CollectionSelector>]
25
- # The collections to query.
26
- # @!attribute [rw] where
27
- # @return [Google::Firestore::V1::StructuredQuery::Filter]
28
- # The filter to apply.
29
- # @!attribute [rw] order_by
30
- # @return [Array<Google::Firestore::V1::StructuredQuery::Order>]
31
- # The order to apply to the query results.
32
- #
33
- # Firestore guarantees a stable ordering through the following rules:
34
- #
35
- # * Any field required to appear in `order_by`, that is not already
36
- # specified in `order_by`, is appended to the order in field name order
37
- # by default.
38
- # * If an order on `__name__` is not specified, it is appended by default.
39
- #
40
- # Fields are appended with the same sort direction as the last order
41
- # specified, or 'ASCENDING' if no order was specified. For example:
42
- #
43
- # * `SELECT * FROM Foo ORDER BY A` becomes
44
- # `SELECT * FROM Foo ORDER BY A, __name__`
45
- # * `SELECT * FROM Foo ORDER BY A DESC` becomes
46
- # `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC`
47
- # * `SELECT * FROM Foo WHERE A > 1` becomes
48
- # `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__`
49
- # @!attribute [rw] start_at
50
- # @return [Google::Firestore::V1::Cursor]
51
- # A starting point for the query results.
52
- # @!attribute [rw] end_at
53
- # @return [Google::Firestore::V1::Cursor]
54
- # A end point for the query results.
55
- # @!attribute [rw] offset
56
- # @return [Integer]
57
- # The number of results to skip.
58
- #
59
- # Applies before limit, but after all other constraints. Must be >= 0 if
60
- # specified.
61
- # @!attribute [rw] limit
62
- # @return [Google::Protobuf::Int32Value]
63
- # The maximum number of results to return.
64
- #
65
- # Applies after all other constraints.
66
- # Must be >= 0 if specified.
67
- class StructuredQuery
68
- # A selection of a collection, such as `messages as m1`.
69
- # @!attribute [rw] collection_id
70
- # @return [String]
71
- # The collection ID.
72
- # When set, selects only collections with this ID.
73
- # @!attribute [rw] all_descendants
74
- # @return [true, false]
75
- # When false, selects only collections that are immediate children of
76
- # the `parent` specified in the containing `RunQueryRequest`.
77
- # When true, selects all descendant collections.
78
- class CollectionSelector; end
79
-
80
- # A filter.
81
- # @!attribute [rw] composite_filter
82
- # @return [Google::Firestore::V1::StructuredQuery::CompositeFilter]
83
- # A composite filter.
84
- # @!attribute [rw] field_filter
85
- # @return [Google::Firestore::V1::StructuredQuery::FieldFilter]
86
- # A filter on a document field.
87
- # @!attribute [rw] unary_filter
88
- # @return [Google::Firestore::V1::StructuredQuery::UnaryFilter]
89
- # A filter that takes exactly one argument.
90
- class Filter; end
91
-
92
- # A filter that merges multiple other filters using the given operator.
93
- # @!attribute [rw] op
94
- # @return [Google::Firestore::V1::StructuredQuery::CompositeFilter::Operator]
95
- # The operator for combining multiple filters.
96
- # @!attribute [rw] filters
97
- # @return [Array<Google::Firestore::V1::StructuredQuery::Filter>]
98
- # The list of filters to combine.
99
- # Must contain at least one filter.
100
- class CompositeFilter
101
- # A composite filter operator.
102
- module Operator
103
- # Unspecified. This value must not be used.
104
- OPERATOR_UNSPECIFIED = 0
105
-
106
- # The results are required to satisfy each of the combined filters.
107
- AND = 1
108
- end
109
- end
110
-
111
- # A filter on a specific field.
112
- # @!attribute [rw] field
113
- # @return [Google::Firestore::V1::StructuredQuery::FieldReference]
114
- # The field to filter by.
115
- # @!attribute [rw] op
116
- # @return [Google::Firestore::V1::StructuredQuery::FieldFilter::Operator]
117
- # The operator to filter by.
118
- # @!attribute [rw] value
119
- # @return [Google::Firestore::V1::Value]
120
- # The value to compare to.
121
- class FieldFilter
122
- # A field filter operator.
123
- module Operator
124
- # Unspecified. This value must not be used.
125
- OPERATOR_UNSPECIFIED = 0
126
-
127
- # Less than. Requires that the field come first in `order_by`.
128
- LESS_THAN = 1
129
-
130
- # Less than or equal. Requires that the field come first in `order_by`.
131
- LESS_THAN_OR_EQUAL = 2
132
-
133
- # Greater than. Requires that the field come first in `order_by`.
134
- GREATER_THAN = 3
135
-
136
- # Greater than or equal. Requires that the field come first in
137
- # `order_by`.
138
- GREATER_THAN_OR_EQUAL = 4
139
-
140
- # Equal.
141
- EQUAL = 5
142
-
143
- # Contains. Requires that the field is an array.
144
- ARRAY_CONTAINS = 7
145
-
146
- # In. Requires that `value` is a non-empty ArrayValue with at most 10
147
- # values.
148
- IN = 8
149
-
150
- # Contains any. Requires that the field is an array and
151
- # `value` is a non-empty ArrayValue with at most 10 values.
152
- ARRAY_CONTAINS_ANY = 9
153
- end
154
- end
155
-
156
- # The projection of document's fields to return.
157
- # @!attribute [rw] fields
158
- # @return [Array<Google::Firestore::V1::StructuredQuery::FieldReference>]
159
- # The fields to return.
160
- #
161
- # If empty, all fields are returned. To only return the name
162
- # of the document, use `['__name__']`.
163
- class Projection; end
164
-
165
- # A filter with a single operand.
166
- # @!attribute [rw] op
167
- # @return [Google::Firestore::V1::StructuredQuery::UnaryFilter::Operator]
168
- # The unary operator to apply.
169
- # @!attribute [rw] field
170
- # @return [Google::Firestore::V1::StructuredQuery::FieldReference]
171
- # The field to which to apply the operator.
172
- class UnaryFilter
173
- # A unary operator.
174
- module Operator
175
- # Unspecified. This value must not be used.
176
- OPERATOR_UNSPECIFIED = 0
177
-
178
- # Test if a field is equal to NaN.
179
- IS_NAN = 2
180
-
181
- # Test if an expression evaluates to Null.
182
- IS_NULL = 3
183
- end
184
- end
185
-
186
- # A reference to a field, such as `max(messages.time) as max_time`.
187
- # @!attribute [rw] field_path
188
- # @return [String]
189
- class FieldReference; end
190
-
191
- # An order on a field.
192
- # @!attribute [rw] field
193
- # @return [Google::Firestore::V1::StructuredQuery::FieldReference]
194
- # The field to order by.
195
- # @!attribute [rw] direction
196
- # @return [Google::Firestore::V1::StructuredQuery::Direction]
197
- # The direction to order by. Defaults to `ASCENDING`.
198
- class Order; end
199
-
200
- # A sort direction.
201
- module Direction
202
- # Unspecified.
203
- DIRECTION_UNSPECIFIED = 0
204
-
205
- # Ascending.
206
- ASCENDING = 1
207
-
208
- # Descending.
209
- DESCENDING = 2
210
- end
211
- end
212
-
213
- # A position in a query result set.
214
- # @!attribute [rw] values
215
- # @return [Array<Google::Firestore::V1::Value>]
216
- # The values that represent a position, in the order they appear in
217
- # the order by clause of a query.
218
- #
219
- # Can contain fewer values than specified in the order by clause.
220
- # @!attribute [rw] before
221
- # @return [true, false]
222
- # If the position is just before or just after the given values, relative
223
- # to the sort order defined by the query.
224
- class Cursor; end
225
- end
226
- end
227
- end
@@ -1,241 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Firestore
18
- module V1
19
- # A write on a document.
20
- # @!attribute [rw] update
21
- # @return [Google::Firestore::V1::Document]
22
- # A document to write.
23
- # @!attribute [rw] delete
24
- # @return [String]
25
- # A document name to delete. In the format:
26
- # `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
27
- # @!attribute [rw] transform
28
- # @return [Google::Firestore::V1::DocumentTransform]
29
- # Applies a transformation to a document.
30
- # @!attribute [rw] update_mask
31
- # @return [Google::Firestore::V1::DocumentMask]
32
- # The fields to update in this write.
33
- #
34
- # This field can be set only when the operation is `update`.
35
- # If the mask is not set for an `update` and the document exists, any
36
- # existing data will be overwritten.
37
- # If the mask is set and the document on the server has fields not covered by
38
- # the mask, they are left unchanged.
39
- # Fields referenced in the mask, but not present in the input document, are
40
- # deleted from the document on the server.
41
- # The field paths in this mask must not contain a reserved field name.
42
- # @!attribute [rw] update_transforms
43
- # @return [Array<Google::Firestore::V1::DocumentTransform::FieldTransform>]
44
- # The transforms to perform after update.
45
- #
46
- # This field can be set only when the operation is `update`. If present, this
47
- # write is equivalent to performing `update` and `transform` to the same
48
- # document atomically and in order.
49
- # @!attribute [rw] current_document
50
- # @return [Google::Firestore::V1::Precondition]
51
- # An optional precondition on the document.
52
- #
53
- # The write will fail if this is set and not met by the target document.
54
- class Write; end
55
-
56
- # A transformation of a document.
57
- # @!attribute [rw] document
58
- # @return [String]
59
- # The name of the document to transform.
60
- # @!attribute [rw] field_transforms
61
- # @return [Array<Google::Firestore::V1::DocumentTransform::FieldTransform>]
62
- # The list of transformations to apply to the fields of the document, in
63
- # order.
64
- # This must not be empty.
65
- class DocumentTransform
66
- # A transformation of a field of the document.
67
- # @!attribute [rw] field_path
68
- # @return [String]
69
- # The path of the field. See {Google::Firestore::V1::Document#fields Document#fields} for the field path syntax
70
- # reference.
71
- # @!attribute [rw] set_to_server_value
72
- # @return [Google::Firestore::V1::DocumentTransform::FieldTransform::ServerValue]
73
- # Sets the field to the given server value.
74
- # @!attribute [rw] increment
75
- # @return [Google::Firestore::V1::Value]
76
- # Adds the given value to the field's current value.
77
- #
78
- # This must be an integer or a double value.
79
- # If the field is not an integer or double, or if the field does not yet
80
- # exist, the transformation will set the field to the given value.
81
- # If either of the given value or the current field value are doubles,
82
- # both values will be interpreted as doubles. Double arithmetic and
83
- # representation of double values follow IEEE 754 semantics.
84
- # If there is positive/negative integer overflow, the field is resolved
85
- # to the largest magnitude positive/negative integer.
86
- # @!attribute [rw] maximum
87
- # @return [Google::Firestore::V1::Value]
88
- # Sets the field to the maximum of its current value and the given value.
89
- #
90
- # This must be an integer or a double value.
91
- # If the field is not an integer or double, or if the field does not yet
92
- # exist, the transformation will set the field to the given value.
93
- # If a maximum operation is applied where the field and the input value
94
- # are of mixed types (that is - one is an integer and one is a double)
95
- # the field takes on the type of the larger operand. If the operands are
96
- # equivalent (e.g. 3 and 3.0), the field does not change.
97
- # 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
98
- # zero input value is always the stored value.
99
- # The maximum of any numeric value x and NaN is NaN.
100
- # @!attribute [rw] minimum
101
- # @return [Google::Firestore::V1::Value]
102
- # Sets the field to the minimum of its current value and the given value.
103
- #
104
- # This must be an integer or a double value.
105
- # If the field is not an integer or double, or if the field does not yet
106
- # exist, the transformation will set the field to the input value.
107
- # If a minimum operation is applied where the field and the input value
108
- # are of mixed types (that is - one is an integer and one is a double)
109
- # the field takes on the type of the smaller operand. If the operands are
110
- # equivalent (e.g. 3 and 3.0), the field does not change.
111
- # 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and
112
- # zero input value is always the stored value.
113
- # The minimum of any numeric value x and NaN is NaN.
114
- # @!attribute [rw] append_missing_elements
115
- # @return [Google::Firestore::V1::ArrayValue]
116
- # Append the given elements in order if they are not already present in
117
- # the current field value.
118
- # If the field is not an array, or if the field does not yet exist, it is
119
- # first set to the empty array.
120
- #
121
- # Equivalent numbers of different types (e.g. 3L and 3.0) are
122
- # considered equal when checking if a value is missing.
123
- # NaN is equal to NaN, and Null is equal to Null.
124
- # If the input contains multiple equivalent values, only the first will
125
- # be considered.
126
- #
127
- # The corresponding transform_result will be the null value.
128
- # @!attribute [rw] remove_all_from_array
129
- # @return [Google::Firestore::V1::ArrayValue]
130
- # Remove all of the given elements from the array in the field.
131
- # If the field is not an array, or if the field does not yet exist, it is
132
- # set to the empty array.
133
- #
134
- # Equivalent numbers of the different types (e.g. 3L and 3.0) are
135
- # considered equal when deciding whether an element should be removed.
136
- # NaN is equal to NaN, and Null is equal to Null.
137
- # This will remove all equivalent values if there are duplicates.
138
- #
139
- # The corresponding transform_result will be the null value.
140
- class FieldTransform
141
- # A value that is calculated by the server.
142
- module ServerValue
143
- # Unspecified. This value must not be used.
144
- SERVER_VALUE_UNSPECIFIED = 0
145
-
146
- # The time at which the server processed the request, with millisecond
147
- # precision.
148
- REQUEST_TIME = 1
149
- end
150
- end
151
- end
152
-
153
- # The result of applying a write.
154
- # @!attribute [rw] update_time
155
- # @return [Google::Protobuf::Timestamp]
156
- # The last update time of the document after applying the write. Not set
157
- # after a `delete`.
158
- #
159
- # If the write did not actually change the document, this will be the
160
- # previous update_time.
161
- # @!attribute [rw] transform_results
162
- # @return [Array<Google::Firestore::V1::Value>]
163
- # The results of applying each {Google::Firestore::V1::DocumentTransform::FieldTransform DocumentTransform::FieldTransform}, in the
164
- # same order.
165
- class WriteResult; end
166
-
167
- # A {Google::Firestore::V1::Document Document} has changed.
168
- #
169
- # May be the result of multiple {Google::Firestore::V1::Write writes}, including deletes, that
170
- # ultimately resulted in a new value for the {Google::Firestore::V1::Document Document}.
171
- #
172
- # Multiple {Google::Firestore::V1::DocumentChange DocumentChange} messages may be returned for the same logical
173
- # change, if multiple targets are affected.
174
- # @!attribute [rw] document
175
- # @return [Google::Firestore::V1::Document]
176
- # The new state of the {Google::Firestore::V1::Document Document}.
177
- #
178
- # If `mask` is set, contains only fields that were updated or added.
179
- # @!attribute [rw] target_ids
180
- # @return [Array<Integer>]
181
- # A set of target IDs of targets that match this document.
182
- # @!attribute [rw] removed_target_ids
183
- # @return [Array<Integer>]
184
- # A set of target IDs for targets that no longer match this document.
185
- class DocumentChange; end
186
-
187
- # A {Google::Firestore::V1::Document Document} has been deleted.
188
- #
189
- # May be the result of multiple {Google::Firestore::V1::Write writes}, including updates, the
190
- # last of which deleted the {Google::Firestore::V1::Document Document}.
191
- #
192
- # Multiple {Google::Firestore::V1::DocumentDelete DocumentDelete} messages may be returned for the same logical
193
- # delete, if multiple targets are affected.
194
- # @!attribute [rw] document
195
- # @return [String]
196
- # The resource name of the {Google::Firestore::V1::Document Document} that was deleted.
197
- # @!attribute [rw] removed_target_ids
198
- # @return [Array<Integer>]
199
- # A set of target IDs for targets that previously matched this entity.
200
- # @!attribute [rw] read_time
201
- # @return [Google::Protobuf::Timestamp]
202
- # The read timestamp at which the delete was observed.
203
- #
204
- # Greater or equal to the `commit_time` of the delete.
205
- class DocumentDelete; end
206
-
207
- # A {Google::Firestore::V1::Document Document} has been removed from the view of the targets.
208
- #
209
- # Sent if the document is no longer relevant to a target and is out of view.
210
- # Can be sent instead of a DocumentDelete or a DocumentChange if the server
211
- # can not send the new value of the document.
212
- #
213
- # Multiple {Google::Firestore::V1::DocumentRemove DocumentRemove} messages may be returned for the same logical
214
- # write or delete, if multiple targets are affected.
215
- # @!attribute [rw] document
216
- # @return [String]
217
- # The resource name of the {Google::Firestore::V1::Document Document} that has gone out of view.
218
- # @!attribute [rw] removed_target_ids
219
- # @return [Array<Integer>]
220
- # A set of target IDs for targets that previously matched this document.
221
- # @!attribute [rw] read_time
222
- # @return [Google::Protobuf::Timestamp]
223
- # The read timestamp at which the remove was observed.
224
- #
225
- # Greater or equal to the `commit_time` of the change/delete/remove.
226
- class DocumentRemove; end
227
-
228
- # A digest of all the documents that match a given target.
229
- # @!attribute [rw] target_id
230
- # @return [Integer]
231
- # The target ID to which this filter applies.
232
- # @!attribute [rw] count
233
- # @return [Integer]
234
- # The total count of documents that match {Google::Firestore::V1::ExistenceFilter#target_id target_id}.
235
- #
236
- # If different from the count of documents in the client that match, the
237
- # client must manually determine which documents no longer match the target.
238
- class ExistenceFilter; end
239
- end
240
- end
241
- end