google-cloud-datastore 1.7.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +2 -1
- data/CHANGELOG.md +47 -0
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google-cloud-datastore.rb +12 -18
- data/lib/google/cloud/datastore.rb +12 -11
- data/lib/google/cloud/datastore/commit.rb +4 -4
- data/lib/google/cloud/datastore/convert.rb +4 -4
- data/lib/google/cloud/datastore/credentials.rb +2 -2
- data/lib/google/cloud/datastore/entity.rb +3 -3
- data/lib/google/cloud/datastore/gql_query.rb +5 -5
- data/lib/google/cloud/datastore/key.rb +5 -5
- data/lib/google/cloud/datastore/properties.rb +1 -1
- data/lib/google/cloud/datastore/query.rb +12 -12
- data/lib/google/cloud/datastore/service.rb +31 -86
- data/lib/google/cloud/datastore/version.rb +1 -1
- metadata +10 -65
- data/lib/google/cloud/datastore/v1.rb +0 -16
- data/lib/google/cloud/datastore/v1/credentials.rb +0 -39
- data/lib/google/cloud/datastore/v1/datastore_client.rb +0 -574
- data/lib/google/cloud/datastore/v1/datastore_client_config.json +0 -61
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb +0 -283
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb +0 -189
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb +0 -297
- data/lib/google/cloud/datastore/v1/doc/google/protobuf/struct.rb +0 -74
- data/lib/google/cloud/datastore/v1/doc/google/protobuf/timestamp.rb +0 -109
- data/lib/google/cloud/datastore/v1/doc/google/protobuf/wrappers.rb +0 -26
- data/lib/google/cloud/datastore/v1/doc/google/type/latlng.rb +0 -65
- data/lib/google/datastore/v1/datastore_pb.rb +0 -147
- data/lib/google/datastore/v1/datastore_services_pb.rb +0 -65
- data/lib/google/datastore/v1/entity_pb.rb +0 -64
- data/lib/google/datastore/v1/query_pb.rb +0 -132
@@ -1,26 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Protobuf
|
18
|
-
# Wrapper message for `int32`.
|
19
|
-
#
|
20
|
-
# The JSON representation for `Int32Value` is JSON number.
|
21
|
-
# @!attribute [rw] value
|
22
|
-
# @return [Integer]
|
23
|
-
# The int32 value.
|
24
|
-
class Int32Value; end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
# Copyright 2018 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Type
|
18
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
19
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
20
|
-
# specified otherwise, this must conform to the
|
21
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
22
|
-
# standard</a>. Values must be within normalized ranges.
|
23
|
-
#
|
24
|
-
# Example of normalization code in Python:
|
25
|
-
#
|
26
|
-
# def NormalizeLongitude(longitude):
|
27
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
28
|
-
# q, r = divmod(longitude, 360.0)
|
29
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
30
|
-
# return r - 360.0
|
31
|
-
# return r
|
32
|
-
#
|
33
|
-
# def NormalizeLatLng(latitude, longitude):
|
34
|
-
# """Wraps decimal degrees latitude and longitude to
|
35
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
36
|
-
# r = latitude % 360.0
|
37
|
-
# if r <= 90.0:
|
38
|
-
# return r, NormalizeLongitude(longitude)
|
39
|
-
# elif r >= 270.0:
|
40
|
-
# return r - 360, NormalizeLongitude(longitude)
|
41
|
-
# else:
|
42
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
43
|
-
#
|
44
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
45
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
46
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
47
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
48
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
49
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
50
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
51
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
52
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
53
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
54
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
55
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
56
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
57
|
-
# @!attribute [rw] latitude
|
58
|
-
# @return [Float]
|
59
|
-
# The latitude in degrees. It must be in the range `[-90.0, +90.0]`.
|
60
|
-
# @!attribute [rw] longitude
|
61
|
-
# @return [Float]
|
62
|
-
# The longitude in degrees. It must be in the range `[-180.0, +180.0]`.
|
63
|
-
class LatLng; end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,147 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/datastore/v1/datastore.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/datastore/v1/entity_pb'
|
11
|
-
require 'google/datastore/v1/query_pb'
|
12
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
-
add_message "google.datastore.v1.LookupRequest" do
|
14
|
-
optional :project_id, :string, 8
|
15
|
-
optional :read_options, :message, 1, "google.datastore.v1.ReadOptions"
|
16
|
-
repeated :keys, :message, 3, "google.datastore.v1.Key"
|
17
|
-
end
|
18
|
-
add_message "google.datastore.v1.LookupResponse" do
|
19
|
-
repeated :found, :message, 1, "google.datastore.v1.EntityResult"
|
20
|
-
repeated :missing, :message, 2, "google.datastore.v1.EntityResult"
|
21
|
-
repeated :deferred, :message, 3, "google.datastore.v1.Key"
|
22
|
-
end
|
23
|
-
add_message "google.datastore.v1.RunQueryRequest" do
|
24
|
-
optional :project_id, :string, 8
|
25
|
-
optional :partition_id, :message, 2, "google.datastore.v1.PartitionId"
|
26
|
-
optional :read_options, :message, 1, "google.datastore.v1.ReadOptions"
|
27
|
-
oneof :query_type do
|
28
|
-
optional :query, :message, 3, "google.datastore.v1.Query"
|
29
|
-
optional :gql_query, :message, 7, "google.datastore.v1.GqlQuery"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
add_message "google.datastore.v1.RunQueryResponse" do
|
33
|
-
optional :batch, :message, 1, "google.datastore.v1.QueryResultBatch"
|
34
|
-
optional :query, :message, 2, "google.datastore.v1.Query"
|
35
|
-
end
|
36
|
-
add_message "google.datastore.v1.BeginTransactionRequest" do
|
37
|
-
optional :project_id, :string, 8
|
38
|
-
optional :transaction_options, :message, 10, "google.datastore.v1.TransactionOptions"
|
39
|
-
end
|
40
|
-
add_message "google.datastore.v1.BeginTransactionResponse" do
|
41
|
-
optional :transaction, :bytes, 1
|
42
|
-
end
|
43
|
-
add_message "google.datastore.v1.RollbackRequest" do
|
44
|
-
optional :project_id, :string, 8
|
45
|
-
optional :transaction, :bytes, 1
|
46
|
-
end
|
47
|
-
add_message "google.datastore.v1.RollbackResponse" do
|
48
|
-
end
|
49
|
-
add_message "google.datastore.v1.CommitRequest" do
|
50
|
-
optional :project_id, :string, 8
|
51
|
-
optional :mode, :enum, 5, "google.datastore.v1.CommitRequest.Mode"
|
52
|
-
repeated :mutations, :message, 6, "google.datastore.v1.Mutation"
|
53
|
-
oneof :transaction_selector do
|
54
|
-
optional :transaction, :bytes, 1
|
55
|
-
end
|
56
|
-
end
|
57
|
-
add_enum "google.datastore.v1.CommitRequest.Mode" do
|
58
|
-
value :MODE_UNSPECIFIED, 0
|
59
|
-
value :TRANSACTIONAL, 1
|
60
|
-
value :NON_TRANSACTIONAL, 2
|
61
|
-
end
|
62
|
-
add_message "google.datastore.v1.CommitResponse" do
|
63
|
-
repeated :mutation_results, :message, 3, "google.datastore.v1.MutationResult"
|
64
|
-
optional :index_updates, :int32, 4
|
65
|
-
end
|
66
|
-
add_message "google.datastore.v1.AllocateIdsRequest" do
|
67
|
-
optional :project_id, :string, 8
|
68
|
-
repeated :keys, :message, 1, "google.datastore.v1.Key"
|
69
|
-
end
|
70
|
-
add_message "google.datastore.v1.AllocateIdsResponse" do
|
71
|
-
repeated :keys, :message, 1, "google.datastore.v1.Key"
|
72
|
-
end
|
73
|
-
add_message "google.datastore.v1.ReserveIdsRequest" do
|
74
|
-
optional :project_id, :string, 8
|
75
|
-
optional :database_id, :string, 9
|
76
|
-
repeated :keys, :message, 1, "google.datastore.v1.Key"
|
77
|
-
end
|
78
|
-
add_message "google.datastore.v1.ReserveIdsResponse" do
|
79
|
-
end
|
80
|
-
add_message "google.datastore.v1.Mutation" do
|
81
|
-
oneof :operation do
|
82
|
-
optional :insert, :message, 4, "google.datastore.v1.Entity"
|
83
|
-
optional :update, :message, 5, "google.datastore.v1.Entity"
|
84
|
-
optional :upsert, :message, 6, "google.datastore.v1.Entity"
|
85
|
-
optional :delete, :message, 7, "google.datastore.v1.Key"
|
86
|
-
end
|
87
|
-
oneof :conflict_detection_strategy do
|
88
|
-
optional :base_version, :int64, 8
|
89
|
-
end
|
90
|
-
end
|
91
|
-
add_message "google.datastore.v1.MutationResult" do
|
92
|
-
optional :key, :message, 3, "google.datastore.v1.Key"
|
93
|
-
optional :version, :int64, 4
|
94
|
-
optional :conflict_detected, :bool, 5
|
95
|
-
end
|
96
|
-
add_message "google.datastore.v1.ReadOptions" do
|
97
|
-
oneof :consistency_type do
|
98
|
-
optional :read_consistency, :enum, 1, "google.datastore.v1.ReadOptions.ReadConsistency"
|
99
|
-
optional :transaction, :bytes, 2
|
100
|
-
end
|
101
|
-
end
|
102
|
-
add_enum "google.datastore.v1.ReadOptions.ReadConsistency" do
|
103
|
-
value :READ_CONSISTENCY_UNSPECIFIED, 0
|
104
|
-
value :STRONG, 1
|
105
|
-
value :EVENTUAL, 2
|
106
|
-
end
|
107
|
-
add_message "google.datastore.v1.TransactionOptions" do
|
108
|
-
oneof :mode do
|
109
|
-
optional :read_write, :message, 1, "google.datastore.v1.TransactionOptions.ReadWrite"
|
110
|
-
optional :read_only, :message, 2, "google.datastore.v1.TransactionOptions.ReadOnly"
|
111
|
-
end
|
112
|
-
end
|
113
|
-
add_message "google.datastore.v1.TransactionOptions.ReadWrite" do
|
114
|
-
optional :previous_transaction, :bytes, 1
|
115
|
-
end
|
116
|
-
add_message "google.datastore.v1.TransactionOptions.ReadOnly" do
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
module Google
|
121
|
-
module Datastore
|
122
|
-
module V1
|
123
|
-
LookupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.LookupRequest").msgclass
|
124
|
-
LookupResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.LookupResponse").msgclass
|
125
|
-
RunQueryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RunQueryRequest").msgclass
|
126
|
-
RunQueryResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RunQueryResponse").msgclass
|
127
|
-
BeginTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.BeginTransactionRequest").msgclass
|
128
|
-
BeginTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.BeginTransactionResponse").msgclass
|
129
|
-
RollbackRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RollbackRequest").msgclass
|
130
|
-
RollbackResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RollbackResponse").msgclass
|
131
|
-
CommitRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CommitRequest").msgclass
|
132
|
-
CommitRequest::Mode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CommitRequest.Mode").enummodule
|
133
|
-
CommitResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CommitResponse").msgclass
|
134
|
-
AllocateIdsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AllocateIdsRequest").msgclass
|
135
|
-
AllocateIdsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AllocateIdsResponse").msgclass
|
136
|
-
ReserveIdsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReserveIdsRequest").msgclass
|
137
|
-
ReserveIdsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReserveIdsResponse").msgclass
|
138
|
-
Mutation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Mutation").msgclass
|
139
|
-
MutationResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.MutationResult").msgclass
|
140
|
-
ReadOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions").msgclass
|
141
|
-
ReadOptions::ReadConsistency = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions.ReadConsistency").enummodule
|
142
|
-
TransactionOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.TransactionOptions").msgclass
|
143
|
-
TransactionOptions::ReadWrite = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.TransactionOptions.ReadWrite").msgclass
|
144
|
-
TransactionOptions::ReadOnly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.TransactionOptions.ReadOnly").msgclass
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/datastore/v1/datastore.proto for package 'google.datastore.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
|
20
|
-
require 'grpc'
|
21
|
-
require 'google/datastore/v1/datastore_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Datastore
|
25
|
-
module V1
|
26
|
-
module Datastore
|
27
|
-
# Each RPC normalizes the partition IDs of the keys in its input entities,
|
28
|
-
# and always returns entities with keys with normalized partition IDs.
|
29
|
-
# This applies to all keys and entities, including those in values, except keys
|
30
|
-
# with both an empty path and an empty or unset partition ID. Normalization of
|
31
|
-
# input keys sets the project ID (if not already set) to the project ID from
|
32
|
-
# the request.
|
33
|
-
#
|
34
|
-
class Service
|
35
|
-
|
36
|
-
include GRPC::GenericService
|
37
|
-
|
38
|
-
self.marshal_class_method = :encode
|
39
|
-
self.unmarshal_class_method = :decode
|
40
|
-
self.service_name = 'google.datastore.v1.Datastore'
|
41
|
-
|
42
|
-
# Looks up entities by key.
|
43
|
-
rpc :Lookup, LookupRequest, LookupResponse
|
44
|
-
# Queries for entities.
|
45
|
-
rpc :RunQuery, RunQueryRequest, RunQueryResponse
|
46
|
-
# Begins a new transaction.
|
47
|
-
rpc :BeginTransaction, BeginTransactionRequest, BeginTransactionResponse
|
48
|
-
# Commits a transaction, optionally creating, deleting or modifying some
|
49
|
-
# entities.
|
50
|
-
rpc :Commit, CommitRequest, CommitResponse
|
51
|
-
# Rolls back a transaction.
|
52
|
-
rpc :Rollback, RollbackRequest, RollbackResponse
|
53
|
-
# Allocates IDs for the given keys, which is useful for referencing an entity
|
54
|
-
# before it is inserted.
|
55
|
-
rpc :AllocateIds, AllocateIdsRequest, AllocateIdsResponse
|
56
|
-
# Prevents the supplied keys' IDs from being auto-allocated by Cloud
|
57
|
-
# Datastore.
|
58
|
-
rpc :ReserveIds, ReserveIdsRequest, ReserveIdsResponse
|
59
|
-
end
|
60
|
-
|
61
|
-
Stub = Service.rpc_stub_class
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/datastore/v1/entity.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/protobuf/struct_pb'
|
9
|
-
require 'google/protobuf/timestamp_pb'
|
10
|
-
require 'google/type/latlng_pb'
|
11
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
-
add_message "google.datastore.v1.PartitionId" do
|
13
|
-
optional :project_id, :string, 2
|
14
|
-
optional :namespace_id, :string, 4
|
15
|
-
end
|
16
|
-
add_message "google.datastore.v1.Key" do
|
17
|
-
optional :partition_id, :message, 1, "google.datastore.v1.PartitionId"
|
18
|
-
repeated :path, :message, 2, "google.datastore.v1.Key.PathElement"
|
19
|
-
end
|
20
|
-
add_message "google.datastore.v1.Key.PathElement" do
|
21
|
-
optional :kind, :string, 1
|
22
|
-
oneof :id_type do
|
23
|
-
optional :id, :int64, 2
|
24
|
-
optional :name, :string, 3
|
25
|
-
end
|
26
|
-
end
|
27
|
-
add_message "google.datastore.v1.ArrayValue" do
|
28
|
-
repeated :values, :message, 1, "google.datastore.v1.Value"
|
29
|
-
end
|
30
|
-
add_message "google.datastore.v1.Value" do
|
31
|
-
optional :meaning, :int32, 14
|
32
|
-
optional :exclude_from_indexes, :bool, 19
|
33
|
-
oneof :value_type do
|
34
|
-
optional :null_value, :enum, 11, "google.protobuf.NullValue"
|
35
|
-
optional :boolean_value, :bool, 1
|
36
|
-
optional :integer_value, :int64, 2
|
37
|
-
optional :double_value, :double, 3
|
38
|
-
optional :timestamp_value, :message, 10, "google.protobuf.Timestamp"
|
39
|
-
optional :key_value, :message, 5, "google.datastore.v1.Key"
|
40
|
-
optional :string_value, :string, 17
|
41
|
-
optional :blob_value, :bytes, 18
|
42
|
-
optional :geo_point_value, :message, 8, "google.type.LatLng"
|
43
|
-
optional :entity_value, :message, 6, "google.datastore.v1.Entity"
|
44
|
-
optional :array_value, :message, 9, "google.datastore.v1.ArrayValue"
|
45
|
-
end
|
46
|
-
end
|
47
|
-
add_message "google.datastore.v1.Entity" do
|
48
|
-
optional :key, :message, 1, "google.datastore.v1.Key"
|
49
|
-
map :properties, :string, :message, 3, "google.datastore.v1.Value"
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
module Google
|
54
|
-
module Datastore
|
55
|
-
module V1
|
56
|
-
PartitionId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PartitionId").msgclass
|
57
|
-
Key = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Key").msgclass
|
58
|
-
Key::PathElement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Key.PathElement").msgclass
|
59
|
-
ArrayValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ArrayValue").msgclass
|
60
|
-
Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Value").msgclass
|
61
|
-
Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Entity").msgclass
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
@@ -1,132 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/datastore/v1/query.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/datastore/v1/entity_pb'
|
9
|
-
require 'google/protobuf/wrappers_pb'
|
10
|
-
require 'google/type/latlng_pb'
|
11
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
-
add_message "google.datastore.v1.EntityResult" do
|
13
|
-
optional :entity, :message, 1, "google.datastore.v1.Entity"
|
14
|
-
optional :version, :int64, 4
|
15
|
-
optional :cursor, :bytes, 3
|
16
|
-
end
|
17
|
-
add_enum "google.datastore.v1.EntityResult.ResultType" do
|
18
|
-
value :RESULT_TYPE_UNSPECIFIED, 0
|
19
|
-
value :FULL, 1
|
20
|
-
value :PROJECTION, 2
|
21
|
-
value :KEY_ONLY, 3
|
22
|
-
end
|
23
|
-
add_message "google.datastore.v1.Query" do
|
24
|
-
repeated :projection, :message, 2, "google.datastore.v1.Projection"
|
25
|
-
repeated :kind, :message, 3, "google.datastore.v1.KindExpression"
|
26
|
-
optional :filter, :message, 4, "google.datastore.v1.Filter"
|
27
|
-
repeated :order, :message, 5, "google.datastore.v1.PropertyOrder"
|
28
|
-
repeated :distinct_on, :message, 6, "google.datastore.v1.PropertyReference"
|
29
|
-
optional :start_cursor, :bytes, 7
|
30
|
-
optional :end_cursor, :bytes, 8
|
31
|
-
optional :offset, :int32, 10
|
32
|
-
optional :limit, :message, 12, "google.protobuf.Int32Value"
|
33
|
-
end
|
34
|
-
add_message "google.datastore.v1.KindExpression" do
|
35
|
-
optional :name, :string, 1
|
36
|
-
end
|
37
|
-
add_message "google.datastore.v1.PropertyReference" do
|
38
|
-
optional :name, :string, 2
|
39
|
-
end
|
40
|
-
add_message "google.datastore.v1.Projection" do
|
41
|
-
optional :property, :message, 1, "google.datastore.v1.PropertyReference"
|
42
|
-
end
|
43
|
-
add_message "google.datastore.v1.PropertyOrder" do
|
44
|
-
optional :property, :message, 1, "google.datastore.v1.PropertyReference"
|
45
|
-
optional :direction, :enum, 2, "google.datastore.v1.PropertyOrder.Direction"
|
46
|
-
end
|
47
|
-
add_enum "google.datastore.v1.PropertyOrder.Direction" do
|
48
|
-
value :DIRECTION_UNSPECIFIED, 0
|
49
|
-
value :ASCENDING, 1
|
50
|
-
value :DESCENDING, 2
|
51
|
-
end
|
52
|
-
add_message "google.datastore.v1.Filter" do
|
53
|
-
oneof :filter_type do
|
54
|
-
optional :composite_filter, :message, 1, "google.datastore.v1.CompositeFilter"
|
55
|
-
optional :property_filter, :message, 2, "google.datastore.v1.PropertyFilter"
|
56
|
-
end
|
57
|
-
end
|
58
|
-
add_message "google.datastore.v1.CompositeFilter" do
|
59
|
-
optional :op, :enum, 1, "google.datastore.v1.CompositeFilter.Operator"
|
60
|
-
repeated :filters, :message, 2, "google.datastore.v1.Filter"
|
61
|
-
end
|
62
|
-
add_enum "google.datastore.v1.CompositeFilter.Operator" do
|
63
|
-
value :OPERATOR_UNSPECIFIED, 0
|
64
|
-
value :AND, 1
|
65
|
-
end
|
66
|
-
add_message "google.datastore.v1.PropertyFilter" do
|
67
|
-
optional :property, :message, 1, "google.datastore.v1.PropertyReference"
|
68
|
-
optional :op, :enum, 2, "google.datastore.v1.PropertyFilter.Operator"
|
69
|
-
optional :value, :message, 3, "google.datastore.v1.Value"
|
70
|
-
end
|
71
|
-
add_enum "google.datastore.v1.PropertyFilter.Operator" do
|
72
|
-
value :OPERATOR_UNSPECIFIED, 0
|
73
|
-
value :LESS_THAN, 1
|
74
|
-
value :LESS_THAN_OR_EQUAL, 2
|
75
|
-
value :GREATER_THAN, 3
|
76
|
-
value :GREATER_THAN_OR_EQUAL, 4
|
77
|
-
value :EQUAL, 5
|
78
|
-
value :HAS_ANCESTOR, 11
|
79
|
-
end
|
80
|
-
add_message "google.datastore.v1.GqlQuery" do
|
81
|
-
optional :query_string, :string, 1
|
82
|
-
optional :allow_literals, :bool, 2
|
83
|
-
map :named_bindings, :string, :message, 5, "google.datastore.v1.GqlQueryParameter"
|
84
|
-
repeated :positional_bindings, :message, 4, "google.datastore.v1.GqlQueryParameter"
|
85
|
-
end
|
86
|
-
add_message "google.datastore.v1.GqlQueryParameter" do
|
87
|
-
oneof :parameter_type do
|
88
|
-
optional :value, :message, 2, "google.datastore.v1.Value"
|
89
|
-
optional :cursor, :bytes, 3
|
90
|
-
end
|
91
|
-
end
|
92
|
-
add_message "google.datastore.v1.QueryResultBatch" do
|
93
|
-
optional :skipped_results, :int32, 6
|
94
|
-
optional :skipped_cursor, :bytes, 3
|
95
|
-
optional :entity_result_type, :enum, 1, "google.datastore.v1.EntityResult.ResultType"
|
96
|
-
repeated :entity_results, :message, 2, "google.datastore.v1.EntityResult"
|
97
|
-
optional :end_cursor, :bytes, 4
|
98
|
-
optional :more_results, :enum, 5, "google.datastore.v1.QueryResultBatch.MoreResultsType"
|
99
|
-
optional :snapshot_version, :int64, 7
|
100
|
-
end
|
101
|
-
add_enum "google.datastore.v1.QueryResultBatch.MoreResultsType" do
|
102
|
-
value :MORE_RESULTS_TYPE_UNSPECIFIED, 0
|
103
|
-
value :NOT_FINISHED, 1
|
104
|
-
value :MORE_RESULTS_AFTER_LIMIT, 2
|
105
|
-
value :MORE_RESULTS_AFTER_CURSOR, 4
|
106
|
-
value :NO_MORE_RESULTS, 3
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
module Google
|
111
|
-
module Datastore
|
112
|
-
module V1
|
113
|
-
EntityResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.EntityResult").msgclass
|
114
|
-
EntityResult::ResultType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.EntityResult.ResultType").enummodule
|
115
|
-
Query = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Query").msgclass
|
116
|
-
KindExpression = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.KindExpression").msgclass
|
117
|
-
PropertyReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyReference").msgclass
|
118
|
-
Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Projection").msgclass
|
119
|
-
PropertyOrder = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyOrder").msgclass
|
120
|
-
PropertyOrder::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyOrder.Direction").enummodule
|
121
|
-
Filter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Filter").msgclass
|
122
|
-
CompositeFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CompositeFilter").msgclass
|
123
|
-
CompositeFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CompositeFilter.Operator").enummodule
|
124
|
-
PropertyFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyFilter").msgclass
|
125
|
-
PropertyFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyFilter.Operator").enummodule
|
126
|
-
GqlQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.GqlQuery").msgclass
|
127
|
-
GqlQueryParameter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.GqlQueryParameter").msgclass
|
128
|
-
QueryResultBatch = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.QueryResultBatch").msgclass
|
129
|
-
QueryResultBatch::MoreResultsType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.QueryResultBatch.MoreResultsType").enummodule
|
130
|
-
end
|
131
|
-
end
|
132
|
-
end
|