google-cloud-datastore 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/google-cloud-datastore.rb +141 -0
- data/lib/google/cloud/datastore.rb +532 -0
- data/lib/google/cloud/datastore/commit.rb +150 -0
- data/lib/google/cloud/datastore/credentials.rb +38 -0
- data/lib/google/cloud/datastore/cursor.rb +79 -0
- data/lib/google/cloud/datastore/dataset.rb +667 -0
- data/lib/google/cloud/datastore/dataset/lookup_results.rb +222 -0
- data/lib/google/cloud/datastore/dataset/query_results.rb +389 -0
- data/lib/google/cloud/datastore/entity.rb +454 -0
- data/lib/google/cloud/datastore/errors.rb +43 -0
- data/lib/google/cloud/datastore/gql_query.rb +216 -0
- data/lib/google/cloud/datastore/grpc_utils.rb +140 -0
- data/lib/google/cloud/datastore/key.rb +289 -0
- data/lib/google/cloud/datastore/properties.rb +133 -0
- data/lib/google/cloud/datastore/query.rb +351 -0
- data/lib/google/cloud/datastore/service.rb +171 -0
- data/lib/google/cloud/datastore/transaction.rb +365 -0
- data/lib/google/cloud/datastore/version.rb +22 -0
- data/lib/google/datastore/v1/datastore_pb.rb +120 -0
- data/lib/google/datastore/v1/datastore_services_pb.rb +61 -0
- data/lib/google/datastore/v1/entity_pb.rb +63 -0
- data/lib/google/datastore/v1/query_pb.rb +131 -0
- metadata +236 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# Copyright 2016 Google Inc. All rights reserved.
|
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
|
+
# http://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 Cloud
|
18
|
+
module Datastore
|
19
|
+
VERSION = "0.20.0"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/datastore/v1/datastore.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/datastore/v1/entity_pb'
|
8
|
+
require 'google/datastore/v1/query_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_message "google.datastore.v1.LookupRequest" do
|
11
|
+
optional :project_id, :string, 8
|
12
|
+
optional :read_options, :message, 1, "google.datastore.v1.ReadOptions"
|
13
|
+
repeated :keys, :message, 3, "google.datastore.v1.Key"
|
14
|
+
end
|
15
|
+
add_message "google.datastore.v1.LookupResponse" do
|
16
|
+
repeated :found, :message, 1, "google.datastore.v1.EntityResult"
|
17
|
+
repeated :missing, :message, 2, "google.datastore.v1.EntityResult"
|
18
|
+
repeated :deferred, :message, 3, "google.datastore.v1.Key"
|
19
|
+
end
|
20
|
+
add_message "google.datastore.v1.RunQueryRequest" do
|
21
|
+
optional :project_id, :string, 8
|
22
|
+
optional :partition_id, :message, 2, "google.datastore.v1.PartitionId"
|
23
|
+
optional :read_options, :message, 1, "google.datastore.v1.ReadOptions"
|
24
|
+
oneof :query_type do
|
25
|
+
optional :query, :message, 3, "google.datastore.v1.Query"
|
26
|
+
optional :gql_query, :message, 7, "google.datastore.v1.GqlQuery"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
add_message "google.datastore.v1.RunQueryResponse" do
|
30
|
+
optional :batch, :message, 1, "google.datastore.v1.QueryResultBatch"
|
31
|
+
optional :query, :message, 2, "google.datastore.v1.Query"
|
32
|
+
end
|
33
|
+
add_message "google.datastore.v1.BeginTransactionRequest" do
|
34
|
+
optional :project_id, :string, 8
|
35
|
+
end
|
36
|
+
add_message "google.datastore.v1.BeginTransactionResponse" do
|
37
|
+
optional :transaction, :bytes, 1
|
38
|
+
end
|
39
|
+
add_message "google.datastore.v1.RollbackRequest" do
|
40
|
+
optional :project_id, :string, 8
|
41
|
+
optional :transaction, :bytes, 1
|
42
|
+
end
|
43
|
+
add_message "google.datastore.v1.RollbackResponse" do
|
44
|
+
end
|
45
|
+
add_message "google.datastore.v1.CommitRequest" do
|
46
|
+
optional :project_id, :string, 8
|
47
|
+
optional :mode, :enum, 5, "google.datastore.v1.CommitRequest.Mode"
|
48
|
+
repeated :mutations, :message, 6, "google.datastore.v1.Mutation"
|
49
|
+
oneof :transaction_selector do
|
50
|
+
optional :transaction, :bytes, 1
|
51
|
+
end
|
52
|
+
end
|
53
|
+
add_enum "google.datastore.v1.CommitRequest.Mode" do
|
54
|
+
value :MODE_UNSPECIFIED, 0
|
55
|
+
value :TRANSACTIONAL, 1
|
56
|
+
value :NON_TRANSACTIONAL, 2
|
57
|
+
end
|
58
|
+
add_message "google.datastore.v1.CommitResponse" do
|
59
|
+
repeated :mutation_results, :message, 3, "google.datastore.v1.MutationResult"
|
60
|
+
optional :index_updates, :int32, 4
|
61
|
+
end
|
62
|
+
add_message "google.datastore.v1.AllocateIdsRequest" do
|
63
|
+
optional :project_id, :string, 8
|
64
|
+
repeated :keys, :message, 1, "google.datastore.v1.Key"
|
65
|
+
end
|
66
|
+
add_message "google.datastore.v1.AllocateIdsResponse" do
|
67
|
+
repeated :keys, :message, 1, "google.datastore.v1.Key"
|
68
|
+
end
|
69
|
+
add_message "google.datastore.v1.Mutation" do
|
70
|
+
oneof :operation do
|
71
|
+
optional :insert, :message, 4, "google.datastore.v1.Entity"
|
72
|
+
optional :update, :message, 5, "google.datastore.v1.Entity"
|
73
|
+
optional :upsert, :message, 6, "google.datastore.v1.Entity"
|
74
|
+
optional :delete, :message, 7, "google.datastore.v1.Key"
|
75
|
+
end
|
76
|
+
oneof :conflict_detection_strategy do
|
77
|
+
optional :base_version, :int64, 8
|
78
|
+
end
|
79
|
+
end
|
80
|
+
add_message "google.datastore.v1.MutationResult" do
|
81
|
+
optional :key, :message, 3, "google.datastore.v1.Key"
|
82
|
+
optional :version, :int64, 4
|
83
|
+
optional :conflict_detected, :bool, 5
|
84
|
+
end
|
85
|
+
add_message "google.datastore.v1.ReadOptions" do
|
86
|
+
oneof :consistency_type do
|
87
|
+
optional :read_consistency, :enum, 1, "google.datastore.v1.ReadOptions.ReadConsistency"
|
88
|
+
optional :transaction, :bytes, 2
|
89
|
+
end
|
90
|
+
end
|
91
|
+
add_enum "google.datastore.v1.ReadOptions.ReadConsistency" do
|
92
|
+
value :READ_CONSISTENCY_UNSPECIFIED, 0
|
93
|
+
value :STRONG, 1
|
94
|
+
value :EVENTUAL, 2
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
module Google
|
99
|
+
module Datastore
|
100
|
+
module V1
|
101
|
+
LookupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.LookupRequest").msgclass
|
102
|
+
LookupResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.LookupResponse").msgclass
|
103
|
+
RunQueryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RunQueryRequest").msgclass
|
104
|
+
RunQueryResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RunQueryResponse").msgclass
|
105
|
+
BeginTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.BeginTransactionRequest").msgclass
|
106
|
+
BeginTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.BeginTransactionResponse").msgclass
|
107
|
+
RollbackRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RollbackRequest").msgclass
|
108
|
+
RollbackResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.RollbackResponse").msgclass
|
109
|
+
CommitRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CommitRequest").msgclass
|
110
|
+
CommitRequest::Mode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CommitRequest.Mode").enummodule
|
111
|
+
CommitResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CommitResponse").msgclass
|
112
|
+
AllocateIdsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AllocateIdsRequest").msgclass
|
113
|
+
AllocateIdsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.AllocateIdsResponse").msgclass
|
114
|
+
Mutation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Mutation").msgclass
|
115
|
+
MutationResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.MutationResult").msgclass
|
116
|
+
ReadOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions").msgclass
|
117
|
+
ReadOptions::ReadConsistency = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ReadOptions.ReadConsistency").enummodule
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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 2016 Google Inc.
|
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
|
+
require 'grpc'
|
20
|
+
require 'google/datastore/v1/datastore_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Datastore
|
24
|
+
module V1
|
25
|
+
module Datastore
|
26
|
+
# Each RPC normalizes the partition IDs of the keys in its input entities,
|
27
|
+
# and always returns entities with keys with normalized partition IDs.
|
28
|
+
# This applies to all keys and entities, including those in values, except keys
|
29
|
+
# with both an empty path and an empty or unset partition ID. Normalization of
|
30
|
+
# input keys sets the project ID (if not already set) to the project ID from
|
31
|
+
# the request.
|
32
|
+
#
|
33
|
+
class Service
|
34
|
+
|
35
|
+
include GRPC::GenericService
|
36
|
+
|
37
|
+
self.marshal_class_method = :encode
|
38
|
+
self.unmarshal_class_method = :decode
|
39
|
+
self.service_name = 'google.datastore.v1.Datastore'
|
40
|
+
|
41
|
+
# Looks up entities by key.
|
42
|
+
rpc :Lookup, LookupRequest, LookupResponse
|
43
|
+
# Queries for entities.
|
44
|
+
rpc :RunQuery, RunQueryRequest, RunQueryResponse
|
45
|
+
# Begins a new transaction.
|
46
|
+
rpc :BeginTransaction, BeginTransactionRequest, BeginTransactionResponse
|
47
|
+
# Commits a transaction, optionally creating, deleting or modifying some
|
48
|
+
# entities.
|
49
|
+
rpc :Commit, CommitRequest, CommitResponse
|
50
|
+
# Rolls back a transaction.
|
51
|
+
rpc :Rollback, RollbackRequest, RollbackResponse
|
52
|
+
# Allocates IDs for the given keys, which is useful for referencing an entity
|
53
|
+
# before it is inserted.
|
54
|
+
rpc :AllocateIds, AllocateIdsRequest, AllocateIdsResponse
|
55
|
+
end
|
56
|
+
|
57
|
+
Stub = Service.rpc_stub_class
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/datastore/v1/entity.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf/struct_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/type/latlng_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_message "google.datastore.v1.PartitionId" do
|
12
|
+
optional :project_id, :string, 2
|
13
|
+
optional :namespace_id, :string, 4
|
14
|
+
end
|
15
|
+
add_message "google.datastore.v1.Key" do
|
16
|
+
optional :partition_id, :message, 1, "google.datastore.v1.PartitionId"
|
17
|
+
repeated :path, :message, 2, "google.datastore.v1.Key.PathElement"
|
18
|
+
end
|
19
|
+
add_message "google.datastore.v1.Key.PathElement" do
|
20
|
+
optional :kind, :string, 1
|
21
|
+
oneof :id_type do
|
22
|
+
optional :id, :int64, 2
|
23
|
+
optional :name, :string, 3
|
24
|
+
end
|
25
|
+
end
|
26
|
+
add_message "google.datastore.v1.ArrayValue" do
|
27
|
+
repeated :values, :message, 1, "google.datastore.v1.Value"
|
28
|
+
end
|
29
|
+
add_message "google.datastore.v1.Value" do
|
30
|
+
optional :meaning, :int32, 14
|
31
|
+
optional :exclude_from_indexes, :bool, 19
|
32
|
+
oneof :value_type do
|
33
|
+
optional :null_value, :enum, 11, "google.protobuf.NullValue"
|
34
|
+
optional :boolean_value, :bool, 1
|
35
|
+
optional :integer_value, :int64, 2
|
36
|
+
optional :double_value, :double, 3
|
37
|
+
optional :timestamp_value, :message, 10, "google.protobuf.Timestamp"
|
38
|
+
optional :key_value, :message, 5, "google.datastore.v1.Key"
|
39
|
+
optional :string_value, :string, 17
|
40
|
+
optional :blob_value, :bytes, 18
|
41
|
+
optional :geo_point_value, :message, 8, "google.type.LatLng"
|
42
|
+
optional :entity_value, :message, 6, "google.datastore.v1.Entity"
|
43
|
+
optional :array_value, :message, 9, "google.datastore.v1.ArrayValue"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
add_message "google.datastore.v1.Entity" do
|
47
|
+
optional :key, :message, 1, "google.datastore.v1.Key"
|
48
|
+
map :properties, :string, :message, 3, "google.datastore.v1.Value"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module Google
|
53
|
+
module Datastore
|
54
|
+
module V1
|
55
|
+
PartitionId = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PartitionId").msgclass
|
56
|
+
Key = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Key").msgclass
|
57
|
+
Key::PathElement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Key.PathElement").msgclass
|
58
|
+
ArrayValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.ArrayValue").msgclass
|
59
|
+
Value = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Value").msgclass
|
60
|
+
Entity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Entity").msgclass
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,131 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/datastore/v1/query.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/datastore/v1/entity_pb'
|
8
|
+
require 'google/protobuf/wrappers_pb'
|
9
|
+
require 'google/type/latlng_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_message "google.datastore.v1.EntityResult" do
|
12
|
+
optional :entity, :message, 1, "google.datastore.v1.Entity"
|
13
|
+
optional :version, :int64, 4
|
14
|
+
optional :cursor, :bytes, 3
|
15
|
+
end
|
16
|
+
add_enum "google.datastore.v1.EntityResult.ResultType" do
|
17
|
+
value :RESULT_TYPE_UNSPECIFIED, 0
|
18
|
+
value :FULL, 1
|
19
|
+
value :PROJECTION, 2
|
20
|
+
value :KEY_ONLY, 3
|
21
|
+
end
|
22
|
+
add_message "google.datastore.v1.Query" do
|
23
|
+
repeated :projection, :message, 2, "google.datastore.v1.Projection"
|
24
|
+
repeated :kind, :message, 3, "google.datastore.v1.KindExpression"
|
25
|
+
optional :filter, :message, 4, "google.datastore.v1.Filter"
|
26
|
+
repeated :order, :message, 5, "google.datastore.v1.PropertyOrder"
|
27
|
+
repeated :distinct_on, :message, 6, "google.datastore.v1.PropertyReference"
|
28
|
+
optional :start_cursor, :bytes, 7
|
29
|
+
optional :end_cursor, :bytes, 8
|
30
|
+
optional :offset, :int32, 10
|
31
|
+
optional :limit, :message, 12, "google.protobuf.Int32Value"
|
32
|
+
end
|
33
|
+
add_message "google.datastore.v1.KindExpression" do
|
34
|
+
optional :name, :string, 1
|
35
|
+
end
|
36
|
+
add_message "google.datastore.v1.PropertyReference" do
|
37
|
+
optional :name, :string, 2
|
38
|
+
end
|
39
|
+
add_message "google.datastore.v1.Projection" do
|
40
|
+
optional :property, :message, 1, "google.datastore.v1.PropertyReference"
|
41
|
+
end
|
42
|
+
add_message "google.datastore.v1.PropertyOrder" do
|
43
|
+
optional :property, :message, 1, "google.datastore.v1.PropertyReference"
|
44
|
+
optional :direction, :enum, 2, "google.datastore.v1.PropertyOrder.Direction"
|
45
|
+
end
|
46
|
+
add_enum "google.datastore.v1.PropertyOrder.Direction" do
|
47
|
+
value :DIRECTION_UNSPECIFIED, 0
|
48
|
+
value :ASCENDING, 1
|
49
|
+
value :DESCENDING, 2
|
50
|
+
end
|
51
|
+
add_message "google.datastore.v1.Filter" do
|
52
|
+
oneof :filter_type do
|
53
|
+
optional :composite_filter, :message, 1, "google.datastore.v1.CompositeFilter"
|
54
|
+
optional :property_filter, :message, 2, "google.datastore.v1.PropertyFilter"
|
55
|
+
end
|
56
|
+
end
|
57
|
+
add_message "google.datastore.v1.CompositeFilter" do
|
58
|
+
optional :op, :enum, 1, "google.datastore.v1.CompositeFilter.Operator"
|
59
|
+
repeated :filters, :message, 2, "google.datastore.v1.Filter"
|
60
|
+
end
|
61
|
+
add_enum "google.datastore.v1.CompositeFilter.Operator" do
|
62
|
+
value :OPERATOR_UNSPECIFIED, 0
|
63
|
+
value :AND, 1
|
64
|
+
end
|
65
|
+
add_message "google.datastore.v1.PropertyFilter" do
|
66
|
+
optional :property, :message, 1, "google.datastore.v1.PropertyReference"
|
67
|
+
optional :op, :enum, 2, "google.datastore.v1.PropertyFilter.Operator"
|
68
|
+
optional :value, :message, 3, "google.datastore.v1.Value"
|
69
|
+
end
|
70
|
+
add_enum "google.datastore.v1.PropertyFilter.Operator" do
|
71
|
+
value :OPERATOR_UNSPECIFIED, 0
|
72
|
+
value :LESS_THAN, 1
|
73
|
+
value :LESS_THAN_OR_EQUAL, 2
|
74
|
+
value :GREATER_THAN, 3
|
75
|
+
value :GREATER_THAN_OR_EQUAL, 4
|
76
|
+
value :EQUAL, 5
|
77
|
+
value :HAS_ANCESTOR, 11
|
78
|
+
end
|
79
|
+
add_message "google.datastore.v1.GqlQuery" do
|
80
|
+
optional :query_string, :string, 1
|
81
|
+
optional :allow_literals, :bool, 2
|
82
|
+
map :named_bindings, :string, :message, 5, "google.datastore.v1.GqlQueryParameter"
|
83
|
+
repeated :positional_bindings, :message, 4, "google.datastore.v1.GqlQueryParameter"
|
84
|
+
end
|
85
|
+
add_message "google.datastore.v1.GqlQueryParameter" do
|
86
|
+
oneof :parameter_type do
|
87
|
+
optional :value, :message, 2, "google.datastore.v1.Value"
|
88
|
+
optional :cursor, :bytes, 3
|
89
|
+
end
|
90
|
+
end
|
91
|
+
add_message "google.datastore.v1.QueryResultBatch" do
|
92
|
+
optional :skipped_results, :int32, 6
|
93
|
+
optional :skipped_cursor, :bytes, 3
|
94
|
+
optional :entity_result_type, :enum, 1, "google.datastore.v1.EntityResult.ResultType"
|
95
|
+
repeated :entity_results, :message, 2, "google.datastore.v1.EntityResult"
|
96
|
+
optional :end_cursor, :bytes, 4
|
97
|
+
optional :more_results, :enum, 5, "google.datastore.v1.QueryResultBatch.MoreResultsType"
|
98
|
+
optional :snapshot_version, :int64, 7
|
99
|
+
end
|
100
|
+
add_enum "google.datastore.v1.QueryResultBatch.MoreResultsType" do
|
101
|
+
value :MORE_RESULTS_TYPE_UNSPECIFIED, 0
|
102
|
+
value :NOT_FINISHED, 1
|
103
|
+
value :MORE_RESULTS_AFTER_LIMIT, 2
|
104
|
+
value :MORE_RESULTS_AFTER_CURSOR, 4
|
105
|
+
value :NO_MORE_RESULTS, 3
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
module Google
|
110
|
+
module Datastore
|
111
|
+
module V1
|
112
|
+
EntityResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.EntityResult").msgclass
|
113
|
+
EntityResult::ResultType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.EntityResult.ResultType").enummodule
|
114
|
+
Query = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Query").msgclass
|
115
|
+
KindExpression = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.KindExpression").msgclass
|
116
|
+
PropertyReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyReference").msgclass
|
117
|
+
Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Projection").msgclass
|
118
|
+
PropertyOrder = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyOrder").msgclass
|
119
|
+
PropertyOrder::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyOrder.Direction").enummodule
|
120
|
+
Filter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.Filter").msgclass
|
121
|
+
CompositeFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CompositeFilter").msgclass
|
122
|
+
CompositeFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.CompositeFilter.Operator").enummodule
|
123
|
+
PropertyFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyFilter").msgclass
|
124
|
+
PropertyFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.PropertyFilter.Operator").enummodule
|
125
|
+
GqlQuery = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.GqlQuery").msgclass
|
126
|
+
GqlQueryParameter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.GqlQueryParameter").msgclass
|
127
|
+
QueryResultBatch = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.QueryResultBatch").msgclass
|
128
|
+
QueryResultBatch::MoreResultsType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.v1.QueryResultBatch.MoreResultsType").enummodule
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
metadata
ADDED
@@ -0,0 +1,236 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-cloud-datastore
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.20.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mike Moore
|
8
|
+
- Chris Smith
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-08-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: google-cloud-core
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.20.0
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.20.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: grpc
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: google-protobuf
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: googleapis-common-protos
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.2'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.2'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: minitest
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '5.9'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '5.9'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: minitest-autotest
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '1.0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '1.0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: minitest-focus
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '1.1'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '1.1'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: minitest-rg
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '5.2'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '5.2'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: autotest-suffix
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '1.1'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.1'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: rubocop
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "<="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 0.35.1
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "<="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.35.1
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: simplecov
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0.9'
|
161
|
+
type: :development
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - "~>"
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0.9'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: yard
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - "~>"
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0.9'
|
175
|
+
type: :development
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - "~>"
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0.9'
|
182
|
+
description: google-cloud-datastore is the official library for Google Cloud Datastore.
|
183
|
+
email:
|
184
|
+
- mike@blowmage.com
|
185
|
+
- quartzmo@gmail.com
|
186
|
+
executables: []
|
187
|
+
extensions: []
|
188
|
+
extra_rdoc_files: []
|
189
|
+
files:
|
190
|
+
- lib/google-cloud-datastore.rb
|
191
|
+
- lib/google/cloud/datastore.rb
|
192
|
+
- lib/google/cloud/datastore/commit.rb
|
193
|
+
- lib/google/cloud/datastore/credentials.rb
|
194
|
+
- lib/google/cloud/datastore/cursor.rb
|
195
|
+
- lib/google/cloud/datastore/dataset.rb
|
196
|
+
- lib/google/cloud/datastore/dataset/lookup_results.rb
|
197
|
+
- lib/google/cloud/datastore/dataset/query_results.rb
|
198
|
+
- lib/google/cloud/datastore/entity.rb
|
199
|
+
- lib/google/cloud/datastore/errors.rb
|
200
|
+
- lib/google/cloud/datastore/gql_query.rb
|
201
|
+
- lib/google/cloud/datastore/grpc_utils.rb
|
202
|
+
- lib/google/cloud/datastore/key.rb
|
203
|
+
- lib/google/cloud/datastore/properties.rb
|
204
|
+
- lib/google/cloud/datastore/query.rb
|
205
|
+
- lib/google/cloud/datastore/service.rb
|
206
|
+
- lib/google/cloud/datastore/transaction.rb
|
207
|
+
- lib/google/cloud/datastore/version.rb
|
208
|
+
- lib/google/datastore/v1/datastore_pb.rb
|
209
|
+
- lib/google/datastore/v1/datastore_services_pb.rb
|
210
|
+
- lib/google/datastore/v1/entity_pb.rb
|
211
|
+
- lib/google/datastore/v1/query_pb.rb
|
212
|
+
homepage: http://googlecloudplatform.github.io/google-cloud-ruby/
|
213
|
+
licenses:
|
214
|
+
- Apache-2.0
|
215
|
+
metadata: {}
|
216
|
+
post_install_message:
|
217
|
+
rdoc_options: []
|
218
|
+
require_paths:
|
219
|
+
- lib
|
220
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: 2.0.0
|
225
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
requirements: []
|
231
|
+
rubyforge_project:
|
232
|
+
rubygems_version: 2.6.4
|
233
|
+
signing_key:
|
234
|
+
specification_version: 4
|
235
|
+
summary: API Client library for Google Cloud Datastore
|
236
|
+
test_files: []
|