google-cloud-firestore-v1 0.4.0 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fc7b1061d772309aac4bebedefa816d45e99778f3dbcd49647df48fef278f4b
4
- data.tar.gz: beb8a8743ca3cb8854272d13b8007af61c6a2511d4d7403eb0574b8b22917858
3
+ metadata.gz: caff5a90ad86b9e2286c019fda5d74ad2be02ea0ee356159ace27292b581f5c1
4
+ data.tar.gz: 376b85b0ea7e53d4849be76978d107310836edc59e792364a5c2302b37ad3b0c
5
5
  SHA512:
6
- metadata.gz: 4ddf4cb3d52602fb8ae5a279755c2959fc8e7fe875d0ed0b1591f47a2ba0b5ebe090f511c981d96afb8fb1542799fae67edc93686e147e54a251c82733fd2ce4
7
- data.tar.gz: 266a6b5243e9effad76151e50996d95949bfbe8c974dc2118a0d139bd7eec366b2ccc77c6eb3da430cacfee6db20e921759ea1519773d7a72ad095712f692c59
6
+ metadata.gz: 4321c314895807c9faf1198cb2ae2cb46799afee72cdc5990266e9a9938d57e572be10fd2e533bdd2712a06293531352305784722699075e091480a6f728a3ea
7
+ data.tar.gz: 99d05447c328b45e7e618849d8ec890817024aee4fd505211ca82a2c5c3c0ed1bf3f4a3d405439124cfb9ac4f289a89fdb9ade8bb99eff501cafe9c605bbbc4c
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-firestore-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Firestore::V1::Firestore::Credentials}):
68
68
 
69
- 1. `FIRESTORE_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `FIRESTORE_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `FIRESTORE_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `FIRESTORE_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/firestore/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/firestore/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/firestore/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/firestore/v1"
34
34
 
35
35
  client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Firestore::V1::GetDocumentRequest.new # (request fields as keyword arguments...)
37
37
  response = client.get_document request
