google-cloud-firestore 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51be2bb301f8eb7d271a28efa81767e4cf296b6111665df4f0857ed495f4bc4e
4
- data.tar.gz: b859f290260bdc0448f7407c4f0c7f481bfdc98ef808750c56633817b46417c0
3
+ metadata.gz: 7a372105eb0fb0531e688b5356352fc22ff2e2cef1617b48f8ea21eb92770d4b
4
+ data.tar.gz: ea22312d8f70b988d3f579ba2082c613e31b2984bee1abd042414418f51dda03
5
5
  SHA512:
6
- metadata.gz: 72a920965f28b179256c47f474668cf1c7d35b202356184a2a3c934768dab747aaddce43d3bb821c82785da73560b03baf130bb534886315fcbdedb1b1032b56
7
- data.tar.gz: 46bde522096b25cd0cd0951a92d598378c6d8536e4a505215110272b2dca08ea585ded8591c79e461ac3dd31f8539450f7a29c07ae68f60beccf77b739c7e217
6
+ metadata.gz: 63a6a73b0293ad19b036fea81fde39ba00ea9a3f1d36b6da5db1200fcd66efd2bfbbdde0f315c8569aa1e463268f0e29bc89360f844574f7842cb988852523fb
7
+ data.tar.gz: 6fa58705cacf429d54217eacf42b16fbceffed6880aa797c3d6f3e6530975e3cb76e8419305f10ced3fcd3593e9618862c43ecf9d3e09798120c0c28d23d4900
@@ -55,32 +55,10 @@ code.
55
55
 
56
56
  ### Google Cloud Platform environments
57
57
 
