google-cloud-datastore-v1 0.6.0 → 0.8.0
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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/datastore/v1/datastore/client.rb +196 -26
- data/lib/google/cloud/datastore/v1/datastore.rb +1 -1
- data/lib/google/cloud/datastore/v1/version.rb +1 -1
- data/lib/google/cloud/datastore/v1.rb +2 -2
- data/lib/google/datastore/v1/aggregation_result_pb.rb +32 -0
- data/lib/google/datastore/v1/datastore_pb.rb +24 -0
- data/lib/google/datastore/v1/datastore_services_pb.rb +2 -0
- data/lib/google/datastore/v1/entity_pb.rb +1 -0
- data/lib/google/datastore/v1/query_pb.rb +19 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/routing.rb +459 -0
- data/proto_docs/google/datastore/v1/aggregation_result.rb +73 -0
- data/proto_docs/google/datastore/v1/datastore.rb +110 -18
- data/proto_docs/google/datastore/v1/entity.rb +4 -0
- data/proto_docs/google/datastore/v1/query.rb +94 -1
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +11 -5
@@ -25,6 +25,12 @@ module Google
|
|
25
25
|
# @!attribute [rw] project_id
|
26
26
|
# @return [::String]
|
27
27
|
# Required. The ID of the project against which to make the request.
|
28
|
+
# @!attribute [rw] database_id
|
29
|
+
# @return [::String]
|
30
|
+
# The ID of the database against which to make the request.
|
31
|
+
#
|
32
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
33
|
+
# database.
|
28
34
|
# @!attribute [rw] read_options
|
29
35
|
# @return [::Google::Cloud::Datastore::V1::ReadOptions]
|
30
36
|
# The options for this lookup request.
|
@@ -64,6 +70,12 @@ module Google
|
|
64
70
|
# @!attribute [rw] project_id
|
65
71
|
# @return [::String]
|
66
72
|
# Required. The ID of the project against which to make the request.
|
73
|
+
# @!attribute [rw] database_id
|
74
|
+
# @return [::String]
|
75
|
+
# The ID of the database against which to make the request.
|
76
|
+
#
|
77
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
78
|
+
# database.
|
67
79
|
# @!attribute [rw] partition_id
|
68
80
|
# @return [::Google::Cloud::Datastore::V1::PartitionId]
|
69
81
|
# Entities are partitioned into subsets, identified by a partition ID.
|
@@ -78,13 +90,14 @@ module Google
|
|
78
90
|
# The query to run.
|
79
91
|
# @!attribute [rw] gql_query
|
80
92
|
# @return [::Google::Cloud::Datastore::V1::GqlQuery]
|
81
|
-
# The GQL query to run.
|
93
|
+
# The GQL query to run. This query must be a non-aggregation query.
|
82
94
|
class RunQueryRequest
|
83
95
|
include ::Google::Protobuf::MessageExts
|
84
96
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
97
|
end
|
86
98
|
|
87
|
-
# The response for
|
99
|
+
# The response for
|
100
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#run_query Datastore.RunQuery}.
|
88
101
|
# @!attribute [rw] batch
|
89
102
|
# @return [::Google::Cloud::Datastore::V1::QueryResultBatch]
|
90
103
|
# A batch of query results (always present).
|
@@ -96,10 +109,61 @@ module Google
|
|
96
109
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
110
|
end
|
98
111
|
|
99
|
-
# The request for
|
112
|
+
# The request for
|
113
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#run_aggregation_query Datastore.RunAggregationQuery}.
|
114
|
+
# @!attribute [rw] project_id
|
115
|
+
# @return [::String]
|
116
|
+
# Required. The ID of the project against which to make the request.
|
117
|
+
# @!attribute [rw] database_id
|
118
|
+
# @return [::String]
|
119
|
+
# The ID of the database against which to make the request.
|
120
|
+
#
|
121
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
122
|
+
# database.
|
123
|
+
# @!attribute [rw] partition_id
|
124
|
+
# @return [::Google::Cloud::Datastore::V1::PartitionId]
|
125
|
+
# Entities are partitioned into subsets, identified by a partition ID.
|
126
|
+
# Queries are scoped to a single partition.
|
127
|
+
# This partition ID is normalized with the standard default context
|
128
|
+
# partition ID.
|
129
|
+
# @!attribute [rw] read_options
|
130
|
+
# @return [::Google::Cloud::Datastore::V1::ReadOptions]
|
131
|
+
# The options for this query.
|
132
|
+
# @!attribute [rw] aggregation_query
|
133
|
+
# @return [::Google::Cloud::Datastore::V1::AggregationQuery]
|
134
|
+
# The query to run.
|
135
|
+
# @!attribute [rw] gql_query
|
136
|
+
# @return [::Google::Cloud::Datastore::V1::GqlQuery]
|
137
|
+
# The GQL query to run. This query must be an aggregation query.
|
138
|
+
class RunAggregationQueryRequest
|
139
|
+
include ::Google::Protobuf::MessageExts
|
140
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
141
|
+
end
|
142
|
+
|
143
|
+
# The response for
|
144
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#run_aggregation_query Datastore.RunAggregationQuery}.
|
145
|
+
# @!attribute [rw] batch
|
146
|
+
# @return [::Google::Cloud::Datastore::V1::AggregationResultBatch]
|
147
|
+
# A batch of aggregation results. Always present.
|
148
|
+
# @!attribute [rw] query
|
149
|
+
# @return [::Google::Cloud::Datastore::V1::AggregationQuery]
|
150
|
+
# The parsed form of the `GqlQuery` from the request, if it was set.
|
151
|
+
class RunAggregationQueryResponse
|
152
|
+
include ::Google::Protobuf::MessageExts
|
153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
154
|
+
end
|
155
|
+
|
156
|
+
# The request for
|
157
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
|
100
158
|
# @!attribute [rw] project_id
|
101
159
|
# @return [::String]
|
102
160
|
# Required. The ID of the project against which to make the request.
|
161
|
+
# @!attribute [rw] database_id
|
162
|
+
# @return [::String]
|
163
|
+
# The ID of the database against which to make the request.
|
164
|
+
#
|
165
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
166
|
+
# database.
|
103
167
|
# @!attribute [rw] transaction_options
|
104
168
|
# @return [::Google::Cloud::Datastore::V1::TransactionOptions]
|
105
169
|
# Options for a new transaction.
|
@@ -108,7 +172,8 @@ module Google
|
|
108
172
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
173
|
end
|
110
174
|
|
111
|
-
# The response for
|
175
|
+
# The response for
|
176
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
|
112
177
|
# @!attribute [rw] transaction
|
113
178
|
# @return [::String]
|
114
179
|
# The transaction identifier (always present).
|
@@ -121,6 +186,12 @@ module Google
|
|
121
186
|
# @!attribute [rw] project_id
|
122
187
|
# @return [::String]
|
123
188
|
# Required. The ID of the project against which to make the request.
|
189
|
+
# @!attribute [rw] database_id
|
190
|
+
# @return [::String]
|
191
|
+
# The ID of the database against which to make the request.
|
192
|
+
#
|
193
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
194
|
+
# database.
|
124
195
|
# @!attribute [rw] transaction
|
125
196
|
# @return [::String]
|
126
197
|
# Required. The transaction identifier, returned by a call to
|
@@ -130,8 +201,9 @@ module Google
|
|
130
201
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
202
|
end
|
132
203
|
|
133
|
-
# The response for
|
134
|
-
# (an empty
|
204
|
+
# The response for
|
205
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#rollback Datastore.Rollback}. (an empty
|
206
|
+
# message).
|
135
207
|
class RollbackResponse
|
136
208
|
include ::Google::Protobuf::MessageExts
|
137
209
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -141,6 +213,12 @@ module Google
|
|
141
213
|
# @!attribute [rw] project_id
|
142
214
|
# @return [::String]
|
143
215
|
# Required. The ID of the project against which to make the request.
|
216
|
+
# @!attribute [rw] database_id
|
217
|
+
# @return [::String]
|
218
|
+
# The ID of the database against which to make the request.
|
219
|
+
#
|
220
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
221
|
+
# database.
|
144
222
|
# @!attribute [rw] mode
|
145
223
|
# @return [::Google::Cloud::Datastore::V1::CommitRequest::Mode]
|
146
224
|
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
@@ -200,20 +278,28 @@ module Google
|
|
200
278
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
201
279
|
end
|
202
280
|
|
203
|
-
# The request for
|
281
|
+
# The request for
|
282
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#allocate_ids Datastore.AllocateIds}.
|
204
283
|
# @!attribute [rw] project_id
|
205
284
|
# @return [::String]
|
206
285
|
# Required. The ID of the project against which to make the request.
|
286
|
+
# @!attribute [rw] database_id
|
287
|
+
# @return [::String]
|
288
|
+
# The ID of the database against which to make the request.
|
289
|
+
#
|
290
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
291
|
+
# database.
|
207
292
|
# @!attribute [rw] keys
|
208
293
|
# @return [::Array<::Google::Cloud::Datastore::V1::Key>]
|
209
|
-
# Required. A list of keys with incomplete key paths for which to allocate
|
210
|
-
# No key may be reserved/read-only.
|
294
|
+
# Required. A list of keys with incomplete key paths for which to allocate
|
295
|
+
# IDs. No key may be reserved/read-only.
|
211
296
|
class AllocateIdsRequest
|
212
297
|
include ::Google::Protobuf::MessageExts
|
213
298
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
214
299
|
end
|
215
300
|
|
216
|
-
# The response for
|
301
|
+
# The response for
|
302
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#allocate_ids Datastore.AllocateIds}.
|
217
303
|
# @!attribute [rw] keys
|
218
304
|
# @return [::Array<::Google::Cloud::Datastore::V1::Key>]
|
219
305
|
# The keys specified in the request (in the same order), each with
|
@@ -223,23 +309,28 @@ module Google
|
|
223
309
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
224
310
|
end
|
225
311
|
|
226
|
-
# The request for
|
312
|
+
# The request for
|
313
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#reserve_ids Datastore.ReserveIds}.
|
227
314
|
# @!attribute [rw] project_id
|
228
315
|
# @return [::String]
|
229
316
|
# Required. The ID of the project against which to make the request.
|
230
317
|
# @!attribute [rw] database_id
|
231
318
|
# @return [::String]
|
232
|
-
#
|
319
|
+
# The ID of the database against which to make the request.
|
320
|
+
#
|
321
|
+
# '(default)' is not allowed; please use empty string '' to refer the default
|
322
|
+
# database.
|
233
323
|
# @!attribute [rw] keys
|
234
324
|
# @return [::Array<::Google::Cloud::Datastore::V1::Key>]
|
235
|
-
# Required. A list of keys with complete key paths whose numeric IDs should
|
236
|
-
# auto-allocated.
|
325
|
+
# Required. A list of keys with complete key paths whose numeric IDs should
|
326
|
+
# not be auto-allocated.
|
237
327
|
class ReserveIdsRequest
|
238
328
|
include ::Google::Protobuf::MessageExts
|
239
329
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
240
330
|
end
|
241
331
|
|
242
|
-
# The response for
|
332
|
+
# The response for
|
333
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#reserve_ids Datastore.ReserveIds}.
|
243
334
|
class ReserveIdsResponse
|
244
335
|
include ::Google::Protobuf::MessageExts
|
245
336
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -308,7 +399,6 @@ module Google
|
|
308
399
|
# @!attribute [rw] read_consistency
|
309
400
|
# @return [::Google::Cloud::Datastore::V1::ReadOptions::ReadConsistency]
|
310
401
|
# The non-transactional read consistency to use.
|
311
|
-
# Cannot be set to `STRONG` for global queries.
|
312
402
|
# @!attribute [rw] transaction
|
313
403
|
# @return [::String]
|
314
404
|
# The identifier of the transaction in which to read. A
|
@@ -339,8 +429,10 @@ module Google
|
|
339
429
|
# Options for beginning a new transaction.
|
340
430
|
#
|
341
431
|
# Transactions can be created explicitly with calls to
|
342
|
-
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}
|
343
|
-
#
|
432
|
+
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}
|
433
|
+
# or implicitly by setting
|
434
|
+
# [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction]
|
435
|
+
# in read requests.
|
344
436
|
# @!attribute [rw] read_write
|
345
437
|
# @return [::Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite]
|
346
438
|
# The transaction should allow both reads and writes.
|
@@ -43,6 +43,10 @@ module Google
|
|
43
43
|
# @!attribute [rw] project_id
|
44
44
|
# @return [::String]
|
45
45
|
# The ID of the project to which the entities belong.
|
46
|
+
# @!attribute [rw] database_id
|
47
|
+
# @return [::String]
|
48
|
+
# If not empty, the ID of the database to which the entities
|
49
|
+
# belong.
|
46
50
|
# @!attribute [rw] namespace_id
|
47
51
|
# @return [::String]
|
48
52
|
# If not empty, the ID of the namespace to which the entities belong.
|
@@ -116,6 +116,96 @@ module Google
|
|
116
116
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
117
|
end
|
118
118
|
|
119
|
+
# Datastore query for running an aggregation over a {::Google::Cloud::Datastore::V1::Query Query}.
|
120
|
+
# @!attribute [rw] nested_query
|
121
|
+
# @return [::Google::Cloud::Datastore::V1::Query]
|
122
|
+
# Nested query for aggregation
|
123
|
+
# @!attribute [rw] aggregations
|
124
|
+
# @return [::Array<::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation>]
|
125
|
+
# Optional. Series of aggregations to apply over the results of the `nested_query`.
|
126
|
+
#
|
127
|
+
# Requires:
|
128
|
+
#
|
129
|
+
# * A minimum of one and maximum of five aggregations per query.
|
130
|
+
class AggregationQuery
|
131
|
+
include ::Google::Protobuf::MessageExts
|
132
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
133
|
+
|
134
|
+
# Defines a aggregation that produces a single result.
|
135
|
+
# @!attribute [rw] count
|
136
|
+
# @return [::Google::Cloud::Datastore::V1::AggregationQuery::Aggregation::Count]
|
137
|
+
# Count aggregator.
|
138
|
+
# @!attribute [rw] alias
|
139
|
+
# @return [::String]
|
140
|
+
# Optional. Optional name of the property to store the result of the aggregation.
|
141
|
+
#
|
142
|
+
# If not provided, Datastore will pick a default name following the format
|
143
|
+
# `property_<incremental_id++>`. For example:
|
144
|
+
#
|
145
|
+
# ```
|
146
|
+
# AGGREGATE
|
147
|
+
# COUNT_UP_TO(1) AS count_up_to_1,
|
148
|
+
# COUNT_UP_TO(2),
|
149
|
+
# COUNT_UP_TO(3) AS count_up_to_3,
|
150
|
+
# COUNT_UP_TO(4)
|
151
|
+
# OVER (
|
152
|
+
# ...
|
153
|
+
# );
|
154
|
+
# ```
|
155
|
+
#
|
156
|
+
# becomes:
|
157
|
+
#
|
158
|
+
# ```
|
159
|
+
# AGGREGATE
|
160
|
+
# COUNT_UP_TO(1) AS count_up_to_1,
|
161
|
+
# COUNT_UP_TO(2) AS property_1,
|
162
|
+
# COUNT_UP_TO(3) AS count_up_to_3,
|
163
|
+
# COUNT_UP_TO(4) AS property_2
|
164
|
+
# OVER (
|
165
|
+
# ...
|
166
|
+
# );
|
167
|
+
# ```
|
168
|
+
#
|
169
|
+
# Requires:
|
170
|
+
#
|
171
|
+
# * Must be unique across all aggregation aliases.
|
172
|
+
# * Conform to {::Google::Cloud::Datastore::V1::Entity#properties entity property name} limitations.
|
173
|
+
class Aggregation
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
|
+
|
177
|
+
# Count of entities that match the query.
|
178
|
+
#
|
179
|
+
# The `COUNT(*)` aggregation function operates on the entire entity
|
180
|
+
# so it does not require a field reference.
|
181
|
+
# @!attribute [rw] up_to
|
182
|
+
# @return [::Google::Protobuf::Int64Value]
|
183
|
+
# Optional. Optional constraint on the maximum number of entities to count.
|
184
|
+
#
|
185
|
+
# This provides a way to set an upper bound on the number of entities
|
186
|
+
# to scan, limiting latency and cost.
|
187
|
+
#
|
188
|
+
# Unspecified is interpreted as no bound.
|
189
|
+
#
|
190
|
+
# If a zero value is provided, a count result of zero should always be
|
191
|
+
# expected.
|
192
|
+
#
|
193
|
+
# High-Level Example:
|
194
|
+
#
|
195
|
+
# ```
|
196
|
+
# AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
|
197
|
+
# ```
|
198
|
+
#
|
199
|
+
# Requires:
|
200
|
+
#
|
201
|
+
# * Must be non-negative when present.
|
202
|
+
class Count
|
203
|
+
include ::Google::Protobuf::MessageExts
|
204
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
119
209
|
# A representation of a kind.
|
120
210
|
# @!attribute [rw] name
|
121
211
|
# @return [::String]
|
@@ -187,7 +277,10 @@ module Google
|
|
187
277
|
# @!attribute [rw] filters
|
188
278
|
# @return [::Array<::Google::Cloud::Datastore::V1::Filter>]
|
189
279
|
# The list of filters to combine.
|
190
|
-
#
|
280
|
+
#
|
281
|
+
# Requires:
|
282
|
+
#
|
283
|
+
# * At least one filter is present.
|
191
284
|
class CompositeFilter
|
192
285
|
include ::Google::Protobuf::MessageExts
|
193
286
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A Duration represents a signed, fixed-length span of time represented
|
23
|
+
# as a count of seconds and fractions of seconds at nanosecond
|
24
|
+
# resolution. It is independent of any calendar and concepts like "day"
|
25
|
+
# or "month". It is related to Timestamp in that the difference between
|
26
|
+
# two Timestamp values is a Duration and it can be added or subtracted
|
27
|
+
# from a Timestamp. Range is approximately +-10,000 years.
|
28
|
+
#
|
29
|
+
# # Examples
|
30
|
+
#
|
31
|
+
# Example 1: Compute Duration from two Timestamps in pseudo code.
|
32
|
+
#
|
33
|
+
# Timestamp start = ...;
|
34
|
+
# Timestamp end = ...;
|
35
|
+
# Duration duration = ...;
|
36
|
+
#
|
37
|
+
# duration.seconds = end.seconds - start.seconds;
|
38
|
+
# duration.nanos = end.nanos - start.nanos;
|
39
|
+
#
|
40
|
+
# if (duration.seconds < 0 && duration.nanos > 0) {
|
41
|
+
# duration.seconds += 1;
|
42
|
+
# duration.nanos -= 1000000000;
|
43
|
+
# } else if (duration.seconds > 0 && duration.nanos < 0) {
|
44
|
+
# duration.seconds -= 1;
|
45
|
+
# duration.nanos += 1000000000;
|
46
|
+
# }
|
47
|
+
#
|
48
|
+
# Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
49
|
+
#
|
50
|
+
# Timestamp start = ...;
|
51
|
+
# Duration duration = ...;
|
52
|
+
# Timestamp end = ...;
|
53
|
+
#
|
54
|
+
# end.seconds = start.seconds + duration.seconds;
|
55
|
+
# end.nanos = start.nanos + duration.nanos;
|
56
|
+
#
|
57
|
+
# if (end.nanos < 0) {
|
58
|
+
# end.seconds -= 1;
|
59
|
+
# end.nanos += 1000000000;
|
60
|
+
# } else if (end.nanos >= 1000000000) {
|
61
|
+
# end.seconds += 1;
|
62
|
+
# end.nanos -= 1000000000;
|
63
|
+
# }
|
64
|
+
#
|
65
|
+
# Example 3: Compute Duration from datetime.timedelta in Python.
|
66
|
+
#
|
67
|
+
# td = datetime.timedelta(days=3, minutes=10)
|
68
|
+
# duration = Duration()
|
69
|
+
# duration.FromTimedelta(td)
|
70
|
+
#
|
71
|
+
# # JSON Mapping
|
72
|
+
#
|
73
|
+
# In JSON format, the Duration type is encoded as a string rather than an
|
74
|
+
# object, where the string ends in the suffix "s" (indicating seconds) and
|
75
|
+
# is preceded by the number of seconds, with nanoseconds expressed as
|
76
|
+
# fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
77
|
+
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
78
|
+
# be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
79
|
+
# microsecond should be expressed in JSON format as "3.000001s".
|
80
|
+
# @!attribute [rw] seconds
|
81
|
+
# @return [::Integer]
|
82
|
+
# Signed seconds of the span of time. Must be from -315,576,000,000
|
83
|
+
# to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
84
|
+
# 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
85
|
+
# @!attribute [rw] nanos
|
86
|
+
# @return [::Integer]
|
87
|
+
# Signed fractions of a second at nanosecond resolution of the span
|
88
|
+
# of time. Durations less than one second are represented with a 0
|
89
|
+
# `seconds` field and a positive or negative `nanos` field. For durations
|
90
|
+
# of one second or more, a non-zero value for the `nanos` field must be
|
91
|
+
# of the same sign as the `seconds` field. Must be from -999,999,999
|
92
|
+
# to +999,999,999 inclusive.
|
93
|
+
class Duration
|
94
|
+
include ::Google::Protobuf::MessageExts
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.16.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.16.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -175,16 +175,22 @@ files:
|
|
175
175
|
- lib/google/cloud/datastore/v1/datastore/client.rb
|
176
176
|
- lib/google/cloud/datastore/v1/datastore/credentials.rb
|
177
177
|
- lib/google/cloud/datastore/v1/version.rb
|
178
|
+
- lib/google/datastore/v1/aggregation_result_pb.rb
|
178
179
|
- lib/google/datastore/v1/datastore_pb.rb
|
179
180
|
- lib/google/datastore/v1/datastore_services_pb.rb
|
180
181
|
- lib/google/datastore/v1/entity_pb.rb
|
181
182
|
- lib/google/datastore/v1/query_pb.rb
|
182
183
|
- proto_docs/README.md
|
184
|
+
- proto_docs/google/api/client.rb
|
183
185
|
- proto_docs/google/api/field_behavior.rb
|
186
|
+
- proto_docs/google/api/launch_stage.rb
|
184
187
|
- proto_docs/google/api/resource.rb
|
188
|
+
- proto_docs/google/api/routing.rb
|
189
|
+
- proto_docs/google/datastore/v1/aggregation_result.rb
|
185
190
|
- proto_docs/google/datastore/v1/datastore.rb
|
186
191
|
- proto_docs/google/datastore/v1/entity.rb
|
187
192
|
- proto_docs/google/datastore/v1/query.rb
|
193
|
+
- proto_docs/google/protobuf/duration.rb
|
188
194
|
- proto_docs/google/protobuf/struct.rb
|
189
195
|
- proto_docs/google/protobuf/timestamp.rb
|
190
196
|
- proto_docs/google/protobuf/wrappers.rb
|
@@ -208,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
214
|
- !ruby/object:Gem::Version
|
209
215
|
version: '0'
|
210
216
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
217
|
+
rubygems_version: 3.4.2
|
212
218
|
signing_key:
|
213
219
|
specification_version: 4
|
214
220
|
summary: API Client library for the Firestore in Datastore mode V1 API
|