google-cloud-vector_search-v1 0.a → 0.3.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 +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +153 -8
- data/lib/google/cloud/vector_search/v1/bindings_override.rb +75 -0
- data/lib/google/cloud/vector_search/v1/data_object_search_service/client.rb +851 -0
- data/lib/google/cloud/vector_search/v1/data_object_search_service/credentials.rb +47 -0
- data/lib/google/cloud/vector_search/v1/data_object_search_service/paths.rb +73 -0
- data/lib/google/cloud/vector_search/v1/data_object_search_service/rest/client.rb +788 -0
- data/lib/google/cloud/vector_search/v1/data_object_search_service/rest/service_stub.rb +329 -0
- data/lib/google/cloud/vector_search/v1/data_object_search_service/rest.rb +53 -0
- data/lib/google/cloud/vector_search/v1/data_object_search_service.rb +55 -0
- data/lib/google/cloud/vector_search/v1/data_object_service/client.rb +1115 -0
- data/lib/google/cloud/vector_search/v1/data_object_service/credentials.rb +47 -0
- data/lib/google/cloud/vector_search/v1/data_object_service/paths.rb +73 -0
- data/lib/google/cloud/vector_search/v1/data_object_service/rest/client.rb +1031 -0
- data/lib/google/cloud/vector_search/v1/data_object_service/rest/service_stub.rb +513 -0
- data/lib/google/cloud/vector_search/v1/data_object_service/rest.rb +53 -0
- data/lib/google/cloud/vector_search/v1/data_object_service.rb +55 -0
- data/lib/google/cloud/vector_search/v1/rest.rb +40 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/client.rb +1831 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/credentials.rb +47 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/operations.rb +843 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/paths.rb +111 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/rest/client.rb +1712 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/rest/operations.rb +927 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/rest/service_stub.rb +819 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service/rest.rb +58 -0
- data/lib/google/cloud/vector_search/v1/vector_search_service.rb +60 -0
- data/lib/google/cloud/vector_search/v1/version.rb +7 -2
- data/lib/google/cloud/vector_search/v1.rb +47 -0
- data/lib/google/cloud/vectorsearch/v1/common_pb.rb +21 -0
- data/lib/google/cloud/vectorsearch/v1/data_object_pb.rb +29 -0
- data/lib/google/cloud/vectorsearch/v1/data_object_search_service_pb.rb +53 -0
- data/lib/google/cloud/vectorsearch/v1/data_object_search_service_services_pb.rb +51 -0
- data/lib/google/cloud/vectorsearch/v1/data_object_service_pb.rb +37 -0
- data/lib/google/cloud/vectorsearch/v1/data_object_service_services_pb.rb +57 -0
- data/lib/google/cloud/vectorsearch/v1/embedding_config_pb.rb +24 -0
- data/lib/google/cloud/vectorsearch/v1/encryption_spec_pb.rb +24 -0
- data/lib/google/cloud/vectorsearch/v1/vectorsearch_service_pb.rb +69 -0
- data/lib/google/cloud/vectorsearch/v1/vectorsearch_service_services_pb.rb +71 -0
- data/lib/google-cloud-vector_search-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/vectorsearch/v1/common.rb +38 -0
- data/proto_docs/google/cloud/vectorsearch/v1/data_object.rb +104 -0
- data/proto_docs/google/cloud/vectorsearch/v1/data_object_search_service.rb +455 -0
- data/proto_docs/google/cloud/vectorsearch/v1/data_object_service.rb +156 -0
- data/proto_docs/google/cloud/vectorsearch/v1/embedding_config.rb +82 -0
- data/proto_docs/google/cloud/vectorsearch/v1/encryption_spec.rb +40 -0
- data/proto_docs/google/cloud/vectorsearch/v1/vectorsearch_service.rb +723 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +122 -9
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/vector_search/v1/version"
|
|
24
|
+
require "google/cloud/vector_search/v1/bindings_override"
|
|
25
|
+
|
|
26
|
+
require "google/cloud/vector_search/v1/vector_search_service/credentials"
|
|
27
|
+
require "google/cloud/vector_search/v1/vector_search_service/paths"
|
|
28
|
+
require "google/cloud/vector_search/v1/vector_search_service/rest/operations"
|
|
29
|
+
require "google/cloud/vector_search/v1/vector_search_service/rest/client"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module VectorSearch
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# VectorSearchService provides methods for managing Collection resources, and
|
|
37
|
+
# Collection Index resources. The primary resources offered by this service are
|
|
38
|
+
# Collections which are a container for a set of related JSON data objects, and
|
|
39
|
+
# Collection Indexes which enable efficient ANN search across data objects
|
|
40
|
+
# within a Collection.
|
|
41
|
+
#
|
|
42
|
+
# To load this service and instantiate a REST client:
|
|
43
|
+
#
|
|
44
|
+
# require "google/cloud/vector_search/v1/vector_search_service/rest"
|
|
45
|
+
# client = ::Google::Cloud::VectorSearch::V1::VectorSearchService::Rest::Client.new
|
|
46
|
+
#
|
|
47
|
+
module VectorSearchService
|
|
48
|
+
# Client for the REST transport
|
|
49
|
+
module Rest
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
58
|
+
require "google/cloud/vector_search/v1/vector_search_service/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/vector_search/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/vector_search/v1/vector_search_service/credentials"
|
|
26
|
+
require "google/cloud/vector_search/v1/vector_search_service/paths"
|
|
27
|
+
require "google/cloud/vector_search/v1/vector_search_service/operations"
|
|
28
|
+
require "google/cloud/vector_search/v1/vector_search_service/client"
|
|
29
|
+
require "google/cloud/vector_search/v1/vector_search_service/rest"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module VectorSearch
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# VectorSearchService provides methods for managing Collection resources, and
|
|
37
|
+
# Collection Index resources. The primary resources offered by this service are
|
|
38
|
+
# Collections which are a container for a set of related JSON data objects, and
|
|
39
|
+
# Collection Indexes which enable efficient ANN search across data objects
|
|
40
|
+
# within a Collection.
|
|
41
|
+
#
|
|
42
|
+
# @example Load this service and instantiate a gRPC client
|
|
43
|
+
#
|
|
44
|
+
# require "google/cloud/vector_search/v1/vector_search_service"
|
|
45
|
+
# client = ::Google::Cloud::VectorSearch::V1::VectorSearchService::Client.new
|
|
46
|
+
#
|
|
47
|
+
# @example Load this service and instantiate a REST client
|
|
48
|
+
#
|
|
49
|
+
# require "google/cloud/vector_search/v1/vector_search_service/rest"
|
|
50
|
+
# client = ::Google::Cloud::VectorSearch::V1::VectorSearchService::Rest::Client.new
|
|
51
|
+
#
|
|
52
|
+
module VectorSearchService
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
helper_path = ::File.join __dir__, "vector_search_service", "helpers.rb"
|
|
60
|
+
require "google/cloud/vector_search/v1/vector_search_service/helpers" if ::File.file? helper_path
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# Copyright 2026 Google LLC
|
|
2
4
|
#
|
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
# you may not use this file except in compliance with the License.
|
|
5
7
|
# You may obtain a copy of the License at
|
|
6
8
|
#
|
|
7
|
-
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
10
|
#
|
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -12,11 +14,14 @@
|
|
|
12
14
|
# See the License for the specific language governing permissions and
|
|
13
15
|
# limitations under the License.
|
|
14
16
|
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
15
20
|
module Google
|
|
16
21
|
module Cloud
|
|
17
22
|
module VectorSearch
|
|
18
23
|
module V1
|
|
19
|
-
VERSION = "0.
|
|
24
|
+
VERSION = "0.3.0"
|
|
20
25
|
end
|
|
21
26
|
end
|
|
22
27
|
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/vector_search/v1/data_object_search_service"
|
|
20
|
+
require "google/cloud/vector_search/v1/data_object_service"
|
|
21
|
+
require "google/cloud/vector_search/v1/vector_search_service"
|
|
22
|
+
require "google/cloud/vector_search/v1/version"
|
|
23
|
+
|
|
24
|
+
module Google
|
|
25
|
+
module Cloud
|
|
26
|
+
module VectorSearch
|
|
27
|
+
##
|
|
28
|
+
# API client module.
|
|
29
|
+
#
|
|
30
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
|
31
|
+
#
|
|
32
|
+
# require "google/cloud/vector_search/v1"
|
|
33
|
+
# client = ::Google::Cloud::VectorSearch::V1::DataObjectSearchService::Client.new
|
|
34
|
+
#
|
|
35
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
|
36
|
+
#
|
|
37
|
+
# require "google/cloud/vector_search/v1"
|
|
38
|
+
# client = ::Google::Cloud::VectorSearch::V1::DataObjectSearchService::Rest::Client.new
|
|
39
|
+
#
|
|
40
|
+
module V1
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
|
47
|
+
require "google/cloud/vector_search/v1/_helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/vectorsearch/v1/common.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n)google/cloud/vectorsearch/v1/common.proto\x12\x1cgoogle.cloud.vectorsearch.v1*W\n\x0e\x44istanceMetric\x12\x1f\n\x1b\x44ISTANCE_METRIC_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44OT_PRODUCT\x10\x01\x12\x13\n\x0f\x43OSINE_DISTANCE\x10\x02\x42\xd7\x01\n com.google.cloud.vectorsearch.v1B\x0b\x43ommonProtoP\x01ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb\xaa\x02\x1cGoogle.Cloud.VectorSearch.V1\xca\x02\x1cGoogle\\Cloud\\VectorSearch\\V1\xea\x02\x1fGoogle::Cloud::VectorSearch::V1b\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
12
|
+
|
|
13
|
+
module Google
|
|
14
|
+
module Cloud
|
|
15
|
+
module VectorSearch
|
|
16
|
+
module V1
|
|
17
|
+
DistanceMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DistanceMetric").enummodule
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/vectorsearch/v1/data_object.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/protobuf/struct_pb'
|
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\n.google/cloud/vectorsearch/v1/data_object.proto\x12\x1cgoogle.cloud.vectorsearch.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x04\n\nDataObject\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1b\n\x0e\x64\x61ta_object_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12*\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12K\n\x07vectors\x18\x07 \x03(\x0b\x32\x35.google.cloud.vectorsearch.v1.DataObject.VectorsEntryB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1aT\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.google.cloud.vectorsearch.v1.Vector:\x02\x38\x01:\xa0\x01\xea\x41\x9c\x01\n&vectorsearch.googleapis.com/DataObject\x12Yprojects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}*\x0b\x64\x61taObjects2\ndataObject\"\x91\x01\n\x06Vector\x12:\n\x05\x64\x65nse\x18\x02 \x01(\x0b\x32).google.cloud.vectorsearch.v1.DenseVectorH\x00\x12<\n\x06sparse\x18\x03 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.SparseVectorH\x00\x42\r\n\x0bvector_type\"\"\n\x0b\x44\x65nseVector\x12\x13\n\x06values\x18\x01 \x03(\x02\x42\x03\xe0\x41\x02\"9\n\x0cSparseVector\x12\x13\n\x06values\x18\x01 \x03(\x02\x42\x03\xe0\x41\x02\x12\x14\n\x07indices\x18\x02 \x03(\x05\x42\x03\xe0\x41\x02\x42\xdb\x01\n com.google.cloud.vectorsearch.v1B\x0f\x44\x61taObjectProtoP\x01ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb\xaa\x02\x1cGoogle.Cloud.VectorSearch.V1\xca\x02\x1cGoogle\\Cloud\\VectorSearch\\V1\xea\x02\x1fGoogle::Cloud::VectorSearch::V1b\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
17
|
+
|
|
18
|
+
module Google
|
|
19
|
+
module Cloud
|
|
20
|
+
module VectorSearch
|
|
21
|
+
module V1
|
|
22
|
+
DataObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DataObject").msgclass
|
|
23
|
+
Vector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.Vector").msgclass
|
|
24
|
+
DenseVector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DenseVector").msgclass
|
|
25
|
+
SparseVector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SparseVector").msgclass
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/vectorsearch/v1/data_object_search_service.proto
|
|
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/api/resource_pb'
|
|
11
|
+
require 'google/cloud/vectorsearch/v1/common_pb'
|
|
12
|
+
require 'google/cloud/vectorsearch/v1/data_object_pb'
|
|
13
|
+
require 'google/cloud/vectorsearch/v1/embedding_config_pb'
|
|
14
|
+
require 'google/protobuf/struct_pb'
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
descriptor_data = "\n=google/cloud/vectorsearch/v1/data_object_search_service.proto\x12\x1cgoogle.cloud.vectorsearch.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/vectorsearch/v1/common.proto\x1a.google/cloud/vectorsearch/v1/data_object.proto\x1a\x33google/cloud/vectorsearch/v1/embedding_config.proto\x1a\x1cgoogle/protobuf/struct.proto\"b\n\x0cOutputFields\x12\x18\n\x0b\x64\x61ta_fields\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rvector_fields\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fmetadata_fields\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\xbf\x03\n\nSearchHint\x12I\n\x08knn_hint\x18\x03 \x01(\x0b\x32\x30.google.cloud.vectorsearch.v1.SearchHint.KnnHintB\x03\xe0\x41\x01H\x00\x12M\n\nindex_hint\x18\x04 \x01(\x0b\x32\x32.google.cloud.vectorsearch.v1.SearchHint.IndexHintB\x03\xe0\x41\x01H\x00\x1a\xfd\x01\n\tIndexHint\x12\x66\n\x12\x64\x65nse_scann_params\x18\x02 \x01(\x0b\x32\x43.google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParamsB\x03\xe0\x41\x01H\x00\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!vectorsearch.googleapis.com/Index\x1a\x45\n\x10\x44\x65nseScannParams\x12\x1f\n\rtarget_recall\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x10\n\x0e_target_recallB\x08\n\x06params\x1a\t\n\x07KnnHintB\x0c\n\nindex_type\"\xe6\x01\n\x06Search\x12\x43\n\rvector_search\x18\x01 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.VectorSearchH\x00\x12G\n\x0fsemantic_search\x18\x02 \x01(\x0b\x32,.google.cloud.vectorsearch.v1.SemanticSearchH\x00\x12?\n\x0btext_search\x18\x03 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.TextSearchH\x00\x42\r\n\x0bsearch_type\"\xe3\x03\n\x0cVectorSearch\x12;\n\x06vector\x18\x01 \x01(\x0b\x32).google.cloud.vectorsearch.v1.DenseVectorH\x00\x12\x43\n\rsparse_vector\x18\x02 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.SparseVectorH\x00\x12\x19\n\x0csearch_field\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12,\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x17\n\x05top_k\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x46\n\routput_fields\x18\x07 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.OutputFieldsB\x03\xe0\x41\x01\x12\x42\n\x0bsearch_hint\x18\t \x01(\x0b\x32(.google.cloud.vectorsearch.v1.SearchHintB\x03\xe0\x41\x01\x12J\n\x0f\x64istance_metric\x18\x0b \x01(\x0e\x32,.google.cloud.vectorsearch.v1.DistanceMetricB\x03\xe0\x41\x01\x42\r\n\x0bvector_typeB\x08\n\x06_top_k\"\xeb\x02\n\x0eSemanticSearch\x12\x18\n\x0bsearch_text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0csearch_field\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12G\n\ttask_type\x18\x05 \x01(\x0e\x32/.google.cloud.vectorsearch.v1.EmbeddingTaskTypeB\x03\xe0\x41\x01\x12\x46\n\routput_fields\x18\x03 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.OutputFieldsB\x03\xe0\x41\x01\x12,\n\x06\x66ilter\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x17\n\x05top_k\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x42\n\x0bsearch_hint\x18\x07 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.SearchHintB\x03\xe0\x41\x01\x42\x08\n\x06_top_k\"\xde\x01\n\nTextSearch\x12\x18\n\x0bsearch_text\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x61ta_field_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x46\n\routput_fields\x18\x03 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.OutputFieldsB\x03\xe0\x41\x01\x12\x17\n\x05top_k\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12,\n\x06\x66ilter\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x42\x08\n\x06_top_k\"\xee\x02\n\x18SearchDataObjectsRequest\x12\x43\n\rvector_search\x18\x02 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.VectorSearchH\x00\x12G\n\x0fsemantic_search\x18\x04 \x01(\x0b\x32,.google.cloud.vectorsearch.v1.SemanticSearchH\x00\x12\x44\n\x0btext_search\x18\x07 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.TextSearchB\x03\xe0\x41\x01H\x00\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\x42\r\n\x0bsearch_type\"{\n\x0cSearchResult\x12\x42\n\x0b\x64\x61ta_object\x18\x01 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.DataObjectB\x03\xe0\x41\x03\x12\x1a\n\x08\x64istance\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x42\x0b\n\t_distance\"{\n\x19SearchDataObjectsResponse\x12@\n\x07results\x18\x01 \x03(\x0b\x32*.google.cloud.vectorsearch.v1.SearchResultB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xd4\x01\n\x1b\x41ggregateDataObjectsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12,\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12G\n\taggregate\x18\x03 \x01(\x0e\x32/.google.cloud.vectorsearch.v1.AggregationMethodB\x03\xe0\x41\x02\"W\n\x1c\x41ggregateDataObjectsResponse\x12\x37\n\x11\x61ggregate_results\x18\x01 \x03(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\"\x80\x02\n\x17QueryDataObjectsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12,\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x46\n\routput_fields\x18\x07 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.OutputFieldsB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x06 \x01(\tB\x03\xe0\x41\x01\"}\n\x18QueryDataObjectsResponse\x12\x43\n\x0c\x64\x61ta_objects\x18\x04 \x03(\x0b\x32(.google.cloud.vectorsearch.v1.DataObjectB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xb6\x03\n\x1d\x42\x61tchSearchDataObjectsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12;\n\x08searches\x18\x02 \x03(\x0b\x32$.google.cloud.vectorsearch.v1.SearchB\x03\xe0\x41\x02\x12g\n\x07\x63ombine\x18\x03 \x01(\x0b\x32Q.google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest.CombineResultsOptionsB\x03\xe0\x41\x01\x1a\xae\x01\n\x15\x43ombineResultsOptions\x12\x39\n\x06ranker\x18\x01 \x01(\x0b\x32$.google.cloud.vectorsearch.v1.RankerB\x03\xe0\x41\x02\x12\x46\n\routput_fields\x18\x02 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.OutputFieldsB\x03\xe0\x41\x01\x12\x12\n\x05top_k\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"\xab\x01\n\x06Ranker\x12\x41\n\x03rrf\x18\x01 \x01(\x0b\x32\x32.google.cloud.vectorsearch.v1.ReciprocalRankFusionH\x00\x12H\n\rvertex_ranker\x18\x02 \x01(\x0b\x32*.google.cloud.vectorsearch.v1.VertexRankerB\x03\xe0\x41\x01H\x01\x42\x08\n\x06rankerB\n\n\x08reranker\",\n\x14ReciprocalRankFusion\x12\x14\n\x07weights\x18\x01 \x03(\x01\x42\x03\xe0\x41\x02\"\xfe\x01\n\x0cVertexRanker\x12U\n\x10text_record_spec\x18\x06 \x01(\x0b\x32\x39.google.cloud.vectorsearch.v1.VertexRanker.TextRecordSpecH\x00\x12\x12\n\x05model\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05top_n\x18\x05 \x01(\x05\x42\x03\xe0\x41\x02\x1a`\n\x0eTextRecordSpec\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0etitle_template\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x63ontent_template\x18\x03 \x01(\tB\x03\xe0\x41\x01\x42\r\n\x0brecord_spec\"o\n\x1e\x42\x61tchSearchDataObjectsResponse\x12M\n\x07results\x18\x01 \x03(\x0b\x32\x37.google.cloud.vectorsearch.v1.SearchDataObjectsResponseB\x03\xe0\x41\x03*B\n\x11\x41ggregationMethod\x12\"\n\x1e\x41GGREGATION_METHOD_UNSPECIFIED\x10\x00\x12\t\n\x05\x43OUNT\x10\x01\x32\xe6\x07\n\x17\x44\x61taObjectSearchService\x12\xd5\x01\n\x11SearchDataObjects\x12\x36.google.cloud.vectorsearch.v1.SearchDataObjectsRequest\x1a\x37.google.cloud.vectorsearch.v1.SearchDataObjectsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:search:\x01*\x12\xd1\x01\n\x10QueryDataObjects\x12\x35.google.cloud.vectorsearch.v1.QueryDataObjectsRequest\x1a\x36.google.cloud.vectorsearch.v1.QueryDataObjectsResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:query:\x01*\x12\xe1\x01\n\x14\x41ggregateDataObjects\x12\x39.google.cloud.vectorsearch.v1.AggregateDataObjectsRequest\x1a:.google.cloud.vectorsearch.v1.AggregateDataObjectsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:aggregate:\x01*\x12\xe9\x01\n\x16\x42\x61tchSearchDataObjects\x12;.google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest\x1a<.google.cloud.vectorsearch.v1.BatchSearchDataObjectsResponse\"T\x82\xd3\xe4\x93\x02N\"I/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchSearch:\x01*\x1aO\xca\x41\x1bvectorsearch.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe8\x01\n com.google.cloud.vectorsearch.v1B\x1c\x44\x61taObjectSearchServiceProtoP\x01ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb\xaa\x02\x1cGoogle.Cloud.VectorSearch.V1\xca\x02\x1cGoogle\\Cloud\\VectorSearch\\V1\xea\x02\x1fGoogle::Cloud::VectorSearch::V1b\x06proto3"
|
|
18
|
+
|
|
19
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module VectorSearch
|
|
25
|
+
module V1
|
|
26
|
+
OutputFields = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.OutputFields").msgclass
|
|
27
|
+
SearchHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchHint").msgclass
|
|
28
|
+
SearchHint::IndexHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchHint.IndexHint").msgclass
|
|
29
|
+
SearchHint::IndexHint::DenseScannParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchHint.IndexHint.DenseScannParams").msgclass
|
|
30
|
+
SearchHint::KnnHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchHint.KnnHint").msgclass
|
|
31
|
+
Search = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.Search").msgclass
|
|
32
|
+
VectorSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.VectorSearch").msgclass
|
|
33
|
+
SemanticSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SemanticSearch").msgclass
|
|
34
|
+
TextSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.TextSearch").msgclass
|
|
35
|
+
SearchDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchDataObjectsRequest").msgclass
|
|
36
|
+
SearchResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchResult").msgclass
|
|
37
|
+
SearchDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchDataObjectsResponse").msgclass
|
|
38
|
+
AggregateDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.AggregateDataObjectsRequest").msgclass
|
|
39
|
+
AggregateDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.AggregateDataObjectsResponse").msgclass
|
|
40
|
+
QueryDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.QueryDataObjectsRequest").msgclass
|
|
41
|
+
QueryDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.QueryDataObjectsResponse").msgclass
|
|
42
|
+
BatchSearchDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest").msgclass
|
|
43
|
+
BatchSearchDataObjectsRequest::CombineResultsOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest.CombineResultsOptions").msgclass
|
|
44
|
+
Ranker = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.Ranker").msgclass
|
|
45
|
+
ReciprocalRankFusion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ReciprocalRankFusion").msgclass
|
|
46
|
+
VertexRanker = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.VertexRanker").msgclass
|
|
47
|
+
VertexRanker::TextRecordSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.VertexRanker.TextRecordSpec").msgclass
|
|
48
|
+
BatchSearchDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchSearchDataObjectsResponse").msgclass
|
|
49
|
+
AggregationMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.AggregationMethod").enummodule
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/vectorsearch/v1/data_object_search_service.proto for package 'Google.Cloud.VectorSearch.V1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 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
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/vectorsearch/v1/data_object_search_service_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module VectorSearch
|
|
25
|
+
module V1
|
|
26
|
+
module DataObjectSearchService
|
|
27
|
+
# Service for searching data objects.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.vectorsearch.v1.DataObjectSearchService'
|
|
35
|
+
|
|
36
|
+
# Searches data objects.
|
|
37
|
+
rpc :SearchDataObjects, ::Google::Cloud::VectorSearch::V1::SearchDataObjectsRequest, ::Google::Cloud::VectorSearch::V1::SearchDataObjectsResponse
|
|
38
|
+
# Queries data objects.
|
|
39
|
+
rpc :QueryDataObjects, ::Google::Cloud::VectorSearch::V1::QueryDataObjectsRequest, ::Google::Cloud::VectorSearch::V1::QueryDataObjectsResponse
|
|
40
|
+
# Aggregates data objects.
|
|
41
|
+
rpc :AggregateDataObjects, ::Google::Cloud::VectorSearch::V1::AggregateDataObjectsRequest, ::Google::Cloud::VectorSearch::V1::AggregateDataObjectsResponse
|
|
42
|
+
# Batch searches data objects.
|
|
43
|
+
rpc :BatchSearchDataObjects, ::Google::Cloud::VectorSearch::V1::BatchSearchDataObjectsRequest, ::Google::Cloud::VectorSearch::V1::BatchSearchDataObjectsResponse
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
Stub = Service.rpc_stub_class
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/vectorsearch/v1/data_object_service.proto
|
|
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/api/resource_pb'
|
|
11
|
+
require 'google/cloud/vectorsearch/v1/data_object_pb'
|
|
12
|
+
require 'google/protobuf/empty_pb'
|
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
descriptor_data = "\n6google/cloud/vectorsearch/v1/data_object_service.proto\x12\x1cgoogle.cloud.vectorsearch.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/vectorsearch/v1/data_object.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xba\x01\n\x17\x43reateDataObjectRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12\x1b\n\x0e\x64\x61ta_object_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\x0b\x64\x61ta_object\x18\x03 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.DataObjectB\x03\xe0\x41\x02\"\xad\x01\n\x1d\x42\x61tchCreateDataObjectsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12L\n\x08requests\x18\x02 \x03(\x0b\x32\x35.google.cloud.vectorsearch.v1.CreateDataObjectRequestB\x03\xe0\x41\x02\"e\n\x1e\x42\x61tchCreateDataObjectsResponse\x12\x43\n\x0c\x64\x61ta_objects\x18\x01 \x03(\x0b\x32(.google.cloud.vectorsearch.v1.DataObjectB\x03\xe0\x41\x03\"T\n\x14GetDataObjectRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/DataObject\"\x93\x01\n\x17UpdateDataObjectRequest\x12\x42\n\x0b\x64\x61ta_object\x18\x01 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.DataObjectB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xad\x01\n\x1d\x42\x61tchUpdateDataObjectsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12L\n\x08requests\x18\x02 \x03(\x0b\x32\x35.google.cloud.vectorsearch.v1.UpdateDataObjectRequestB\x03\xe0\x41\x02\" \n\x1e\x42\x61tchUpdateDataObjectsResponse\"j\n\x17\x44\x65leteDataObjectRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/DataObject\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xad\x01\n\x1d\x42\x61tchDeleteDataObjectsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12L\n\x08requests\x18\x03 \x03(\x0b\x32\x35.google.cloud.vectorsearch.v1.DeleteDataObjectRequestB\x03\xe0\x41\x02\x32\xf4\x0c\n\x11\x44\x61taObjectService\x12\xeb\x01\n\x10\x43reateDataObject\x12\x35.google.cloud.vectorsearch.v1.CreateDataObjectRequest\x1a(.google.cloud.vectorsearch.v1.DataObject\"v\xda\x41!parent,data_object,data_object_id\x82\xd3\xe4\x93\x02L\"=/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:\x0b\x64\x61ta_object\x12\xe9\x01\n\x16\x42\x61tchCreateDataObjects\x12;.google.cloud.vectorsearch.v1.BatchCreateDataObjectsRequest\x1a<.google.cloud.vectorsearch.v1.BatchCreateDataObjectsResponse\"T\x82\xd3\xe4\x93\x02N\"I/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchCreate:\x01*\x12\xbb\x01\n\rGetDataObject\x12\x32.google.cloud.vectorsearch.v1.GetDataObjectRequest\x1a(.google.cloud.vectorsearch.v1.DataObject\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/collections/*/dataObjects/*}\x12\xed\x01\n\x10UpdateDataObject\x12\x35.google.cloud.vectorsearch.v1.UpdateDataObjectRequest\x1a(.google.cloud.vectorsearch.v1.DataObject\"x\xda\x41\x17\x64\x61ta_object,update_mask\x82\xd3\xe4\x93\x02X2I/v1/{data_object.name=projects/*/locations/*/collections/*/dataObjects/*}:\x0b\x64\x61ta_object\x12\xfb\x01\n\x16\x42\x61tchUpdateDataObjects\x12;.google.cloud.vectorsearch.v1.BatchUpdateDataObjectsRequest\x1a<.google.cloud.vectorsearch.v1.BatchUpdateDataObjectsResponse\"f\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02N\"I/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchUpdate:\x01*\x12\xaf\x01\n\x10\x44\x65leteDataObject\x12\x35.google.cloud.vectorsearch.v1.DeleteDataObjectRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/collections/*/dataObjects/*}\x12\xd5\x01\n\x16\x42\x61tchDeleteDataObjects\x12;.google.cloud.vectorsearch.v1.BatchDeleteDataObjectsRequest\x1a\x16.google.protobuf.Empty\"f\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02N\"I/v1/{parent=projects/*/locations/*/collections/*}/dataObjects:batchDelete:\x01*\x1aO\xca\x41\x1bvectorsearch.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe2\x01\n com.google.cloud.vectorsearch.v1B\x16\x44\x61taObjectServiceProtoP\x01ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb\xaa\x02\x1cGoogle.Cloud.VectorSearch.V1\xca\x02\x1cGoogle\\Cloud\\VectorSearch\\V1\xea\x02\x1fGoogle::Cloud::VectorSearch::V1b\x06proto3"
|
|
17
|
+
|
|
18
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module VectorSearch
|
|
24
|
+
module V1
|
|
25
|
+
CreateDataObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.CreateDataObjectRequest").msgclass
|
|
26
|
+
BatchCreateDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchCreateDataObjectsRequest").msgclass
|
|
27
|
+
BatchCreateDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchCreateDataObjectsResponse").msgclass
|
|
28
|
+
GetDataObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.GetDataObjectRequest").msgclass
|
|
29
|
+
UpdateDataObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.UpdateDataObjectRequest").msgclass
|
|
30
|
+
BatchUpdateDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchUpdateDataObjectsRequest").msgclass
|
|
31
|
+
BatchUpdateDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchUpdateDataObjectsResponse").msgclass
|
|
32
|
+
DeleteDataObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DeleteDataObjectRequest").msgclass
|
|
33
|
+
BatchDeleteDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchDeleteDataObjectsRequest").msgclass
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/vectorsearch/v1/data_object_service.proto for package 'Google.Cloud.VectorSearch.V1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 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
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/vectorsearch/v1/data_object_service_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module VectorSearch
|
|
25
|
+
module V1
|
|
26
|
+
module DataObjectService
|
|
27
|
+
# Service for creating and managing data objects.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.vectorsearch.v1.DataObjectService'
|
|
35
|
+
|
|
36
|
+
# Creates a dataObject.
|
|
37
|
+
rpc :CreateDataObject, ::Google::Cloud::VectorSearch::V1::CreateDataObjectRequest, ::Google::Cloud::VectorSearch::V1::DataObject
|
|
38
|
+
# Creates a batch of dataObjects.
|
|
39
|
+
rpc :BatchCreateDataObjects, ::Google::Cloud::VectorSearch::V1::BatchCreateDataObjectsRequest, ::Google::Cloud::VectorSearch::V1::BatchCreateDataObjectsResponse
|
|
40
|
+
# Gets a data object.
|
|
41
|
+
rpc :GetDataObject, ::Google::Cloud::VectorSearch::V1::GetDataObjectRequest, ::Google::Cloud::VectorSearch::V1::DataObject
|
|
42
|
+
# Updates a dataObject.
|
|
43
|
+
rpc :UpdateDataObject, ::Google::Cloud::VectorSearch::V1::UpdateDataObjectRequest, ::Google::Cloud::VectorSearch::V1::DataObject
|
|
44
|
+
# Updates dataObjects in a batch.
|
|
45
|
+
rpc :BatchUpdateDataObjects, ::Google::Cloud::VectorSearch::V1::BatchUpdateDataObjectsRequest, ::Google::Cloud::VectorSearch::V1::BatchUpdateDataObjectsResponse
|
|
46
|
+
# Deletes a dataObject.
|
|
47
|
+
rpc :DeleteDataObject, ::Google::Cloud::VectorSearch::V1::DeleteDataObjectRequest, ::Google::Protobuf::Empty
|
|
48
|
+
# Deletes dataObjects in a batch.
|
|
49
|
+
rpc :BatchDeleteDataObjects, ::Google::Cloud::VectorSearch::V1::BatchDeleteDataObjectsRequest, ::Google::Protobuf::Empty
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
Stub = Service.rpc_stub_class
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/vectorsearch/v1/embedding_config.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n3google/cloud/vectorsearch/v1/embedding_config.proto\x12\x1cgoogle.cloud.vectorsearch.v1\x1a\x1fgoogle/api/field_behavior.proto\"\x93\x01\n\x15VertexEmbeddingConfig\x12\x15\n\x08model_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rtext_template\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12G\n\ttask_type\x18\x03 \x01(\x0e\x32/.google.cloud.vectorsearch.v1.EmbeddingTaskTypeB\x03\xe0\x41\x01*\xeb\x01\n\x11\x45mbeddingTaskType\x12#\n\x1f\x45MBEDDING_TASK_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fRETRIEVAL_QUERY\x10\x01\x12\x16\n\x12RETRIEVAL_DOCUMENT\x10\x02\x12\x17\n\x13SEMANTIC_SIMILARITY\x10\x03\x12\x12\n\x0e\x43LASSIFICATION\x10\x04\x12\x0e\n\nCLUSTERING\x10\x05\x12\x16\n\x12QUESTION_ANSWERING\x10\x06\x12\x15\n\x11\x46\x41\x43T_VERIFICATION\x10\x07\x12\x18\n\x14\x43ODE_RETRIEVAL_QUERY\x10\x08\x42\xe0\x01\n com.google.cloud.vectorsearch.v1B\x14\x45mbeddingConfigProtoP\x01ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb\xaa\x02\x1cGoogle.Cloud.VectorSearch.V1\xca\x02\x1cGoogle\\Cloud\\VectorSearch\\V1\xea\x02\x1fGoogle::Cloud::VectorSearch::V1b\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Google
|
|
16
|
+
module Cloud
|
|
17
|
+
module VectorSearch
|
|
18
|
+
module V1
|
|
19
|
+
VertexEmbeddingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.VertexEmbeddingConfig").msgclass
|
|
20
|
+
EmbeddingTaskType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.EmbeddingTaskType").enummodule
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/vectorsearch/v1/encryption_spec.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n2google/cloud/vectorsearch/v1/encryption_spec.proto\x12\x1cgoogle.cloud.vectorsearch.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"T\n\x0e\x45ncryptionSpec\x12\x42\n\x0f\x63rypto_key_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!cloudkms.googleapis.com/CryptoKeyB\xda\x02\n com.google.cloud.vectorsearch.v1B\x13\x45ncryptionSpecProtoP\x01ZDcloud.google.com/go/vectorsearch/apiv1/vectorsearchpb;vectorsearchpb\xaa\x02\x1cGoogle.Cloud.VectorSearch.V1\xca\x02\x1cGoogle\\Cloud\\VectorSearch\\V1\xea\x02\x1fGoogle::Cloud::VectorSearch::V1\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Cloud
|
|
18
|
+
module VectorSearch
|
|
19
|
+
module V1
|
|
20
|
+
EncryptionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.EncryptionSpec").msgclass
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|