google-apis-datastore_v1 0.39.0 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3948fb01c0e464276aa4b17a4344ea876f15d8a10ded3c0536bf4d8ba1d4ec85
|
4
|
+
data.tar.gz: 99caa454d159919e03b173038ee3c015a4f60ef14293f2f706aeaff166dbdb71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f3317a8ac15315ad8eddb7d91202631446f5f7ebdf8729ad6c191bc64c68fe59412aad48442d7e053294babc56f2efedc3fede8cbdfbd9b95410967a8f67660
|
7
|
+
data.tar.gz: 70975e6ae0581b75dae441657dc8df94e40cd2aa646b1687e4473b45bc9f481a75afd70de80f75a8c8f28670bd4fd43ab03ca6ca97f977f56807ef11caf83a4f
|
data/CHANGELOG.md
CHANGED
@@ -94,7 +94,9 @@ module Google
|
|
94
94
|
# @return [Array<Google::Apis::DatastoreV1::Aggregation>]
|
95
95
|
attr_accessor :aggregations
|
96
96
|
|
97
|
-
# A query for entities.
|
97
|
+
# A query for entities. The query stages are executed in the following order: 1.
|
98
|
+
# kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
|
99
|
+
# limit 7. find_nearest
|
98
100
|
# Corresponds to the JSON property `nestedQuery`
|
99
101
|
# @return [Google::Apis::DatastoreV1::Query]
|
100
102
|
attr_accessor :nested_query
|
@@ -654,6 +656,66 @@ module Google
|
|
654
656
|
end
|
655
657
|
end
|
656
658
|
|
659
|
+
# Nearest Neighbors search config. The ordering provided by FindNearest
|
660
|
+
# supersedes the order_by stage. If multiple documents have the same vector
|
661
|
+
# distance, the returned document order is not guaranteed to be stable between
|
662
|
+
# queries.
|
663
|
+
class FindNearest
|
664
|
+
include Google::Apis::Core::Hashable
|
665
|
+
|
666
|
+
# Required. The Distance Measure to use, required.
|
667
|
+
# Corresponds to the JSON property `distanceMeasure`
|
668
|
+
# @return [String]
|
669
|
+
attr_accessor :distance_measure
|
670
|
+
|
671
|
+
# Optional. Optional name of the field to output the result of the vector
|
672
|
+
# distance calculation. Must conform to entity property limitations.
|
673
|
+
# Corresponds to the JSON property `distanceResultProperty`
|
674
|
+
# @return [String]
|
675
|
+
attr_accessor :distance_result_property
|
676
|
+
|
677
|
+
# Optional. Option to specify a threshold for which no less similar documents
|
678
|
+
# will be returned. The behavior of the specified `distance_measure` will affect
|
679
|
+
# the meaning of the distance threshold. Since DOT_PRODUCT distances increase
|
680
|
+
# when the vectors are more similar, the comparison is inverted. * For EUCLIDEAN,
|
681
|
+
# COSINE: WHERE distance <= distance_threshold * For DOT_PRODUCT: WHERE
|
682
|
+
# distance >= distance_threshold
|
683
|
+
# Corresponds to the JSON property `distanceThreshold`
|
684
|
+
# @return [Float]
|
685
|
+
attr_accessor :distance_threshold
|
686
|
+
|
687
|
+
# Required. The number of nearest neighbors to return. Must be a positive
|
688
|
+
# integer of no more than 100.
|
689
|
+
# Corresponds to the JSON property `limit`
|
690
|
+
# @return [Fixnum]
|
691
|
+
attr_accessor :limit
|
692
|
+
|
693
|
+
# A message that can hold any of the supported value types and associated
|
694
|
+
# metadata.
|
695
|
+
# Corresponds to the JSON property `queryVector`
|
696
|
+
# @return [Google::Apis::DatastoreV1::Value]
|
697
|
+
attr_accessor :query_vector
|
698
|
+
|
699
|
+
# A reference to a property relative to the kind expressions.
|
700
|
+
# Corresponds to the JSON property `vectorProperty`
|
701
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
702
|
+
attr_accessor :vector_property
|
703
|
+
|
704
|
+
def initialize(**args)
|
705
|
+
update!(**args)
|
706
|
+
end
|
707
|
+
|
708
|
+
# Update properties of this object
|
709
|
+
def update!(**args)
|
710
|
+
@distance_measure = args[:distance_measure] if args.key?(:distance_measure)
|
711
|
+
@distance_result_property = args[:distance_result_property] if args.key?(:distance_result_property)
|
712
|
+
@distance_threshold = args[:distance_threshold] if args.key?(:distance_threshold)
|
713
|
+
@limit = args[:limit] if args.key?(:limit)
|
714
|
+
@query_vector = args[:query_vector] if args.key?(:query_vector)
|
715
|
+
@vector_property = args[:vector_property] if args.key?(:vector_property)
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
657
719
|
# Metadata common to all Datastore Admin operations.
|
658
720
|
class GoogleDatastoreAdminV1CommonMetadata
|
659
721
|
include Google::Apis::Core::Hashable
|
@@ -2237,7 +2299,9 @@ module Google
|
|
2237
2299
|
end
|
2238
2300
|
end
|
2239
2301
|
|
2240
|
-
# A query for entities.
|
2302
|
+
# A query for entities. The query stages are executed in the following order: 1.
|
2303
|
+
# kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
|
2304
|
+
# limit 7. find_nearest
|
2241
2305
|
class Query
|
2242
2306
|
include Google::Apis::Core::Hashable
|
2243
2307
|
|
@@ -2263,6 +2327,14 @@ module Google
|
|
2263
2327
|
# @return [Google::Apis::DatastoreV1::Filter]
|
2264
2328
|
attr_accessor :filter
|
2265
2329
|
|
2330
|
+
# Nearest Neighbors search config. The ordering provided by FindNearest
|
2331
|
+
# supersedes the order_by stage. If multiple documents have the same vector
|
2332
|
+
# distance, the returned document order is not guaranteed to be stable between
|
2333
|
+
# queries.
|
2334
|
+
# Corresponds to the JSON property `findNearest`
|
2335
|
+
# @return [Google::Apis::DatastoreV1::FindNearest]
|
2336
|
+
attr_accessor :find_nearest
|
2337
|
+
|
2266
2338
|
# The kinds to query (if empty, returns entities of all kinds). Currently at
|
2267
2339
|
# most 1 kind may be specified.
|
2268
2340
|
# Corresponds to the JSON property `kind`
|
@@ -2308,6 +2380,7 @@ module Google
|
|
2308
2380
|
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
2309
2381
|
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
2310
2382
|
@filter = args[:filter] if args.key?(:filter)
|
2383
|
+
@find_nearest = args[:find_nearest] if args.key?(:find_nearest)
|
2311
2384
|
@kind = args[:kind] if args.key?(:kind)
|
2312
2385
|
@limit = args[:limit] if args.key?(:limit)
|
2313
2386
|
@offset = args[:offset] if args.key?(:offset)
|
@@ -2698,7 +2771,9 @@ module Google
|
|
2698
2771
|
# @return [Google::Apis::DatastoreV1::PropertyMask]
|
2699
2772
|
attr_accessor :property_mask
|
2700
2773
|
|
2701
|
-
# A query for entities.
|
2774
|
+
# A query for entities. The query stages are executed in the following order: 1.
|
2775
|
+
# kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
|
2776
|
+
# limit 7. find_nearest
|
2702
2777
|
# Corresponds to the JSON property `query`
|
2703
2778
|
# @return [Google::Apis::DatastoreV1::Query]
|
2704
2779
|
attr_accessor :query
|
@@ -2738,7 +2813,9 @@ module Google
|
|
2738
2813
|
# @return [Google::Apis::DatastoreV1::ExplainMetrics]
|
2739
2814
|
attr_accessor :explain_metrics
|
2740
2815
|
|
2741
|
-
# A query for entities.
|
2816
|
+
# A query for entities. The query stages are executed in the following order: 1.
|
2817
|
+
# kind 2. filter 3. projection 4. order + start_cursor + end_cursor 5. offset 6.
|
2818
|
+
# limit 7. find_nearest
|
2742
2819
|
# Corresponds to the JSON property `query`
|
2743
2820
|
# @return [Google::Apis::DatastoreV1::Query]
|
2744
2821
|
attr_accessor :query
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DatastoreV1
|
18
18
|
# Version of the google-apis-datastore_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241018"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -148,6 +148,12 @@ module Google
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
+
class FindNearest
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
151
157
|
class GoogleDatastoreAdminV1CommonMetadata
|
152
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
159
|
|
@@ -702,6 +708,20 @@ module Google
|
|
702
708
|
end
|
703
709
|
end
|
704
710
|
|
711
|
+
class FindNearest
|
712
|
+
# @private
|
713
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
714
|
+
property :distance_measure, as: 'distanceMeasure'
|
715
|
+
property :distance_result_property, as: 'distanceResultProperty'
|
716
|
+
property :distance_threshold, as: 'distanceThreshold'
|
717
|
+
property :limit, as: 'limit'
|
718
|
+
property :query_vector, as: 'queryVector', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
719
|
+
|
720
|
+
property :vector_property, as: 'vectorProperty', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
721
|
+
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
705
725
|
class GoogleDatastoreAdminV1CommonMetadata
|
706
726
|
# @private
|
707
727
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1153,6 +1173,8 @@ module Google
|
|
1153
1173
|
property :end_cursor, :base64 => true, as: 'endCursor'
|
1154
1174
|
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
1155
1175
|
|
1176
|
+
property :find_nearest, as: 'findNearest', class: Google::Apis::DatastoreV1::FindNearest, decorator: Google::Apis::DatastoreV1::FindNearest::Representation
|
1177
|
+
|
1156
1178
|
collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
|
1157
1179
|
|
1158
1180
|
property :limit, as: 'limit'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-datastore_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.40.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: 2024-
|
11
|
+
date: 2024-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.40.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|