38
38
  ```
39
39
 
@@ -46,13 +46,12 @@ module Google
46
46
  # See {::Google::Cloud::Firestore::V1::Firestore::Client::Configuration}
47
47
  # for a description of the configuration fields.
48
48
  #
49
- # ## Example
49
+ # @example
50
50
  #
51
- # To modify the configuration for all Firestore clients:
52
- #
53
- # ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
54
- # config.timeout = 10.0
55
- # end
51
+ # # Modify the configuration for all Firestore clients
52
+ # ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
53
+ # config.timeout = 10.0
54
+ # end
56
55
  #
57
56
  # @yield [config] Configure the Client client.
58
57
  # @yieldparam config [Client::Configuration]
@@ -72,116 +71,74 @@ module Google
72
71
 
73
72
  default_config.rpcs.get_document.timeout = 60.0
74
73
  default_config.rpcs.get_document.retry_policy = {
75
- initial_delay: 0.1,
76
- max_delay: 60.0,
77
- multiplier: 1.3,
78
- retry_codes: [14, 13, 4]
74
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
79
75
  }
80
76
 
81
77
  default_config.rpcs.list_documents.timeout = 60.0
82
78
  default_config.rpcs.list_documents.retry_policy = {
83
- initial_delay: 0.1,
84
- max_delay: 60.0,
85
- multiplier: 1.3,
86
- retry_codes: [14, 13, 4]
79
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
87
80
  }
88
81
 
89
82
  default_config.rpcs.update_document.timeout = 60.0
90
83
  default_config.rpcs.update_document.retry_policy = {
91
- initial_delay: 0.1,
92
- max_delay: 60.0,
93
- multiplier: 1.3,
94
- retry_codes: [14]
84
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14]
95
85
  }
96
86
 
97
87
  default_config.rpcs.delete_document.timeout = 60.0
98
88
  default_config.rpcs.delete_document.retry_policy = {
99
- initial_delay: 0.1,
100
- max_delay: 60.0,
101
- multiplier: 1.3,
102
- retry_codes: [14, 13, 4]
89
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
103
90
  }
104
91
 
105
92
  default_config.rpcs.batch_get_documents.timeout = 300.0
106
93
  default_config.rpcs.batch_get_documents.retry_policy = {
107
- initial_delay: 0.1,
108
- max_delay: 60.0,
109
- multiplier: 1.3,
110
- retry_codes: [14, 13, 4]
94
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
111
95
  }
112
96
 
113
97
  default_config.rpcs.begin_transaction.timeout = 60.0
114
98
  default_config.rpcs.begin_transaction.retry_policy = {
115
- initial_delay: 0.1,
116
- max_delay: 60.0,
117
- multiplier: 1.3,
118
- retry_codes: [14, 13, 4]
99
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
119
100
  }
120
101
 
121
102
  default_config.rpcs.commit.timeout = 60.0
122
103
  default_config.rpcs.commit.retry_policy = {
123
- initial_delay: 0.1,
124
- max_delay: 60.0,
125
- multiplier: 1.3,
126
- retry_codes: [14]
104
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14]
127
105
  }
128
106
 
129
107
  default_config.rpcs.rollback.timeout = 60.0
130
108
  default_config.rpcs.rollback.retry_policy = {
131
- initial_delay: 0.1,
132
- max_delay: 60.0,
133
- multiplier: 1.3,
134
- retry_codes: [14, 13, 4]
109
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
135
110
  }
136
111
 
137
112
  default_config.rpcs.run_query.timeout = 300.0
138
113
  default_config.rpcs.run_query.retry_policy = {
139
- initial_delay: 0.1,
140
- max_delay: 60.0,
141
- multiplier: 1.3,
142
- retry_codes: [14, 13, 4]
114
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
143
115
  }
144
116
 
145
117
  default_config.rpcs.partition_query.timeout = 300.0
146
118
  default_config.rpcs.partition_query.retry_policy = {
147
- initial_delay: 0.1,
148
- max_delay: 60.0,
149
- multiplier: 1.3,
150
- retry_codes: [14, 13, 4]
119
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
151
120
  }
152
121
 
153
122
  default_config.rpcs.write.timeout = 86_400.0
154
123
 
155
124
  default_config.rpcs.listen.timeout = 86_400.0
156
125
  default_config.rpcs.listen.retry_policy = {
157
- initial_delay: 0.1,
158
- max_delay: 60.0,
159
- multiplier: 1.3,
160
- retry_codes: [14, 13, 4]
126
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
161
127
  }
162
128
 
163
129
  default_config.rpcs.list_collection_ids.timeout = 60.0
164
130
  default_config.rpcs.list_collection_ids.retry_policy = {
165
- initial_delay: 0.1,
166
- max_delay: 60.0,
167
- multiplier: 1.3,
168
- retry_codes: [14, 13, 4]
131
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
169
132
  }
170
133
 
171
134
  default_config.rpcs.batch_write.timeout = 60.0
172
135
  default_config.rpcs.batch_write.retry_policy = {
173
- initial_delay: 0.1,
174
- max_delay: 60.0,
175
- multiplier: 1.3,
176
- retry_codes: [14, 10]
136
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14, 10]
177
137
  }
178
138
 
179
139
  default_config.rpcs.create_document.timeout = 60.0
180
140
  default_config.rpcs.create_document.retry_policy = {
181
- initial_delay: 0.1,
182
- max_delay: 60.0,
183
- multiplier: 1.3,
184
- retry_codes: [14]
141
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [8, 14]
185
142
  }
186
143
 
187
144
  default_config
@@ -213,19 +170,15 @@ module Google
213
170
  ##
214
171
  # Create a new Firestore client object.
215
172
  #
216
- # ## Examples
217
- #
218
- # To create a new Firestore client with the default
219
- # configuration:
220
- #
221
- # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
173
+ # @example
222
174
  #
223
- # To create a new Firestore client with a custom
224
- # configuration:
175
+ # # Create a client using the default configuration
176
+ # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new
225
177
  #
226
- # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
227
- # config.timeout = 10.0
228
- # end
178
+ # # Create a client using a custom configuration
179
+ # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
180
+ # config.timeout = 10.0
181
+ # end
229
182
  #
230
183
  # @yield [config] Configure the Firestore client.
231
184
  # @yieldparam config [Client::Configuration]
@@ -245,14 +198,13 @@ module Google
245
198
 
246
199
  # Create credentials
247
200
  credentials = @config.credentials
248
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
201
+ # Use self-signed JWT if the endpoint is unchanged from default,
249
202
  # but only if the default endpoint does not have a region prefix.
250
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
251
- @config.endpoint == Client.configure.endpoint &&
203
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
252
204
  !@config.endpoint.split(".").first.include?("-")
253
205
  credentials ||= Credentials.default scope: @config.scope,
254
206
  enable_self_signed_jwt: enable_self_signed_jwt
255
- if credentials.is_a?(String) || credentials.is_a?(Hash)
207
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
256
208
  credentials = Credentials.new credentials, scope: @config.scope
257
209
  end
258
210
  @quota_project_id = @config.quota_project
@@ -335,7 +287,9 @@ module Google
335
287
  options.apply_defaults timeout: @config.rpcs.get_document.timeout,
336
288
  metadata: metadata,
337
289
  retry_policy: @config.rpcs.get_document.retry_policy
338
- options.apply_defaults metadata: @config.metadata,
290
+
291
+ options.apply_defaults timeout: @config.timeout,
292
+ metadata: @config.metadata,
339
293
  retry_policy: @config.retry_policy
340
294
 
341
295
  @firestore_stub.call_rpc :get_document, request, options: options do |response, operation|
@@ -434,7 +388,9 @@ module Google
434
388
  options.apply_defaults timeout: @config.rpcs.list_documents.timeout,
435
389
  metadata: metadata,
436
390
  retry_policy: @config.rpcs.list_documents.retry_policy
437
- options.apply_defaults metadata: @config.metadata,
391
+
392
+ options.apply_defaults timeout: @config.timeout,
393
+ metadata: @config.metadata,
438
394
  retry_policy: @config.retry_policy
439
395
 
440
396
  @firestore_stub.call_rpc :list_documents, request, options: options do |response, operation|
@@ -518,7 +474,9 @@ module Google
518
474
  options.apply_defaults timeout: @config.rpcs.update_document.timeout,
519
475
  metadata: metadata,
520
476
  retry_policy: @config.rpcs.update_document.retry_policy
521
- options.apply_defaults metadata: @config.metadata,
477
+
478
+ options.apply_defaults timeout: @config.timeout,
479
+ metadata: @config.metadata,
522
480
  retry_policy: @config.retry_policy
523
481
 
524
482
  @firestore_stub.call_rpc :update_document, request, options: options do |response, operation|
@@ -588,7 +546,9 @@ module Google
588
546
  options.apply_defaults timeout: @config.rpcs.delete_document.timeout,
589
547
  metadata: metadata,
590
548
  retry_policy: @config.rpcs.delete_document.retry_policy
591
- options.apply_defaults metadata: @config.metadata,
549
+
550
+ options.apply_defaults timeout: @config.timeout,
551
+ metadata: @config.metadata,
592
552
  retry_policy: @config.retry_policy
593
553
 
594
554
  @firestore_stub.call_rpc :delete_document, request, options: options do |response, operation|
@@ -678,7 +638,9 @@ module Google
678
638
  options.apply_defaults timeout: @config.rpcs.batch_get_documents.timeout,
679
639
  metadata: metadata,
680
640
  retry_policy: @config.rpcs.batch_get_documents.retry_policy
681
- options.apply_defaults metadata: @config.metadata,
641
+
642
+ options.apply_defaults timeout: @config.timeout,
643
+ metadata: @config.metadata,
682
644
  retry_policy: @config.retry_policy
683
645
 
684
646
  @firestore_stub.call_rpc :batch_get_documents, request, options: options do |response, operation|
@@ -748,7 +710,9 @@ module Google
748
710
  options.apply_defaults timeout: @config.rpcs.begin_transaction.timeout,
749
711
  metadata: metadata,
750
712
  retry_policy: @config.rpcs.begin_transaction.retry_policy
751
- options.apply_defaults metadata: @config.metadata,
713
+
714
+ options.apply_defaults timeout: @config.timeout,
715
+ metadata: @config.metadata,
752
716
  retry_policy: @config.retry_policy
753
717
 
754
718
  @firestore_stub.call_rpc :begin_transaction, request, options: options do |response, operation|
@@ -821,7 +785,9 @@ module Google
821
785
  options.apply_defaults timeout: @config.rpcs.commit.timeout,
822
786
  metadata: metadata,
823
787
  retry_policy: @config.rpcs.commit.retry_policy
824
- options.apply_defaults metadata: @config.metadata,
788
+
789
+ options.apply_defaults timeout: @config.timeout,
790
+ metadata: @config.metadata,
825
791
  retry_policy: @config.retry_policy
826
792
 
827
793
  @firestore_stub.call_rpc :commit, request, options: options do |response, operation|
@@ -890,7 +856,9 @@ module Google
890
856
  options.apply_defaults timeout: @config.rpcs.rollback.timeout,
891
857
  metadata: metadata,
892
858
  retry_policy: @config.rpcs.rollback.retry_policy
893
- options.apply_defaults metadata: @config.metadata,
859
+
860
+ options.apply_defaults timeout: @config.timeout,
861
+ metadata: @config.metadata,
894
862
  retry_policy: @config.retry_policy
895
863
 
896
864
  @firestore_stub.call_rpc :rollback, request, options: options do |response, operation|
@@ -973,7 +941,9 @@ module Google
973
941
  options.apply_defaults timeout: @config.rpcs.run_query.timeout,
974
942
  metadata: metadata,
975
943
  retry_policy: @config.rpcs.run_query.retry_policy
976
- options.apply_defaults metadata: @config.metadata,
944
+
945
+ options.apply_defaults timeout: @config.timeout,
946
+ metadata: @config.metadata,
977
947
  retry_policy: @config.retry_policy
978
948
 
979
949
  @firestore_stub.call_rpc :run_query, request, options: options do |response, operation|
@@ -1080,7 +1050,9 @@ module Google
1080
1050
  options.apply_defaults timeout: @config.rpcs.partition_query.timeout,
1081
1051
  metadata: metadata,
1082
1052
  retry_policy: @config.rpcs.partition_query.retry_policy
1083
- options.apply_defaults metadata: @config.metadata,
1053
+
1054
+ options.apply_defaults timeout: @config.timeout,
1055
+ metadata: @config.metadata,
1084
1056
  retry_policy: @config.retry_policy
1085
1057
 
1086
1058
  @firestore_stub.call_rpc :partition_query, request, options: options do |response, operation|
@@ -1133,7 +1105,9 @@ module Google
1133
1105
  options.apply_defaults timeout: @config.rpcs.write.timeout,
1134
1106
  metadata: metadata,
1135
1107
  retry_policy: @config.rpcs.write.retry_policy
1136
- options.apply_defaults metadata: @config.metadata,
1108
+
1109
+ options.apply_defaults timeout: @config.timeout,
1110
+ metadata: @config.metadata,
1137
1111
  retry_policy: @config.retry_policy
1138
1112
 
1139
1113
  @firestore_stub.call_rpc :write, request, options: options do |response, operation|
@@ -1185,7 +1159,9 @@ module Google
1185
1159
  options.apply_defaults timeout: @config.rpcs.listen.timeout,
1186
1160
  metadata: metadata,
1187
1161
  retry_policy: @config.rpcs.listen.retry_policy
1188
- options.apply_defaults metadata: @config.metadata,
1162
+
1163
+ options.apply_defaults timeout: @config.timeout,
1164
+ metadata: @config.metadata,
1189
1165
  retry_policy: @config.retry_policy
1190
1166
 
1191
1167
  @firestore_stub.call_rpc :listen, request, options: options do |response, operation|
@@ -1259,7 +1235,9 @@ module Google
1259
1235
  options.apply_defaults timeout: @config.rpcs.list_collection_ids.timeout,
1260
1236
  metadata: metadata,
1261
1237
  retry_policy: @config.rpcs.list_collection_ids.retry_policy
1262
- options.apply_defaults metadata: @config.metadata,
1238
+
1239
+ options.apply_defaults timeout: @config.timeout,
1240
+ metadata: @config.metadata,
1263
1241
  retry_policy: @config.retry_policy
1264
1242
 
1265
1243
  @firestore_stub.call_rpc :list_collection_ids, request, options: options do |response, operation|
@@ -1342,7 +1320,9 @@ module Google
1342
1320
  options.apply_defaults timeout: @config.rpcs.batch_write.timeout,
1343
1321
  metadata: metadata,
1344
1322
  retry_policy: @config.rpcs.batch_write.retry_policy
1345
- options.apply_defaults metadata: @config.metadata,
1323
+
1324
+ options.apply_defaults timeout: @config.timeout,
1325
+ metadata: @config.metadata,
1346
1326
  retry_policy: @config.retry_policy
1347
1327
 
1348
1328
  @firestore_stub.call_rpc :batch_write, request, options: options do |response, operation|
@@ -1424,7 +1404,9 @@ module Google
1424
1404
  options.apply_defaults timeout: @config.rpcs.create_document.timeout,
1425
1405
  metadata: metadata,
1426
1406
  retry_policy: @config.rpcs.create_document.retry_policy
1427
- options.apply_defaults metadata: @config.metadata,
1407
+
1408
+ options.apply_defaults timeout: @config.timeout,
1409
+ metadata: @config.metadata,
1428
1410
  retry_policy: @config.retry_policy
1429
1411
 
1430
1412
  @firestore_stub.call_rpc :create_document, request, options: options do |response, operation|
@@ -1448,22 +1430,21 @@ module Google
1448
1430
  # Configuration can be applied globally to all clients, or to a single client
1449
1431
  # on construction.
1450
1432
  #
1451
- # # Examples
1452
- #
1453
- # To modify the global config, setting the timeout for get_document
1454
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1455
- #
1456
- # ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
1457
- # config.timeout = 10.0
1458
- # config.rpcs.get_document.timeout = 20.0
1459
- # end
1460
- #
1461
- # To apply the above configuration only to a new client:
1462
- #
1463
- # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
1464
- # config.timeout = 10.0
1465
- # config.rpcs.get_document.timeout = 20.0
1466
- # end
1433
+ # @example
1434
+ #
1435
+ # # Modify the global config, setting the timeout for
1436
+ # # get_document to 20 seconds,
1437
+ # # and all remaining timeouts to 10 seconds.
1438
+ # ::Google::Cloud::Firestore::V1::Firestore::Client.configure do |config|
1439
+ # config.timeout = 10.0
1440
+ # config.rpcs.get_document.timeout = 20.0
1441
+ # end
1442
+ #
1443
+ # # Apply the above configuration only to a new client.
1444
+ # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
1445
+ # config.timeout = 10.0
1446
+ # config.rpcs.get_document.timeout = 20.0
1447
+ # end
1467
1448
  #
1468
1449
  # @!attribute [rw] endpoint
1469
1450
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Firestore
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -158,7 +158,8 @@ module Google
158
158
  SERVER_VALUE_UNSPECIFIED = 0
159
159
 
160
160
  # The time at which the server processed the request, with millisecond
161
- # precision.
161
+ # precision. If used on multiple fields (same or different documents) in
162
+ # a transaction, all the fields will get the same server timestamp.
162
163
  REQUEST_TIME = 1
163
164
  end
164
165
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-firestore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-09 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.3'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -209,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
215
  - !ruby/object:Gem::Version
210
216
  version: '0'
211
217
  requirements: []
212
- rubygems_version: 3.2.13
218
+ rubygems_version: 3.2.17
213
219
  signing_key:
214
220
  specification_version: 4
215
221
  summary: API Client library for the Cloud Firestore V1 API