google-cloud-vector_search-v1 0.a → 0.1.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 +154 -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 +50 -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 +397 -0
- data/proto_docs/google/cloud/vectorsearch/v1/data_object_service.rb +156 -0
- data/proto_docs/google/cloud/vectorsearch/v1/embedding_config.rb +76 -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 +127 -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.1.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,50 @@
|
|
|
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\"\x85\x02\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\x44\n\tIndexHint\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!vectorsearch.googleapis.com/Index\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\x02\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\x02\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\"U\n\x06Ranker\x12\x41\n\x03rrf\x18\x01 \x01(\x0b\x32\x32.google.cloud.vectorsearch.v1.ReciprocalRankFusionH\x00\x42\x08\n\x06ranker\",\n\x14ReciprocalRankFusion\x12\x14\n\x07weights\x18\x01 \x03(\x01\x42\x03\xe0\x41\x02\"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::KnnHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchHint.KnnHint").msgclass
|
|
30
|
+
Search = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.Search").msgclass
|
|
31
|
+
VectorSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.VectorSearch").msgclass
|
|
32
|
+
SemanticSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SemanticSearch").msgclass
|
|
33
|
+
TextSearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.TextSearch").msgclass
|
|
34
|
+
SearchDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchDataObjectsRequest").msgclass
|
|
35
|
+
SearchResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchResult").msgclass
|
|
36
|
+
SearchDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SearchDataObjectsResponse").msgclass
|
|
37
|
+
AggregateDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.AggregateDataObjectsRequest").msgclass
|
|
38
|
+
AggregateDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.AggregateDataObjectsResponse").msgclass
|
|
39
|
+
QueryDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.QueryDataObjectsRequest").msgclass
|
|
40
|
+
QueryDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.QueryDataObjectsResponse").msgclass
|
|
41
|
+
BatchSearchDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest").msgclass
|
|
42
|
+
BatchSearchDataObjectsRequest::CombineResultsOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest.CombineResultsOptions").msgclass
|
|
43
|
+
Ranker = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.Ranker").msgclass
|
|
44
|
+
ReciprocalRankFusion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ReciprocalRankFusion").msgclass
|
|
45
|
+
BatchSearchDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.BatchSearchDataObjectsResponse").msgclass
|
|
46
|
+
AggregationMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.AggregationMethod").enummodule
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
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\x02\x12G\n\ttask_type\x18\x03 \x01(\x0e\x32/.google.cloud.vectorsearch.v1.EmbeddingTaskTypeB\x03\xe0\x41\x02*\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
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/vectorsearch/v1/vectorsearch_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/field_info_pb'
|
|
11
|
+
require 'google/api/resource_pb'
|
|
12
|
+
require 'google/cloud/vectorsearch/v1/common_pb'
|
|
13
|
+
require 'google/cloud/vectorsearch/v1/embedding_config_pb'
|
|
14
|
+
require 'google/cloud/vectorsearch/v1/encryption_spec_pb'
|
|
15
|
+
require 'google/longrunning/operations_pb'
|
|
16
|
+
require 'google/protobuf/empty_pb'
|
|
17
|
+
require 'google/protobuf/field_mask_pb'
|
|
18
|
+
require 'google/protobuf/struct_pb'
|
|
19
|
+
require 'google/protobuf/timestamp_pb'
|
|
20
|
+
require 'google/rpc/status_pb'
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
descriptor_data = "\n7google/cloud/vectorsearch/v1/vectorsearch_service.proto\x12\x1cgoogle.cloud.vectorsearch.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/vectorsearch/v1/common.proto\x1a\x33google/cloud/vectorsearch/v1/embedding_config.proto\x1a\x32google/cloud/vectorsearch/v1/encryption_spec.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xfe\x05\n\nCollection\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.vectorsearch.v1.Collection.LabelsEntryB\x03\xe0\x41\x01\x12V\n\rvector_schema\x18\x07 \x03(\x0b\x32:.google.cloud.vectorsearch.v1.Collection.VectorSchemaEntryB\x03\xe0\x41\x01\x12\x31\n\x0b\x64\x61ta_schema\x18\n \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12M\n\x0f\x65ncryption_spec\x18\x0b \x01(\x0b\x32,.google.cloud.vectorsearch.v1.EncryptionSpecB\x06\xe0\x41\x05\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a^\n\x11VectorSchemaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.vectorsearch.v1.VectorField:\x02\x38\x01:\x87\x01\xea\x41\x83\x01\n&vectorsearch.googleapis.com/Collection\x12@projects/{project}/locations/{location}/collections/{collection}*\x0b\x63ollections2\ncollection\"\xb5\x01\n\x0bVectorField\x12\x46\n\x0c\x64\x65nse_vector\x18\x03 \x01(\x0b\x32..google.cloud.vectorsearch.v1.DenseVectorFieldH\x00\x12H\n\rsparse_vector\x18\x04 \x01(\x0b\x32/.google.cloud.vectorsearch.v1.SparseVectorFieldH\x00\x42\x14\n\x12vector_type_config\"\x81\x01\n\x10\x44\x65nseVectorField\x12\x12\n\ndimensions\x18\x01 \x01(\x05\x12Y\n\x17vertex_embedding_config\x18\x03 \x01(\x0b\x32\x33.google.cloud.vectorsearch.v1.VertexEmbeddingConfigB\x03\xe0\x41\x01\"\x13\n\x11SparseVectorField\"\xb5\x01\n\x16ListCollectionsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&vectorsearch.googleapis.com/Collection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8b\x01\n\x17ListCollectionsResponse\x12=\n\x0b\x63ollections\x18\x01 \x03(\x0b\x32(.google.cloud.vectorsearch.v1.Collection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\"T\n\x14GetCollectionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\"\xd9\x01\n\x17\x43reateCollectionRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&vectorsearch.googleapis.com/Collection\x12\x1a\n\rcollection_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\ncollection\x18\x03 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.CollectionB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xb3\x01\n\x17UpdateCollectionRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x41\n\ncollection\x18\x02 \x01(\x0b\x32(.google.cloud.vectorsearch.v1.CollectionB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x8c\x01\n\x17\x44\x65leteCollectionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xa0\x06\n\x05Index\x12^\n\x18\x64\x65\x64icated_infrastructure\x18\x0b \x01(\x0b\x32\x35.google.cloud.vectorsearch.v1.DedicatedInfrastructureB\x03\xe0\x41\x01H\x00\x12I\n\x0b\x64\x65nse_scann\x18\x0c \x01(\x0b\x32-.google.cloud.vectorsearch.v1.DenseScannIndexB\x03\xe0\x41\x01H\x01\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\n \x03(\x0b\x32/.google.cloud.vectorsearch.v1.Index.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12J\n\x0f\x64istance_metric\x18\x04 \x01(\x0e\x32,.google.cloud.vectorsearch.v1.DistanceMetricB\x03\xe0\x41\x01\x12\x18\n\x0bindex_field\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rfilter_fields\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0cstore_fields\x18\x07 \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x89\x01\xea\x41\x85\x01\n!vectorsearch.googleapis.com/Index\x12Pprojects/{project}/locations/{location}/collections/{collection}/indexes/{index}*\x07indexes2\x05indexB\x0c\n\ninfra_typeB\x0c\n\nindex_type\"\xc5\x01\n\x12\x43reateIndexRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12\x15\n\x08index_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x05index\x18\x03 \x01(\x0b\x32#.google.cloud.vectorsearch.v1.IndexB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa4\x01\n\x12UpdateIndexRequest\x12\x37\n\x05index\x18\x01 \x01(\x0b\x32#.google.cloud.vectorsearch.v1.IndexB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"n\n\x12\x44\x65leteIndexRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!vectorsearch.googleapis.com/Index\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xac\x01\n\x12ListIndexesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!vectorsearch.googleapis.com/Index\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"d\n\x13ListIndexesResponse\x12\x34\n\x07indexes\x18\x01 \x03(\x0b\x32#.google.cloud.vectorsearch.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"J\n\x0fGetIndexRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!vectorsearch.googleapis.com/Index\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\x9f\x02\n\x18ImportDataObjectsRequest\x12\\\n\ngcs_import\x18\x02 \x01(\x0b\x32\x46.google.cloud.vectorsearch.v1.ImportDataObjectsRequest.GcsImportConfigH\x00\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x1a]\n\x0fGcsImportConfig\x12\x19\n\x0c\x63ontents_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\terror_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\noutput_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xbf\x01\n\x19ImportDataObjectsMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1a\n\rsuccess_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rfailure_count\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\"?\n\x19ImportDataObjectsResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\"\x90\x06\n\x18\x45xportDataObjectsRequest\x12\x66\n\x0fgcs_destination\x18\x02 \x01(\x0b\x32K.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestinationH\x00\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&vectorsearch.googleapis.com/Collection\x12]\n\x0c\x66ield_filter\x18\x03 \x01(\x0b\x32\x42.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilterB\x03\xe0\x41\x01\x1a\xc5\x01\n\x14GcsExportDestination\x12\x17\n\nexport_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12g\n\x06\x66ormat\x18\x02 \x01(\x0e\x32R.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.FormatB\x03\xe0\x41\x02\"+\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05JSONL\x10\x02\x1a\x97\x02\n\x0b\x46ieldFilter\x12l\n\x0fincluded_fields\x18\x01 \x01(\x0b\x32L.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldListB\x03\xe0\x41\x01H\x00\x12l\n\x0f\x65xcluded_fields\x18\x02 \x01(\x0b\x32L.google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldListB\x03\xe0\x41\x01H\x00\x1a \n\tFieldList\x12\x13\n\x06\x66ields\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\n\n\x08selectorB\r\n\x0b\x64\x65stination\"\x87\x01\n\x19\x45xportDataObjectsMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x66inish_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x1b\n\x19\x45xportDataObjectsResponse\"\xff\x02\n\x17\x44\x65\x64icatedInfrastructure\x12R\n\x04mode\x18\x01 \x01(\x0e\x32:.google.cloud.vectorsearch.v1.DedicatedInfrastructure.ModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x64\n\x10\x61utoscaling_spec\x18\x02 \x01(\x0b\x32\x45.google.cloud.vectorsearch.v1.DedicatedInfrastructure.AutoscalingSpecB\x03\xe0\x41\x01\x1aQ\n\x0f\x41utoscalingSpec\x12\x1e\n\x11min_replica_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11max_replica_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"N\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11STORAGE_OPTIMIZED\x10\x01\x12\x19\n\x15PERFORMANCE_OPTIMIZED\x10\x02\x42\x07\n\x05_mode\"\xc2\x01\n\x0f\x44\x65nseScannIndex\x12]\n\x11\x66\x65\x61ture_norm_type\x18\x02 \x01(\x0e\x32=.google.cloud.vectorsearch.v1.DenseScannIndex.FeatureNormTypeB\x03\xe0\x41\x01\"P\n\x0f\x46\x65\x61tureNormType\x12!\n\x1d\x46\x45\x41TURE_NORM_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x10\n\x0cUNIT_L2_NORM\x10\x02\x32\x8d\x15\n\x13VectorSearchService\x12\xc0\x01\n\x0fListCollections\x12\x34.google.cloud.vectorsearch.v1.ListCollectionsRequest\x1a\x35.google.cloud.vectorsearch.v1.ListCollectionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/collections\x12\xad\x01\n\rGetCollection\x12\x32.google.cloud.vectorsearch.v1.GetCollectionRequest\x1a(.google.cloud.vectorsearch.v1.Collection\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/collections/*}\x12\xf2\x01\n\x10\x43reateCollection\x12\x35.google.cloud.vectorsearch.v1.CreateCollectionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1f\n\nCollection\x12\x11OperationMetadata\xda\x41\x1fparent,collection,collection_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/collections:\ncollection\x12\xf4\x01\n\x10UpdateCollection\x12\x35.google.cloud.vectorsearch.v1.UpdateCollectionRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1f\n\nCollection\x12\x11OperationMetadata\xda\x41\x16\x63ollection,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{collection.name=projects/*/locations/*/collections/*}:\ncollection\x12\xd5\x01\n\x10\x44\x65leteCollection\x12\x35.google.cloud.vectorsearch.v1.DeleteCollectionRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/collections/*}\x12\xbe\x01\n\x0bListIndexes\x12\x30.google.cloud.vectorsearch.v1.ListIndexesRequest\x1a\x31.google.cloud.vectorsearch.v1.ListIndexesResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*/collections/*}/indexes\x12\xa8\x01\n\x08GetIndex\x12-.google.cloud.vectorsearch.v1.GetIndexRequest\x1a#.google.cloud.vectorsearch.v1.Index\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/collections/*/indexes/*}\x12\xdd\x01\n\x0b\x43reateIndex\x12\x30.google.cloud.vectorsearch.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x1a\n\x05Index\x12\x11OperationMetadata\xda\x41\x15parent,index,index_id\x82\xd3\xe4\x93\x02\x42\"9/v1/{parent=projects/*/locations/*/collections/*}/indexes:\x05index\x12\xdf\x01\n\x0bUpdateIndex\x12\x30.google.cloud.vectorsearch.v1.UpdateIndexRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41\x1a\n\x05Index\x12\x11OperationMetadata\xda\x41\x11index,update_mask\x82\xd3\xe4\x93\x02H2?/v1/{index.name=projects/*/locations/*/collections/*/indexes/*}:\x05index\x12\xd5\x01\n\x0b\x44\x65leteIndex\x12\x30.google.cloud.vectorsearch.v1.DeleteIndexRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/collections/*/indexes/*}\x12\xf2\x01\n\x11ImportDataObjects\x12\x36.google.cloud.vectorsearch.v1.ImportDataObjectsRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\x36\n\x19ImportDataObjectsResponse\x12\x19ImportDataObjectsMetadata\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/collections/*}:importDataObjects:\x01*\x12\xf2\x01\n\x11\x45xportDataObjects\x12\x36.google.cloud.vectorsearch.v1.ExportDataObjectsRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\x36\n\x19\x45xportDataObjectsResponse\x12\x19\x45xportDataObjectsMetadata\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/collections/*}:exportDataObjects:\x01*\x1aO\xca\x41\x1bvectorsearch.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe4\x01\n com.google.cloud.vectorsearch.v1B\x18VectorSearchServiceProtoP\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"
|
|
24
|
+
|
|
25
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
26
|
+
pool.add_serialized_file(descriptor_data)
|
|
27
|
+
|
|
28
|
+
module Google
|
|
29
|
+
module Cloud
|
|
30
|
+
module VectorSearch
|
|
31
|
+
module V1
|
|
32
|
+
Collection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.Collection").msgclass
|
|
33
|
+
VectorField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.VectorField").msgclass
|
|
34
|
+
DenseVectorField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DenseVectorField").msgclass
|
|
35
|
+
SparseVectorField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.SparseVectorField").msgclass
|
|
36
|
+
ListCollectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ListCollectionsRequest").msgclass
|
|
37
|
+
ListCollectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ListCollectionsResponse").msgclass
|
|
38
|
+
GetCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.GetCollectionRequest").msgclass
|
|
39
|
+
CreateCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.CreateCollectionRequest").msgclass
|
|
40
|
+
UpdateCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.UpdateCollectionRequest").msgclass
|
|
41
|
+
DeleteCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DeleteCollectionRequest").msgclass
|
|
42
|
+
Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.Index").msgclass
|
|
43
|
+
CreateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.CreateIndexRequest").msgclass
|
|
44
|
+
UpdateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.UpdateIndexRequest").msgclass
|
|
45
|
+
DeleteIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DeleteIndexRequest").msgclass
|
|
46
|
+
ListIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ListIndexesRequest").msgclass
|
|
47
|
+
ListIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ListIndexesResponse").msgclass
|
|
48
|
+
GetIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.GetIndexRequest").msgclass
|
|
49
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.OperationMetadata").msgclass
|
|
50
|
+
ImportDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ImportDataObjectsRequest").msgclass
|
|
51
|
+
ImportDataObjectsRequest::GcsImportConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ImportDataObjectsRequest.GcsImportConfig").msgclass
|
|
52
|
+
ImportDataObjectsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ImportDataObjectsMetadata").msgclass
|
|
53
|
+
ImportDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ImportDataObjectsResponse").msgclass
|
|
54
|
+
ExportDataObjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ExportDataObjectsRequest").msgclass
|
|
55
|
+
ExportDataObjectsRequest::GcsExportDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination").msgclass
|
|
56
|
+
ExportDataObjectsRequest::GcsExportDestination::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination.Format").enummodule
|
|
57
|
+
ExportDataObjectsRequest::FieldFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter").msgclass
|
|
58
|
+
ExportDataObjectsRequest::FieldFilter::FieldList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ExportDataObjectsRequest.FieldFilter.FieldList").msgclass
|
|
59
|
+
ExportDataObjectsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ExportDataObjectsMetadata").msgclass
|
|
60
|
+
ExportDataObjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.ExportDataObjectsResponse").msgclass
|
|
61
|
+
DedicatedInfrastructure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DedicatedInfrastructure").msgclass
|
|
62
|
+
DedicatedInfrastructure::AutoscalingSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DedicatedInfrastructure.AutoscalingSpec").msgclass
|
|
63
|
+
DedicatedInfrastructure::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DedicatedInfrastructure.Mode").enummodule
|
|
64
|
+
DenseScannIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DenseScannIndex").msgclass
|
|
65
|
+
DenseScannIndex::FeatureNormType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vectorsearch.v1.DenseScannIndex.FeatureNormType").enummodule
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|