google-cloud-datastore-v1 0.3.4 → 0.5.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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/datastore/v1/version.rb +1 -1
- data/lib/google/cloud/datastore/v1.rb +2 -0
- data/lib/google/datastore/v1/datastore_pb.rb +7 -0
- data/lib/google/datastore/v1/datastore_services_pb.rb +1 -1
- data/lib/google/datastore/v1/entity_pb.rb +0 -1
- data/lib/google/datastore/v1/query_pb.rb +6 -2
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/datastore/v1/datastore.rb +29 -2
- data/proto_docs/google/datastore/v1/entity.rb +3 -4
- data/proto_docs/google/datastore/v1/query.rb +69 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70494eebdff2679a9ba9a3ac0e3fad3aa963d9ff6c043588fd3c01350e25bf00
|
4
|
+
data.tar.gz: b5d9812b094fdf12f184a01da35fa3e98b64742e7e328851707d118d3a95c27b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758651b474e62bd94e5779349556046eac9c861a71ddc980471416738adf2334f0bbfb7b9e99dfa632628cbeec2ad99cb44357971b3d60439bc753d903f89150
|
7
|
+
data.tar.gz: fb98c51cb9c73cf468c7c265af12555e2f994594c306da6f71ac9b5e9cd3132c391306ad9816a5e0663d5d548363c2e623d3704a0d7b29a9f8965f866f924553
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Datastore::V1::LookupRequest.new # (request fields as
|
|
37
37
|
response = client.lookup request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-datastore-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/datastore)
|
@@ -6,6 +6,7 @@ require 'google/api/client_pb'
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/datastore/v1/entity_pb'
|
8
8
|
require 'google/datastore/v1/query_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
9
10
|
require 'google/protobuf'
|
10
11
|
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -19,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
20
|
repeated :found, :message, 1, "google.datastore.v1.EntityResult"
|
20
21
|
repeated :missing, :message, 2, "google.datastore.v1.EntityResult"
|
21
22
|
repeated :deferred, :message, 3, "google.datastore.v1.Key"
|
23
|
+
optional :read_time, :message, 7, "google.protobuf.Timestamp"
|
22
24
|
end
|
23
25
|
add_message "google.datastore.v1.RunQueryRequest" do
|
24
26
|
optional :project_id, :string, 8
|
@@ -62,6 +64,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
62
64
|
add_message "google.datastore.v1.CommitResponse" do
|
63
65
|
repeated :mutation_results, :message, 3, "google.datastore.v1.MutationResult"
|
64
66
|
optional :index_updates, :int32, 4
|
67
|
+
optional :commit_time, :message, 8, "google.protobuf.Timestamp"
|
65
68
|
end
|
66
69
|
add_message "google.datastore.v1.AllocateIdsRequest" do
|
67
70
|
optional :project_id, :string, 8
|
@@ -86,17 +89,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
86
89
|
end
|
87
90
|
oneof :conflict_detection_strategy do
|
88
91
|
optional :base_version, :int64, 8
|
92
|
+
optional :update_time, :message, 11, "google.protobuf.Timestamp"
|
89
93
|
end
|
90
94
|
end
|
91
95
|
add_message "google.datastore.v1.MutationResult" do
|
92
96
|
optional :key, :message, 3, "google.datastore.v1.Key"
|
93
97
|
optional :version, :int64, 4
|
98
|
+
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
94
99
|
optional :conflict_detected, :bool, 5
|
95
100
|
end
|
96
101
|
add_message "google.datastore.v1.ReadOptions" do
|
97
102
|
oneof :consistency_type do
|
98
103
|
optional :read_consistency, :enum, 1, "google.datastore.v1.ReadOptions.ReadConsistency"
|
99
104
|
optional :transaction, :bytes, 2
|
105
|
+
optional :read_time, :message, 4, "google.protobuf.Timestamp"
|
100
106
|
end
|
101
107
|
end
|
102
108
|
add_enum "google.datastore.v1.ReadOptions.ReadConsistency" do
|
@@ -114,6 +120,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
114
120
|
optional :previous_transaction, :bytes, 1
|
115
121
|
end
|
116
122
|
add_message "google.datastore.v1.TransactionOptions.ReadOnly" do
|
123
|
+
optional :read_time, :message, 1, "google.protobuf.Timestamp"
|
117
124
|
end
|
118
125
|
end
|
119
126
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/datastore/v1/datastore.proto for package 'Google.Cloud.Datastore.V1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2022 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -1,10 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/datastore/v1/query.proto
|
3
3
|
|
4
|
-
require 'google/api/annotations_pb'
|
5
4
|
require 'google/datastore/v1/entity_pb'
|
5
|
+
require 'google/protobuf/timestamp_pb'
|
6
6
|
require 'google/protobuf/wrappers_pb'
|
7
|
-
require 'google/type/latlng_pb'
|
8
7
|
require 'google/protobuf'
|
9
8
|
|
10
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -12,6 +11,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
11
|
add_message "google.datastore.v1.EntityResult" do
|
13
12
|
optional :entity, :message, 1, "google.datastore.v1.Entity"
|
14
13
|
optional :version, :int64, 4
|
14
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
15
15
|
optional :cursor, :bytes, 3
|
16
16
|
end
|
17
17
|
add_enum "google.datastore.v1.EntityResult.ResultType" do
|
@@ -75,7 +75,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
75
75
|
value :GREATER_THAN, 3
|
76
76
|
value :GREATER_THAN_OR_EQUAL, 4
|
77
77
|
value :EQUAL, 5
|
78
|
+
value :IN, 6
|
79
|
+
value :NOT_EQUAL, 9
|
78
80
|
value :HAS_ANCESTOR, 11
|
81
|
+
value :NOT_IN, 13
|
79
82
|
end
|
80
83
|
add_message "google.datastore.v1.GqlQuery" do
|
81
84
|
optional :query_string, :string, 1
|
@@ -97,6 +100,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
97
100
|
optional :end_cursor, :bytes, 4
|
98
101
|
optional :more_results, :enum, 5, "google.datastore.v1.QueryResultBatch.MoreResultsType"
|
99
102
|
optional :snapshot_version, :int64, 7
|
103
|
+
optional :read_time, :message, 8, "google.protobuf.Timestamp"
|
100
104
|
end
|
101
105
|
add_enum "google.datastore.v1.QueryResultBatch.MoreResultsType" do
|
102
106
|
value :MORE_RESULTS_TYPE_UNSPECIFIED, 0
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -52,6 +52,9 @@ module Google
|
|
52
52
|
# A list of keys that were not looked up due to resource constraints. The
|
53
53
|
# order of results in this field is undefined and has no relation to the
|
54
54
|
# order of the keys in the input.
|
55
|
+
# @!attribute [rw] read_time
|
56
|
+
# @return [::Google::Protobuf::Timestamp]
|
57
|
+
# The time at which these entities were read or found missing.
|
55
58
|
class LookupResponse
|
56
59
|
include ::Google::Protobuf::MessageExts
|
57
60
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -189,6 +192,9 @@ module Google
|
|
189
192
|
# @return [::Integer]
|
190
193
|
# The number of index entries updated during the commit, or zero if none were
|
191
194
|
# updated.
|
195
|
+
# @!attribute [rw] commit_time
|
196
|
+
# @return [::Google::Protobuf::Timestamp]
|
197
|
+
# The transaction commit timestamp. Not set for non-transactional commits.
|
192
198
|
class CommitResponse
|
193
199
|
include ::Google::Protobuf::MessageExts
|
194
200
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -258,8 +264,14 @@ module Google
|
|
258
264
|
# Must have a complete key path and must not be reserved/read-only.
|
259
265
|
# @!attribute [rw] base_version
|
260
266
|
# @return [::Integer]
|
261
|
-
# The version of the entity that this mutation is being applied
|
262
|
-
# does not match the current version on the server, the
|
267
|
+
# The version of the entity that this mutation is being applied
|
268
|
+
# to. If this does not match the current version on the server, the
|
269
|
+
# mutation conflicts.
|
270
|
+
# @!attribute [rw] update_time
|
271
|
+
# @return [::Google::Protobuf::Timestamp]
|
272
|
+
# The update time of the entity that this mutation is being applied
|
273
|
+
# to. If this does not match the current update time on the server, the
|
274
|
+
# mutation conflicts.
|
263
275
|
class Mutation
|
264
276
|
include ::Google::Protobuf::MessageExts
|
265
277
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -277,6 +289,12 @@ module Google
|
|
277
289
|
# be the version of the current entity or, if no entity is present, a version
|
278
290
|
# that is strictly greater than the version of any previous entity and less
|
279
291
|
# than the version of any possible future entity.
|
292
|
+
# @!attribute [rw] update_time
|
293
|
+
# @return [::Google::Protobuf::Timestamp]
|
294
|
+
# The update time of the entity on the server after processing the mutation.
|
295
|
+
# If the mutation doesn't change anything on the server, then the timestamp
|
296
|
+
# will be the update timestamp of the current entity. This field will not be
|
297
|
+
# set after a 'delete'.
|
280
298
|
# @!attribute [rw] conflict_detected
|
281
299
|
# @return [::Boolean]
|
282
300
|
# Whether a conflict was detected for this mutation. Always false when a
|
@@ -296,6 +314,11 @@ module Google
|
|
296
314
|
# The identifier of the transaction in which to read. A
|
297
315
|
# transaction identifier is returned by a call to
|
298
316
|
# {::Google::Cloud::Datastore::V1::Datastore::Client#begin_transaction Datastore.BeginTransaction}.
|
317
|
+
# @!attribute [rw] read_time
|
318
|
+
# @return [::Google::Protobuf::Timestamp]
|
319
|
+
# Reads entities as they were at the given time. This may not be older
|
320
|
+
# than 270 seconds. This value is only supported for Cloud Firestore in
|
321
|
+
# Datastore mode.
|
299
322
|
class ReadOptions
|
300
323
|
include ::Google::Protobuf::MessageExts
|
301
324
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -338,6 +361,10 @@ module Google
|
|
338
361
|
end
|
339
362
|
|
340
363
|
# Options specific to read-only transactions.
|
364
|
+
# @!attribute [rw] read_time
|
365
|
+
# @return [::Google::Protobuf::Timestamp]
|
366
|
+
# Reads entities at the given time.
|
367
|
+
# This may not be older than 60 seconds.
|
341
368
|
class ReadOnly
|
342
369
|
include ::Google::Protobuf::MessageExts
|
343
370
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -39,8 +39,7 @@ module Google
|
|
39
39
|
#
|
40
40
|
# Foreign partition IDs (in which the project ID does
|
41
41
|
# not match the context project ID ) are discouraged.
|
42
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in
|
43
|
-
# an active state.
|
42
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an active state.
|
44
43
|
# @!attribute [rw] project_id
|
45
44
|
# @return [::String]
|
46
45
|
# The ID of the project to which the entities belong.
|
@@ -146,8 +145,8 @@ module Google
|
|
146
145
|
# @!attribute [rw] string_value
|
147
146
|
# @return [::String]
|
148
147
|
# A UTF-8 encoded string value.
|
149
|
-
# When `exclude_from_indexes` is false (it is indexed), may have at most
|
150
|
-
#
|
148
|
+
# When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.
|
149
|
+
# Otherwise, may be set to at most 1,000,000 bytes.
|
151
150
|
# @!attribute [rw] blob_value
|
152
151
|
# @return [::String]
|
153
152
|
# A blob value.
|
@@ -36,6 +36,12 @@ module Google
|
|
36
36
|
# For {::Google::Cloud::Datastore::V1::LookupResponse#missing missing} entities in `LookupResponse`, this
|
37
37
|
# is the version of the snapshot that was used to look up the entity, and it
|
38
38
|
# is always set except for eventually consistent reads.
|
39
|
+
# @!attribute [rw] update_time
|
40
|
+
# @return [::Google::Protobuf::Timestamp]
|
41
|
+
# The time at which the entity was last changed.
|
42
|
+
# This field is set for {::Google::Cloud::Datastore::V1::EntityResult::ResultType::FULL `FULL`} entity
|
43
|
+
# results.
|
44
|
+
# If this entity is missing, this field will not be set.
|
39
45
|
# @!attribute [rw] cursor
|
40
46
|
# @return [::String]
|
41
47
|
# A cursor that points to the position after the result entity.
|
@@ -215,23 +221,68 @@ module Google
|
|
215
221
|
# Unspecified. This value must not be used.
|
216
222
|
OPERATOR_UNSPECIFIED = 0
|
217
223
|
|
218
|
-
#
|
224
|
+
# The given `property` is less than the given `value`.
|
225
|
+
#
|
226
|
+
# Requires:
|
227
|
+
#
|
228
|
+
# * That `property` comes first in `order_by`.
|
219
229
|
LESS_THAN = 1
|
220
230
|
|
221
|
-
#
|
231
|
+
# The given `property` is less than or equal to the given `value`.
|
232
|
+
#
|
233
|
+
# Requires:
|
234
|
+
#
|
235
|
+
# * That `property` comes first in `order_by`.
|
222
236
|
LESS_THAN_OR_EQUAL = 2
|
223
237
|
|
224
|
-
#
|
238
|
+
# The given `property` is greater than the given `value`.
|
239
|
+
#
|
240
|
+
# Requires:
|
241
|
+
#
|
242
|
+
# * That `property` comes first in `order_by`.
|
225
243
|
GREATER_THAN = 3
|
226
244
|
|
227
|
-
#
|
245
|
+
# The given `property` is greater than or equal to the given `value`.
|
246
|
+
#
|
247
|
+
# Requires:
|
248
|
+
#
|
249
|
+
# * That `property` comes first in `order_by`.
|
228
250
|
GREATER_THAN_OR_EQUAL = 4
|
229
251
|
|
230
|
-
#
|
252
|
+
# The given `property` is equal to the given `value`.
|
231
253
|
EQUAL = 5
|
232
254
|
|
233
|
-
#
|
255
|
+
# The given `property` is equal to at least one value in the given array.
|
256
|
+
#
|
257
|
+
# Requires:
|
258
|
+
#
|
259
|
+
# * That `value` is a non-empty `ArrayValue` with at most 10 values.
|
260
|
+
# * No other `IN` or `NOT_IN` is in the same query.
|
261
|
+
IN = 6
|
262
|
+
|
263
|
+
# The given `property` is not equal to the given `value`.
|
264
|
+
#
|
265
|
+
# Requires:
|
266
|
+
#
|
267
|
+
# * No other `NOT_EQUAL` or `NOT_IN` is in the same query.
|
268
|
+
# * That `property` comes first in the `order_by`.
|
269
|
+
NOT_EQUAL = 9
|
270
|
+
|
271
|
+
# Limit the result set to the given entity and its descendants.
|
272
|
+
#
|
273
|
+
# Requires:
|
274
|
+
#
|
275
|
+
# * That `value` is an entity key.
|
234
276
|
HAS_ANCESTOR = 11
|
277
|
+
|
278
|
+
# The value of the `property` is not in the given array.
|
279
|
+
#
|
280
|
+
# Requires:
|
281
|
+
#
|
282
|
+
# * That `value` is a non-empty `ArrayValue` with at most 10 values.
|
283
|
+
# * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
|
284
|
+
# * That `field` comes first in the `order_by`.
|
285
|
+
NOT_IN = 13
|
235
286
|
end
|
236
287
|
end
|
237
288
|
|
@@ -319,6 +370,18 @@ module Google
|
|
319
370
|
# can have a greater snapshot version number. Each batch's snapshot version
|
320
371
|
# is valid for all preceding batches.
|
321
372
|
# The value will be zero for eventually consistent queries.
|
373
|
+
# @!attribute [rw] read_time
|
374
|
+
# @return [::Google::Protobuf::Timestamp]
|
375
|
+
# Read timestamp this batch was returned from.
|
376
|
+
# This applies to the range of results from the query's `start_cursor` (or
|
377
|
+
# the beginning of the query if no cursor was given) to this batch's
|
378
|
+
# `end_cursor` (not the query's `end_cursor`).
|
379
|
+
#
|
380
|
+
# In a single transaction, subsequent query result batches for the same query
|
381
|
+
# can have a greater timestamp. Each batch's read timestamp
|
382
|
+
# is valid for all preceding batches.
|
383
|
+
# This value will not be set for eventually consistent queries in Cloud
|
384
|
+
# Datastore.
|
322
385
|
class QueryResultBatch
|
323
386
|
include ::Google::Protobuf::MessageExts
|
324
387
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.5.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: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
211
|
+
rubygems_version: 3.3.5
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: API Client library for the Firestore in Datastore mode V1 API
|