58
- While running on Google Cloud Platform environments such as Google Compute
59
- Engine, Google App Engine and Google Kubernetes Engine, no extra work is needed.
60
- The **Project ID** and **Credentials** and are discovered automatically. Code
61
- should be written as if already authenticated. Just be sure when you [set up the
62
- GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
63
- access. For example:
64
-
65
- * **All APIs**
66
- * `https://www.googleapis.com/auth/cloud-platform`
67
- * `https://www.googleapis.com/auth/cloud-platform.read-only`
68
- * **BigQuery**
69
- * `https://www.googleapis.com/auth/bigquery`
70
- * `https://www.googleapis.com/auth/bigquery.insertdata`
71
- * **Compute Engine**
72
- * `https://www.googleapis.com/auth/compute`
73
- * **Datastore**
74
- * `https://www.googleapis.com/auth/datastore`
75
- * `https://www.googleapis.com/auth/userinfo.email`
76
- * **DNS**
77
- * `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
78
- * **Pub/Sub**
79
- * `https://www.googleapis.com/auth/pubsub`
80
- * **Storage**
81
- * `https://www.googleapis.com/auth/devstorage.full_control`
82
- * `https://www.googleapis.com/auth/devstorage.read_only`
83
- * `https://www.googleapis.com/auth/devstorage.read_write`
58
+ When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
59
+ Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
60
+ (GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
61
+ automatically. Code should be written as if already authenticated.
84
62
 
85
63
  ### Environment Variables
86
64
 
@@ -1,5 +1,13 @@
1
1
  # Release History
2
2
 
3
+ ### 1.2.0 / 2019-10-29
4
+
5
+ This release requires Ruby 2.4 or later.
6
+
7
+ #### Documentation
8
+
9
+ * Clarify which Google Cloud Platform environments support automatic authentication
10
+
3
11
  ### 1.1.0 / 2019-08-23
4
12
 
5
13
  #### Features
@@ -24,7 +24,7 @@ be able to accept your pull requests.
24
24
  In order to use the google-cloud-firestore console and run the project's tests,
25
25
  there is a small amount of setup:
26
26
 
27
- 1. Install Ruby. google-cloud-firestore requires Ruby 2.3+. You may choose to
27
+ 1. Install Ruby. google-cloud-firestore requires Ruby 2.4+. You may choose to
28
28
  manage your Ruby and gem installations with [RVM](https://rvm.io/),
29
29
  [rbenv](https://github.com/rbenv/rbenv), or
30
30
  [chruby](https://github.com/postmodern/chruby).
@@ -12,9 +12,11 @@ Documentation](https://cloud.google.com/firestore/docs/).
12
12
  The goal of google-cloud is to provide an API that is comfortable to Rubyists.
13
13
  Authentication is handled by {Google::Cloud::Firestore.new Firestore.new}. You
14
14
  can provide the project and credential information to connect to the Cloud
15
- Firestore service, or if you are running on Google Compute Engine this
16
- configuration is taken care of for you. You can read more about the options for
17
- connecting in the {file:AUTHENTICATION.md Authentication Guide}.
15
+ Firestore service, or if you are running on Google Cloud Platform (GCP),
16
+ including Google Compute Engine (GCE), Google Kubernetes Engine (GKE), Google
17
+ App Engine (GAE), Google Cloud Functions (GCF) and Cloud Run this configuration
18
+ is taken care of for you. You can read more about the options for connecting in
19
+ the {file:AUTHENTICATION.md Authentication Guide}.
18
20
 
19
21
  ## Adding data
20
22
 
@@ -62,14 +62,12 @@ module Google
62
62
  # The indexes supported for this field.
63
63
  # @!attribute [rw] uses_ancestor_config
64
64
  # @return [true, false]
65
- # Output only.
66
- # When true, the `Field`'s index configuration is set from the
65
+ # Output only. When true, the `Field`'s index configuration is set from the
67
66
  # configuration specified by the `ancestor_field`.
68
67
  # When false, the `Field`'s index configuration is defined explicitly.
69
68
  # @!attribute [rw] ancestor_field
70
69
  # @return [String]
71
- # Output only.
72
- # Specifies the resource name of the `Field` from which this field's
70
+ # Output only. Specifies the resource name of the `Field` from which this field's
73
71
  # index configuration is set (when `uses_ancestor_config` is true),
74
72
  # or from which it *would* be set if this field had no index configuration
75
73
  # (when `uses_ancestor_config` is false).
@@ -21,8 +21,7 @@ module Google
21
21
  # documents in a database.
22
22
  # @!attribute [rw] name
23
23
  # @return [String]
24
- # Output only.
25
- # A server defined name for this index.
24
+ # Output only. A server defined name for this index.
26
25
  # The form of this name for composite indexes will be:
27
26
  # `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
28
27
  # For single field indexes, this field will be empty.
@@ -50,8 +49,7 @@ module Google
50
49
  # field path equal to the field path of the associated field.
51
50
  # @!attribute [rw] state
52
51
  # @return [Google::Firestore::Admin::V1::Index::State]
53
- # Output only.
54
- # The serving state of the index.
52
+ # Output only. The serving state of the index.
55
53
  class Index
56
54
  # A field in an index.
57
55
  # The field_path describes which field is indexed, the value_mode describes
@@ -101,6 +99,11 @@ module Google
101
99
  # against a collection that is the child of a specific document, specified
102
100
  # at query time, and that has the collection id specified by the index.
103
101
  COLLECTION = 1
102
+
103
+ # Indexes with a collection group query scope specified allow queries
104
+ # against all collections that has the collection id specified by the
105
+ # index.
106
+ COLLECTION_GROUP = 2
104
107
  end
105
108
 
106
109
  # The state of an index. During index creation, an index will be in the
@@ -4,6 +4,7 @@
4
4
  "retry_codes": {
5
5
  "idempotent": [
6
6
  "DEADLINE_EXCEEDED",
7
+ "INTERNAL",
7
8
  "UNAVAILABLE"
8
9
  ],
9
10
  "non_idempotent": []
@@ -13,9 +14,9 @@
13
14
  "initial_retry_delay_millis": 100,
14
15
  "retry_delay_multiplier": 1.3,
15
16
  "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
+ "initial_rpc_timeout_millis": 60000,
17
18
  "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
+ "max_rpc_timeout_millis": 60000,
19
20
  "total_timeout_millis": 600000
20
21
  }
21
22
  },
@@ -442,14 +442,8 @@ module Google
442
442
  # The client must know the state of matching documents at this time.
443
443
  # @!attribute [rw] target_id
444
444
  # @return [Integer]
445
- # A client provided target ID.
446
- #
447
- # If not set, the server will assign an ID for the target.
448
- #
449
- # Used for resuming a target without changing IDs. The IDs can either be
450
- # client-assigned or be server-assigned in a previous stream. All targets
451
- # with client provided IDs must be added before adding a target that needs
452
- # a server-assigned id.
445
+ # The target ID that identifies the target on the stream. Must be a positive
446
+ # number and non-zero.
453
447
  # @!attribute [rw] once
454
448
  # @return [true, false]
455
449
  # If the target should be removed once it is current and consistent.
@@ -488,11 +482,7 @@ module Google
488
482
  #
489
483
  # If empty, the change applies to all targets.
490
484
  #
491
- # For `target_change_type=ADD`, the order of the target IDs matches the order
492
- # of the requests to add the targets. This allows clients to unambiguously
493
- # associate server-assigned target IDs with added targets.
494
- #
495
- # For other states, the order of the target IDs is not defined.
485
+ # The order of the target IDs is not defined.
496
486
  # @!attribute [rw] cause
497
487
  # @return [Google::Rpc::Status]
498
488
  # The error that resulted in this change, if applicable.
@@ -142,6 +142,14 @@ module Google
142
142
 
143
143
  # Contains. Requires that the field is an array.
144
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
145
153
  end
146
154
  end
147
155
 
@@ -161,15 +169,19 @@ module Google
161
169
  # Test if a field is equal to NaN.
162
170
  IS_NAN = 2
163
171
 
164
- # Test if an exprestion evaluates to Null.
172
+ # Test if an expression evaluates to Null.
165
173
  IS_NULL = 3
166
174
  end
167
175
  end
168
176
 
169
- # A reference to a field, such as `max(messages.time) as max_time`.
170
- # @!attribute [rw] field_path
171
- # @return [String]
172
- class FieldReference; end
177
+ # The projection of document's fields to return.
178
+ # @!attribute [rw] fields
179
+ # @return [Array<Google::Firestore::V1::StructuredQuery::FieldReference>]
180
+ # The fields to return.
181
+ #
182
+ # If empty, all fields are returned. To only return the name
183
+ # of the document, use `['__name__']`.
184
+ class Projection; end
173
185
 
174
186
  # An order on a field.
175
187
  # @!attribute [rw] field
@@ -180,14 +192,10 @@ module Google
180
192
  # The direction to order by. Defaults to `ASCENDING`.
181
193
  class Order; end
182
194
 
183
- # The projection of document's fields to return.
184
- # @!attribute [rw] fields
185
- # @return [Array<Google::Firestore::V1::StructuredQuery::FieldReference>]
186
- # The fields to return.
187
- #
188
- # If empty, all fields are returned. To only return the name
189
- # of the document, use `['__name__']`.
190
- class Projection; end
195
+ # A reference to a field, such as `max(messages.time) as max_time`.
196
+ # @!attribute [rw] field_path
197
+ # @return [String]
198
+ class FieldReference; end
191
199
 
192
200
  # A sort direction.
193
201
  module Direction
@@ -88,11 +88,13 @@ module Google
88
88
  # 01:30 UTC on January 15, 2017.
89
89
  #
90
90
  # In JavaScript, one can convert a Date object to this format using the
91
- # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
91
+ # standard
92
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
92
93
  # method. In Python, a standard `datetime.datetime` object can be converted
93
- # to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
94
- # with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
95
- # can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
94
+ # to this format using
95
+ # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
96
+ # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
97
+ # the Joda Time's [`ISODateTimeFormat.dateTime()`](
96
98
  # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
97
99
  # ) to obtain a formatter capable of generating timestamps in this format.
98
100
  # @!attribute [rw] seconds
@@ -4,6 +4,7 @@
4
4
  "retry_codes": {
5
5
  "idempotent": [
6
6
  "DEADLINE_EXCEEDED",
7
+ "INTERNAL",
7
8
  "UNAVAILABLE"
8
9
  ],
9
10
  "non_idempotent": []
@@ -13,18 +14,18 @@
13
14
  "initial_retry_delay_millis": 100,
14
15
  "retry_delay_multiplier": 1.3,
15
16
  "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
+ "initial_rpc_timeout_millis": 60000,
17
18
  "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
+ "max_rpc_timeout_millis": 60000,
19
20
  "total_timeout_millis": 600000
20
21
  },
21
22
  "streaming": {
22
23
  "initial_retry_delay_millis": 100,
23
24
  "retry_delay_multiplier": 1.3,
24
25
  "max_retry_delay_millis": 60000,
25
- "initial_rpc_timeout_millis": 300000,
26
+ "initial_rpc_timeout_millis": 60000,
26
27
  "rpc_timeout_multiplier": 1.0,
27
- "max_rpc_timeout_millis": 300000,
28
+ "max_rpc_timeout_millis": 60000,
28
29
  "total_timeout_millis": 600000
29
30
  }
30
31
  },
@@ -442,14 +442,8 @@ module Google
442
442
  # The client must know the state of matching documents at this time.
443
443
  # @!attribute [rw] target_id
444
444
  # @return [Integer]
445
- # A client provided target ID.
446
- #
447
- # If not set, the server will assign an ID for the target.
448
- #
449
- # Used for resuming a target without changing IDs. The IDs can either be
450
- # client-assigned or be server-assigned in a previous stream. All targets
451
- # with client provided IDs must be added before adding a target that needs
452
- # a server-assigned id.
445
+ # The target ID that identifies the target on the stream. Must be a positive
446
+ # number and non-zero.
453
447
  # @!attribute [rw] once
454
448
  # @return [true, false]
455
449
  # If the target should be removed once it is current and consistent.
@@ -488,11 +482,7 @@ module Google
488
482
  #
489
483
  # If empty, the change applies to all targets.
490
484
  #
491
- # For `target_change_type=ADD`, the order of the target IDs matches the order
492
- # of the requests to add the targets. This allows clients to unambiguously
493
- # associate server-assigned target IDs with added targets.
494
- #
495
- # For other states, the order of the target IDs is not defined.
485
+ # The order of the target IDs is not defined.
496
486
  # @!attribute [rw] cause
497
487
  # @return [Google::Rpc::Status]
498
488
  # The error that resulted in this change, if applicable.
@@ -142,18 +142,17 @@ module Google
142
142
 
143
143
  # Contains. Requires that the field is an array.
144
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
145
153
  end
146
154
  end
147
155
 
148
- # The projection of document's fields to return.
149
- # @!attribute [rw] fields
150
- # @return [Array<Google::Firestore::V1beta1::StructuredQuery::FieldReference>]
151
- # The fields to return.
152
- #
153
- # If empty, all fields are returned. To only return the name
154
- # of the document, use `['__name__']`.
155
- class Projection; end
156
-
157
156
  # A filter with a single operand.
158
157
  # @!attribute [rw] op
159
158
  # @return [Google::Firestore::V1beta1::StructuredQuery::UnaryFilter::Operator]
@@ -170,7 +169,7 @@ module Google
170
169
  # Test if a field is equal to NaN.
171
170
  IS_NAN = 2
172
171
 
173
- # Test if an exprestion evaluates to Null.
172
+ # Test if an expression evaluates to Null.
174
173
  IS_NULL = 3
175
174
  end
176
175
  end
@@ -184,6 +183,15 @@ module Google
184
183
  # The direction to order by. Defaults to `ASCENDING`.
185
184
  class Order; end
186
185
 
186
+ # The projection of document's fields to return.
187
+ # @!attribute [rw] fields
188
+ # @return [Array<Google::Firestore::V1beta1::StructuredQuery::FieldReference>]
189
+ # The fields to return.
190
+ #
191
+ # If empty, all fields are returned. To only return the name
192
+ # of the document, use `['__name__']`.
193
+ class Projection; end
194
+
187
195
  # A reference to a field, such as `max(messages.time) as max_time`.
188
196
  # @!attribute [rw] field_path
189
197
  # @return [String]
@@ -88,11 +88,13 @@ module Google
88
88
  # 01:30 UTC on January 15, 2017.
89
89
  #
90
90
  # In JavaScript, one can convert a Date object to this format using the
91
- # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
91
+ # standard
92
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
92
93
  # method. In Python, a standard `datetime.datetime` object can be converted
93
- # to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
94
- # with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
95
- # can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
94
+ # to this format using
95
+ # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
96
+ # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
97
+ # the Joda Time's [`ISODateTimeFormat.dateTime()`](
96
98
  # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
97
99
  # ) to obtain a formatter capable of generating timestamps in this format.
98
100
  # @!attribute [rw] seconds
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Firestore
19
- VERSION = "1.1.0".freeze
19
+ VERSION = "1.2.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -10,6 +10,7 @@ require 'google/firestore/admin/v1/index_pb'
10
10
  require 'google/longrunning/operations_pb'
11
11
  require 'google/protobuf/empty_pb'
12
12
  require 'google/protobuf/field_mask_pb'
13
+ require 'google/api/client_pb'
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_message "google.firestore.admin.v1.CreateIndexRequest" do
15
16
  optional :parent, :string, 1
@@ -31,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
31
  add_enum "google.firestore.admin.v1.Index.QueryScope" do
32
32
  value :QUERY_SCOPE_UNSPECIFIED, 0
33
33
  value :COLLECTION, 1
34
+ value :COLLECTION_GROUP, 2
34
35
  end
35
36
  add_enum "google.firestore.admin.v1.Index.State" do
36
37
  value :STATE_UNSPECIFIED, 0
@@ -12,6 +12,7 @@ require 'google/firestore/v1/write_pb'
12
12
  require 'google/protobuf/empty_pb'
13
13
  require 'google/protobuf/timestamp_pb'
14
14
  require 'google/rpc/status_pb'
15
+ require 'google/api/client_pb'
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
17
  add_message "google.firestore.v1.GetDocumentRequest" do
17
18
  optional :name, :string, 1
@@ -25,6 +25,8 @@ module Google
25
25
  module Firestore
26
26
  module V1
27
27
  module Firestore
28
+ # Specification of the Firestore API.
29
+ #
28
30
  # The Cloud Firestore service.
29
31
  #
30
32
  # This service exposes several types of comparable timestamps:
@@ -50,6 +50,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
50
50
  value :GREATER_THAN_OR_EQUAL, 4
51
51
  value :EQUAL, 5
52
52
  value :ARRAY_CONTAINS, 7
53
+ value :IN, 8
54
+ value :ARRAY_CONTAINS_ANY, 9
53
55
  end
54
56
  add_message "google.firestore.v1.StructuredQuery.UnaryFilter" do
55
57
  optional :op, :enum, 1, "google.firestore.v1.StructuredQuery.UnaryFilter.Operator"
@@ -62,15 +64,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
62
64
  value :IS_NAN, 2
63
65
  value :IS_NULL, 3
64
66
  end
65
- add_message "google.firestore.v1.StructuredQuery.FieldReference" do
66
- optional :field_path, :string, 2
67
+ add_message "google.firestore.v1.StructuredQuery.Projection" do
68
+ repeated :fields, :message, 2, "google.firestore.v1.StructuredQuery.FieldReference"
67
69
  end
68
70
  add_message "google.firestore.v1.StructuredQuery.Order" do
69
71
  optional :field, :message, 1, "google.firestore.v1.StructuredQuery.FieldReference"
70
72
  optional :direction, :enum, 2, "google.firestore.v1.StructuredQuery.Direction"
71
73
  end
72
- add_message "google.firestore.v1.StructuredQuery.Projection" do
73
- repeated :fields, :message, 2, "google.firestore.v1.StructuredQuery.FieldReference"
74
+ add_message "google.firestore.v1.StructuredQuery.FieldReference" do
75
+ optional :field_path, :string, 2
74
76
  end
75
77
  add_enum "google.firestore.v1.StructuredQuery.Direction" do
76
78
  value :DIRECTION_UNSPECIFIED, 0
@@ -95,9 +97,9 @@ module Google
95
97
  StructuredQuery::FieldFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldFilter.Operator").enummodule
96
98
  StructuredQuery::UnaryFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter").msgclass
97
99
  StructuredQuery::UnaryFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter.Operator").enummodule
98
- StructuredQuery::FieldReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldReference").msgclass
99
- StructuredQuery::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Order").msgclass
100
100
  StructuredQuery::Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Projection").msgclass
101
+ StructuredQuery::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Order").msgclass
102
+ StructuredQuery::FieldReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldReference").msgclass
101
103
  StructuredQuery::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Direction").enummodule
102
104
  Cursor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Cursor").msgclass
103
105
  end
@@ -12,6 +12,7 @@ require 'google/firestore/v1beta1/write_pb'
12
12
  require 'google/protobuf/empty_pb'
13
13
  require 'google/protobuf/timestamp_pb'
14
14
  require 'google/rpc/status_pb'
15
+ require 'google/api/client_pb'
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
17
  add_message "google.firestore.v1beta1.GetDocumentRequest" do
17
18
  optional :name, :string, 1
@@ -25,6 +25,8 @@ module Google
25
25
  module Firestore
26
26
  module V1beta1
27
27
  module Firestore
28
+ # Specification of the Firestore API.
29
+ #
28
30
  # The Cloud Firestore service.
29
31
  #
30
32
  # This service exposes several types of comparable timestamps:
@@ -50,9 +50,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
50
50
  value :GREATER_THAN_OR_EQUAL, 4
51
51
  value :EQUAL, 5
52
52
  value :ARRAY_CONTAINS, 7
53
- end
54
- add_message "google.firestore.v1beta1.StructuredQuery.Projection" do
55
- repeated :fields, :message, 2, "google.firestore.v1beta1.StructuredQuery.FieldReference"
53
+ value :IN, 8
54
+ value :ARRAY_CONTAINS_ANY, 9
56
55
  end
57
56
  add_message "google.firestore.v1beta1.StructuredQuery.UnaryFilter" do
58
57
  optional :op, :enum, 1, "google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator"
@@ -69,6 +68,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
69
68
  optional :field, :message, 1, "google.firestore.v1beta1.StructuredQuery.FieldReference"
70
69
  optional :direction, :enum, 2, "google.firestore.v1beta1.StructuredQuery.Direction"
71
70
  end
71
+ add_message "google.firestore.v1beta1.StructuredQuery.Projection" do
72
+ repeated :fields, :message, 2, "google.firestore.v1beta1.StructuredQuery.FieldReference"
73
+ end
72
74
  add_message "google.firestore.v1beta1.StructuredQuery.FieldReference" do
73
75
  optional :field_path, :string, 2
74
76
  end
@@ -93,10 +95,10 @@ module Google
93
95
  StructuredQuery::CompositeFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator").enummodule
94
96
  StructuredQuery::FieldFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.FieldFilter").msgclass
95
97
  StructuredQuery::FieldFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator").enummodule
96
- StructuredQuery::Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Projection").msgclass
97
98
  StructuredQuery::UnaryFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.UnaryFilter").msgclass
98
99
  StructuredQuery::UnaryFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator").enummodule
99
100
  StructuredQuery::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Order").msgclass
101
+ StructuredQuery::Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Projection").msgclass
100
102
  StructuredQuery::FieldReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.FieldReference").msgclass
101
103
  StructuredQuery::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Direction").enummodule
102
104
  Cursor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.Cursor").msgclass
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-firestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '1.8'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '1.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: concurrent-ruby
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.4.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: google-style
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.24.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.24.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: minitest
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -150,20 +164,6 @@ dependencies:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
166
  version: '3.0'
153
- - !ruby/object:Gem::Dependency
154
- name: rubocop
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 0.64.0
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 0.64.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -320,14 +320,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
320
320
  requirements:
321
321
  - - ">="
322
322
  - !ruby/object:Gem::Version
323
- version: 2.0.0
323
+ version: '2.4'
324
324
  required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  requirements:
326
326
  - - ">="
327
327
  - !ruby/object:Gem::Version
328
328
  version: '0'
329
329
  requirements: []
330
- rubygems_version: 3.0.4
330
+ rubygems_version: 3.0.6
331
331
  signing_key:
332
332
  specification_version: 4
333
333
  summary: API Client library for Google Cloud Firestore API