diff --git a/.github/workflows/testing-dependency.yaml b/.github/workflows/testing-dependency.yaml index 2074a01a..68676919 100644 --- a/.github/workflows/testing-dependency.yaml +++ b/.github/workflows/testing-dependency.yaml @@ -56,12 +56,11 @@ jobs: # - 4.1.0 - 4.3.3 protobuf_version: - - 3.20.3 + - 4.25.3 + protoc-gen-openapiv2: + - 0.0.1 googleapis_common_protos_version: - - 1.53.0 - 1.62.0 - grpc_gateway_protoc_gen_openapiv2_version: - - 0.1.0 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/test-dependency-grpc @@ -92,12 +91,11 @@ jobs: - 3.1.3 - 4.3.3 protobuf_version: - - 3.20.3 + - 4.25.3 + protoc-gen-openapiv2: + - 0.0.1 googleapis_common_protos_version: - - 1.53.0 - 1.62.0 - grpc_gateway_protoc_gen_openapiv2_version: - - 0.1.0 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/test-dependency-grpc diff --git a/pinecone/core/grpc/protos/vector_service_pb2.py b/pinecone/core/grpc/protos/vector_service_pb2.py index 6982eab5..01997dfa 100644 --- a/pinecone/core/grpc/protos/vector_service_pb2.py +++ b/pinecone/core/grpc/protos/vector_service_pb2.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: vector_service.proto +# Protobuf Python Version: 4.25.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,1630 +18,190 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='vector_service.proto', - package='', - syntax='proto3', - serialized_options=b'\n\021io.pinecone.protoP\001Z+github.com/pinecone-io/go-pinecone/pinecone\222A\311\002\022K\n\014Pinecone API\";\n\017Pinecone.io Ops\022\023https://pinecone.io\032\023support@pinecone.io\032\014{index_host}*\001\0022\020application/json:\020application/jsonZx\nv\n\nApiKeyAuth\022h\010\002\022YAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/\032\007Api-Key \002b\020\n\016\n\nApiKeyAuth\022\000r9\n\031More Pinecone.io API docs\022\034https://www.pinecone.io/docs', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x14vector_service.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"~\n\x0cSparseValues\x12\x35\n\x07indices\x18\x01 \x03(\rB$\x92\x41\x1eJ\x16[1, 312, 822, 14, 980]x\xe8\x07\x80\x01\x01\xe0\x41\x02\x12\x37\n\x06values\x18\x02 \x03(\x02\x42\'\x92\x41!J\x19[0.1, 0.2, 0.3, 0.4, 0.5]x\xe8\x07\x80\x01\x01\xe0\x41\x02\"\xfd\x01\n\x06Vector\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12G\n\x06values\x18\x02 \x03(\x02\x42\x37\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe0\x41\x02\x12$\n\rsparse_values\x18\x04 \x01(\x0b\x32\r.SparseValues\x12V\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"\x93\x02\n\x0cScoredVector\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12\x18\n\x05score\x18\x02 \x01(\x02\x42\t\x92\x41\x06J\x04\x30.08\x12=\n\x06values\x18\x03 \x03(\x02\x42-\x92\x41*J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]\x12$\n\rsparse_values\x18\x05 \x01(\x0b\x32\r.SparseValues\x12V\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"\x89\x01\n\x0cRequestUnion\x12 \n\x06upsert\x18\x01 \x01(\x0b\x32\x0e.UpsertRequestH\x00\x12 \n\x06\x64\x65lete\x18\x02 \x01(\x0b\x32\x0e.DeleteRequestH\x00\x12 \n\x06update\x18\x03 \x01(\x0b\x32\x0e.UpdateRequestH\x00\x42\x13\n\x11RequestUnionInner\"d\n\rUpsertRequest\x12&\n\x07vectors\x18\x01 \x03(\x0b\x32\x07.VectorB\x0c\x92\x41\x06x\xe8\x07\x80\x01\x01\xe0\x41\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"1\n\x0eUpsertResponse\x12\x1f\n\x0eupserted_count\x18\x01 \x01(\rB\x07\x92\x41\x04J\x02\x31\x30\"\xb6\x01\n\rDeleteRequest\x12(\n\x03ids\x18\x01 \x03(\tB\x1b\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\x12%\n\ndelete_all\x18\x02 \x01(\x08\x42\x11\x92\x41\x0e:\x05\x66\x61lseJ\x05\x66\x61lse\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\'\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x10\n\x0e\x44\x65leteResponse\"h\n\x0c\x46\x65tchRequest\x12+\n\x03ids\x18\x01 \x03(\tB\x1e\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\xe0\x41\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\xe1\x01\n\rFetchResponse\x12,\n\x07vectors\x18\x01 \x03(\x0b\x32\x1b.FetchResponse.VectorsEntry\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\x32\n\x05usage\x18\x03 \x01(\x0b\x32\x06.UsageB\x16\x92\x41\x13J\x11{\"read_units\": 5}H\x00\x88\x01\x01\x1a\x37\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x16\n\x05value\x18\x02 \x01(\x0b\x32\x07.Vector:\x02\x38\x01\x42\x08\n\x06_usage\"\xf8\x01\n\x0bListRequest\x12,\n\x06prefix\x18\x01 \x01(\tB\x17\x92\x41\x14J\x0c\"document1#\"x\xe8\x07\x80\x01\x01H\x00\x88\x01\x01\x12 \n\x05limit\x18\x02 \x01(\rB\x0c\x92\x41\t:\x03\x31\x30\x30J\x02\x31\x32H\x01\x88\x01\x01\x12\x42\n\x10pagination_token\x18\x03 \x01(\tB#\x92\x41 J\x1e\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"H\x02\x88\x01\x01\x12+\n\tnamespace\x18\x04 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"B\t\n\x07_prefixB\x08\n\x06_limitB\x13\n\x11_pagination_token\"?\n\nPagination\x12\x31\n\x04next\x18\x01 \x01(\tB#\x92\x41 J\x1e\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"\",\n\x08ListItem\x12 \n\x02id\x18\x01 \x01(\tB\x14\x92\x41\x11J\x0f\"document1#abb\"\"\x83\x02\n\x0cListResponse\x12S\n\x07vectors\x18\x01 \x03(\x0b\x32\t.ListItemB7\x92\x41\x34J2[{\"id\": \"document1#abb\"}, {\"id\": \"document1#abc\"}]\x12$\n\npagination\x18\x02 \x01(\x0b\x32\x0b.PaginationH\x00\x88\x01\x01\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\x32\n\x05usage\x18\x04 \x01(\x0b\x32\x06.UsageB\x16\x92\x41\x13J\x11{\"read_units\": 1}H\x01\x88\x01\x01\x42\r\n\x0b_paginationB\x08\n\x06_usage\"\xd0\x02\n\x0bQueryVector\x12G\n\x06values\x18\x01 \x03(\x02\x42\x37\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe0\x41\x02\x12$\n\rsparse_values\x18\x05 \x01(\x0b\x32\r.SparseValues\x12(\n\x05top_k\x18\x02 \x01(\rB\x19\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12{\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\"\xfa\x03\n\x0cQueryRequest\x12+\n\tnamespace\x18\x01 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12+\n\x05top_k\x18\x02 \x01(\rB\x1c\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\x12{\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\x12(\n\x0einclude_values\x18\x04 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12*\n\x10include_metadata\x18\x05 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12)\n\x07queries\x18\x06 \x03(\x0b\x32\x0c.QueryVectorB\n\x18\x01\x92\x41\x05x\n\x80\x01\x01\x12\x44\n\x06vector\x18\x07 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12$\n\rsparse_vector\x18\t \x01(\x0b\x32\r.SparseValues\x12&\n\x02id\x18\x08 \x01(\tB\x1a\x92\x41\x17J\x12\"example-vector-1\"x\x80\x04\"a\n\x12SingleQueryResults\x12\x1e\n\x07matches\x18\x01 \x03(\x0b\x32\r.ScoredVector\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\xaa\x01\n\rQueryResponse\x12(\n\x07results\x18\x01 \x03(\x0b\x32\x13.SingleQueryResultsB\x02\x18\x01\x12\x1e\n\x07matches\x18\x02 \x03(\x0b\x32\r.ScoredVector\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x32\n\x05usage\x18\x04 \x01(\x0b\x32\x06.UsageB\x16\x92\x41\x13J\x11{\"read_units\": 5}H\x00\x88\x01\x01\x42\x08\n\x06_usage\"7\n\x05Usage\x12\x1f\n\nread_units\x18\x01 \x01(\rB\x06\x92\x41\x03J\x01\x35H\x00\x88\x01\x01\x42\r\n\x0b_read_units\"\xb2\x02\n\rUpdateRequest\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12\x44\n\x06values\x18\x02 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12$\n\rsparse_values\x18\x05 \x01(\x0b\x32\r.SparseValues\x12Z\n\x0cset_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\x12+\n\tnamespace\x18\x04 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\x10\n\x0eUpdateResponse\"D\n\x19\x44\x65scribeIndexStatsRequest\x12\'\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"4\n\x10NamespaceSummary\x12 \n\x0cvector_count\x18\x01 \x01(\rB\n\x92\x41\x07J\x05\x35\x30\x30\x30\x30\"\x9a\x03\n\x1a\x44\x65scribeIndexStatsResponse\x12?\n\nnamespaces\x18\x01 \x03(\x0b\x32+.DescribeIndexStatsResponse.NamespacesEntry\x12\x1c\n\tdimension\x18\x02 \x01(\rB\t\x92\x41\x06J\x04\x31\x30\x32\x34\x12 \n\x0eindex_fullness\x18\x03 \x01(\x02\x42\x08\x92\x41\x05J\x03\x30.4\x12&\n\x12total_vector_count\x18\x04 \x01(\rB\n\x92\x41\x07J\x05\x38\x30\x30\x30\x30\x1a\x44\n\x0fNamespacesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.NamespaceSummary:\x02\x38\x01:\x8c\x01\x92\x41\x88\x01\x32\x85\x01{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.4}2\x95\x06\n\rVectorService\x12\x63\n\x06Upsert\x12\x0e.UpsertRequest\x1a\x0f.UpsertResponse\"8\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/upsert:\x01*\x92\x41\x1b\n\x11Vector Operations*\x06upsert\x12v\n\x06\x44\x65lete\x12\x0e.DeleteRequest\x1a\x0f.DeleteResponse\"K\x82\xd3\xe4\x93\x02\'\"\x0f/vectors/delete:\x01*Z\x11*\x0f/vectors/delete\x92\x41\x1b\n\x11Vector Operations*\x06\x64\x65lete\x12[\n\x05\x46\x65tch\x12\r.FetchRequest\x1a\x0e.FetchResponse\"3\x82\xd3\xe4\x93\x02\x10\x12\x0e/vectors/fetch\x92\x41\x1a\n\x11Vector Operations*\x05\x66\x65tch\x12V\n\x04List\x12\x0c.ListRequest\x1a\r.ListResponse\"1\x82\xd3\xe4\x93\x02\x0f\x12\r/vectors/list\x92\x41\x19\n\x11Vector Operations*\x04list\x12V\n\x05Query\x12\r.QueryRequest\x1a\x0e.QueryResponse\".\x82\xd3\xe4\x93\x02\x0b\"\x06/query:\x01*\x92\x41\x1a\n\x11Vector Operations*\x05query\x12\x63\n\x06Update\x12\x0e.UpdateRequest\x1a\x0f.UpdateResponse\"8\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/update:\x01*\x92\x41\x1b\n\x11Vector Operations*\x06update\x12\xb4\x01\n\x12\x44\x65scribeIndexStats\x12\x1a.DescribeIndexStatsRequest\x1a\x1b.DescribeIndexStatsResponse\"e\x82\xd3\xe4\x93\x02\x33\"\x15/describe_index_stats:\x01*Z\x17\x12\x15/describe_index_stats\x92\x41)\n\x11Vector Operations*\x14\x64\x65scribe_index_statsB\x8f\x03\n\x11io.pinecone.protoP\x01Z+github.com/pinecone-io/go-pinecone/pinecone\x92\x41\xc9\x02\x12K\n\x0cPinecone API\";\n\x0fPinecone.io Ops\x12\x13https://pinecone.io\x1a\x13support@pinecone.io\x1a\x0c{index_host}*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonZx\nv\n\nApiKeyAuth\x12h\x08\x02\x12YAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/\x1a\x07\x41pi-Key \x02\x62\x10\n\x0e\n\nApiKeyAuth\x12\x00r9\n\x19More Pinecone.io API docs\x12\x1chttps://www.pinecone.io/docsb\x06proto3' - , - dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,protoc__gen__openapiv2_dot_options_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_SPARSEVALUES = _descriptor.Descriptor( - name='SparseValues', - full_name='SparseValues', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='indices', full_name='SparseValues.indices', index=0, - number=1, type=13, cpp_type=3, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\036J\026[1, 312, 822, 14, 980]x\350\007\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='values', full_name='SparseValues.values', index=1, - number=2, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A!J\031[0.1, 0.2, 0.3, 0.4, 0.5]x\350\007\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=165, - serialized_end=291, -) - - -_VECTOR = _descriptor.Descriptor( - name='Vector', - full_name='Vector', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='Vector.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\032J\022\"example-vector-1\"x\200\004\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='values', full_name='Vector.values', index=1, - number=2, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sparse_values', full_name='Vector.sparse_values', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata', full_name='Vector.metadata', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A(J&{\"genre\": \"documentary\", \"year\": 2019}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=294, - serialized_end=547, -) - - -_SCOREDVECTOR = _descriptor.Descriptor( - name='ScoredVector', - full_name='ScoredVector', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='ScoredVector.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\032J\022\"example-vector-1\"x\200\004\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='score', full_name='ScoredVector.score', index=1, - number=2, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\006J\0040.08', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='values', full_name='ScoredVector.values', index=2, - number=3, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A*J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sparse_values', full_name='ScoredVector.sparse_values', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata', full_name='ScoredVector.metadata', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A(J&{\"genre\": \"documentary\", \"year\": 2019}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=550, - serialized_end=825, -) - - -_REQUESTUNION = _descriptor.Descriptor( - name='RequestUnion', - full_name='RequestUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='upsert', full_name='RequestUnion.upsert', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='delete', full_name='RequestUnion.delete', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='update', full_name='RequestUnion.update', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='RequestUnionInner', full_name='RequestUnion.RequestUnionInner', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=828, - serialized_end=965, -) - - -_UPSERTREQUEST = _descriptor.Descriptor( - name='UpsertRequest', - full_name='UpsertRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='vectors', full_name='UpsertRequest.vectors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\006x\350\007\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='UpsertRequest.namespace', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=967, - serialized_end=1067, -) - - -_UPSERTRESPONSE = _descriptor.Descriptor( - name='UpsertResponse', - full_name='UpsertResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='upserted_count', full_name='UpsertResponse.upserted_count', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\004J\00210', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1069, - serialized_end=1118, -) - - -_DELETEREQUEST = _descriptor.Descriptor( - name='DeleteRequest', - full_name='DeleteRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='ids', full_name='DeleteRequest.ids', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\030J\020[\"id-0\", \"id-1\"]x\350\007\200\001\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='delete_all', full_name='DeleteRequest.delete_all', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\016:\005falseJ\005false', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='DeleteRequest.namespace', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='filter', full_name='DeleteRequest.filter', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1121, - serialized_end=1303, -) - - -_DELETERESPONSE = _descriptor.Descriptor( - name='DeleteResponse', - full_name='DeleteResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1305, - serialized_end=1321, -) - - -_FETCHREQUEST = _descriptor.Descriptor( - name='FetchRequest', - full_name='FetchRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='ids', full_name='FetchRequest.ids', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\030J\020[\"id-0\", \"id-1\"]x\350\007\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='FetchRequest.namespace', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1323, - serialized_end=1427, -) - - -_FETCHRESPONSE_VECTORSENTRY = _descriptor.Descriptor( - name='VectorsEntry', - full_name='FetchResponse.VectorsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='FetchResponse.VectorsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='FetchResponse.VectorsEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1590, - serialized_end=1645, -) - -_FETCHRESPONSE = _descriptor.Descriptor( - name='FetchResponse', - full_name='FetchResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='vectors', full_name='FetchResponse.vectors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='FetchResponse.namespace', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='usage', full_name='FetchResponse.usage', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\023J\021{\"read_units\": 5}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_FETCHRESPONSE_VECTORSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='_usage', full_name='FetchResponse._usage', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=1430, - serialized_end=1655, -) - - -_LISTREQUEST = _descriptor.Descriptor( - name='ListRequest', - full_name='ListRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='prefix', full_name='ListRequest.prefix', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\024J\014\"document1#\"x\350\007\200\001\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='limit', full_name='ListRequest.limit', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\t:\003100J\00212', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pagination_token', full_name='ListRequest.pagination_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A J\036\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='ListRequest.namespace', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='_prefix', full_name='ListRequest._prefix', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - _descriptor.OneofDescriptor( - name='_limit', full_name='ListRequest._limit', - index=1, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - _descriptor.OneofDescriptor( - name='_pagination_token', full_name='ListRequest._pagination_token', - index=2, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=1658, - serialized_end=1906, -) - - -_PAGINATION = _descriptor.Descriptor( - name='Pagination', - full_name='Pagination', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='next', full_name='Pagination.next', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A J\036\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1908, - serialized_end=1971, -) - - -_LISTITEM = _descriptor.Descriptor( - name='ListItem', - full_name='ListItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='ListItem.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\021J\017\"document1#abb\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1973, - serialized_end=2017, -) - - -_LISTRESPONSE = _descriptor.Descriptor( - name='ListResponse', - full_name='ListResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='vectors', full_name='ListResponse.vectors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A4J2[{\"id\": \"document1#abb\"}, {\"id\": \"document1#abc\"}]', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pagination', full_name='ListResponse.pagination', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='ListResponse.namespace', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='usage', full_name='ListResponse.usage', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\023J\021{\"read_units\": 1}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='_pagination', full_name='ListResponse._pagination', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - _descriptor.OneofDescriptor( - name='_usage', full_name='ListResponse._usage', - index=1, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=2020, - serialized_end=2279, -) - - -_QUERYVECTOR = _descriptor.Descriptor( - name='QueryVector', - full_name='QueryVector', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='values', full_name='QueryVector.values', index=0, - number=1, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sparse_values', full_name='QueryVector.sparse_values', index=1, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='top_k', full_name='QueryVector.top_k', index=2, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\026J\00210Y\000\000\000\000\000\210\303@i\000\000\000\000\000\000\360?', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='QueryVector.namespace', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='filter', full_name='QueryVector.filter', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222AOJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2282, - serialized_end=2618, -) - - -_QUERYREQUEST = _descriptor.Descriptor( - name='QueryRequest', - full_name='QueryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='namespace', full_name='QueryRequest.namespace', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='top_k', full_name='QueryRequest.top_k', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\026J\00210Y\000\000\000\000\000\210\303@i\000\000\000\000\000\000\360?\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='filter', full_name='QueryRequest.filter', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222AOJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='include_values', full_name='QueryRequest.include_values', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\r:\005falseJ\004true', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='include_metadata', full_name='QueryRequest.include_metadata', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\r:\005falseJ\004true', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='queries', full_name='QueryRequest.queries', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001\222A\005x\n\200\001\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='vector', full_name='QueryRequest.vector', index=6, - number=7, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sparse_vector', full_name='QueryRequest.sparse_vector', index=7, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='id', full_name='QueryRequest.id', index=8, - number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\027J\022\"example-vector-1\"x\200\004', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2621, - serialized_end=3127, -) - - -_SINGLEQUERYRESULTS = _descriptor.Descriptor( - name='SingleQueryResults', - full_name='SingleQueryResults', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='matches', full_name='SingleQueryResults.matches', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='SingleQueryResults.namespace', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3129, - serialized_end=3226, -) - - -_QUERYRESPONSE = _descriptor.Descriptor( - name='QueryResponse', - full_name='QueryResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='QueryResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='matches', full_name='QueryResponse.matches', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='QueryResponse.namespace', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='usage', full_name='QueryResponse.usage', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\023J\021{\"read_units\": 5}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='_usage', full_name='QueryResponse._usage', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=3229, - serialized_end=3399, -) - - -_USAGE = _descriptor.Descriptor( - name='Usage', - full_name='Usage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='read_units', full_name='Usage.read_units', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\003J\0015', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='_read_units', full_name='Usage._read_units', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=3401, - serialized_end=3456, -) - - -_UPDATEREQUEST = _descriptor.Descriptor( - name='UpdateRequest', - full_name='UpdateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='UpdateRequest.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\032J\022\"example-vector-1\"x\200\004\200\001\001\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='values', full_name='UpdateRequest.values', index=1, - number=2, type=2, cpp_type=6, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='sparse_values', full_name='UpdateRequest.sparse_values', index=2, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='set_metadata', full_name='UpdateRequest.set_metadata', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A(J&{\"genre\": \"documentary\", \"year\": 2019}', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='namespace', full_name='UpdateRequest.namespace', index=4, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\025J\023\"example-namespace\"', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3459, - serialized_end=3765, -) - - -_UPDATERESPONSE = _descriptor.Descriptor( - name='UpdateResponse', - full_name='UpdateResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3767, - serialized_end=3783, -) - - -_DESCRIBEINDEXSTATSREQUEST = _descriptor.Descriptor( - name='DescribeIndexStatsRequest', - full_name='DescribeIndexStatsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='filter', full_name='DescribeIndexStatsRequest.filter', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3785, - serialized_end=3853, -) - - -_NAMESPACESUMMARY = _descriptor.Descriptor( - name='NamespaceSummary', - full_name='NamespaceSummary', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='vector_count', full_name='NamespaceSummary.vector_count', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\007J\00550000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3855, - serialized_end=3907, -) - - -_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY = _descriptor.Descriptor( - name='NamespacesEntry', - full_name='DescribeIndexStatsResponse.NamespacesEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='DescribeIndexStatsResponse.NamespacesEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', full_name='DescribeIndexStatsResponse.NamespacesEntry.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4109, - serialized_end=4177, -) - -_DESCRIBEINDEXSTATSRESPONSE = _descriptor.Descriptor( - name='DescribeIndexStatsResponse', - full_name='DescribeIndexStatsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='namespaces', full_name='DescribeIndexStatsResponse.namespaces', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='dimension', full_name='DescribeIndexStatsResponse.dimension', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\006J\0041024', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='index_fullness', full_name='DescribeIndexStatsResponse.index_fullness', index=2, - number=3, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\005J\0030.4', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='total_vector_count', full_name='DescribeIndexStatsResponse.total_vector_count', index=3, - number=4, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\222A\007J\00580000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY, ], - enum_types=[ - ], - serialized_options=b'\222A\210\0012\205\001{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.4}', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3910, - serialized_end=4320, -) - -_VECTOR.fields_by_name['sparse_values'].message_type = _SPARSEVALUES -_VECTOR.fields_by_name['metadata'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_SCOREDVECTOR.fields_by_name['sparse_values'].message_type = _SPARSEVALUES -_SCOREDVECTOR.fields_by_name['metadata'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_REQUESTUNION.fields_by_name['upsert'].message_type = _UPSERTREQUEST -_REQUESTUNION.fields_by_name['delete'].message_type = _DELETEREQUEST -_REQUESTUNION.fields_by_name['update'].message_type = _UPDATEREQUEST -_REQUESTUNION.oneofs_by_name['RequestUnionInner'].fields.append( - _REQUESTUNION.fields_by_name['upsert']) -_REQUESTUNION.fields_by_name['upsert'].containing_oneof = _REQUESTUNION.oneofs_by_name['RequestUnionInner'] -_REQUESTUNION.oneofs_by_name['RequestUnionInner'].fields.append( - _REQUESTUNION.fields_by_name['delete']) -_REQUESTUNION.fields_by_name['delete'].containing_oneof = _REQUESTUNION.oneofs_by_name['RequestUnionInner'] -_REQUESTUNION.oneofs_by_name['RequestUnionInner'].fields.append( - _REQUESTUNION.fields_by_name['update']) -_REQUESTUNION.fields_by_name['update'].containing_oneof = _REQUESTUNION.oneofs_by_name['RequestUnionInner'] -_UPSERTREQUEST.fields_by_name['vectors'].message_type = _VECTOR -_DELETEREQUEST.fields_by_name['filter'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_FETCHRESPONSE_VECTORSENTRY.fields_by_name['value'].message_type = _VECTOR -_FETCHRESPONSE_VECTORSENTRY.containing_type = _FETCHRESPONSE -_FETCHRESPONSE.fields_by_name['vectors'].message_type = _FETCHRESPONSE_VECTORSENTRY -_FETCHRESPONSE.fields_by_name['usage'].message_type = _USAGE -_FETCHRESPONSE.oneofs_by_name['_usage'].fields.append( - _FETCHRESPONSE.fields_by_name['usage']) -_FETCHRESPONSE.fields_by_name['usage'].containing_oneof = _FETCHRESPONSE.oneofs_by_name['_usage'] -_LISTREQUEST.oneofs_by_name['_prefix'].fields.append( - _LISTREQUEST.fields_by_name['prefix']) -_LISTREQUEST.fields_by_name['prefix'].containing_oneof = _LISTREQUEST.oneofs_by_name['_prefix'] -_LISTREQUEST.oneofs_by_name['_limit'].fields.append( - _LISTREQUEST.fields_by_name['limit']) -_LISTREQUEST.fields_by_name['limit'].containing_oneof = _LISTREQUEST.oneofs_by_name['_limit'] -_LISTREQUEST.oneofs_by_name['_pagination_token'].fields.append( - _LISTREQUEST.fields_by_name['pagination_token']) -_LISTREQUEST.fields_by_name['pagination_token'].containing_oneof = _LISTREQUEST.oneofs_by_name['_pagination_token'] -_LISTRESPONSE.fields_by_name['vectors'].message_type = _LISTITEM -_LISTRESPONSE.fields_by_name['pagination'].message_type = _PAGINATION -_LISTRESPONSE.fields_by_name['usage'].message_type = _USAGE -_LISTRESPONSE.oneofs_by_name['_pagination'].fields.append( - _LISTRESPONSE.fields_by_name['pagination']) -_LISTRESPONSE.fields_by_name['pagination'].containing_oneof = _LISTRESPONSE.oneofs_by_name['_pagination'] -_LISTRESPONSE.oneofs_by_name['_usage'].fields.append( - _LISTRESPONSE.fields_by_name['usage']) -_LISTRESPONSE.fields_by_name['usage'].containing_oneof = _LISTRESPONSE.oneofs_by_name['_usage'] -_QUERYVECTOR.fields_by_name['sparse_values'].message_type = _SPARSEVALUES -_QUERYVECTOR.fields_by_name['filter'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_QUERYREQUEST.fields_by_name['filter'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_QUERYREQUEST.fields_by_name['queries'].message_type = _QUERYVECTOR -_QUERYREQUEST.fields_by_name['sparse_vector'].message_type = _SPARSEVALUES -_SINGLEQUERYRESULTS.fields_by_name['matches'].message_type = _SCOREDVECTOR -_QUERYRESPONSE.fields_by_name['results'].message_type = _SINGLEQUERYRESULTS -_QUERYRESPONSE.fields_by_name['matches'].message_type = _SCOREDVECTOR -_QUERYRESPONSE.fields_by_name['usage'].message_type = _USAGE -_QUERYRESPONSE.oneofs_by_name['_usage'].fields.append( - _QUERYRESPONSE.fields_by_name['usage']) -_QUERYRESPONSE.fields_by_name['usage'].containing_oneof = _QUERYRESPONSE.oneofs_by_name['_usage'] -_USAGE.oneofs_by_name['_read_units'].fields.append( - _USAGE.fields_by_name['read_units']) -_USAGE.fields_by_name['read_units'].containing_oneof = _USAGE.oneofs_by_name['_read_units'] -_UPDATEREQUEST.fields_by_name['sparse_values'].message_type = _SPARSEVALUES -_UPDATEREQUEST.fields_by_name['set_metadata'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_DESCRIBEINDEXSTATSREQUEST.fields_by_name['filter'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT -_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY.fields_by_name['value'].message_type = _NAMESPACESUMMARY -_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY.containing_type = _DESCRIBEINDEXSTATSRESPONSE -_DESCRIBEINDEXSTATSRESPONSE.fields_by_name['namespaces'].message_type = _DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY -DESCRIPTOR.message_types_by_name['SparseValues'] = _SPARSEVALUES -DESCRIPTOR.message_types_by_name['Vector'] = _VECTOR -DESCRIPTOR.message_types_by_name['ScoredVector'] = _SCOREDVECTOR -DESCRIPTOR.message_types_by_name['RequestUnion'] = _REQUESTUNION -DESCRIPTOR.message_types_by_name['UpsertRequest'] = _UPSERTREQUEST -DESCRIPTOR.message_types_by_name['UpsertResponse'] = _UPSERTRESPONSE -DESCRIPTOR.message_types_by_name['DeleteRequest'] = _DELETEREQUEST -DESCRIPTOR.message_types_by_name['DeleteResponse'] = _DELETERESPONSE -DESCRIPTOR.message_types_by_name['FetchRequest'] = _FETCHREQUEST -DESCRIPTOR.message_types_by_name['FetchResponse'] = _FETCHRESPONSE -DESCRIPTOR.message_types_by_name['ListRequest'] = _LISTREQUEST -DESCRIPTOR.message_types_by_name['Pagination'] = _PAGINATION -DESCRIPTOR.message_types_by_name['ListItem'] = _LISTITEM -DESCRIPTOR.message_types_by_name['ListResponse'] = _LISTRESPONSE -DESCRIPTOR.message_types_by_name['QueryVector'] = _QUERYVECTOR -DESCRIPTOR.message_types_by_name['QueryRequest'] = _QUERYREQUEST -DESCRIPTOR.message_types_by_name['SingleQueryResults'] = _SINGLEQUERYRESULTS -DESCRIPTOR.message_types_by_name['QueryResponse'] = _QUERYRESPONSE -DESCRIPTOR.message_types_by_name['Usage'] = _USAGE -DESCRIPTOR.message_types_by_name['UpdateRequest'] = _UPDATEREQUEST -DESCRIPTOR.message_types_by_name['UpdateResponse'] = _UPDATERESPONSE -DESCRIPTOR.message_types_by_name['DescribeIndexStatsRequest'] = _DESCRIBEINDEXSTATSREQUEST -DESCRIPTOR.message_types_by_name['NamespaceSummary'] = _NAMESPACESUMMARY -DESCRIPTOR.message_types_by_name['DescribeIndexStatsResponse'] = _DESCRIBEINDEXSTATSRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SparseValues = _reflection.GeneratedProtocolMessageType('SparseValues', (_message.Message,), { - 'DESCRIPTOR' : _SPARSEVALUES, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:SparseValues) - }) -_sym_db.RegisterMessage(SparseValues) - -Vector = _reflection.GeneratedProtocolMessageType('Vector', (_message.Message,), { - 'DESCRIPTOR' : _VECTOR, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:Vector) - }) -_sym_db.RegisterMessage(Vector) - -ScoredVector = _reflection.GeneratedProtocolMessageType('ScoredVector', (_message.Message,), { - 'DESCRIPTOR' : _SCOREDVECTOR, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:ScoredVector) - }) -_sym_db.RegisterMessage(ScoredVector) - -RequestUnion = _reflection.GeneratedProtocolMessageType('RequestUnion', (_message.Message,), { - 'DESCRIPTOR' : _REQUESTUNION, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:RequestUnion) - }) -_sym_db.RegisterMessage(RequestUnion) - -UpsertRequest = _reflection.GeneratedProtocolMessageType('UpsertRequest', (_message.Message,), { - 'DESCRIPTOR' : _UPSERTREQUEST, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:UpsertRequest) - }) -_sym_db.RegisterMessage(UpsertRequest) - -UpsertResponse = _reflection.GeneratedProtocolMessageType('UpsertResponse', (_message.Message,), { - 'DESCRIPTOR' : _UPSERTRESPONSE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:UpsertResponse) - }) -_sym_db.RegisterMessage(UpsertResponse) - -DeleteRequest = _reflection.GeneratedProtocolMessageType('DeleteRequest', (_message.Message,), { - 'DESCRIPTOR' : _DELETEREQUEST, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:DeleteRequest) - }) -_sym_db.RegisterMessage(DeleteRequest) - -DeleteResponse = _reflection.GeneratedProtocolMessageType('DeleteResponse', (_message.Message,), { - 'DESCRIPTOR' : _DELETERESPONSE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:DeleteResponse) - }) -_sym_db.RegisterMessage(DeleteResponse) - -FetchRequest = _reflection.GeneratedProtocolMessageType('FetchRequest', (_message.Message,), { - 'DESCRIPTOR' : _FETCHREQUEST, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:FetchRequest) - }) -_sym_db.RegisterMessage(FetchRequest) - -FetchResponse = _reflection.GeneratedProtocolMessageType('FetchResponse', (_message.Message,), { - - 'VectorsEntry' : _reflection.GeneratedProtocolMessageType('VectorsEntry', (_message.Message,), { - 'DESCRIPTOR' : _FETCHRESPONSE_VECTORSENTRY, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:FetchResponse.VectorsEntry) - }) - , - 'DESCRIPTOR' : _FETCHRESPONSE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:FetchResponse) - }) -_sym_db.RegisterMessage(FetchResponse) -_sym_db.RegisterMessage(FetchResponse.VectorsEntry) - -ListRequest = _reflection.GeneratedProtocolMessageType('ListRequest', (_message.Message,), { - 'DESCRIPTOR' : _LISTREQUEST, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:ListRequest) - }) -_sym_db.RegisterMessage(ListRequest) - -Pagination = _reflection.GeneratedProtocolMessageType('Pagination', (_message.Message,), { - 'DESCRIPTOR' : _PAGINATION, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:Pagination) - }) -_sym_db.RegisterMessage(Pagination) - -ListItem = _reflection.GeneratedProtocolMessageType('ListItem', (_message.Message,), { - 'DESCRIPTOR' : _LISTITEM, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:ListItem) - }) -_sym_db.RegisterMessage(ListItem) - -ListResponse = _reflection.GeneratedProtocolMessageType('ListResponse', (_message.Message,), { - 'DESCRIPTOR' : _LISTRESPONSE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:ListResponse) - }) -_sym_db.RegisterMessage(ListResponse) - -QueryVector = _reflection.GeneratedProtocolMessageType('QueryVector', (_message.Message,), { - 'DESCRIPTOR' : _QUERYVECTOR, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:QueryVector) - }) -_sym_db.RegisterMessage(QueryVector) - -QueryRequest = _reflection.GeneratedProtocolMessageType('QueryRequest', (_message.Message,), { - 'DESCRIPTOR' : _QUERYREQUEST, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:QueryRequest) - }) -_sym_db.RegisterMessage(QueryRequest) - -SingleQueryResults = _reflection.GeneratedProtocolMessageType('SingleQueryResults', (_message.Message,), { - 'DESCRIPTOR' : _SINGLEQUERYRESULTS, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:SingleQueryResults) - }) -_sym_db.RegisterMessage(SingleQueryResults) - -QueryResponse = _reflection.GeneratedProtocolMessageType('QueryResponse', (_message.Message,), { - 'DESCRIPTOR' : _QUERYRESPONSE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:QueryResponse) - }) -_sym_db.RegisterMessage(QueryResponse) - -Usage = _reflection.GeneratedProtocolMessageType('Usage', (_message.Message,), { - 'DESCRIPTOR' : _USAGE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:Usage) - }) -_sym_db.RegisterMessage(Usage) - -UpdateRequest = _reflection.GeneratedProtocolMessageType('UpdateRequest', (_message.Message,), { - 'DESCRIPTOR' : _UPDATEREQUEST, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:UpdateRequest) - }) -_sym_db.RegisterMessage(UpdateRequest) - -UpdateResponse = _reflection.GeneratedProtocolMessageType('UpdateResponse', (_message.Message,), { - 'DESCRIPTOR' : _UPDATERESPONSE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:UpdateResponse) - }) -_sym_db.RegisterMessage(UpdateResponse) - -DescribeIndexStatsRequest = _reflection.GeneratedProtocolMessageType('DescribeIndexStatsRequest', (_message.Message,), { - 'DESCRIPTOR' : _DESCRIBEINDEXSTATSREQUEST, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:DescribeIndexStatsRequest) - }) -_sym_db.RegisterMessage(DescribeIndexStatsRequest) - -NamespaceSummary = _reflection.GeneratedProtocolMessageType('NamespaceSummary', (_message.Message,), { - 'DESCRIPTOR' : _NAMESPACESUMMARY, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:NamespaceSummary) - }) -_sym_db.RegisterMessage(NamespaceSummary) - -DescribeIndexStatsResponse = _reflection.GeneratedProtocolMessageType('DescribeIndexStatsResponse', (_message.Message,), { - - 'NamespacesEntry' : _reflection.GeneratedProtocolMessageType('NamespacesEntry', (_message.Message,), { - 'DESCRIPTOR' : _DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:DescribeIndexStatsResponse.NamespacesEntry) - }) - , - 'DESCRIPTOR' : _DESCRIBEINDEXSTATSRESPONSE, - '__module__' : 'vector_service_pb2' - # @@protoc_insertion_point(class_scope:DescribeIndexStatsResponse) - }) -_sym_db.RegisterMessage(DescribeIndexStatsResponse) -_sym_db.RegisterMessage(DescribeIndexStatsResponse.NamespacesEntry) - - -DESCRIPTOR._options = None -_SPARSEVALUES.fields_by_name['indices']._options = None -_SPARSEVALUES.fields_by_name['values']._options = None -_VECTOR.fields_by_name['id']._options = None -_VECTOR.fields_by_name['values']._options = None -_VECTOR.fields_by_name['metadata']._options = None -_SCOREDVECTOR.fields_by_name['id']._options = None -_SCOREDVECTOR.fields_by_name['score']._options = None -_SCOREDVECTOR.fields_by_name['values']._options = None -_SCOREDVECTOR.fields_by_name['metadata']._options = None -_UPSERTREQUEST.fields_by_name['vectors']._options = None -_UPSERTREQUEST.fields_by_name['namespace']._options = None -_UPSERTRESPONSE.fields_by_name['upserted_count']._options = None -_DELETEREQUEST.fields_by_name['ids']._options = None -_DELETEREQUEST.fields_by_name['delete_all']._options = None -_DELETEREQUEST.fields_by_name['namespace']._options = None -_FETCHREQUEST.fields_by_name['ids']._options = None -_FETCHREQUEST.fields_by_name['namespace']._options = None -_FETCHRESPONSE_VECTORSENTRY._options = None -_FETCHRESPONSE.fields_by_name['namespace']._options = None -_FETCHRESPONSE.fields_by_name['usage']._options = None -_LISTREQUEST.fields_by_name['prefix']._options = None -_LISTREQUEST.fields_by_name['limit']._options = None -_LISTREQUEST.fields_by_name['pagination_token']._options = None -_LISTREQUEST.fields_by_name['namespace']._options = None -_PAGINATION.fields_by_name['next']._options = None -_LISTITEM.fields_by_name['id']._options = None -_LISTRESPONSE.fields_by_name['vectors']._options = None -_LISTRESPONSE.fields_by_name['namespace']._options = None -_LISTRESPONSE.fields_by_name['usage']._options = None -_QUERYVECTOR.fields_by_name['values']._options = None -_QUERYVECTOR.fields_by_name['top_k']._options = None -_QUERYVECTOR.fields_by_name['namespace']._options = None -_QUERYVECTOR.fields_by_name['filter']._options = None -_QUERYREQUEST.fields_by_name['namespace']._options = None -_QUERYREQUEST.fields_by_name['top_k']._options = None -_QUERYREQUEST.fields_by_name['filter']._options = None -_QUERYREQUEST.fields_by_name['include_values']._options = None -_QUERYREQUEST.fields_by_name['include_metadata']._options = None -_QUERYREQUEST.fields_by_name['queries']._options = None -_QUERYREQUEST.fields_by_name['vector']._options = None -_QUERYREQUEST.fields_by_name['id']._options = None -_SINGLEQUERYRESULTS.fields_by_name['namespace']._options = None -_QUERYRESPONSE.fields_by_name['results']._options = None -_QUERYRESPONSE.fields_by_name['usage']._options = None -_USAGE.fields_by_name['read_units']._options = None -_UPDATEREQUEST.fields_by_name['id']._options = None -_UPDATEREQUEST.fields_by_name['values']._options = None -_UPDATEREQUEST.fields_by_name['set_metadata']._options = None -_UPDATEREQUEST.fields_by_name['namespace']._options = None -_NAMESPACESUMMARY.fields_by_name['vector_count']._options = None -_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY._options = None -_DESCRIBEINDEXSTATSRESPONSE.fields_by_name['dimension']._options = None -_DESCRIBEINDEXSTATSRESPONSE.fields_by_name['index_fullness']._options = None -_DESCRIBEINDEXSTATSRESPONSE.fields_by_name['total_vector_count']._options = None -_DESCRIBEINDEXSTATSRESPONSE._options = None - -_VECTORSERVICE = _descriptor.ServiceDescriptor( - name='VectorService', - full_name='VectorService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_start=4323, - serialized_end=5112, - methods=[ - _descriptor.MethodDescriptor( - name='Upsert', - full_name='VectorService.Upsert', - index=0, - containing_service=None, - input_type=_UPSERTREQUEST, - output_type=_UPSERTRESPONSE, - serialized_options=b'\202\323\344\223\002\024\"\017/vectors/upsert:\001*\222A\033\n\021Vector Operations*\006upsert', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Delete', - full_name='VectorService.Delete', - index=1, - containing_service=None, - input_type=_DELETEREQUEST, - output_type=_DELETERESPONSE, - serialized_options=b'\202\323\344\223\002\'\"\017/vectors/delete:\001*Z\021*\017/vectors/delete\222A\033\n\021Vector Operations*\006delete', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Fetch', - full_name='VectorService.Fetch', - index=2, - containing_service=None, - input_type=_FETCHREQUEST, - output_type=_FETCHRESPONSE, - serialized_options=b'\202\323\344\223\002\020\022\016/vectors/fetch\222A\032\n\021Vector Operations*\005fetch', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='List', - full_name='VectorService.List', - index=3, - containing_service=None, - input_type=_LISTREQUEST, - output_type=_LISTRESPONSE, - serialized_options=b'\202\323\344\223\002\017\022\r/vectors/list\222A\031\n\021Vector Operations*\004list', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Query', - full_name='VectorService.Query', - index=4, - containing_service=None, - input_type=_QUERYREQUEST, - output_type=_QUERYRESPONSE, - serialized_options=b'\202\323\344\223\002\013\"\006/query:\001*\222A\032\n\021Vector Operations*\005query', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Update', - full_name='VectorService.Update', - index=5, - containing_service=None, - input_type=_UPDATEREQUEST, - output_type=_UPDATERESPONSE, - serialized_options=b'\202\323\344\223\002\024\"\017/vectors/update:\001*\222A\033\n\021Vector Operations*\006update', - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='DescribeIndexStats', - full_name='VectorService.DescribeIndexStats', - index=6, - containing_service=None, - input_type=_DESCRIBEINDEXSTATSREQUEST, - output_type=_DESCRIBEINDEXSTATSRESPONSE, - serialized_options=b'\202\323\344\223\0023\"\025/describe_index_stats:\001*Z\027\022\025/describe_index_stats\222A)\n\021Vector Operations*\024describe_index_stats', - create_key=_descriptor._internal_create_key, - ), -]) -_sym_db.RegisterServiceDescriptor(_VECTORSERVICE) - -DESCRIPTOR.services_by_name['VectorService'] = _VECTORSERVICE - +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14vector_service.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x80\x01\n\x0cSparseValues\x12\x36\n\x07indices\x18\x01 \x03(\rB%\x92\x41\x1eJ\x16[1, 312, 822, 14, 980]x\xe8\x07\x80\x01\x01\xe2\x41\x01\x02\x12\x38\n\x06values\x18\x02 \x03(\x02\x42(\x92\x41!J\x19[0.1, 0.2, 0.3, 0.4, 0.5]x\xe8\x07\x80\x01\x01\xe2\x41\x01\x02\"\xff\x01\n\x06Vector\x12-\n\x02id\x18\x01 \x01(\tB!\x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe2\x41\x01\x02\x12H\n\x06values\x18\x02 \x03(\x02\x42\x38\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe2\x41\x01\x02\x12$\n\rsparse_values\x18\x04 \x01(\x0b\x32\r.SparseValues\x12V\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"\x94\x02\n\x0cScoredVector\x12-\n\x02id\x18\x01 \x01(\tB!\x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe2\x41\x01\x02\x12\x18\n\x05score\x18\x02 \x01(\x02\x42\t\x92\x41\x06J\x04\x30.08\x12=\n\x06values\x18\x03 \x03(\x02\x42-\x92\x41*J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]\x12$\n\rsparse_values\x18\x05 \x01(\x0b\x32\r.SparseValues\x12V\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"\x89\x01\n\x0cRequestUnion\x12 \n\x06upsert\x18\x01 \x01(\x0b\x32\x0e.UpsertRequestH\x00\x12 \n\x06\x64\x65lete\x18\x02 \x01(\x0b\x32\x0e.DeleteRequestH\x00\x12 \n\x06update\x18\x03 \x01(\x0b\x32\x0e.UpdateRequestH\x00\x42\x13\n\x11RequestUnionInner\"e\n\rUpsertRequest\x12\'\n\x07vectors\x18\x01 \x03(\x0b\x32\x07.VectorB\r\x92\x41\x06x\xe8\x07\x80\x01\x01\xe2\x41\x01\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"1\n\x0eUpsertResponse\x12\x1f\n\x0eupserted_count\x18\x01 \x01(\rB\x07\x92\x41\x04J\x02\x31\x30\"\xb6\x01\n\rDeleteRequest\x12(\n\x03ids\x18\x01 \x03(\tB\x1b\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\x12%\n\ndelete_all\x18\x02 \x01(\x08\x42\x11\x92\x41\x0e:\x05\x66\x61lseJ\x05\x66\x61lse\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\'\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x10\n\x0e\x44\x65leteResponse\"i\n\x0c\x46\x65tchRequest\x12,\n\x03ids\x18\x01 \x03(\tB\x1f\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\xe2\x41\x01\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\xe1\x01\n\rFetchResponse\x12,\n\x07vectors\x18\x01 \x03(\x0b\x32\x1b.FetchResponse.VectorsEntry\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\x32\n\x05usage\x18\x03 \x01(\x0b\x32\x06.UsageB\x16\x92\x41\x13J\x11{\"read_units\": 5}H\x00\x88\x01\x01\x1a\x37\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x16\n\x05value\x18\x02 \x01(\x0b\x32\x07.Vector:\x02\x38\x01\x42\x08\n\x06_usage\"\xf8\x01\n\x0bListRequest\x12,\n\x06prefix\x18\x01 \x01(\tB\x17\x92\x41\x14J\x0c\"document1#\"x\xe8\x07\x80\x01\x01H\x00\x88\x01\x01\x12 \n\x05limit\x18\x02 \x01(\rB\x0c\x92\x41\t:\x03\x31\x30\x30J\x02\x31\x32H\x01\x88\x01\x01\x12\x42\n\x10pagination_token\x18\x03 \x01(\tB#\x92\x41 J\x1e\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"H\x02\x88\x01\x01\x12+\n\tnamespace\x18\x04 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"B\t\n\x07_prefixB\x08\n\x06_limitB\x13\n\x11_pagination_token\"?\n\nPagination\x12\x31\n\x04next\x18\x01 \x01(\tB#\x92\x41 J\x1e\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"\",\n\x08ListItem\x12 \n\x02id\x18\x01 \x01(\tB\x14\x92\x41\x11J\x0f\"document1#abb\"\"\x83\x02\n\x0cListResponse\x12S\n\x07vectors\x18\x01 \x03(\x0b\x32\t.ListItemB7\x92\x41\x34J2[{\"id\": \"document1#abb\"}, {\"id\": \"document1#abc\"}]\x12$\n\npagination\x18\x02 \x01(\x0b\x32\x0b.PaginationH\x00\x88\x01\x01\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\x32\n\x05usage\x18\x04 \x01(\x0b\x32\x06.UsageB\x16\x92\x41\x13J\x11{\"read_units\": 1}H\x01\x88\x01\x01\x42\r\n\x0b_paginationB\x08\n\x06_usage\"\xd1\x02\n\x0bQueryVector\x12H\n\x06values\x18\x01 \x03(\x02\x42\x38\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe2\x41\x01\x02\x12$\n\rsparse_values\x18\x05 \x01(\x0b\x32\r.SparseValues\x12(\n\x05top_k\x18\x02 \x01(\rB\x19\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12{\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\"\xfb\x03\n\x0cQueryRequest\x12+\n\tnamespace\x18\x01 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12,\n\x05top_k\x18\x02 \x01(\rB\x1d\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\xe2\x41\x01\x02\x12{\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\x12(\n\x0einclude_values\x18\x04 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12*\n\x10include_metadata\x18\x05 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12)\n\x07queries\x18\x06 \x03(\x0b\x32\x0c.QueryVectorB\n\x18\x01\x92\x41\x05x\n\x80\x01\x01\x12\x44\n\x06vector\x18\x07 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12$\n\rsparse_vector\x18\t \x01(\x0b\x32\r.SparseValues\x12&\n\x02id\x18\x08 \x01(\tB\x1a\x92\x41\x17J\x12\"example-vector-1\"x\x80\x04\"a\n\x12SingleQueryResults\x12\x1e\n\x07matches\x18\x01 \x03(\x0b\x32\r.ScoredVector\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\xaa\x01\n\rQueryResponse\x12(\n\x07results\x18\x01 \x03(\x0b\x32\x13.SingleQueryResultsB\x02\x18\x01\x12\x1e\n\x07matches\x18\x02 \x03(\x0b\x32\r.ScoredVector\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x32\n\x05usage\x18\x04 \x01(\x0b\x32\x06.UsageB\x16\x92\x41\x13J\x11{\"read_units\": 5}H\x00\x88\x01\x01\x42\x08\n\x06_usage\"7\n\x05Usage\x12\x1f\n\nread_units\x18\x01 \x01(\rB\x06\x92\x41\x03J\x01\x35H\x00\x88\x01\x01\x42\r\n\x0b_read_units\"\xb3\x02\n\rUpdateRequest\x12-\n\x02id\x18\x01 \x01(\tB!\x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe2\x41\x01\x02\x12\x44\n\x06values\x18\x02 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12$\n\rsparse_values\x18\x05 \x01(\x0b\x32\r.SparseValues\x12Z\n\x0cset_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\x12+\n\tnamespace\x18\x04 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\x10\n\x0eUpdateResponse\"D\n\x19\x44\x65scribeIndexStatsRequest\x12\'\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"4\n\x10NamespaceSummary\x12 \n\x0cvector_count\x18\x01 \x01(\rB\n\x92\x41\x07J\x05\x35\x30\x30\x30\x30\"\x9a\x03\n\x1a\x44\x65scribeIndexStatsResponse\x12?\n\nnamespaces\x18\x01 \x03(\x0b\x32+.DescribeIndexStatsResponse.NamespacesEntry\x12\x1c\n\tdimension\x18\x02 \x01(\rB\t\x92\x41\x06J\x04\x31\x30\x32\x34\x12 \n\x0eindex_fullness\x18\x03 \x01(\x02\x42\x08\x92\x41\x05J\x03\x30.4\x12&\n\x12total_vector_count\x18\x04 \x01(\rB\n\x92\x41\x07J\x05\x38\x30\x30\x30\x30\x1a\x44\n\x0fNamespacesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.NamespaceSummary:\x02\x38\x01:\x8c\x01\x92\x41\x88\x01\x32\x85\x01{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.4}2\x95\x06\n\rVectorService\x12\x63\n\x06Upsert\x12\x0e.UpsertRequest\x1a\x0f.UpsertResponse\"8\x92\x41\x1b\n\x11Vector Operations*\x06upsert\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/upsert:\x01*\x12v\n\x06\x44\x65lete\x12\x0e.DeleteRequest\x1a\x0f.DeleteResponse\"K\x92\x41\x1b\n\x11Vector Operations*\x06\x64\x65lete\x82\xd3\xe4\x93\x02\'\"\x0f/vectors/delete:\x01*Z\x11*\x0f/vectors/delete\x12[\n\x05\x46\x65tch\x12\r.FetchRequest\x1a\x0e.FetchResponse\"3\x92\x41\x1a\n\x11Vector Operations*\x05\x66\x65tch\x82\xd3\xe4\x93\x02\x10\x12\x0e/vectors/fetch\x12V\n\x04List\x12\x0c.ListRequest\x1a\r.ListResponse\"1\x92\x41\x19\n\x11Vector Operations*\x04list\x82\xd3\xe4\x93\x02\x0f\x12\r/vectors/list\x12V\n\x05Query\x12\r.QueryRequest\x1a\x0e.QueryResponse\".\x92\x41\x1a\n\x11Vector Operations*\x05query\x82\xd3\xe4\x93\x02\x0b\"\x06/query:\x01*\x12\x63\n\x06Update\x12\x0e.UpdateRequest\x1a\x0f.UpdateResponse\"8\x92\x41\x1b\n\x11Vector Operations*\x06update\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/update:\x01*\x12\xb4\x01\n\x12\x44\x65scribeIndexStats\x12\x1a.DescribeIndexStatsRequest\x1a\x1b.DescribeIndexStatsResponse\"e\x92\x41)\n\x11Vector Operations*\x14\x64\x65scribe_index_stats\x82\xd3\xe4\x93\x02\x33\"\x15/describe_index_stats:\x01*Z\x17\x12\x15/describe_index_statsB\x8f\x03\n\x11io.pinecone.protoP\x01Z+github.com/pinecone-io/go-pinecone/pinecone\x92\x41\xc9\x02\x12K\n\x0cPinecone API\";\n\x0fPinecone.io Ops\x12\x13https://pinecone.io\x1a\x13support@pinecone.io\x1a\x0c{index_host}*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonZx\nv\n\nApiKeyAuth\x12h\x08\x02\x12YAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/\x1a\x07\x41pi-Key \x02\x62\x10\n\x0e\n\nApiKeyAuth\x12\x00r9\n\x19More Pinecone.io API docs\x12\x1chttps://www.pinecone.io/docsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vector_service_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\021io.pinecone.protoP\001Z+github.com/pinecone-io/go-pinecone/pinecone\222A\311\002\022K\n\014Pinecone API\";\n\017Pinecone.io Ops\022\023https://pinecone.io\032\023support@pinecone.io\032\014{index_host}*\001\0022\020application/json:\020application/jsonZx\nv\n\nApiKeyAuth\022h\010\002\022YAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/\032\007Api-Key \002b\020\n\016\n\nApiKeyAuth\022\000r9\n\031More Pinecone.io API docs\022\034https://www.pinecone.io/docs' + _globals['_SPARSEVALUES'].fields_by_name['indices']._options = None + _globals['_SPARSEVALUES'].fields_by_name['indices']._serialized_options = b'\222A\036J\026[1, 312, 822, 14, 980]x\350\007\200\001\001\342A\001\002' + _globals['_SPARSEVALUES'].fields_by_name['values']._options = None + _globals['_SPARSEVALUES'].fields_by_name['values']._serialized_options = b'\222A!J\031[0.1, 0.2, 0.3, 0.4, 0.5]x\350\007\200\001\001\342A\001\002' + _globals['_VECTOR'].fields_by_name['id']._options = None + _globals['_VECTOR'].fields_by_name['id']._serialized_options = b'\222A\032J\022\"example-vector-1\"x\200\004\200\001\001\342A\001\002' + _globals['_VECTOR'].fields_by_name['values']._options = None + _globals['_VECTOR'].fields_by_name['values']._serialized_options = b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001\342A\001\002' + _globals['_VECTOR'].fields_by_name['metadata']._options = None + _globals['_VECTOR'].fields_by_name['metadata']._serialized_options = b'\222A(J&{\"genre\": \"documentary\", \"year\": 2019}' + _globals['_SCOREDVECTOR'].fields_by_name['id']._options = None + _globals['_SCOREDVECTOR'].fields_by_name['id']._serialized_options = b'\222A\032J\022\"example-vector-1\"x\200\004\200\001\001\342A\001\002' + _globals['_SCOREDVECTOR'].fields_by_name['score']._options = None + _globals['_SCOREDVECTOR'].fields_by_name['score']._serialized_options = b'\222A\006J\0040.08' + _globals['_SCOREDVECTOR'].fields_by_name['values']._options = None + _globals['_SCOREDVECTOR'].fields_by_name['values']._serialized_options = b'\222A*J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]' + _globals['_SCOREDVECTOR'].fields_by_name['metadata']._options = None + _globals['_SCOREDVECTOR'].fields_by_name['metadata']._serialized_options = b'\222A(J&{\"genre\": \"documentary\", \"year\": 2019}' + _globals['_UPSERTREQUEST'].fields_by_name['vectors']._options = None + _globals['_UPSERTREQUEST'].fields_by_name['vectors']._serialized_options = b'\222A\006x\350\007\200\001\001\342A\001\002' + _globals['_UPSERTREQUEST'].fields_by_name['namespace']._options = None + _globals['_UPSERTREQUEST'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_UPSERTRESPONSE'].fields_by_name['upserted_count']._options = None + _globals['_UPSERTRESPONSE'].fields_by_name['upserted_count']._serialized_options = b'\222A\004J\00210' + _globals['_DELETEREQUEST'].fields_by_name['ids']._options = None + _globals['_DELETEREQUEST'].fields_by_name['ids']._serialized_options = b'\222A\030J\020[\"id-0\", \"id-1\"]x\350\007\200\001\001' + _globals['_DELETEREQUEST'].fields_by_name['delete_all']._options = None + _globals['_DELETEREQUEST'].fields_by_name['delete_all']._serialized_options = b'\222A\016:\005falseJ\005false' + _globals['_DELETEREQUEST'].fields_by_name['namespace']._options = None + _globals['_DELETEREQUEST'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_FETCHREQUEST'].fields_by_name['ids']._options = None + _globals['_FETCHREQUEST'].fields_by_name['ids']._serialized_options = b'\222A\030J\020[\"id-0\", \"id-1\"]x\350\007\200\001\001\342A\001\002' + _globals['_FETCHREQUEST'].fields_by_name['namespace']._options = None + _globals['_FETCHREQUEST'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_FETCHRESPONSE_VECTORSENTRY']._options = None + _globals['_FETCHRESPONSE_VECTORSENTRY']._serialized_options = b'8\001' + _globals['_FETCHRESPONSE'].fields_by_name['namespace']._options = None + _globals['_FETCHRESPONSE'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_FETCHRESPONSE'].fields_by_name['usage']._options = None + _globals['_FETCHRESPONSE'].fields_by_name['usage']._serialized_options = b'\222A\023J\021{\"read_units\": 5}' + _globals['_LISTREQUEST'].fields_by_name['prefix']._options = None + _globals['_LISTREQUEST'].fields_by_name['prefix']._serialized_options = b'\222A\024J\014\"document1#\"x\350\007\200\001\001' + _globals['_LISTREQUEST'].fields_by_name['limit']._options = None + _globals['_LISTREQUEST'].fields_by_name['limit']._serialized_options = b'\222A\t:\003100J\00212' + _globals['_LISTREQUEST'].fields_by_name['pagination_token']._options = None + _globals['_LISTREQUEST'].fields_by_name['pagination_token']._serialized_options = b'\222A J\036\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"' + _globals['_LISTREQUEST'].fields_by_name['namespace']._options = None + _globals['_LISTREQUEST'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_PAGINATION'].fields_by_name['next']._options = None + _globals['_PAGINATION'].fields_by_name['next']._serialized_options = b'\222A J\036\"Tm90aGluZyB0byBzZWUgaGVyZQo=\"' + _globals['_LISTITEM'].fields_by_name['id']._options = None + _globals['_LISTITEM'].fields_by_name['id']._serialized_options = b'\222A\021J\017\"document1#abb\"' + _globals['_LISTRESPONSE'].fields_by_name['vectors']._options = None + _globals['_LISTRESPONSE'].fields_by_name['vectors']._serialized_options = b'\222A4J2[{\"id\": \"document1#abb\"}, {\"id\": \"document1#abc\"}]' + _globals['_LISTRESPONSE'].fields_by_name['namespace']._options = None + _globals['_LISTRESPONSE'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_LISTRESPONSE'].fields_by_name['usage']._options = None + _globals['_LISTRESPONSE'].fields_by_name['usage']._serialized_options = b'\222A\023J\021{\"read_units\": 1}' + _globals['_QUERYVECTOR'].fields_by_name['values']._options = None + _globals['_QUERYVECTOR'].fields_by_name['values']._serialized_options = b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001\342A\001\002' + _globals['_QUERYVECTOR'].fields_by_name['top_k']._options = None + _globals['_QUERYVECTOR'].fields_by_name['top_k']._serialized_options = b'\222A\026J\00210Y\000\000\000\000\000\210\303@i\000\000\000\000\000\000\360?' + _globals['_QUERYVECTOR'].fields_by_name['namespace']._options = None + _globals['_QUERYVECTOR'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_QUERYVECTOR'].fields_by_name['filter']._options = None + _globals['_QUERYVECTOR'].fields_by_name['filter']._serialized_options = b'\222AOJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}' + _globals['_QUERYREQUEST'].fields_by_name['namespace']._options = None + _globals['_QUERYREQUEST'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_QUERYREQUEST'].fields_by_name['top_k']._options = None + _globals['_QUERYREQUEST'].fields_by_name['top_k']._serialized_options = b'\222A\026J\00210Y\000\000\000\000\000\210\303@i\000\000\000\000\000\000\360?\342A\001\002' + _globals['_QUERYREQUEST'].fields_by_name['filter']._options = None + _globals['_QUERYREQUEST'].fields_by_name['filter']._serialized_options = b'\222AOJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}' + _globals['_QUERYREQUEST'].fields_by_name['include_values']._options = None + _globals['_QUERYREQUEST'].fields_by_name['include_values']._serialized_options = b'\222A\r:\005falseJ\004true' + _globals['_QUERYREQUEST'].fields_by_name['include_metadata']._options = None + _globals['_QUERYREQUEST'].fields_by_name['include_metadata']._serialized_options = b'\222A\r:\005falseJ\004true' + _globals['_QUERYREQUEST'].fields_by_name['queries']._options = None + _globals['_QUERYREQUEST'].fields_by_name['queries']._serialized_options = b'\030\001\222A\005x\n\200\001\001' + _globals['_QUERYREQUEST'].fields_by_name['vector']._options = None + _globals['_QUERYREQUEST'].fields_by_name['vector']._serialized_options = b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001' + _globals['_QUERYREQUEST'].fields_by_name['id']._options = None + _globals['_QUERYREQUEST'].fields_by_name['id']._serialized_options = b'\222A\027J\022\"example-vector-1\"x\200\004' + _globals['_SINGLEQUERYRESULTS'].fields_by_name['namespace']._options = None + _globals['_SINGLEQUERYRESULTS'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_QUERYRESPONSE'].fields_by_name['results']._options = None + _globals['_QUERYRESPONSE'].fields_by_name['results']._serialized_options = b'\030\001' + _globals['_QUERYRESPONSE'].fields_by_name['usage']._options = None + _globals['_QUERYRESPONSE'].fields_by_name['usage']._serialized_options = b'\222A\023J\021{\"read_units\": 5}' + _globals['_USAGE'].fields_by_name['read_units']._options = None + _globals['_USAGE'].fields_by_name['read_units']._serialized_options = b'\222A\003J\0015' + _globals['_UPDATEREQUEST'].fields_by_name['id']._options = None + _globals['_UPDATEREQUEST'].fields_by_name['id']._serialized_options = b'\222A\032J\022\"example-vector-1\"x\200\004\200\001\001\342A\001\002' + _globals['_UPDATEREQUEST'].fields_by_name['values']._options = None + _globals['_UPDATEREQUEST'].fields_by_name['values']._serialized_options = b'\222A1J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\240\234\001\200\001\001' + _globals['_UPDATEREQUEST'].fields_by_name['set_metadata']._options = None + _globals['_UPDATEREQUEST'].fields_by_name['set_metadata']._serialized_options = b'\222A(J&{\"genre\": \"documentary\", \"year\": 2019}' + _globals['_UPDATEREQUEST'].fields_by_name['namespace']._options = None + _globals['_UPDATEREQUEST'].fields_by_name['namespace']._serialized_options = b'\222A\025J\023\"example-namespace\"' + _globals['_NAMESPACESUMMARY'].fields_by_name['vector_count']._options = None + _globals['_NAMESPACESUMMARY'].fields_by_name['vector_count']._serialized_options = b'\222A\007J\00550000' + _globals['_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY']._options = None + _globals['_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY']._serialized_options = b'8\001' + _globals['_DESCRIBEINDEXSTATSRESPONSE'].fields_by_name['dimension']._options = None + _globals['_DESCRIBEINDEXSTATSRESPONSE'].fields_by_name['dimension']._serialized_options = b'\222A\006J\0041024' + _globals['_DESCRIBEINDEXSTATSRESPONSE'].fields_by_name['index_fullness']._options = None + _globals['_DESCRIBEINDEXSTATSRESPONSE'].fields_by_name['index_fullness']._serialized_options = b'\222A\005J\0030.4' + _globals['_DESCRIBEINDEXSTATSRESPONSE'].fields_by_name['total_vector_count']._options = None + _globals['_DESCRIBEINDEXSTATSRESPONSE'].fields_by_name['total_vector_count']._serialized_options = b'\222A\007J\00580000' + _globals['_DESCRIBEINDEXSTATSRESPONSE']._options = None + _globals['_DESCRIBEINDEXSTATSRESPONSE']._serialized_options = b'\222A\210\0012\205\001{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.4}' + _globals['_VECTORSERVICE'].methods_by_name['Upsert']._options = None + _globals['_VECTORSERVICE'].methods_by_name['Upsert']._serialized_options = b'\222A\033\n\021Vector Operations*\006upsert\202\323\344\223\002\024\"\017/vectors/upsert:\001*' + _globals['_VECTORSERVICE'].methods_by_name['Delete']._options = None + _globals['_VECTORSERVICE'].methods_by_name['Delete']._serialized_options = b'\222A\033\n\021Vector Operations*\006delete\202\323\344\223\002\'\"\017/vectors/delete:\001*Z\021*\017/vectors/delete' + _globals['_VECTORSERVICE'].methods_by_name['Fetch']._options = None + _globals['_VECTORSERVICE'].methods_by_name['Fetch']._serialized_options = b'\222A\032\n\021Vector Operations*\005fetch\202\323\344\223\002\020\022\016/vectors/fetch' + _globals['_VECTORSERVICE'].methods_by_name['List']._options = None + _globals['_VECTORSERVICE'].methods_by_name['List']._serialized_options = b'\222A\031\n\021Vector Operations*\004list\202\323\344\223\002\017\022\r/vectors/list' + _globals['_VECTORSERVICE'].methods_by_name['Query']._options = None + _globals['_VECTORSERVICE'].methods_by_name['Query']._serialized_options = b'\222A\032\n\021Vector Operations*\005query\202\323\344\223\002\013\"\006/query:\001*' + _globals['_VECTORSERVICE'].methods_by_name['Update']._options = None + _globals['_VECTORSERVICE'].methods_by_name['Update']._serialized_options = b'\222A\033\n\021Vector Operations*\006update\202\323\344\223\002\024\"\017/vectors/update:\001*' + _globals['_VECTORSERVICE'].methods_by_name['DescribeIndexStats']._options = None + _globals['_VECTORSERVICE'].methods_by_name['DescribeIndexStats']._serialized_options = b'\222A)\n\021Vector Operations*\024describe_index_stats\202\323\344\223\0023\"\025/describe_index_stats:\001*Z\027\022\025/describe_index_stats' + _globals['_SPARSEVALUES']._serialized_start=166 + _globals['_SPARSEVALUES']._serialized_end=294 + _globals['_VECTOR']._serialized_start=297 + _globals['_VECTOR']._serialized_end=552 + _globals['_SCOREDVECTOR']._serialized_start=555 + _globals['_SCOREDVECTOR']._serialized_end=831 + _globals['_REQUESTUNION']._serialized_start=834 + _globals['_REQUESTUNION']._serialized_end=971 + _globals['_UPSERTREQUEST']._serialized_start=973 + _globals['_UPSERTREQUEST']._serialized_end=1074 + _globals['_UPSERTRESPONSE']._serialized_start=1076 + _globals['_UPSERTRESPONSE']._serialized_end=1125 + _globals['_DELETEREQUEST']._serialized_start=1128 + _globals['_DELETEREQUEST']._serialized_end=1310 + _globals['_DELETERESPONSE']._serialized_start=1312 + _globals['_DELETERESPONSE']._serialized_end=1328 + _globals['_FETCHREQUEST']._serialized_start=1330 + _globals['_FETCHREQUEST']._serialized_end=1435 + _globals['_FETCHRESPONSE']._serialized_start=1438 + _globals['_FETCHRESPONSE']._serialized_end=1663 + _globals['_FETCHRESPONSE_VECTORSENTRY']._serialized_start=1598 + _globals['_FETCHRESPONSE_VECTORSENTRY']._serialized_end=1653 + _globals['_LISTREQUEST']._serialized_start=1666 + _globals['_LISTREQUEST']._serialized_end=1914 + _globals['_PAGINATION']._serialized_start=1916 + _globals['_PAGINATION']._serialized_end=1979 + _globals['_LISTITEM']._serialized_start=1981 + _globals['_LISTITEM']._serialized_end=2025 + _globals['_LISTRESPONSE']._serialized_start=2028 + _globals['_LISTRESPONSE']._serialized_end=2287 + _globals['_QUERYVECTOR']._serialized_start=2290 + _globals['_QUERYVECTOR']._serialized_end=2627 + _globals['_QUERYREQUEST']._serialized_start=2630 + _globals['_QUERYREQUEST']._serialized_end=3137 + _globals['_SINGLEQUERYRESULTS']._serialized_start=3139 + _globals['_SINGLEQUERYRESULTS']._serialized_end=3236 + _globals['_QUERYRESPONSE']._serialized_start=3239 + _globals['_QUERYRESPONSE']._serialized_end=3409 + _globals['_USAGE']._serialized_start=3411 + _globals['_USAGE']._serialized_end=3466 + _globals['_UPDATEREQUEST']._serialized_start=3469 + _globals['_UPDATEREQUEST']._serialized_end=3776 + _globals['_UPDATERESPONSE']._serialized_start=3778 + _globals['_UPDATERESPONSE']._serialized_end=3794 + _globals['_DESCRIBEINDEXSTATSREQUEST']._serialized_start=3796 + _globals['_DESCRIBEINDEXSTATSREQUEST']._serialized_end=3864 + _globals['_NAMESPACESUMMARY']._serialized_start=3866 + _globals['_NAMESPACESUMMARY']._serialized_end=3918 + _globals['_DESCRIBEINDEXSTATSRESPONSE']._serialized_start=3921 + _globals['_DESCRIBEINDEXSTATSRESPONSE']._serialized_end=4331 + _globals['_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY']._serialized_start=4120 + _globals['_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY']._serialized_end=4188 + _globals['_VECTORSERVICE']._serialized_start=4334 + _globals['_VECTORSERVICE']._serialized_end=5123 # @@protoc_insertion_point(module_scope) diff --git a/pinecone/core/grpc/protos/vector_service_pb2.pyi b/pinecone/core/grpc/protos/vector_service_pb2.pyi index 3ffa7f4c..2b09c253 100644 --- a/pinecone/core/grpc/protos/vector_service_pb2.pyi +++ b/pinecone/core/grpc/protos/vector_service_pb2.pyi @@ -1,504 +1,739 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Generated file - DO NOT EDIT +This file is generated from the pinecone-io/apis repo. +Any changes made directly here WILL be overwritten. """ -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) -from google.protobuf.internal.containers import ( - MessageMap as google___protobuf___internal___containers___MessageMap, - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.struct_pb2 +import typing -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -from google.protobuf.struct_pb2 import ( - Struct as google___protobuf___struct_pb2___Struct, -) +@typing.final +class SparseValues(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor -from typing import ( - Iterable as typing___Iterable, - Mapping as typing___Mapping, - Optional as typing___Optional, - Text as typing___Text, - overload as typing___overload, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class SparseValues(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - indices: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - values: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... - - def __init__(self, + INDICES_FIELD_NUMBER: builtins.int + VALUES_FIELD_NUMBER: builtins.int + @property + def indices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + @property + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + def __init__( + self, *, - indices : typing___Optional[typing___Iterable[builtin___int]] = None, - values : typing___Optional[typing___Iterable[builtin___float]] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"indices",b"indices",u"values",b"values"]) -> None: ... -type___SparseValues = SparseValues - -class Vector(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - id: typing___Text = ... - values: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... - + indices: collections.abc.Iterable[builtins.int] | None = ..., + values: collections.abc.Iterable[builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["indices", b"indices", "values", b"values"]) -> None: ... + +global___SparseValues = SparseValues + +@typing.final +class Vector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + VALUES_FIELD_NUMBER: builtins.int + SPARSE_VALUES_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + id: builtins.str + """This is the vector's unique id.""" @property - def sparse_values(self) -> type___SparseValues: ... + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """This is the vector data included in the request.""" @property - def metadata(self) -> google___protobuf___struct_pb2___Struct: ... + def sparse_values(self) -> global___SparseValues: ... + @property + def metadata(self) -> google.protobuf.struct_pb2.Struct: + """This is the metadata included in the request.""" - def __init__(self, + def __init__( + self, *, - id : typing___Optional[typing___Text] = None, - values : typing___Optional[typing___Iterable[builtin___float]] = None, - sparse_values : typing___Optional[type___SparseValues] = None, - metadata : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"metadata",b"metadata",u"sparse_values",b"sparse_values"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"id",b"id",u"metadata",b"metadata",u"sparse_values",b"sparse_values",u"values",b"values"]) -> None: ... -type___Vector = Vector - -class ScoredVector(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - id: typing___Text = ... - score: builtin___float = ... - values: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... + id: builtins.str = ..., + values: collections.abc.Iterable[builtins.float] | None = ..., + sparse_values: global___SparseValues | None = ..., + metadata: google.protobuf.struct_pb2.Struct | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["metadata", b"metadata", "sparse_values", b"sparse_values"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id", "metadata", b"metadata", "sparse_values", b"sparse_values", "values", b"values"]) -> None: ... + +global___Vector = Vector + +@typing.final +class ScoredVector(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + SCORE_FIELD_NUMBER: builtins.int + VALUES_FIELD_NUMBER: builtins.int + SPARSE_VALUES_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + id: builtins.str + """This is the vector's unique id.""" + score: builtins.float + """This is a measure of similarity between this vector and the query vector. The higher the score, the more they are similar.""" + @property + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """This is the vector data, if it is requested.""" @property - def sparse_values(self) -> type___SparseValues: ... + def sparse_values(self) -> global___SparseValues: + """This is the sparse data, if it is requested.""" @property - def metadata(self) -> google___protobuf___struct_pb2___Struct: ... + def metadata(self) -> google.protobuf.struct_pb2.Struct: + """This is the metadata, if it is requested.""" - def __init__(self, + def __init__( + self, *, - id : typing___Optional[typing___Text] = None, - score : typing___Optional[builtin___float] = None, - values : typing___Optional[typing___Iterable[builtin___float]] = None, - sparse_values : typing___Optional[type___SparseValues] = None, - metadata : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"metadata",b"metadata",u"sparse_values",b"sparse_values"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"id",b"id",u"metadata",b"metadata",u"score",b"score",u"sparse_values",b"sparse_values",u"values",b"values"]) -> None: ... -type___ScoredVector = ScoredVector - -class RequestUnion(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - + id: builtins.str = ..., + score: builtins.float = ..., + values: collections.abc.Iterable[builtins.float] | None = ..., + sparse_values: global___SparseValues | None = ..., + metadata: google.protobuf.struct_pb2.Struct | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["metadata", b"metadata", "sparse_values", b"sparse_values"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id", "metadata", b"metadata", "score", b"score", "sparse_values", b"sparse_values", "values", b"values"]) -> None: ... + +global___ScoredVector = ScoredVector + +@typing.final +class RequestUnion(google.protobuf.message.Message): + """This is a container to hold mutating vector requests. This is not actually used + in any public APIs. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UPSERT_FIELD_NUMBER: builtins.int + DELETE_FIELD_NUMBER: builtins.int + UPDATE_FIELD_NUMBER: builtins.int @property - def upsert(self) -> type___UpsertRequest: ... - + def upsert(self) -> global___UpsertRequest: ... @property - def delete(self) -> type___DeleteRequest: ... - + def delete(self) -> global___DeleteRequest: ... @property - def update(self) -> type___UpdateRequest: ... + def update(self) -> global___UpdateRequest: ... + def __init__( + self, + *, + upsert: global___UpsertRequest | None = ..., + delete: global___DeleteRequest | None = ..., + update: global___UpdateRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["RequestUnionInner", b"RequestUnionInner", "delete", b"delete", "update", b"update", "upsert", b"upsert"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["RequestUnionInner", b"RequestUnionInner", "delete", b"delete", "update", b"update", "upsert", b"upsert"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["RequestUnionInner", b"RequestUnionInner"]) -> typing.Literal["upsert", "delete", "update"] | None: ... + +global___RequestUnion = RequestUnion + +@typing.final +class UpsertRequest(google.protobuf.message.Message): + """The request for the `upsert` operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VECTORS_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + namespace: builtins.str + """This is the namespace name where you upsert vectors.""" + @property + def vectors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Vector]: + """An array containing the vectors to upsert. Recommended batch limit is 100 vectors.""" - def __init__(self, + def __init__( + self, *, - upsert : typing___Optional[type___UpsertRequest] = None, - delete : typing___Optional[type___DeleteRequest] = None, - update : typing___Optional[type___UpdateRequest] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"RequestUnionInner",b"RequestUnionInner",u"delete",b"delete",u"update",b"update",u"upsert",b"upsert"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"RequestUnionInner",b"RequestUnionInner",u"delete",b"delete",u"update",b"update",u"upsert",b"upsert"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"RequestUnionInner",b"RequestUnionInner"]) -> typing_extensions___Literal["upsert","delete","update"]: ... -type___RequestUnion = RequestUnion + vectors: collections.abc.Iterable[global___Vector] | None = ..., + namespace: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["namespace", b"namespace", "vectors", b"vectors"]) -> None: ... -class UpsertRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - namespace: typing___Text = ... +global___UpsertRequest = UpsertRequest +@typing.final +class UpsertResponse(google.protobuf.message.Message): + """The response for the `upsert` operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UPSERTED_COUNT_FIELD_NUMBER: builtins.int + upserted_count: builtins.int + """The number of vectors upserted.""" + def __init__( + self, + *, + upserted_count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["upserted_count", b"upserted_count"]) -> None: ... + +global___UpsertResponse = UpsertResponse + +@typing.final +class DeleteRequest(google.protobuf.message.Message): + """The request for the `Delete` operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IDS_FIELD_NUMBER: builtins.int + DELETE_ALL_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + delete_all: builtins.bool + """This indicates that all vectors in the index namespace should be deleted.""" + namespace: builtins.str + """The namespace to delete vectors from, if applicable.""" @property - def vectors(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Vector]: ... + def ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Vectors to delete.""" - def __init__(self, + @property + def filter(self) -> google.protobuf.struct_pb2.Struct: + """If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive + with specifying ids to delete in the ids param or using delete_all=True. + See https://www.pinecone.io/docs/metadata-filtering/. + """ + + def __init__( + self, *, - vectors : typing___Optional[typing___Iterable[type___Vector]] = None, - namespace : typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"namespace",b"namespace",u"vectors",b"vectors"]) -> None: ... -type___UpsertRequest = UpsertRequest + ids: collections.abc.Iterable[builtins.str] | None = ..., + delete_all: builtins.bool = ..., + namespace: builtins.str = ..., + filter: google.protobuf.struct_pb2.Struct | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["delete_all", b"delete_all", "filter", b"filter", "ids", b"ids", "namespace", b"namespace"]) -> None: ... -class UpsertResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - upserted_count: builtin___int = ... +global___DeleteRequest = DeleteRequest - def __init__(self, - *, - upserted_count : typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"upserted_count",b"upserted_count"]) -> None: ... -type___UpsertResponse = UpsertResponse +@typing.final +class DeleteResponse(google.protobuf.message.Message): + """The response for the `Delete` operation.""" -class DeleteRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - ids: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - delete_all: builtin___bool = ... - namespace: typing___Text = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @property - def filter(self) -> google___protobuf___struct_pb2___Struct: ... + def __init__( + self, + ) -> None: ... - def __init__(self, - *, - ids : typing___Optional[typing___Iterable[typing___Text]] = None, - delete_all : typing___Optional[builtin___bool] = None, - namespace : typing___Optional[typing___Text] = None, - filter : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"filter",b"filter"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"delete_all",b"delete_all",u"filter",b"filter",u"ids",b"ids",u"namespace",b"namespace"]) -> None: ... -type___DeleteRequest = DeleteRequest +global___DeleteResponse = DeleteResponse -class DeleteResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +@typing.final +class FetchRequest(google.protobuf.message.Message): + """The request for the `fetch` operation.""" - def __init__(self, - ) -> None: ... -type___DeleteResponse = DeleteResponse + DESCRIPTOR: google.protobuf.descriptor.Descriptor -class FetchRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - ids: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ... - namespace: typing___Text = ... + IDS_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + namespace: builtins.str + @property + def ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """The vector IDs to fetch. Does not accept values containing spaces.""" - def __init__(self, + def __init__( + self, *, - ids : typing___Optional[typing___Iterable[typing___Text]] = None, - namespace : typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"ids",b"ids",u"namespace",b"namespace"]) -> None: ... -type___FetchRequest = FetchRequest + ids: collections.abc.Iterable[builtins.str] | None = ..., + namespace: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["ids", b"ids", "namespace", b"namespace"]) -> None: ... -class FetchResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class VectorsEntry(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key: typing___Text = ... +global___FetchRequest = FetchRequest - @property - def value(self) -> type___Vector: ... +@typing.final +class FetchResponse(google.protobuf.message.Message): + """The response for the `fetch` operation.""" - def __init__(self, - *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[type___Vector] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - type___VectorsEntry = VectorsEntry + DESCRIPTOR: google.protobuf.descriptor.Descriptor - namespace: typing___Text = ... + @typing.final + class VectorsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___Vector: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___Vector | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + VECTORS_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + USAGE_FIELD_NUMBER: builtins.int + namespace: builtins.str + """The namespace of the vectors.""" @property - def vectors(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___Vector]: ... + def vectors(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Vector]: + """The fetched vectors, in the form of a map between the fetched ids and the fetched vectors""" @property - def usage(self) -> type___Usage: ... + def usage(self) -> global___Usage: + """ The usage for this operation.""" - def __init__(self, + def __init__( + self, *, - vectors : typing___Optional[typing___Mapping[typing___Text, type___Vector]] = None, - namespace : typing___Optional[typing___Text] = None, - usage : typing___Optional[type___Usage] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"_usage",b"_usage",u"usage",b"usage"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"_usage",b"_usage",u"namespace",b"namespace",u"usage",b"usage",u"vectors",b"vectors"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_usage",b"_usage"]) -> typing_extensions___Literal["usage"]: ... -type___FetchResponse = FetchResponse - -class ListRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - prefix: typing___Text = ... - limit: builtin___int = ... - pagination_token: typing___Text = ... - namespace: typing___Text = ... - - def __init__(self, + vectors: collections.abc.Mapping[builtins.str, global___Vector] | None = ..., + namespace: builtins.str = ..., + usage: global___Usage | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_usage", b"_usage", "usage", b"usage"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_usage", b"_usage", "namespace", b"namespace", "usage", b"usage", "vectors", b"vectors"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_usage", b"_usage"]) -> typing.Literal["usage"] | None: ... + +global___FetchResponse = FetchResponse + +@typing.final +class ListRequest(google.protobuf.message.Message): + """The request for the `list` operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PREFIX_FIELD_NUMBER: builtins.int + LIMIT_FIELD_NUMBER: builtins.int + PAGINATION_TOKEN_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + prefix: builtins.str + """The vector IDs to fetch. Does not accept values containing spaces.""" + limit: builtins.int + """Max number of IDs to return per page.""" + pagination_token: builtins.str + """Pagination token to continue a previous listing operation.""" + namespace: builtins.str + def __init__( + self, *, - prefix : typing___Optional[typing___Text] = None, - limit : typing___Optional[builtin___int] = None, - pagination_token : typing___Optional[typing___Text] = None, - namespace : typing___Optional[typing___Text] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"_limit",b"_limit",u"_pagination_token",b"_pagination_token",u"_prefix",b"_prefix",u"limit",b"limit",u"pagination_token",b"pagination_token",u"prefix",b"prefix"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"_limit",b"_limit",u"_pagination_token",b"_pagination_token",u"_prefix",b"_prefix",u"limit",b"limit",u"namespace",b"namespace",u"pagination_token",b"pagination_token",u"prefix",b"prefix"]) -> None: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_limit",b"_limit"]) -> typing_extensions___Literal["limit"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_pagination_token",b"_pagination_token"]) -> typing_extensions___Literal["pagination_token"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_prefix",b"_prefix"]) -> typing_extensions___Literal["prefix"]: ... -type___ListRequest = ListRequest - -class Pagination(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - next: typing___Text = ... - - def __init__(self, + prefix: builtins.str | None = ..., + limit: builtins.int | None = ..., + pagination_token: builtins.str | None = ..., + namespace: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_limit", b"_limit", "_pagination_token", b"_pagination_token", "_prefix", b"_prefix", "limit", b"limit", "pagination_token", b"pagination_token", "prefix", b"prefix"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_limit", b"_limit", "_pagination_token", b"_pagination_token", "_prefix", b"_prefix", "limit", b"limit", "namespace", b"namespace", "pagination_token", b"pagination_token", "prefix", b"prefix"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_limit", b"_limit"]) -> typing.Literal["limit"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_pagination_token", b"_pagination_token"]) -> typing.Literal["pagination_token"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_prefix", b"_prefix"]) -> typing.Literal["prefix"] | None: ... + +global___ListRequest = ListRequest + +@typing.final +class Pagination(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NEXT_FIELD_NUMBER: builtins.int + next: builtins.str + def __init__( + self, *, - next : typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"next",b"next"]) -> None: ... -type___Pagination = Pagination + next: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["next", b"next"]) -> None: ... -class ListItem(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - id: typing___Text = ... +global___Pagination = Pagination - def __init__(self, +@typing.final +class ListItem(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + id: builtins.str + def __init__( + self, *, - id : typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"id",b"id"]) -> None: ... -type___ListItem = ListItem + id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ... + +global___ListItem = ListItem -class ListResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - namespace: typing___Text = ... +@typing.final +class ListResponse(google.protobuf.message.Message): + """The response for the `List` operation.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VECTORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + USAGE_FIELD_NUMBER: builtins.int + namespace: builtins.str + """The namespace of the vectors.""" @property - def vectors(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___ListItem]: ... + def vectors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ListItem]: + """A list of ids""" @property - def pagination(self) -> type___Pagination: ... + def pagination(self) -> global___Pagination: + """Pagination token to continue past this listing""" @property - def usage(self) -> type___Usage: ... + def usage(self) -> global___Usage: + """ The usage for this operation.""" - def __init__(self, + def __init__( + self, *, - vectors : typing___Optional[typing___Iterable[type___ListItem]] = None, - pagination : typing___Optional[type___Pagination] = None, - namespace : typing___Optional[typing___Text] = None, - usage : typing___Optional[type___Usage] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"_pagination",b"_pagination",u"_usage",b"_usage",u"pagination",b"pagination",u"usage",b"usage"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"_pagination",b"_pagination",u"_usage",b"_usage",u"namespace",b"namespace",u"pagination",b"pagination",u"usage",b"usage",u"vectors",b"vectors"]) -> None: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_pagination",b"_pagination"]) -> typing_extensions___Literal["pagination"]: ... - @typing___overload - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_usage",b"_usage"]) -> typing_extensions___Literal["usage"]: ... -type___ListResponse = ListResponse - -class QueryVector(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - values: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... - top_k: builtin___int = ... - namespace: typing___Text = ... + vectors: collections.abc.Iterable[global___ListItem] | None = ..., + pagination: global___Pagination | None = ..., + namespace: builtins.str = ..., + usage: global___Usage | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_pagination", b"_pagination", "_usage", b"_usage", "pagination", b"pagination", "usage", b"usage"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_pagination", b"_pagination", "_usage", b"_usage", "namespace", b"namespace", "pagination", b"pagination", "usage", b"usage", "vectors", b"vectors"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_pagination", b"_pagination"]) -> typing.Literal["pagination"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing.Literal["_usage", b"_usage"]) -> typing.Literal["usage"] | None: ... + +global___ListResponse = ListResponse + +@typing.final +class QueryVector(google.protobuf.message.Message): + """A single query vector within a `QueryRequest`.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + SPARSE_VALUES_FIELD_NUMBER: builtins.int + TOP_K_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + top_k: builtins.int + """An override for the number of results to return for this query vector.""" + namespace: builtins.str + """An override the namespace to search.""" + @property + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """The query vector values. This should be the same length as the dimension of the index being queried.""" @property - def sparse_values(self) -> type___SparseValues: ... + def sparse_values(self) -> global___SparseValues: + """The query sparse values.""" @property - def filter(self) -> google___protobuf___struct_pb2___Struct: ... + def filter(self) -> google.protobuf.struct_pb2.Struct: + """An override for the metadata filter to apply. This replaces the request-level filter.""" - def __init__(self, + def __init__( + self, *, - values : typing___Optional[typing___Iterable[builtin___float]] = None, - sparse_values : typing___Optional[type___SparseValues] = None, - top_k : typing___Optional[builtin___int] = None, - namespace : typing___Optional[typing___Text] = None, - filter : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"filter",b"filter",u"sparse_values",b"sparse_values"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"filter",b"filter",u"namespace",b"namespace",u"sparse_values",b"sparse_values",u"top_k",b"top_k",u"values",b"values"]) -> None: ... -type___QueryVector = QueryVector - -class QueryRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - namespace: typing___Text = ... - top_k: builtin___int = ... - include_values: builtin___bool = ... - include_metadata: builtin___bool = ... - vector: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... - id: typing___Text = ... + values: collections.abc.Iterable[builtins.float] | None = ..., + sparse_values: global___SparseValues | None = ..., + top_k: builtins.int = ..., + namespace: builtins.str = ..., + filter: google.protobuf.struct_pb2.Struct | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "sparse_values", b"sparse_values"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "namespace", b"namespace", "sparse_values", b"sparse_values", "top_k", b"top_k", "values", b"values"]) -> None: ... + +global___QueryVector = QueryVector + +@typing.final +class QueryRequest(google.protobuf.message.Message): + """The request for the `query` operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + TOP_K_FIELD_NUMBER: builtins.int + FILTER_FIELD_NUMBER: builtins.int + INCLUDE_VALUES_FIELD_NUMBER: builtins.int + INCLUDE_METADATA_FIELD_NUMBER: builtins.int + QUERIES_FIELD_NUMBER: builtins.int + VECTOR_FIELD_NUMBER: builtins.int + SPARSE_VECTOR_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + namespace: builtins.str + """The namespace to query.""" + top_k: builtins.int + """The number of results to return for each query.""" + include_values: builtins.bool + """Indicates whether vector values are included in the response.""" + include_metadata: builtins.bool + """Indicates whether metadata is included in the response as well as the ids.""" + id: builtins.str + """The unique ID of the vector to be used as a query vector. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.""" + @property + def filter(self) -> google.protobuf.struct_pb2.Struct: + """The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.""" @property - def filter(self) -> google___protobuf___struct_pb2___Struct: ... + def queries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryVector]: + """DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.""" @property - def queries(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___QueryVector]: ... + def vector(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """The query vector. This should be the same length as the dimension of the index being queried. Each `query()` request can contain only one of the parameters `id` or `vector`.""" @property - def sparse_vector(self) -> type___SparseValues: ... + def sparse_vector(self) -> global___SparseValues: + """The query sparse values.""" - def __init__(self, + def __init__( + self, *, - namespace : typing___Optional[typing___Text] = None, - top_k : typing___Optional[builtin___int] = None, - filter : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - include_values : typing___Optional[builtin___bool] = None, - include_metadata : typing___Optional[builtin___bool] = None, - queries : typing___Optional[typing___Iterable[type___QueryVector]] = None, - vector : typing___Optional[typing___Iterable[builtin___float]] = None, - sparse_vector : typing___Optional[type___SparseValues] = None, - id : typing___Optional[typing___Text] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"filter",b"filter",u"sparse_vector",b"sparse_vector"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"filter",b"filter",u"id",b"id",u"include_metadata",b"include_metadata",u"include_values",b"include_values",u"namespace",b"namespace",u"queries",b"queries",u"sparse_vector",b"sparse_vector",u"top_k",b"top_k",u"vector",b"vector"]) -> None: ... -type___QueryRequest = QueryRequest - -class SingleQueryResults(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - namespace: typing___Text = ... - + namespace: builtins.str = ..., + top_k: builtins.int = ..., + filter: google.protobuf.struct_pb2.Struct | None = ..., + include_values: builtins.bool = ..., + include_metadata: builtins.bool = ..., + queries: collections.abc.Iterable[global___QueryVector] | None = ..., + vector: collections.abc.Iterable[builtins.float] | None = ..., + sparse_vector: global___SparseValues | None = ..., + id: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "sparse_vector", b"sparse_vector"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "id", b"id", "include_metadata", b"include_metadata", "include_values", b"include_values", "namespace", b"namespace", "queries", b"queries", "sparse_vector", b"sparse_vector", "top_k", b"top_k", "vector", b"vector"]) -> None: ... + +global___QueryRequest = QueryRequest + +@typing.final +class SingleQueryResults(google.protobuf.message.Message): + """The query results for a single `QueryVector`""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MATCHES_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + namespace: builtins.str + """The namespace for the vectors.""" @property - def matches(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___ScoredVector]: ... + def matches(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredVector]: + """The matches for the vectors.""" - def __init__(self, + def __init__( + self, *, - matches : typing___Optional[typing___Iterable[type___ScoredVector]] = None, - namespace : typing___Optional[typing___Text] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"matches",b"matches",u"namespace",b"namespace"]) -> None: ... -type___SingleQueryResults = SingleQueryResults + matches: collections.abc.Iterable[global___ScoredVector] | None = ..., + namespace: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["matches", b"matches", "namespace", b"namespace"]) -> None: ... + +global___SingleQueryResults = SingleQueryResults + +@typing.final +class QueryResponse(google.protobuf.message.Message): + """The response for the `query` operation. These are the matches found for a particular query vector. The matches are ordered from most similar to least similar.""" -class QueryResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - namespace: typing___Text = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESULTS_FIELD_NUMBER: builtins.int + MATCHES_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + USAGE_FIELD_NUMBER: builtins.int + namespace: builtins.str + """The namespace for the vectors.""" @property - def results(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SingleQueryResults]: ... + def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SingleQueryResults]: + """DEPRECATED. The results of each query. The order is the same as `QueryRequest.queries`.""" @property - def matches(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___ScoredVector]: ... + def matches(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ScoredVector]: + """The matches for the vectors.""" @property - def usage(self) -> type___Usage: ... + def usage(self) -> global___Usage: + """The usage for this operation.""" - def __init__(self, + def __init__( + self, *, - results : typing___Optional[typing___Iterable[type___SingleQueryResults]] = None, - matches : typing___Optional[typing___Iterable[type___ScoredVector]] = None, - namespace : typing___Optional[typing___Text] = None, - usage : typing___Optional[type___Usage] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"_usage",b"_usage",u"usage",b"usage"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"_usage",b"_usage",u"matches",b"matches",u"namespace",b"namespace",u"results",b"results",u"usage",b"usage"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_usage",b"_usage"]) -> typing_extensions___Literal["usage"]: ... -type___QueryResponse = QueryResponse - -class Usage(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - read_units: builtin___int = ... - - def __init__(self, + results: collections.abc.Iterable[global___SingleQueryResults] | None = ..., + matches: collections.abc.Iterable[global___ScoredVector] | None = ..., + namespace: builtins.str = ..., + usage: global___Usage | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_usage", b"_usage", "usage", b"usage"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_usage", b"_usage", "matches", b"matches", "namespace", b"namespace", "results", b"results", "usage", b"usage"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_usage", b"_usage"]) -> typing.Literal["usage"] | None: ... + +global___QueryResponse = QueryResponse + +@typing.final +class Usage(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + READ_UNITS_FIELD_NUMBER: builtins.int + read_units: builtins.int + """The number of read units consumed by this operation.""" + def __init__( + self, *, - read_units : typing___Optional[builtin___int] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"_read_units",b"_read_units",u"read_units",b"read_units"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"_read_units",b"_read_units",u"read_units",b"read_units"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"_read_units",b"_read_units"]) -> typing_extensions___Literal["read_units"]: ... -type___Usage = Usage - -class UpdateRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - id: typing___Text = ... - values: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... - namespace: typing___Text = ... - + read_units: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_read_units", b"_read_units", "read_units", b"read_units"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_read_units", b"_read_units", "read_units", b"read_units"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_read_units", b"_read_units"]) -> typing.Literal["read_units"] | None: ... + +global___Usage = Usage + +@typing.final +class UpdateRequest(google.protobuf.message.Message): + """The request for the `update` operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + VALUES_FIELD_NUMBER: builtins.int + SPARSE_VALUES_FIELD_NUMBER: builtins.int + SET_METADATA_FIELD_NUMBER: builtins.int + NAMESPACE_FIELD_NUMBER: builtins.int + id: builtins.str + """Vector's unique id.""" + namespace: builtins.str + """Namespace name where to update the vector.""" @property - def sparse_values(self) -> type___SparseValues: ... + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: + """Vector data.""" @property - def set_metadata(self) -> google___protobuf___struct_pb2___Struct: ... + def sparse_values(self) -> global___SparseValues: ... + @property + def set_metadata(self) -> google.protobuf.struct_pb2.Struct: + """Metadata to *set* for the vector.""" - def __init__(self, + def __init__( + self, *, - id : typing___Optional[typing___Text] = None, - values : typing___Optional[typing___Iterable[builtin___float]] = None, - sparse_values : typing___Optional[type___SparseValues] = None, - set_metadata : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - namespace : typing___Optional[typing___Text] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"set_metadata",b"set_metadata",u"sparse_values",b"sparse_values"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"id",b"id",u"namespace",b"namespace",u"set_metadata",b"set_metadata",u"sparse_values",b"sparse_values",u"values",b"values"]) -> None: ... -type___UpdateRequest = UpdateRequest + id: builtins.str = ..., + values: collections.abc.Iterable[builtins.float] | None = ..., + sparse_values: global___SparseValues | None = ..., + set_metadata: google.protobuf.struct_pb2.Struct | None = ..., + namespace: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["set_metadata", b"set_metadata", "sparse_values", b"sparse_values"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id", "namespace", b"namespace", "set_metadata", b"set_metadata", "sparse_values", b"sparse_values", "values", b"values"]) -> None: ... -class UpdateResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +global___UpdateRequest = UpdateRequest - def __init__(self, - ) -> None: ... -type___UpdateResponse = UpdateResponse +@typing.final +class UpdateResponse(google.protobuf.message.Message): + """The response for the `update` operation.""" -class DescribeIndexStatsRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor - @property - def filter(self) -> google___protobuf___struct_pb2___Struct: ... + def __init__( + self, + ) -> None: ... - def __init__(self, - *, - filter : typing___Optional[google___protobuf___struct_pb2___Struct] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"filter",b"filter"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"filter",b"filter"]) -> None: ... -type___DescribeIndexStatsRequest = DescribeIndexStatsRequest +global___UpdateResponse = UpdateResponse + +@typing.final +class DescribeIndexStatsRequest(google.protobuf.message.Message): + """The request for the `describe_index_stats` operation.""" -class NamespaceSummary(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - vector_count: builtin___int = ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, + FILTER_FIELD_NUMBER: builtins.int + @property + def filter(self) -> google.protobuf.struct_pb2.Struct: + """If this parameter is present, the operation only returns statistics + for vectors that satisfy the filter. + See https://www.pinecone.io/docs/metadata-filtering/. + """ + + def __init__( + self, *, - vector_count : typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"vector_count",b"vector_count"]) -> None: ... -type___NamespaceSummary = NamespaceSummary + filter: google.protobuf.struct_pb2.Struct | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter"]) -> None: ... + +global___DescribeIndexStatsRequest = DescribeIndexStatsRequest + +@typing.final +class NamespaceSummary(google.protobuf.message.Message): + """A summary of the contents of a namespace.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VECTOR_COUNT_FIELD_NUMBER: builtins.int + vector_count: builtins.int + """The number of vectors stored in this namespace. Note that updates to this field may lag behind updates to the + underlying index and corresponding query results, etc. + """ + def __init__( + self, + *, + vector_count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["vector_count", b"vector_count"]) -> None: ... -class DescribeIndexStatsResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class NamespacesEntry(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key: typing___Text = ... +global___NamespaceSummary = NamespaceSummary - @property - def value(self) -> type___NamespaceSummary: ... +@typing.final +class DescribeIndexStatsResponse(google.protobuf.message.Message): + """The response for the `describe_index_stats` operation.""" - def __init__(self, - *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[type___NamespaceSummary] = None, - ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... - type___NamespacesEntry = NamespacesEntry + DESCRIPTOR: google.protobuf.descriptor.Descriptor - dimension: builtin___int = ... - index_fullness: builtin___float = ... - total_vector_count: builtin___int = ... + @typing.final + class NamespacesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> global___NamespaceSummary: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: global___NamespaceSummary | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + + NAMESPACES_FIELD_NUMBER: builtins.int + DIMENSION_FIELD_NUMBER: builtins.int + INDEX_FULLNESS_FIELD_NUMBER: builtins.int + TOTAL_VECTOR_COUNT_FIELD_NUMBER: builtins.int + dimension: builtins.int + """The dimension of the indexed vectors.""" + index_fullness: builtins.float + """The fullness of the index, regardless of whether a metadata filter expression was passed. The granularity of this metric is 10%.""" + total_vector_count: builtins.int + """The total number of vectors in the index, regardless of whether a metadata filter expression was passed""" @property - def namespaces(self) -> google___protobuf___internal___containers___MessageMap[typing___Text, type___NamespaceSummary]: ... - - def __init__(self, + def namespaces(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___NamespaceSummary]: + """A mapping for each namespace in the index from the namespace name to a + summary of its contents. If a metadata filter expression is present, the + summary will reflect only vectors matching that expression. + """ + + def __init__( + self, *, - namespaces : typing___Optional[typing___Mapping[typing___Text, type___NamespaceSummary]] = None, - dimension : typing___Optional[builtin___int] = None, - index_fullness : typing___Optional[builtin___float] = None, - total_vector_count : typing___Optional[builtin___int] = None, - ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"dimension",b"dimension",u"index_fullness",b"index_fullness",u"namespaces",b"namespaces",u"total_vector_count",b"total_vector_count"]) -> None: ... -type___DescribeIndexStatsResponse = DescribeIndexStatsResponse + namespaces: collections.abc.Mapping[builtins.str, global___NamespaceSummary] | None = ..., + dimension: builtins.int = ..., + index_fullness: builtins.float = ..., + total_vector_count: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["dimension", b"dimension", "index_fullness", b"index_fullness", "namespaces", b"namespaces", "total_vector_count", b"total_vector_count"]) -> None: ... + +global___DescribeIndexStatsResponse = DescribeIndexStatsResponse diff --git a/pinecone/core/grpc/protos/vector_service_pb2_grpc.py b/pinecone/core/grpc/protos/vector_service_pb2_grpc.py index cdde2f85..f3126923 100644 --- a/pinecone/core/grpc/protos/vector_service_pb2_grpc.py +++ b/pinecone/core/grpc/protos/vector_service_pb2_grpc.py @@ -84,7 +84,7 @@ def Fetch(self, request, context): The `fetch` operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata. - For guidance and examples, see [Fetch data](https://docs.pinecone.io/reference/fetch). + For guidance and examples, see [Fetch data](https://docs.pinecone.io/docs/fetch-data). """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -121,7 +121,7 @@ def Update(self, request, context): The `update` operation updates a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value. - For guidance and examples, see [Update data](https://docs.pinecone.io/reference/update). + For guidance and examples, see [Update data](https://docs.pinecone.io/docs/update-data). """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') diff --git a/pinecone/grpc/vector_factory_grpc.py b/pinecone/grpc/vector_factory_grpc.py index cb36338b..2ea62a08 100644 --- a/pinecone/grpc/vector_factory_grpc.py +++ b/pinecone/grpc/vector_factory_grpc.py @@ -86,6 +86,11 @@ def _dict_to_vector(item) -> GRPCVector: try: return GRPCVector(**item) except TypeError as e: + # Where possible raise a more specific error to the user. + vid = item.get("id") + if not isinstance(vid, bytes) and not isinstance(vid, str): + raise TypeError(f"Cannot set Vector.id to {vid}: {vid} has type {type(vid)}, " + "but expected one of: (, ) for field Vector.id") if not isinstance(item["values"], Iterable) or not isinstance(item["values"].__iter__().__next__(), numbers.Real): raise TypeError(f"Column `values` is expected to be a list of floats") raise e \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index eb295655..e10a953e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "astunparse" @@ -231,20 +231,6 @@ protobuf = ">=3.19.5,<3.20.0 || >3.20.0,<3.20.1 || >3.20.1,<4.21.1 || >4.21.1,<4 [package.extras] grpc = ["grpcio (>=1.44.0,<2.0.0.dev0)"] -[[package]] -name = "grpc-gateway-protoc-gen-openapiv2" -version = "0.1.0" -description = "Provides the missing pieces for gRPC Gateway." -optional = true -python-versions = ">=3.6" -files = [ - {file = "grpc-gateway-protoc-gen-openapiv2-0.1.0.tar.gz", hash = "sha256:03b8934080ae81f709af041e4f89694db586a95ff35abba05d033d499811d4f6"}, - {file = "grpc_gateway_protoc_gen_openapiv2-0.1.0-py3-none-any.whl", hash = "sha256:45ba00a6e9df13d35fe46d4149c62361a63c27e61fb08faa192aea0f4fbed609"}, -] - -[package.dependencies] -googleapis-common-protos = "*" - [[package]] name = "grpc-stubs" version = "1.53.0.3" @@ -765,35 +751,39 @@ testing = ["pytest", "pytest-benchmark"] [[package]] name = "protobuf" -version = "3.20.3" -description = "Protocol Buffers" +version = "4.25.3" +description = "" optional = true -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "protobuf-3.20.3-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:f4bd856d702e5b0d96a00ec6b307b0f51c1982c2bf9c0052cf9019e9a544ba99"}, - {file = "protobuf-3.20.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:9aae4406ea63d825636cc11ffb34ad3379335803216ee3a856787bcf5ccc751e"}, - {file = "protobuf-3.20.3-cp310-cp310-win32.whl", hash = "sha256:28545383d61f55b57cf4df63eebd9827754fd2dc25f80c5253f9184235db242c"}, - {file = "protobuf-3.20.3-cp310-cp310-win_amd64.whl", hash = "sha256:67a3598f0a2dcbc58d02dd1928544e7d88f764b47d4a286202913f0b2801c2e7"}, - {file = "protobuf-3.20.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:899dc660cd599d7352d6f10d83c95df430a38b410c1b66b407a6b29265d66469"}, - {file = "protobuf-3.20.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e64857f395505ebf3d2569935506ae0dfc4a15cb80dc25261176c784662cdcc4"}, - {file = "protobuf-3.20.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:d9e4432ff660d67d775c66ac42a67cf2453c27cb4d738fc22cb53b5d84c135d4"}, - {file = "protobuf-3.20.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:74480f79a023f90dc6e18febbf7b8bac7508420f2006fabd512013c0c238f454"}, - {file = "protobuf-3.20.3-cp37-cp37m-win32.whl", hash = "sha256:b6cc7ba72a8850621bfec987cb72623e703b7fe2b9127a161ce61e61558ad905"}, - {file = "protobuf-3.20.3-cp37-cp37m-win_amd64.whl", hash = "sha256:8c0c984a1b8fef4086329ff8dd19ac77576b384079247c770f29cc8ce3afa06c"}, - {file = "protobuf-3.20.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:de78575669dddf6099a8a0f46a27e82a1783c557ccc38ee620ed8cc96d3be7d7"}, - {file = "protobuf-3.20.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:f4c42102bc82a51108e449cbb32b19b180022941c727bac0cfd50170341f16ee"}, - {file = "protobuf-3.20.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:44246bab5dd4b7fbd3c0c80b6f16686808fab0e4aca819ade6e8d294a29c7050"}, - {file = "protobuf-3.20.3-cp38-cp38-win32.whl", hash = "sha256:c02ce36ec760252242a33967d51c289fd0e1c0e6e5cc9397e2279177716add86"}, - {file = "protobuf-3.20.3-cp38-cp38-win_amd64.whl", hash = "sha256:447d43819997825d4e71bf5769d869b968ce96848b6479397e29fc24c4a5dfe9"}, - {file = "protobuf-3.20.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:398a9e0c3eaceb34ec1aee71894ca3299605fa8e761544934378bbc6c97de23b"}, - {file = "protobuf-3.20.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:bf01b5720be110540be4286e791db73f84a2b721072a3711efff6c324cdf074b"}, - {file = "protobuf-3.20.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:daa564862dd0d39c00f8086f88700fdbe8bc717e993a21e90711acfed02f2402"}, - {file = "protobuf-3.20.3-cp39-cp39-win32.whl", hash = "sha256:819559cafa1a373b7096a482b504ae8a857c89593cf3a25af743ac9ecbd23480"}, - {file = "protobuf-3.20.3-cp39-cp39-win_amd64.whl", hash = "sha256:03038ac1cfbc41aa21f6afcbcd357281d7521b4157926f30ebecc8d4ea59dcb7"}, - {file = "protobuf-3.20.3-py2.py3-none-any.whl", hash = "sha256:a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db"}, - {file = "protobuf-3.20.3.tar.gz", hash = "sha256:2e3427429c9cffebf259491be0af70189607f365c2f41c7c3764af6f337105f2"}, + {file = "protobuf-4.25.3-cp310-abi3-win32.whl", hash = "sha256:d4198877797a83cbfe9bffa3803602bbe1625dc30d8a097365dbc762e5790faa"}, + {file = "protobuf-4.25.3-cp310-abi3-win_amd64.whl", hash = "sha256:209ba4cc916bab46f64e56b85b090607a676f66b473e6b762e6f1d9d591eb2e8"}, + {file = "protobuf-4.25.3-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:f1279ab38ecbfae7e456a108c5c0681e4956d5b1090027c1de0f934dfdb4b35c"}, + {file = "protobuf-4.25.3-cp37-abi3-manylinux2014_aarch64.whl", hash = "sha256:e7cb0ae90dd83727f0c0718634ed56837bfeeee29a5f82a7514c03ee1364c019"}, + {file = "protobuf-4.25.3-cp37-abi3-manylinux2014_x86_64.whl", hash = "sha256:7c8daa26095f82482307bc717364e7c13f4f1c99659be82890dcfc215194554d"}, + {file = "protobuf-4.25.3-cp38-cp38-win32.whl", hash = "sha256:f4f118245c4a087776e0a8408be33cf09f6c547442c00395fbfb116fac2f8ac2"}, + {file = "protobuf-4.25.3-cp38-cp38-win_amd64.whl", hash = "sha256:c053062984e61144385022e53678fbded7aea14ebb3e0305ae3592fb219ccfa4"}, + {file = "protobuf-4.25.3-cp39-cp39-win32.whl", hash = "sha256:19b270aeaa0099f16d3ca02628546b8baefe2955bbe23224aaf856134eccf1e4"}, + {file = "protobuf-4.25.3-cp39-cp39-win_amd64.whl", hash = "sha256:e3c97a1555fd6388f857770ff8b9703083de6bf1f9274a002a332d65fbb56c8c"}, + {file = "protobuf-4.25.3-py3-none-any.whl", hash = "sha256:f0700d54bcf45424477e46a9f0944155b46fb0639d69728739c0e47bab83f2b9"}, + {file = "protobuf-4.25.3.tar.gz", hash = "sha256:25b5d0b42fd000320bd7830b349e3b696435f3b329810427a6bcce6a5492cc5c"}, ] +[[package]] +name = "protoc-gen-openapiv2" +version = "0.0.1" +description = "Provides the missing pieces for gRPC Gateway." +optional = true +python-versions = ">=3.6" +files = [ + {file = "protoc-gen-openapiv2-0.0.1.tar.gz", hash = "sha256:6f79188d842c13177c9c0558845442c340b43011bf67dfef1dfc3bc067506409"}, + {file = "protoc_gen_openapiv2-0.0.1-py3-none-any.whl", hash = "sha256:18090c8be3877c438e7da0f7eb7cace45a9a210306bca4707708dbad367857be"}, +] + +[package.dependencies] +googleapis-common-protos = "*" +protobuf = ">=4.21.0" + [[package]] name = "pygments" version = "2.16.1" @@ -946,6 +936,7 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -1174,9 +1165,9 @@ files = [ test = ["pytest (>=6.0.0)", "setuptools (>=65)"] [extras] -grpc = ["googleapis-common-protos", "grpc-gateway-protoc-gen-openapiv2", "grpcio", "grpcio", "lz4", "protobuf"] +grpc = ["googleapis-common-protos", "grpcio", "grpcio", "lz4", "protobuf", "protoc-gen-openapiv2"] [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "3f9d76204d6753bdba849cc43cc9827e021e3cbdca7328cc9f411bb6133c6091" +content-hash = "4dd1a293f07b49e250679ca58f6ab3c5a090f2d4807d721dab64d5d574a38c10" diff --git a/pyproject.toml b/pyproject.toml index 6edd55dd..227eaa73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,10 +63,10 @@ grpcio = [ { version = ">=1.44.0", optional = true, python = "^3.8,<3.11" }, { version = ">=1.59.0", optional = true, python = "^3.11" } ] -grpc-gateway-protoc-gen-openapiv2 = { version = "0.1.0", optional = true } googleapis-common-protos = { version = ">=1.53.0", optional = true } lz4 = { version = ">=3.1.3", optional = true } -protobuf = { version = "~=3.20.0", optional = true } +protobuf = { version = "^4.25", optional = true } +protoc-gen-openapiv2 = {version = "^0.0.1", optional = true } [tool.poetry.group.types] optional = true @@ -98,7 +98,7 @@ urllib3_mock = "0.3.3" responses = ">=0.8.1" [tool.poetry.extras] -grpc = ["grpcio", "grpc-gateway-protoc-gen-openapiv2", "googleapis-common-protos", "lz4", "protobuf"] +grpc = ["grpcio", "googleapis-common-protos", "lz4", "protobuf", "protoc-gen-openapiv2"] [build-system] requires = ["poetry-core"]