From a751d227a02d50ac696c6febc289c6eaa47bfe00 Mon Sep 17 00:00:00 2001 From: Nelson Parente Date: Wed, 21 Oct 2026 11:42:13 +0200 Subject: [PATCH] chore: regenerate gRPC client against Dapr 1.19.0-rc.5 protos Regenerate dapr/proto from the Dapr v1.19.0-rc.5 tag. This adds the binary store, search, and vector alpha APIs that Dapr v1.19.0-rc.2 did not have. The regen script now reads google/rpc/status.proto from googleapis-common-protos, because search.proto and vector.proto import it. grpcio-tools stays at 1.81.1. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Nelson Parente --- dapr/proto/runtime/v1/binarystore_pb2.py | 50 + dapr/proto/runtime/v1/binarystore_pb2.pyi | 196 ++++ dapr/proto/runtime/v1/binarystore_pb2_grpc.py | 24 + dapr/proto/runtime/v1/dapr_pb2.py | 13 +- dapr/proto/runtime/v1/dapr_pb2_grpc.py | 891 ++++++++++++++++ dapr/proto/runtime/v1/search_pb2.py | 132 +++ dapr/proto/runtime/v1/search_pb2.pyi | 994 ++++++++++++++++++ dapr/proto/runtime/v1/search_pb2_grpc.py | 24 + dapr/proto/runtime/v1/vector_pb2.py | 120 +++ dapr/proto/runtime/v1/vector_pb2.pyi | 863 +++++++++++++++ dapr/proto/runtime/v1/vector_pb2_grpc.py | 24 + tools/regen_grpcclient.sh | 5 +- 12 files changed, 3330 insertions(+), 6 deletions(-) create mode 100644 dapr/proto/runtime/v1/binarystore_pb2.py create mode 100644 dapr/proto/runtime/v1/binarystore_pb2.pyi create mode 100644 dapr/proto/runtime/v1/binarystore_pb2_grpc.py create mode 100644 dapr/proto/runtime/v1/search_pb2.py create mode 100644 dapr/proto/runtime/v1/search_pb2.pyi create mode 100644 dapr/proto/runtime/v1/search_pb2_grpc.py create mode 100644 dapr/proto/runtime/v1/vector_pb2.py create mode 100644 dapr/proto/runtime/v1/vector_pb2.pyi create mode 100644 dapr/proto/runtime/v1/vector_pb2_grpc.py diff --git a/dapr/proto/runtime/v1/binarystore_pb2.py b/dapr/proto/runtime/v1/binarystore_pb2.py new file mode 100644 index 000000000..4502dc1ac --- /dev/null +++ b/dapr/proto/runtime/v1/binarystore_pb2.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/binarystore.proto +# Protobuf Python Version: 6.33.5 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 5, + '', + 'dapr/proto/runtime/v1/binarystore.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from dapr.proto.common.v1 import common_pb2 as dapr_dot_proto_dot_common_dot_v1_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'dapr/proto/runtime/v1/binarystore.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a!dapr/proto/common/v1/common.proto\"\xc9\x01\n\x1aSetBinaryFileRequestAlpha1\x12S\n\x0finitial_request\x18\x01 \x01(\x0b\x32\x38.dapr.proto.runtime.v1.SetBinaryFileRequestInitialAlpha1H\x00\x12\x36\n\x07payload\x18\x02 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayloadH\x00\x42\x1e\n\x1cset_binary_file_request_type\"\x98\x01\n!SetBinaryFileRequestInitialAlpha1\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x1b\n\tfile_name\x18\x02 \x01(\tR\x08\x66ileName\x12!\n\toverwrite\x18\x03 \x01(\x08H\x00R\toverwrite\x88\x01\x01\x42\x0c\n\n_overwrite\"\x1d\n\x1bSetBinaryFileResponseAlpha1\"`\n\x1aGetBinaryFileRequestAlpha1\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x1b\n\tfile_name\x18\x02 \x01(\tR\x08\x66ileName\"S\n\x1bGetBinaryFileResponseAlpha1\x12\x34\n\x07payload\x18\x01 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"c\n\x1d\x44\x65leteBinaryFileRequestAlpha1\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x1b\n\tfile_name\x18\x02 \x01(\tR\x08\x66ileName\" \n\x1e\x44\x65leteBinaryFileResponseAlpha1Bt\n\nio.dapr.v1B\x15\x44\x61prBinaryStoreProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\xaa\x02\x1b\x44\x61pr.Client.Autogen.Grpc.v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.binarystore_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\025DaprBinaryStoreProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_SETBINARYFILEREQUESTALPHA1']._serialized_start=102 + _globals['_SETBINARYFILEREQUESTALPHA1']._serialized_end=303 + _globals['_SETBINARYFILEREQUESTINITIALALPHA1']._serialized_start=306 + _globals['_SETBINARYFILEREQUESTINITIALALPHA1']._serialized_end=458 + _globals['_SETBINARYFILERESPONSEALPHA1']._serialized_start=460 + _globals['_SETBINARYFILERESPONSEALPHA1']._serialized_end=489 + _globals['_GETBINARYFILEREQUESTALPHA1']._serialized_start=491 + _globals['_GETBINARYFILEREQUESTALPHA1']._serialized_end=587 + _globals['_GETBINARYFILERESPONSEALPHA1']._serialized_start=589 + _globals['_GETBINARYFILERESPONSEALPHA1']._serialized_end=672 + _globals['_DELETEBINARYFILEREQUESTALPHA1']._serialized_start=674 + _globals['_DELETEBINARYFILEREQUESTALPHA1']._serialized_end=773 + _globals['_DELETEBINARYFILERESPONSEALPHA1']._serialized_start=775 + _globals['_DELETEBINARYFILERESPONSEALPHA1']._serialized_end=807 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/binarystore_pb2.pyi b/dapr/proto/runtime/v1/binarystore_pb2.pyi new file mode 100644 index 000000000..1aeff3608 --- /dev/null +++ b/dapr/proto/runtime/v1/binarystore_pb2.pyi @@ -0,0 +1,196 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2026 The Dapr Authors +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" + +from dapr.proto.common.v1 import common_pb2 as _common_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins +import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias + +DESCRIPTOR: _descriptor.FileDescriptor + +@_typing.final +class SetBinaryFileRequestAlpha1(_message.Message): + """SetBinaryFileRequestAlpha1 is the request for SetBinaryFileAlpha1. + The first message in the stream must contain the options; subsequent + messages carry chunks of the binary file content via payload. + """ + + DESCRIPTOR: _descriptor.Descriptor + + INITIAL_REQUEST_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + @_builtins.property + def initial_request(self) -> Global___SetBinaryFileRequestInitialAlpha1: + """Request details. Must be present in the first message only.""" + + @_builtins.property + def payload(self) -> _common_pb2.StreamPayload: + """Chunk of data of arbitrary size.""" + + def __init__( + self, + *, + initial_request: Global___SetBinaryFileRequestInitialAlpha1 | None = ..., + payload: _common_pb2.StreamPayload | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["initial_request", b"initial_request", "payload", b"payload", "set_binary_file_request_type", b"set_binary_file_request_type"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["initial_request", b"initial_request", "payload", b"payload", "set_binary_file_request_type", b"set_binary_file_request_type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_set_binary_file_request_type: _TypeAlias = _typing.Literal["initial_request", "payload"] # noqa: Y015 + _WhichOneofArgType_set_binary_file_request_type: _TypeAlias = _typing.Literal["set_binary_file_request_type", b"set_binary_file_request_type"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_set_binary_file_request_type) -> _WhichOneofReturnType_set_binary_file_request_type | None: ... + +Global___SetBinaryFileRequestAlpha1: _TypeAlias = SetBinaryFileRequestAlpha1 # noqa: Y015 + +@_typing.final +class SetBinaryFileRequestInitialAlpha1(_message.Message): + """SetBinaryFileRequestInitialAlpha1 contains options for the first message in the + SetBinaryFileAlpha1 request. + """ + + DESCRIPTOR: _descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: _builtins.int + FILE_NAME_FIELD_NUMBER: _builtins.int + OVERWRITE_FIELD_NUMBER: _builtins.int + component_name: _builtins.str + """Name of the component. Required.""" + file_name: _builtins.str + """Name of the file to store. Required.""" + overwrite: _builtins.bool + """When false (POST semantics), the operation fails if a file with the same + name already exists. When true (PUT semantics), any existing file is + replaced. Defaults to false. + """ + def __init__( + self, + *, + component_name: _builtins.str = ..., + file_name: _builtins.str = ..., + overwrite: _builtins.bool | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_overwrite", b"_overwrite", "overwrite", b"overwrite"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_overwrite", b"_overwrite", "component_name", b"component_name", "file_name", b"file_name", "overwrite", b"overwrite"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__overwrite: _TypeAlias = _typing.Literal["overwrite"] # noqa: Y015 + _WhichOneofArgType__overwrite: _TypeAlias = _typing.Literal["_overwrite", b"_overwrite"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__overwrite) -> _WhichOneofReturnType__overwrite | None: ... + +Global___SetBinaryFileRequestInitialAlpha1: _TypeAlias = SetBinaryFileRequestInitialAlpha1 # noqa: Y015 + +@_typing.final +class SetBinaryFileResponseAlpha1(_message.Message): + """SetBinaryFileResponseAlpha1 is the response for SetBinaryFileAlpha1.""" + + DESCRIPTOR: _descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___SetBinaryFileResponseAlpha1: _TypeAlias = SetBinaryFileResponseAlpha1 # noqa: Y015 + +@_typing.final +class GetBinaryFileRequestAlpha1(_message.Message): + """GetBinaryFileRequestAlpha1 is the request for GetBinaryFileAlpha1.""" + + DESCRIPTOR: _descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: _builtins.int + FILE_NAME_FIELD_NUMBER: _builtins.int + component_name: _builtins.str + """Name of the component. Required.""" + file_name: _builtins.str + """Name of the file to retrieve. Required.""" + def __init__( + self, + *, + component_name: _builtins.str = ..., + file_name: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["component_name", b"component_name", "file_name", b"file_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetBinaryFileRequestAlpha1: _TypeAlias = GetBinaryFileRequestAlpha1 # noqa: Y015 + +@_typing.final +class GetBinaryFileResponseAlpha1(_message.Message): + """GetBinaryFileResponseAlpha1 is the streaming response for GetBinaryFileAlpha1.""" + + DESCRIPTOR: _descriptor.Descriptor + + PAYLOAD_FIELD_NUMBER: _builtins.int + @_builtins.property + def payload(self) -> _common_pb2.StreamPayload: + """Chunk of data.""" + + def __init__( + self, + *, + payload: _common_pb2.StreamPayload | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["payload", b"payload"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetBinaryFileResponseAlpha1: _TypeAlias = GetBinaryFileResponseAlpha1 # noqa: Y015 + +@_typing.final +class DeleteBinaryFileRequestAlpha1(_message.Message): + """DeleteBinaryFileRequestAlpha1 is the request for DeleteBinaryFileAlpha1.""" + + DESCRIPTOR: _descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: _builtins.int + FILE_NAME_FIELD_NUMBER: _builtins.int + component_name: _builtins.str + """Name of the component. Required.""" + file_name: _builtins.str + """Name of the file to delete. Required.""" + def __init__( + self, + *, + component_name: _builtins.str = ..., + file_name: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["component_name", b"component_name", "file_name", b"file_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteBinaryFileRequestAlpha1: _TypeAlias = DeleteBinaryFileRequestAlpha1 # noqa: Y015 + +@_typing.final +class DeleteBinaryFileResponseAlpha1(_message.Message): + """DeleteBinaryFileResponseAlpha1 is the response for DeleteBinaryFileAlpha1.""" + + DESCRIPTOR: _descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___DeleteBinaryFileResponseAlpha1: _TypeAlias = DeleteBinaryFileResponseAlpha1 # noqa: Y015 diff --git a/dapr/proto/runtime/v1/binarystore_pb2_grpc.py b/dapr/proto/runtime/v1/binarystore_pb2_grpc.py new file mode 100644 index 000000000..a37acbc2a --- /dev/null +++ b/dapr/proto/runtime/v1/binarystore_pb2_grpc.py @@ -0,0 +1,24 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + + +GRPC_GENERATED_VERSION = '1.81.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + ' but the generated code in dapr/proto/runtime/v1/binarystore_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/dapr/proto/runtime/v1/dapr_pb2.py b/dapr/proto/runtime/v1/dapr_pb2.py index e9e941ca2..cd9ff95e8 100644 --- a/dapr/proto/runtime/v1/dapr_pb2.py +++ b/dapr/proto/runtime/v1/dapr_pb2.py @@ -37,9 +37,12 @@ from dapr.proto.runtime.v1 import workflow_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2 from dapr.proto.runtime.v1 import jobs_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2 from dapr.proto.runtime.v1 import ai_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2 +from dapr.proto.runtime.v1 import search_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2 +from dapr.proto.runtime.v1 import vector_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2 +from dapr.proto.runtime.v1 import binarystore_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n dapr/proto/runtime/v1/dapr.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a!dapr/proto/common/v1/common.proto\x1a\"dapr/proto/runtime/v1/actors.proto\x1a\"dapr/proto/runtime/v1/pubsub.proto\x1a\"dapr/proto/runtime/v1/invoke.proto\x1a!dapr/proto/runtime/v1/state.proto\x1a#dapr/proto/runtime/v1/binding.proto\x1a\"dapr/proto/runtime/v1/secret.proto\x1a$dapr/proto/runtime/v1/metadata.proto\x1a)dapr/proto/runtime/v1/configuration.proto\x1a dapr/proto/runtime/v1/lock.proto\x1a\"dapr/proto/runtime/v1/crypto.proto\x1a$dapr/proto/runtime/v1/workflow.proto\x1a dapr/proto/runtime/v1/jobs.proto\x1a\x1e\x64\x61pr/proto/runtime/v1/ai.proto\"\x11\n\x0fShutdownRequest2\xc8?\n\x04\x44\x61pr\x12\x64\n\rInvokeService\x12+.dapr.proto.runtime.v1.InvokeServiceRequest\x1a$.dapr.proto.common.v1.InvokeResponse\"\x00\x12]\n\x08GetState\x12&.dapr.proto.runtime.v1.GetStateRequest\x1a\'.dapr.proto.runtime.v1.GetStateResponse\"\x00\x12i\n\x0cGetBulkState\x12*.dapr.proto.runtime.v1.GetBulkStateRequest\x1a+.dapr.proto.runtime.v1.GetBulkStateResponse\"\x00\x12N\n\tSaveState\x12\'.dapr.proto.runtime.v1.SaveStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12i\n\x10QueryStateAlpha1\x12(.dapr.proto.runtime.v1.QueryStateRequest\x1a).dapr.proto.runtime.v1.QueryStateResponse\"\x00\x12R\n\x0b\x44\x65leteState\x12).dapr.proto.runtime.v1.DeleteStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12Z\n\x0f\x44\x65leteBulkState\x12-.dapr.proto.runtime.v1.DeleteBulkStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12j\n\x17\x45xecuteStateTransaction\x12\x35.dapr.proto.runtime.v1.ExecuteStateTransactionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x0cPublishEvent\x12*.dapr.proto.runtime.v1.PublishEventRequest\x1a\x16.google.protobuf.Empty\"\x00\x12t\n\x16\x42ulkPublishEventAlpha1\x12).dapr.proto.runtime.v1.BulkPublishRequest\x1a*.dapr.proto.runtime.v1.BulkPublishResponse\"\x03\x88\x02\x01\x12k\n\x10\x42ulkPublishEvent\x12).dapr.proto.runtime.v1.BulkPublishRequest\x1a*.dapr.proto.runtime.v1.BulkPublishResponse\"\x00\x12\x97\x01\n\x1aSubscribeTopicEventsAlpha1\x12\x38.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1\x1a\x39.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1\"\x00(\x01\x30\x01\x12l\n\rInvokeBinding\x12+.dapr.proto.runtime.v1.InvokeBindingRequest\x1a,.dapr.proto.runtime.v1.InvokeBindingResponse\"\x00\x12`\n\tGetSecret\x12\'.dapr.proto.runtime.v1.GetSecretRequest\x1a(.dapr.proto.runtime.v1.GetSecretResponse\"\x00\x12l\n\rGetBulkSecret\x12+.dapr.proto.runtime.v1.GetBulkSecretRequest\x1a,.dapr.proto.runtime.v1.GetBulkSecretResponse\"\x00\x12`\n\x12RegisterActorTimer\x12\x30.dapr.proto.runtime.v1.RegisterActorTimerRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x64\n\x14UnregisterActorTimer\x12\x32.dapr.proto.runtime.v1.UnregisterActorTimerRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x66\n\x15RegisterActorReminder\x12\x33.dapr.proto.runtime.v1.RegisterActorReminderRequest\x1a\x16.google.protobuf.Empty\"\x00\x12j\n\x17UnregisterActorReminder\x12\x35.dapr.proto.runtime.v1.UnregisterActorReminderRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x9f\x01\n\x1eUnregisterActorRemindersByType\x12<.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest\x1a=.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse\"\x00\x12{\n\x12ListActorReminders\x12\x30.dapr.proto.runtime.v1.ListActorRemindersRequest\x1a\x31.dapr.proto.runtime.v1.ListActorRemindersResponse\"\x00\x12r\n\x0fListActorTimers\x12-.dapr.proto.runtime.v1.ListActorTimersRequest\x1a..dapr.proto.runtime.v1.ListActorTimersResponse\"\x00\x12l\n\rGetActorState\x12+.dapr.proto.runtime.v1.GetActorStateRequest\x1a,.dapr.proto.runtime.v1.GetActorStateResponse\"\x00\x12u\n\x10GetActorReminder\x12..dapr.proto.runtime.v1.GetActorReminderRequest\x1a/.dapr.proto.runtime.v1.GetActorReminderResponse\"\x00\x12l\n\rGetActorTimer\x12+.dapr.proto.runtime.v1.GetActorTimerRequest\x1a,.dapr.proto.runtime.v1.GetActorTimerResponse\"\x00\x12t\n\x1c\x45xecuteActorStateTransaction\x12:.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x66\n\x0bInvokeActor\x12).dapr.proto.runtime.v1.InvokeActorRequest\x1a*.dapr.proto.runtime.v1.InvokeActorResponse\"\x00\x12\x97\x01\n\x1aSubscribeActorEventsAlpha1\x12\x38.dapr.proto.runtime.v1.SubscribeActorEventsRequestAlpha1\x1a\x39.dapr.proto.runtime.v1.SubscribeActorEventsResponseAlpha1\"\x00(\x01\x30\x01\x12{\n\x16GetConfigurationAlpha1\x12..dapr.proto.runtime.v1.GetConfigurationRequest\x1a/.dapr.proto.runtime.v1.GetConfigurationResponse\"\x00\x12u\n\x10GetConfiguration\x12..dapr.proto.runtime.v1.GetConfigurationRequest\x1a/.dapr.proto.runtime.v1.GetConfigurationResponse\"\x00\x12\x8f\x01\n\x1cSubscribeConfigurationAlpha1\x12\x34.dapr.proto.runtime.v1.SubscribeConfigurationRequest\x1a\x35.dapr.proto.runtime.v1.SubscribeConfigurationResponse\"\x00\x30\x01\x12\x89\x01\n\x16SubscribeConfiguration\x12\x34.dapr.proto.runtime.v1.SubscribeConfigurationRequest\x1a\x35.dapr.proto.runtime.v1.SubscribeConfigurationResponse\"\x00\x30\x01\x12\x93\x01\n\x1eUnsubscribeConfigurationAlpha1\x12\x36.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest\x1a\x37.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse\"\x00\x12\x8d\x01\n\x18UnsubscribeConfiguration\x12\x36.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest\x1a\x37.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse\"\x00\x12`\n\rTryLockAlpha1\x12%.dapr.proto.runtime.v1.TryLockRequest\x1a&.dapr.proto.runtime.v1.TryLockResponse\"\x00\x12]\n\x0cUnlockAlpha1\x12$.dapr.proto.runtime.v1.UnlockRequest\x1a%.dapr.proto.runtime.v1.UnlockResponse\"\x00\x12\x62\n\rEncryptAlpha1\x12%.dapr.proto.runtime.v1.EncryptRequest\x1a&.dapr.proto.runtime.v1.EncryptResponse(\x01\x30\x01\x12\x62\n\rDecryptAlpha1\x12%.dapr.proto.runtime.v1.DecryptRequest\x1a&.dapr.proto.runtime.v1.DecryptResponse(\x01\x30\x01\x12\x66\n\x0bGetMetadata\x12).dapr.proto.runtime.v1.GetMetadataRequest\x1a*.dapr.proto.runtime.v1.GetMetadataResponse\"\x00\x12R\n\x0bSetMetadata\x12).dapr.proto.runtime.v1.SetMetadataRequest\x1a\x16.google.protobuf.Empty\"\x00\x12m\n\x12SubtleGetKeyAlpha1\x12*.dapr.proto.runtime.v1.SubtleGetKeyRequest\x1a+.dapr.proto.runtime.v1.SubtleGetKeyResponse\x12p\n\x13SubtleEncryptAlpha1\x12+.dapr.proto.runtime.v1.SubtleEncryptRequest\x1a,.dapr.proto.runtime.v1.SubtleEncryptResponse\x12p\n\x13SubtleDecryptAlpha1\x12+.dapr.proto.runtime.v1.SubtleDecryptRequest\x1a,.dapr.proto.runtime.v1.SubtleDecryptResponse\x12p\n\x13SubtleWrapKeyAlpha1\x12+.dapr.proto.runtime.v1.SubtleWrapKeyRequest\x1a,.dapr.proto.runtime.v1.SubtleWrapKeyResponse\x12v\n\x15SubtleUnwrapKeyAlpha1\x12-.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest\x1a..dapr.proto.runtime.v1.SubtleUnwrapKeyResponse\x12g\n\x10SubtleSignAlpha1\x12(.dapr.proto.runtime.v1.SubtleSignRequest\x1a).dapr.proto.runtime.v1.SubtleSignResponse\x12m\n\x12SubtleVerifyAlpha1\x12*.dapr.proto.runtime.v1.SubtleVerifyRequest\x1a+.dapr.proto.runtime.v1.SubtleVerifyResponse\x12u\n\x13StartWorkflowAlpha1\x12+.dapr.proto.runtime.v1.StartWorkflowRequest\x1a,.dapr.proto.runtime.v1.StartWorkflowResponse\"\x03\x88\x02\x01\x12o\n\x11GetWorkflowAlpha1\x12).dapr.proto.runtime.v1.GetWorkflowRequest\x1a*.dapr.proto.runtime.v1.GetWorkflowResponse\"\x03\x88\x02\x01\x12_\n\x13PurgeWorkflowAlpha1\x12+.dapr.proto.runtime.v1.PurgeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12g\n\x17TerminateWorkflowAlpha1\x12/.dapr.proto.runtime.v1.TerminateWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12_\n\x13PauseWorkflowAlpha1\x12+.dapr.proto.runtime.v1.PauseWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12\x61\n\x14ResumeWorkflowAlpha1\x12,.dapr.proto.runtime.v1.ResumeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12i\n\x18RaiseEventWorkflowAlpha1\x12\x30.dapr.proto.runtime.v1.RaiseEventWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12q\n\x12StartWorkflowBeta1\x12+.dapr.proto.runtime.v1.StartWorkflowRequest\x1a,.dapr.proto.runtime.v1.StartWorkflowResponse\"\x00\x12k\n\x10GetWorkflowBeta1\x12).dapr.proto.runtime.v1.GetWorkflowRequest\x1a*.dapr.proto.runtime.v1.GetWorkflowResponse\"\x00\x12[\n\x12PurgeWorkflowBeta1\x12+.dapr.proto.runtime.v1.PurgeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x63\n\x16TerminateWorkflowBeta1\x12/.dapr.proto.runtime.v1.TerminateWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12[\n\x12PauseWorkflowBeta1\x12+.dapr.proto.runtime.v1.PauseWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12]\n\x13ResumeWorkflowBeta1\x12,.dapr.proto.runtime.v1.ResumeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x65\n\x17RaiseEventWorkflowBeta1\x12\x30.dapr.proto.runtime.v1.RaiseEventWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\x08Shutdown\x12&.dapr.proto.runtime.v1.ShutdownRequest\x1a\x16.google.protobuf.Empty\"\x00\x12o\n\x11ScheduleJobAlpha1\x12).dapr.proto.runtime.v1.ScheduleJobRequest\x1a*.dapr.proto.runtime.v1.ScheduleJobResponse\"\x03\x88\x02\x01\x12\x66\n\x0bScheduleJob\x12).dapr.proto.runtime.v1.ScheduleJobRequest\x1a*.dapr.proto.runtime.v1.ScheduleJobResponse\"\x00\x12`\n\x0cGetJobAlpha1\x12$.dapr.proto.runtime.v1.GetJobRequest\x1a%.dapr.proto.runtime.v1.GetJobResponse\"\x03\x88\x02\x01\x12W\n\x06GetJob\x12$.dapr.proto.runtime.v1.GetJobRequest\x1a%.dapr.proto.runtime.v1.GetJobResponse\"\x00\x12i\n\x0f\x44\x65leteJobAlpha1\x12\'.dapr.proto.runtime.v1.DeleteJobRequest\x1a(.dapr.proto.runtime.v1.DeleteJobResponse\"\x03\x88\x02\x01\x12`\n\tDeleteJob\x12\'.dapr.proto.runtime.v1.DeleteJobRequest\x1a(.dapr.proto.runtime.v1.DeleteJobResponse\"\x00\x12\x90\x01\n\x18\x44\x65leteJobsByPrefixAlpha1\x12\x36.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1\x1a\x37.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1\"\x03\x88\x02\x01\x12{\n\x12\x44\x65leteJobsByPrefix\x12\x30.dapr.proto.runtime.v1.DeleteJobsByPrefixRequest\x1a\x31.dapr.proto.runtime.v1.DeleteJobsByPrefixResponse\"\x00\x12r\n\x0eListJobsAlpha1\x12,.dapr.proto.runtime.v1.ListJobsRequestAlpha1\x1a-.dapr.proto.runtime.v1.ListJobsResponseAlpha1\"\x03\x88\x02\x01\x12]\n\x08ListJobs\x12&.dapr.proto.runtime.v1.ListJobsRequest\x1a\'.dapr.proto.runtime.v1.ListJobsResponse\"\x00\x12k\n\x0e\x43onverseAlpha1\x12*.dapr.proto.runtime.v1.ConversationRequest\x1a+.dapr.proto.runtime.v1.ConversationResponse\"\x00\x12w\n\x0e\x43onverseAlpha2\x12\x30.dapr.proto.runtime.v1.ConversationRequestAlpha2\x1a\x31.dapr.proto.runtime.v1.ConversationResponseAlpha2\"\x00\x42i\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\xaa\x02\x1b\x44\x61pr.Client.Autogen.Grpc.v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n dapr/proto/runtime/v1/dapr.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a!dapr/proto/common/v1/common.proto\x1a\"dapr/proto/runtime/v1/actors.proto\x1a\"dapr/proto/runtime/v1/pubsub.proto\x1a\"dapr/proto/runtime/v1/invoke.proto\x1a!dapr/proto/runtime/v1/state.proto\x1a#dapr/proto/runtime/v1/binding.proto\x1a\"dapr/proto/runtime/v1/secret.proto\x1a$dapr/proto/runtime/v1/metadata.proto\x1a)dapr/proto/runtime/v1/configuration.proto\x1a dapr/proto/runtime/v1/lock.proto\x1a\"dapr/proto/runtime/v1/crypto.proto\x1a$dapr/proto/runtime/v1/workflow.proto\x1a dapr/proto/runtime/v1/jobs.proto\x1a\x1e\x64\x61pr/proto/runtime/v1/ai.proto\x1a\"dapr/proto/runtime/v1/search.proto\x1a\"dapr/proto/runtime/v1/vector.proto\x1a\'dapr/proto/runtime/v1/binarystore.proto\"\x11\n\x0fShutdownRequest2\xd2R\n\x04\x44\x61pr\x12\x64\n\rInvokeService\x12+.dapr.proto.runtime.v1.InvokeServiceRequest\x1a$.dapr.proto.common.v1.InvokeResponse\"\x00\x12]\n\x08GetState\x12&.dapr.proto.runtime.v1.GetStateRequest\x1a\'.dapr.proto.runtime.v1.GetStateResponse\"\x00\x12i\n\x0cGetBulkState\x12*.dapr.proto.runtime.v1.GetBulkStateRequest\x1a+.dapr.proto.runtime.v1.GetBulkStateResponse\"\x00\x12N\n\tSaveState\x12\'.dapr.proto.runtime.v1.SaveStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12i\n\x10QueryStateAlpha1\x12(.dapr.proto.runtime.v1.QueryStateRequest\x1a).dapr.proto.runtime.v1.QueryStateResponse\"\x00\x12R\n\x0b\x44\x65leteState\x12).dapr.proto.runtime.v1.DeleteStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12Z\n\x0f\x44\x65leteBulkState\x12-.dapr.proto.runtime.v1.DeleteBulkStateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12j\n\x17\x45xecuteStateTransaction\x12\x35.dapr.proto.runtime.v1.ExecuteStateTransactionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x0cPublishEvent\x12*.dapr.proto.runtime.v1.PublishEventRequest\x1a\x16.google.protobuf.Empty\"\x00\x12t\n\x16\x42ulkPublishEventAlpha1\x12).dapr.proto.runtime.v1.BulkPublishRequest\x1a*.dapr.proto.runtime.v1.BulkPublishResponse\"\x03\x88\x02\x01\x12k\n\x10\x42ulkPublishEvent\x12).dapr.proto.runtime.v1.BulkPublishRequest\x1a*.dapr.proto.runtime.v1.BulkPublishResponse\"\x00\x12\x97\x01\n\x1aSubscribeTopicEventsAlpha1\x12\x38.dapr.proto.runtime.v1.SubscribeTopicEventsRequestAlpha1\x1a\x39.dapr.proto.runtime.v1.SubscribeTopicEventsResponseAlpha1\"\x00(\x01\x30\x01\x12l\n\rInvokeBinding\x12+.dapr.proto.runtime.v1.InvokeBindingRequest\x1a,.dapr.proto.runtime.v1.InvokeBindingResponse\"\x00\x12`\n\tGetSecret\x12\'.dapr.proto.runtime.v1.GetSecretRequest\x1a(.dapr.proto.runtime.v1.GetSecretResponse\"\x00\x12l\n\rGetBulkSecret\x12+.dapr.proto.runtime.v1.GetBulkSecretRequest\x1a,.dapr.proto.runtime.v1.GetBulkSecretResponse\"\x00\x12`\n\x12RegisterActorTimer\x12\x30.dapr.proto.runtime.v1.RegisterActorTimerRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x64\n\x14UnregisterActorTimer\x12\x32.dapr.proto.runtime.v1.UnregisterActorTimerRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x66\n\x15RegisterActorReminder\x12\x33.dapr.proto.runtime.v1.RegisterActorReminderRequest\x1a\x16.google.protobuf.Empty\"\x00\x12j\n\x17UnregisterActorReminder\x12\x35.dapr.proto.runtime.v1.UnregisterActorReminderRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x9f\x01\n\x1eUnregisterActorRemindersByType\x12<.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeRequest\x1a=.dapr.proto.runtime.v1.UnregisterActorRemindersByTypeResponse\"\x00\x12{\n\x12ListActorReminders\x12\x30.dapr.proto.runtime.v1.ListActorRemindersRequest\x1a\x31.dapr.proto.runtime.v1.ListActorRemindersResponse\"\x00\x12r\n\x0fListActorTimers\x12-.dapr.proto.runtime.v1.ListActorTimersRequest\x1a..dapr.proto.runtime.v1.ListActorTimersResponse\"\x00\x12l\n\rGetActorState\x12+.dapr.proto.runtime.v1.GetActorStateRequest\x1a,.dapr.proto.runtime.v1.GetActorStateResponse\"\x00\x12u\n\x10GetActorReminder\x12..dapr.proto.runtime.v1.GetActorReminderRequest\x1a/.dapr.proto.runtime.v1.GetActorReminderResponse\"\x00\x12l\n\rGetActorTimer\x12+.dapr.proto.runtime.v1.GetActorTimerRequest\x1a,.dapr.proto.runtime.v1.GetActorTimerResponse\"\x00\x12t\n\x1c\x45xecuteActorStateTransaction\x12:.dapr.proto.runtime.v1.ExecuteActorStateTransactionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x66\n\x0bInvokeActor\x12).dapr.proto.runtime.v1.InvokeActorRequest\x1a*.dapr.proto.runtime.v1.InvokeActorResponse\"\x00\x12\x97\x01\n\x1aSubscribeActorEventsAlpha1\x12\x38.dapr.proto.runtime.v1.SubscribeActorEventsRequestAlpha1\x1a\x39.dapr.proto.runtime.v1.SubscribeActorEventsResponseAlpha1\"\x00(\x01\x30\x01\x12{\n\x16GetConfigurationAlpha1\x12..dapr.proto.runtime.v1.GetConfigurationRequest\x1a/.dapr.proto.runtime.v1.GetConfigurationResponse\"\x00\x12u\n\x10GetConfiguration\x12..dapr.proto.runtime.v1.GetConfigurationRequest\x1a/.dapr.proto.runtime.v1.GetConfigurationResponse\"\x00\x12\x8f\x01\n\x1cSubscribeConfigurationAlpha1\x12\x34.dapr.proto.runtime.v1.SubscribeConfigurationRequest\x1a\x35.dapr.proto.runtime.v1.SubscribeConfigurationResponse\"\x00\x30\x01\x12\x89\x01\n\x16SubscribeConfiguration\x12\x34.dapr.proto.runtime.v1.SubscribeConfigurationRequest\x1a\x35.dapr.proto.runtime.v1.SubscribeConfigurationResponse\"\x00\x30\x01\x12\x93\x01\n\x1eUnsubscribeConfigurationAlpha1\x12\x36.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest\x1a\x37.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse\"\x00\x12\x8d\x01\n\x18UnsubscribeConfiguration\x12\x36.dapr.proto.runtime.v1.UnsubscribeConfigurationRequest\x1a\x37.dapr.proto.runtime.v1.UnsubscribeConfigurationResponse\"\x00\x12`\n\rTryLockAlpha1\x12%.dapr.proto.runtime.v1.TryLockRequest\x1a&.dapr.proto.runtime.v1.TryLockResponse\"\x00\x12]\n\x0cUnlockAlpha1\x12$.dapr.proto.runtime.v1.UnlockRequest\x1a%.dapr.proto.runtime.v1.UnlockResponse\"\x00\x12\x62\n\rEncryptAlpha1\x12%.dapr.proto.runtime.v1.EncryptRequest\x1a&.dapr.proto.runtime.v1.EncryptResponse(\x01\x30\x01\x12\x62\n\rDecryptAlpha1\x12%.dapr.proto.runtime.v1.DecryptRequest\x1a&.dapr.proto.runtime.v1.DecryptResponse(\x01\x30\x01\x12\x66\n\x0bGetMetadata\x12).dapr.proto.runtime.v1.GetMetadataRequest\x1a*.dapr.proto.runtime.v1.GetMetadataResponse\"\x00\x12R\n\x0bSetMetadata\x12).dapr.proto.runtime.v1.SetMetadataRequest\x1a\x16.google.protobuf.Empty\"\x00\x12m\n\x12SubtleGetKeyAlpha1\x12*.dapr.proto.runtime.v1.SubtleGetKeyRequest\x1a+.dapr.proto.runtime.v1.SubtleGetKeyResponse\x12p\n\x13SubtleEncryptAlpha1\x12+.dapr.proto.runtime.v1.SubtleEncryptRequest\x1a,.dapr.proto.runtime.v1.SubtleEncryptResponse\x12p\n\x13SubtleDecryptAlpha1\x12+.dapr.proto.runtime.v1.SubtleDecryptRequest\x1a,.dapr.proto.runtime.v1.SubtleDecryptResponse\x12p\n\x13SubtleWrapKeyAlpha1\x12+.dapr.proto.runtime.v1.SubtleWrapKeyRequest\x1a,.dapr.proto.runtime.v1.SubtleWrapKeyResponse\x12v\n\x15SubtleUnwrapKeyAlpha1\x12-.dapr.proto.runtime.v1.SubtleUnwrapKeyRequest\x1a..dapr.proto.runtime.v1.SubtleUnwrapKeyResponse\x12g\n\x10SubtleSignAlpha1\x12(.dapr.proto.runtime.v1.SubtleSignRequest\x1a).dapr.proto.runtime.v1.SubtleSignResponse\x12m\n\x12SubtleVerifyAlpha1\x12*.dapr.proto.runtime.v1.SubtleVerifyRequest\x1a+.dapr.proto.runtime.v1.SubtleVerifyResponse\x12u\n\x13StartWorkflowAlpha1\x12+.dapr.proto.runtime.v1.StartWorkflowRequest\x1a,.dapr.proto.runtime.v1.StartWorkflowResponse\"\x03\x88\x02\x01\x12o\n\x11GetWorkflowAlpha1\x12).dapr.proto.runtime.v1.GetWorkflowRequest\x1a*.dapr.proto.runtime.v1.GetWorkflowResponse\"\x03\x88\x02\x01\x12_\n\x13PurgeWorkflowAlpha1\x12+.dapr.proto.runtime.v1.PurgeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12g\n\x17TerminateWorkflowAlpha1\x12/.dapr.proto.runtime.v1.TerminateWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12_\n\x13PauseWorkflowAlpha1\x12+.dapr.proto.runtime.v1.PauseWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12\x61\n\x14ResumeWorkflowAlpha1\x12,.dapr.proto.runtime.v1.ResumeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12i\n\x18RaiseEventWorkflowAlpha1\x12\x30.dapr.proto.runtime.v1.RaiseEventWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x03\x88\x02\x01\x12q\n\x12StartWorkflowBeta1\x12+.dapr.proto.runtime.v1.StartWorkflowRequest\x1a,.dapr.proto.runtime.v1.StartWorkflowResponse\"\x00\x12k\n\x10GetWorkflowBeta1\x12).dapr.proto.runtime.v1.GetWorkflowRequest\x1a*.dapr.proto.runtime.v1.GetWorkflowResponse\"\x00\x12[\n\x12PurgeWorkflowBeta1\x12+.dapr.proto.runtime.v1.PurgeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x63\n\x16TerminateWorkflowBeta1\x12/.dapr.proto.runtime.v1.TerminateWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12[\n\x12PauseWorkflowBeta1\x12+.dapr.proto.runtime.v1.PauseWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12]\n\x13ResumeWorkflowBeta1\x12,.dapr.proto.runtime.v1.ResumeWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x65\n\x17RaiseEventWorkflowBeta1\x12\x30.dapr.proto.runtime.v1.RaiseEventWorkflowRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\x08Shutdown\x12&.dapr.proto.runtime.v1.ShutdownRequest\x1a\x16.google.protobuf.Empty\"\x00\x12o\n\x11ScheduleJobAlpha1\x12).dapr.proto.runtime.v1.ScheduleJobRequest\x1a*.dapr.proto.runtime.v1.ScheduleJobResponse\"\x03\x88\x02\x01\x12\x66\n\x0bScheduleJob\x12).dapr.proto.runtime.v1.ScheduleJobRequest\x1a*.dapr.proto.runtime.v1.ScheduleJobResponse\"\x00\x12`\n\x0cGetJobAlpha1\x12$.dapr.proto.runtime.v1.GetJobRequest\x1a%.dapr.proto.runtime.v1.GetJobResponse\"\x03\x88\x02\x01\x12W\n\x06GetJob\x12$.dapr.proto.runtime.v1.GetJobRequest\x1a%.dapr.proto.runtime.v1.GetJobResponse\"\x00\x12i\n\x0f\x44\x65leteJobAlpha1\x12\'.dapr.proto.runtime.v1.DeleteJobRequest\x1a(.dapr.proto.runtime.v1.DeleteJobResponse\"\x03\x88\x02\x01\x12`\n\tDeleteJob\x12\'.dapr.proto.runtime.v1.DeleteJobRequest\x1a(.dapr.proto.runtime.v1.DeleteJobResponse\"\x00\x12\x90\x01\n\x18\x44\x65leteJobsByPrefixAlpha1\x12\x36.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1\x1a\x37.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1\"\x03\x88\x02\x01\x12{\n\x12\x44\x65leteJobsByPrefix\x12\x30.dapr.proto.runtime.v1.DeleteJobsByPrefixRequest\x1a\x31.dapr.proto.runtime.v1.DeleteJobsByPrefixResponse\"\x00\x12r\n\x0eListJobsAlpha1\x12,.dapr.proto.runtime.v1.ListJobsRequestAlpha1\x1a-.dapr.proto.runtime.v1.ListJobsResponseAlpha1\"\x03\x88\x02\x01\x12]\n\x08ListJobs\x12&.dapr.proto.runtime.v1.ListJobsRequest\x1a\'.dapr.proto.runtime.v1.ListJobsResponse\"\x00\x12k\n\x0e\x43onverseAlpha1\x12*.dapr.proto.runtime.v1.ConversationRequest\x1a+.dapr.proto.runtime.v1.ConversationResponse\"\x00\x12w\n\x0e\x43onverseAlpha2\x12\x30.dapr.proto.runtime.v1.ConversationRequestAlpha2\x1a\x31.dapr.proto.runtime.v1.ConversationResponseAlpha2\"\x00\x12^\n\x11\x43reateIndexAlpha1\x12/.dapr.proto.runtime.v1.CreateIndexRequestAlpha1\x1a\x16.google.protobuf.Empty\"\x00\x12o\n\x0eGetIndexAlpha1\x12,.dapr.proto.runtime.v1.GetIndexRequestAlpha1\x1a-.dapr.proto.runtime.v1.GetIndexResponseAlpha1\"\x00\x12x\n\x11ListIndexesAlpha1\x12/.dapr.proto.runtime.v1.ListIndexesRequestAlpha1\x1a\x30.dapr.proto.runtime.v1.ListIndexesResponseAlpha1\"\x00\x12^\n\x11\x44\x65leteIndexAlpha1\x12/.dapr.proto.runtime.v1.DeleteIndexRequestAlpha1\x1a\x16.google.protobuf.Empty\"\x00\x12\x81\x01\n\x14IndexDocumentsAlpha1\x12\x32.dapr.proto.runtime.v1.IndexDocumentsRequestAlpha1\x1a\x33.dapr.proto.runtime.v1.IndexDocumentsResponseAlpha1\"\x00\x12{\n\x12GetDocumentsAlpha1\x12\x30.dapr.proto.runtime.v1.GetDocumentsRequestAlpha1\x1a\x31.dapr.proto.runtime.v1.GetDocumentsResponseAlpha1\"\x00\x12\x84\x01\n\x15\x44\x65leteDocumentsAlpha1\x12\x33.dapr.proto.runtime.v1.DeleteDocumentsRequestAlpha1\x1a\x34.dapr.proto.runtime.v1.DeleteDocumentsResponseAlpha1\"\x00\x12i\n\x0cSearchAlpha1\x12*.dapr.proto.runtime.v1.SearchRequestAlpha1\x1a+.dapr.proto.runtime.v1.SearchResponseAlpha1\"\x00\x12h\n\x16\x43reateCollectionAlpha1\x12\x34.dapr.proto.runtime.v1.CreateCollectionRequestAlpha1\x1a\x16.google.protobuf.Empty\"\x00\x12~\n\x13GetCollectionAlpha1\x12\x31.dapr.proto.runtime.v1.GetCollectionRequestAlpha1\x1a\x32.dapr.proto.runtime.v1.GetCollectionResponseAlpha1\"\x00\x12\x84\x01\n\x15ListCollectionsAlpha1\x12\x33.dapr.proto.runtime.v1.ListCollectionsRequestAlpha1\x1a\x34.dapr.proto.runtime.v1.ListCollectionsResponseAlpha1\"\x00\x12h\n\x16\x44\x65leteCollectionAlpha1\x12\x34.dapr.proto.runtime.v1.DeleteCollectionRequestAlpha1\x1a\x16.google.protobuf.Empty\"\x00\x12~\n\x13UpsertVectorsAlpha1\x12\x31.dapr.proto.runtime.v1.UpsertVectorsRequestAlpha1\x1a\x32.dapr.proto.runtime.v1.UpsertVectorsResponseAlpha1\"\x00\x12~\n\x13\x44\x65leteVectorsAlpha1\x12\x31.dapr.proto.runtime.v1.DeleteVectorsRequestAlpha1\x1a\x32.dapr.proto.runtime.v1.DeleteVectorsResponseAlpha1\"\x00\x12u\n\x10GetVectorsAlpha1\x12..dapr.proto.runtime.v1.GetVectorsRequestAlpha1\x1a/.dapr.proto.runtime.v1.GetVectorsResponseAlpha1\"\x00\x12{\n\x12QueryVectorsAlpha1\x12\x30.dapr.proto.runtime.v1.QueryVectorsRequestAlpha1\x1a\x31.dapr.proto.runtime.v1.QueryVectorsResponseAlpha1\"\x00\x12\x8a\x01\n\x17\x42\x61tchQueryVectorsAlpha1\x12\x35.dapr.proto.runtime.v1.BatchQueryVectorsRequestAlpha1\x1a\x36.dapr.proto.runtime.v1.BatchQueryVectorsResponseAlpha1\"\x00\x12\x80\x01\n\x13SetBinaryFileAlpha1\x12\x31.dapr.proto.runtime.v1.SetBinaryFileRequestAlpha1\x1a\x32.dapr.proto.runtime.v1.SetBinaryFileResponseAlpha1\"\x00(\x01\x12\x80\x01\n\x13GetBinaryFileAlpha1\x12\x31.dapr.proto.runtime.v1.GetBinaryFileRequestAlpha1\x1a\x32.dapr.proto.runtime.v1.GetBinaryFileResponseAlpha1\"\x00\x30\x01\x12\x87\x01\n\x16\x44\x65leteBinaryFileAlpha1\x12\x34.dapr.proto.runtime.v1.DeleteBinaryFileRequestAlpha1\x1a\x35.dapr.proto.runtime.v1.DeleteBinaryFileResponseAlpha1\"\x00\x42i\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\xaa\x02\x1b\x44\x61pr.Client.Autogen.Grpc.v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -73,8 +76,8 @@ _globals['_DAPR'].methods_by_name['DeleteJobsByPrefixAlpha1']._serialized_options = b'\210\002\001' _globals['_DAPR'].methods_by_name['ListJobsAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['ListJobsAlpha1']._serialized_options = b'\210\002\001' - _globals['_SHUTDOWNREQUEST']._serialized_start=594 - _globals['_SHUTDOWNREQUEST']._serialized_end=611 - _globals['_DAPR']._serialized_start=614 - _globals['_DAPR']._serialized_end=8750 + _globals['_SHUTDOWNREQUEST']._serialized_start=707 + _globals['_SHUTDOWNREQUEST']._serialized_end=724 + _globals['_DAPR']._serialized_start=727 + _globals['_DAPR']._serialized_end=11305 # @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/dapr_pb2_grpc.py b/dapr/proto/runtime/v1/dapr_pb2_grpc.py index aa5618a69..2b472bd58 100644 --- a/dapr/proto/runtime/v1/dapr_pb2_grpc.py +++ b/dapr/proto/runtime/v1/dapr_pb2_grpc.py @@ -6,6 +6,7 @@ from dapr.proto.common.v1 import common_pb2 as dapr_dot_proto_dot_common_dot_v1_dot_common__pb2 from dapr.proto.runtime.v1 import actors_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2 from dapr.proto.runtime.v1 import ai_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2 +from dapr.proto.runtime.v1 import binarystore_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2 from dapr.proto.runtime.v1 import binding_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_binding__pb2 from dapr.proto.runtime.v1 import configuration_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2 from dapr.proto.runtime.v1 import crypto_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2 @@ -15,8 +16,10 @@ from dapr.proto.runtime.v1 import lock_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2 from dapr.proto.runtime.v1 import metadata_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2 from dapr.proto.runtime.v1 import pubsub_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2 +from dapr.proto.runtime.v1 import search_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2 from dapr.proto.runtime.v1 import secret_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2 from dapr.proto.runtime.v1 import state_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2 +from dapr.proto.runtime.v1 import vector_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2 from dapr.proto.runtime.v1 import workflow_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -420,6 +423,106 @@ def __init__(self, channel): request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationRequestAlpha2.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationResponseAlpha2.FromString, _registered_method=True) + self.CreateIndexAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/CreateIndexAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.CreateIndexRequestAlpha1.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.GetIndexAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/GetIndexAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetIndexRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetIndexResponseAlpha1.FromString, + _registered_method=True) + self.ListIndexesAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/ListIndexesAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.ListIndexesRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.ListIndexesResponseAlpha1.FromString, + _registered_method=True) + self.DeleteIndexAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/DeleteIndexAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteIndexRequestAlpha1.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.IndexDocumentsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/IndexDocumentsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.IndexDocumentsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.IndexDocumentsResponseAlpha1.FromString, + _registered_method=True) + self.GetDocumentsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/GetDocumentsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetDocumentsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetDocumentsResponseAlpha1.FromString, + _registered_method=True) + self.DeleteDocumentsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/DeleteDocumentsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteDocumentsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteDocumentsResponseAlpha1.FromString, + _registered_method=True) + self.SearchAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/SearchAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.SearchRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.SearchResponseAlpha1.FromString, + _registered_method=True) + self.CreateCollectionAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/CreateCollectionAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.CreateCollectionRequestAlpha1.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.GetCollectionAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/GetCollectionAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetCollectionRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetCollectionResponseAlpha1.FromString, + _registered_method=True) + self.ListCollectionsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/ListCollectionsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.ListCollectionsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.ListCollectionsResponseAlpha1.FromString, + _registered_method=True) + self.DeleteCollectionAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/DeleteCollectionAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteCollectionRequestAlpha1.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.UpsertVectorsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/UpsertVectorsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.UpsertVectorsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.UpsertVectorsResponseAlpha1.FromString, + _registered_method=True) + self.DeleteVectorsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/DeleteVectorsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteVectorsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteVectorsResponseAlpha1.FromString, + _registered_method=True) + self.GetVectorsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/GetVectorsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetVectorsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetVectorsResponseAlpha1.FromString, + _registered_method=True) + self.QueryVectorsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/QueryVectorsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.QueryVectorsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.QueryVectorsResponseAlpha1.FromString, + _registered_method=True) + self.BatchQueryVectorsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/BatchQueryVectorsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.BatchQueryVectorsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.BatchQueryVectorsResponseAlpha1.FromString, + _registered_method=True) + self.SetBinaryFileAlpha1 = channel.stream_unary( + '/dapr.proto.runtime.v1.Dapr/SetBinaryFileAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.SetBinaryFileRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.SetBinaryFileResponseAlpha1.FromString, + _registered_method=True) + self.GetBinaryFileAlpha1 = channel.unary_stream( + '/dapr.proto.runtime.v1.Dapr/GetBinaryFileAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.GetBinaryFileRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.GetBinaryFileResponseAlpha1.FromString, + _registered_method=True) + self.DeleteBinaryFileAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/DeleteBinaryFileAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.DeleteBinaryFileRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.DeleteBinaryFileResponseAlpha1.FromString, + _registered_method=True) class DaprServicer: @@ -949,6 +1052,154 @@ def ConverseAlpha2(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def CreateIndexAlpha1(self, request, context): + """Search building block (alpha1) - lexical / structured search. + See dapr/proto/runtime/v1/search.proto for type and semantics docs. + + Create an index. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetIndexAlpha1(self, request, context): + """Get an index. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListIndexesAlpha1(self, request, context): + """List indexes. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteIndexAlpha1(self, request, context): + """Delete an index. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IndexDocumentsAlpha1(self, request, context): + """Index (keyed upsert) documents. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDocumentsAlpha1(self, request, context): + """Get documents by ID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteDocumentsAlpha1(self, request, context): + """Delete documents by ID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SearchAlpha1(self, request, context): + """Search an index. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateCollectionAlpha1(self, request, context): + """Vector building block (alpha1) - vector similarity search. + See dapr/proto/runtime/v1/vector.proto for type and semantics docs. + + Create a collection. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCollectionAlpha1(self, request, context): + """Get a collection. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListCollectionsAlpha1(self, request, context): + """List collections. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteCollectionAlpha1(self, request, context): + """Delete a collection. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpsertVectorsAlpha1(self, request, context): + """Upsert (keyed) vectors. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteVectorsAlpha1(self, request, context): + """Delete vectors by ID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetVectorsAlpha1(self, request, context): + """Get vectors by ID. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryVectorsAlpha1(self, request, context): + """Query vectors. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BatchQueryVectorsAlpha1(self, request, context): + """Issue multiple queries against the same collection, each succeeding or + failing on its own. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetBinaryFileAlpha1(self, request_iterator, context): + """Stores a binary file using a streaming request. The first message must + contain the options; subsequent messages carry the file content as chunks. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetBinaryFileAlpha1(self, request, context): + """Retrieves a binary file as a stream of chunks. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteBinaryFileAlpha1(self, request, context): + """Deletes a binary file. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_DaprServicer_to_server(servicer, server): rpc_method_handlers = { @@ -1322,6 +1573,106 @@ def add_DaprServicer_to_server(servicer, server): request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationRequestAlpha2.FromString, response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationResponseAlpha2.SerializeToString, ), + 'CreateIndexAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.CreateIndexAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.CreateIndexRequestAlpha1.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'GetIndexAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.GetIndexAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetIndexRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetIndexResponseAlpha1.SerializeToString, + ), + 'ListIndexesAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.ListIndexesAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.ListIndexesRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.ListIndexesResponseAlpha1.SerializeToString, + ), + 'DeleteIndexAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.DeleteIndexAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteIndexRequestAlpha1.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'IndexDocumentsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.IndexDocumentsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.IndexDocumentsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.IndexDocumentsResponseAlpha1.SerializeToString, + ), + 'GetDocumentsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.GetDocumentsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetDocumentsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetDocumentsResponseAlpha1.SerializeToString, + ), + 'DeleteDocumentsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.DeleteDocumentsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteDocumentsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteDocumentsResponseAlpha1.SerializeToString, + ), + 'SearchAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.SearchAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.SearchRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.SearchResponseAlpha1.SerializeToString, + ), + 'CreateCollectionAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.CreateCollectionAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.CreateCollectionRequestAlpha1.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'GetCollectionAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.GetCollectionAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetCollectionRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetCollectionResponseAlpha1.SerializeToString, + ), + 'ListCollectionsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.ListCollectionsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.ListCollectionsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.ListCollectionsResponseAlpha1.SerializeToString, + ), + 'DeleteCollectionAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.DeleteCollectionAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteCollectionRequestAlpha1.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'UpsertVectorsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.UpsertVectorsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.UpsertVectorsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.UpsertVectorsResponseAlpha1.SerializeToString, + ), + 'DeleteVectorsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.DeleteVectorsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteVectorsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteVectorsResponseAlpha1.SerializeToString, + ), + 'GetVectorsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.GetVectorsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetVectorsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetVectorsResponseAlpha1.SerializeToString, + ), + 'QueryVectorsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.QueryVectorsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.QueryVectorsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.QueryVectorsResponseAlpha1.SerializeToString, + ), + 'BatchQueryVectorsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.BatchQueryVectorsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.BatchQueryVectorsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.BatchQueryVectorsResponseAlpha1.SerializeToString, + ), + 'SetBinaryFileAlpha1': grpc.stream_unary_rpc_method_handler( + servicer.SetBinaryFileAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.SetBinaryFileRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.SetBinaryFileResponseAlpha1.SerializeToString, + ), + 'GetBinaryFileAlpha1': grpc.unary_stream_rpc_method_handler( + servicer.GetBinaryFileAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.GetBinaryFileRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.GetBinaryFileResponseAlpha1.SerializeToString, + ), + 'DeleteBinaryFileAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.DeleteBinaryFileAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.DeleteBinaryFileRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.DeleteBinaryFileResponseAlpha1.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'dapr.proto.runtime.v1.Dapr', rpc_method_handlers) @@ -3331,3 +3682,543 @@ def ConverseAlpha2(request, timeout, metadata, _registered_method=True) + + @staticmethod + def CreateIndexAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/CreateIndexAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.CreateIndexRequestAlpha1.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def GetIndexAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetIndexAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetIndexRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetIndexResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def ListIndexesAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ListIndexesAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.ListIndexesRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.ListIndexesResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def DeleteIndexAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteIndexAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteIndexRequestAlpha1.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def IndexDocumentsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/IndexDocumentsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.IndexDocumentsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.IndexDocumentsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def GetDocumentsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetDocumentsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetDocumentsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.GetDocumentsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def DeleteDocumentsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteDocumentsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteDocumentsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.DeleteDocumentsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def SearchAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SearchAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.SearchRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2.SearchResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def CreateCollectionAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/CreateCollectionAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.CreateCollectionRequestAlpha1.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def GetCollectionAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetCollectionAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetCollectionRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetCollectionResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def ListCollectionsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ListCollectionsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.ListCollectionsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.ListCollectionsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def DeleteCollectionAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteCollectionAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteCollectionRequestAlpha1.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def UpsertVectorsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/UpsertVectorsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.UpsertVectorsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.UpsertVectorsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def DeleteVectorsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteVectorsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteVectorsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.DeleteVectorsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def GetVectorsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetVectorsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetVectorsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.GetVectorsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def QueryVectorsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/QueryVectorsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.QueryVectorsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.QueryVectorsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def BatchQueryVectorsAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/BatchQueryVectorsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.BatchQueryVectorsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_vector__pb2.BatchQueryVectorsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def SetBinaryFileAlpha1(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_unary( + request_iterator, + target, + '/dapr.proto.runtime.v1.Dapr/SetBinaryFileAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.SetBinaryFileRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.SetBinaryFileResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def GetBinaryFileAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetBinaryFileAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.GetBinaryFileRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.GetBinaryFileResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def DeleteBinaryFileAlpha1(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteBinaryFileAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.DeleteBinaryFileRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_binarystore__pb2.DeleteBinaryFileResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dapr/proto/runtime/v1/search_pb2.py b/dapr/proto/runtime/v1/search_pb2.py new file mode 100644 index 000000000..89531a156 --- /dev/null +++ b/dapr/proto/runtime/v1/search_pb2.py @@ -0,0 +1,132 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/search.proto +# Protobuf Python Version: 6.33.5 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 5, + '', + 'dapr/proto/runtime/v1/search.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"dapr/proto/runtime/v1/search.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\"\xa5\x01\n\x0eSearchDocument\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\x12\x45\n\x08metadata\x18\x03 \x03(\x0b\x32\x33.dapr.proto.runtime.v1.SearchDocument.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcc\x01\n\tSearchHit\x12\x37\n\x08\x64ocument\x18\x01 \x01(\x0b\x32%.dapr.proto.runtime.v1.SearchDocument\x12\r\n\x05score\x18\x02 \x01(\x01\x12\x44\n\nhighlights\x18\x03 \x03(\x0b\x32\x30.dapr.proto.runtime.v1.SearchHit.HighlightsEntry\x1a\x31\n\x0fHighlightsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"L\n\nSortClause\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12/\n\x05order\x18\x02 \x01(\x0e\x32 .dapr.proto.runtime.v1.SortOrder\"\xdc\x01\n\x15IndexingOptionsAlpha1\x12\x31\n\x04mode\x18\x01 \x01(\x0e\x32#.dapr.proto.runtime.v1.IndexingMode\x12\x34\n\x0cwait_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x88\x01\x01\x12I\n\x0fon_wait_timeout\x18\x03 \x01(\x0e\x32\x30.dapr.proto.runtime.v1.IndexingWaitTimeoutActionB\x0f\n\r_wait_timeout\";\n\nFailedItem\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"\xbf\x01\n\x18\x43reateIndexRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\t\x12O\n\x08metadata\x18\x03 \x03(\x0b\x32=.dapr.proto.runtime.v1.CreateIndexRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb9\x01\n\x15GetIndexRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\t\x12L\n\x08metadata\x18\x03 \x03(\x0b\x32:.dapr.proto.runtime.v1.GetIndexRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc5\x01\n\x16GetIndexResponseAlpha1\x12\r\n\x05index\x18\x01 \x01(\t\x12\x16\n\x0e\x64ocument_count\x18\x02 \x01(\x04\x12Q\n\nproperties\x18\x03 \x03(\x0b\x32=.dapr.proto.runtime.v1.GetIndexResponseAlpha1.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb0\x01\n\x18ListIndexesRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12O\n\x08metadata\x18\x02 \x03(\x0b\x32=.dapr.proto.runtime.v1.ListIndexesRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\",\n\x19ListIndexesResponseAlpha1\x12\x0f\n\x07indexes\x18\x01 \x03(\t\"\xbf\x01\n\x18\x44\x65leteIndexRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\t\x12O\n\x08metadata\x18\x03 \x03(\x0b\x32=.dapr.proto.runtime.v1.DeleteIndexRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcf\x02\n\x1bIndexDocumentsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\t\x12\x38\n\tdocuments\x18\x03 \x03(\x0b\x32%.dapr.proto.runtime.v1.SearchDocument\x12R\n\x08metadata\x18\x04 \x03(\x0b\x32@.dapr.proto.runtime.v1.IndexDocumentsRequestAlpha1.MetadataEntry\x12\x42\n\x07options\x18\x05 \x01(\x0b\x32,.dapr.proto.runtime.v1.IndexingOptionsAlpha1H\x00\x88\x01\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08_options\"\x85\x01\n\x1cIndexDocumentsResponseAlpha1\x12\x37\n\x0c\x66\x61iled_items\x18\x01 \x03(\x0b\x32!.dapr.proto.runtime.v1.FailedItem\x12,\n\x03\x61\x63k\x18\x02 \x01(\x0e\x32\x1f.dapr.proto.runtime.v1.IndexAck\"\x80\x02\n\x19GetDocumentsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\t\x12\x0b\n\x03ids\x18\x03 \x03(\t\x12\x1c\n\x0finclude_content\x18\x04 \x01(\x08H\x00\x88\x01\x01\x12P\n\x08metadata\x18\x05 \x03(\x0b\x32>.dapr.proto.runtime.v1.GetDocumentsRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x12\n\x10_include_content\"V\n\x1aGetDocumentsResponseAlpha1\x12\x38\n\tdocuments\x18\x01 \x03(\x0b\x32%.dapr.proto.runtime.v1.SearchDocument\"\xa4\x02\n\x1c\x44\x65leteDocumentsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\t\x12\x0b\n\x03ids\x18\x03 \x03(\t\x12S\n\x08metadata\x18\x04 \x03(\x0b\x32\x41.dapr.proto.runtime.v1.DeleteDocumentsRequestAlpha1.MetadataEntry\x12\x42\n\x07options\x18\x05 \x01(\x0b\x32,.dapr.proto.runtime.v1.IndexingOptionsAlpha1H\x00\x88\x01\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08_options\"M\n\x1d\x44\x65leteDocumentsResponseAlpha1\x12,\n\x03\x61\x63k\x18\x01 \x01(\x0e\x32\x1f.dapr.proto.runtime.v1.IndexAck\"\x8a\x03\n\x0bSearchQuery\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12)\n\x06native\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12,\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructH\x01\x88\x01\x01\x12\x12\n\x05top_k\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x1f\n\x12\x63ontinuation_token\x18\x05 \x01(\tH\x03\x88\x01\x01\x12\x15\n\rreturn_fields\x18\x06 \x03(\t\x12\x1c\n\x0finclude_content\x18\x07 \x01(\x08H\x04\x88\x01\x01\x12\x15\n\rsearch_fields\x18\x08 \x03(\t\x12/\n\x04sort\x18\t \x03(\x0b\x32!.dapr.proto.runtime.v1.SortClause\x12\x18\n\x10highlight_fields\x18\n \x03(\tB\x06\n\x04kindB\t\n\x07_filterB\x08\n\x06_top_kB\x15\n\x13_continuation_tokenB\x12\n\x10_include_content\"\xf7\x01\n\x13SearchRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\t\x12\x36\n\x05query\x18\x03 \x01(\x0b\x32\".dapr.proto.runtime.v1.SearchQueryH\x00\x88\x01\x01\x12J\n\x08metadata\x18\x04 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.SearchRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06_query\"\xed\x01\n\x14SearchResponseAlpha1\x12.\n\x04hits\x18\x01 \x03(\x0b\x32 .dapr.proto.runtime.v1.SearchHit\x12\x17\n\ntotal_hits\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x1f\n\x12\x63ontinuation_token\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x45\n\x13total_hits_relation\x18\x04 \x01(\x0e\x32(.dapr.proto.runtime.v1.TotalHitsRelationB\r\n\x0b_total_hitsB\x15\n\x13_continuation_token*P\n\tSortOrder\x12\x1a\n\x16SORT_ORDER_UNSPECIFIED\x10\x00\x12\x12\n\x0eSORT_ORDER_ASC\x10\x01\x12\x13\n\x0fSORT_ORDER_DESC\x10\x02*T\n\x08IndexAck\x12\x19\n\x15INDEX_ACK_UNSPECIFIED\x10\x00\x12\x14\n\x10INDEX_ACK_QUEUED\x10\x01\x12\x17\n\x13INDEX_ACK_COMPLETED\x10\x02*|\n\x0cIndexingMode\x12\x1d\n\x19INDEXING_MODE_UNSPECIFIED\x10\x00\x12%\n!INDEXING_MODE_WAIT_FOR_COMPLETION\x10\x01\x12&\n\"INDEXING_MODE_RETURN_ON_ACCEPTANCE\x10\x02*\xa9\x01\n\x19IndexingWaitTimeoutAction\x12,\n(INDEXING_WAIT_TIMEOUT_ACTION_UNSPECIFIED\x10\x00\x12/\n+INDEXING_WAIT_TIMEOUT_ACTION_CONTINUE_ASYNC\x10\x01\x12-\n)INDEXING_WAIT_TIMEOUT_ACTION_FAIL_REQUEST\x10\x02*\x9e\x01\n\x11TotalHitsRelation\x12#\n\x1fTOTAL_HITS_RELATION_UNSPECIFIED\x10\x00\x12\x1d\n\x19TOTAL_HITS_RELATION_EXACT\x10\x01\x12#\n\x1fTOTAL_HITS_RELATION_LOWER_BOUND\x10\x02\x12 \n\x1cTOTAL_HITS_RELATION_ESTIMATE\x10\x03\x42o\n\nio.dapr.v1B\x10\x44\x61prSearchProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\xaa\x02\x1b\x44\x61pr.Client.Autogen.Grpc.v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.search_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\020DaprSearchProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_SEARCHDOCUMENT_METADATAENTRY']._loaded_options = None + _globals['_SEARCHDOCUMENT_METADATAENTRY']._serialized_options = b'8\001' + _globals['_SEARCHHIT_HIGHLIGHTSENTRY']._loaded_options = None + _globals['_SEARCHHIT_HIGHLIGHTSENTRY']._serialized_options = b'8\001' + _globals['_CREATEINDEXREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_CREATEINDEXREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETINDEXREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_GETINDEXREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETINDEXRESPONSEALPHA1_PROPERTIESENTRY']._loaded_options = None + _globals['_GETINDEXRESPONSEALPHA1_PROPERTIESENTRY']._serialized_options = b'8\001' + _globals['_LISTINDEXESREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_LISTINDEXESREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_DELETEINDEXREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_DELETEINDEXREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_INDEXDOCUMENTSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_INDEXDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETDOCUMENTSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_GETDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_DELETEDOCUMENTSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_DELETEDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_SEARCHREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_SEARCHREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_SORTORDER']._serialized_start=3968 + _globals['_SORTORDER']._serialized_end=4048 + _globals['_INDEXACK']._serialized_start=4050 + _globals['_INDEXACK']._serialized_end=4134 + _globals['_INDEXINGMODE']._serialized_start=4136 + _globals['_INDEXINGMODE']._serialized_end=4260 + _globals['_INDEXINGWAITTIMEOUTACTION']._serialized_start=4263 + _globals['_INDEXINGWAITTIMEOUTACTION']._serialized_end=4432 + _globals['_TOTALHITSRELATION']._serialized_start=4435 + _globals['_TOTALHITSRELATION']._serialized_end=4593 + _globals['_SEARCHDOCUMENT']._serialized_start=149 + _globals['_SEARCHDOCUMENT']._serialized_end=314 + _globals['_SEARCHDOCUMENT_METADATAENTRY']._serialized_start=267 + _globals['_SEARCHDOCUMENT_METADATAENTRY']._serialized_end=314 + _globals['_SEARCHHIT']._serialized_start=317 + _globals['_SEARCHHIT']._serialized_end=521 + _globals['_SEARCHHIT_HIGHLIGHTSENTRY']._serialized_start=472 + _globals['_SEARCHHIT_HIGHLIGHTSENTRY']._serialized_end=521 + _globals['_SORTCLAUSE']._serialized_start=523 + _globals['_SORTCLAUSE']._serialized_end=599 + _globals['_INDEXINGOPTIONSALPHA1']._serialized_start=602 + _globals['_INDEXINGOPTIONSALPHA1']._serialized_end=822 + _globals['_FAILEDITEM']._serialized_start=824 + _globals['_FAILEDITEM']._serialized_end=883 + _globals['_CREATEINDEXREQUESTALPHA1']._serialized_start=886 + _globals['_CREATEINDEXREQUESTALPHA1']._serialized_end=1077 + _globals['_CREATEINDEXREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_CREATEINDEXREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_GETINDEXREQUESTALPHA1']._serialized_start=1080 + _globals['_GETINDEXREQUESTALPHA1']._serialized_end=1265 + _globals['_GETINDEXREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_GETINDEXREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_GETINDEXRESPONSEALPHA1']._serialized_start=1268 + _globals['_GETINDEXRESPONSEALPHA1']._serialized_end=1465 + _globals['_GETINDEXRESPONSEALPHA1_PROPERTIESENTRY']._serialized_start=1416 + _globals['_GETINDEXRESPONSEALPHA1_PROPERTIESENTRY']._serialized_end=1465 + _globals['_LISTINDEXESREQUESTALPHA1']._serialized_start=1468 + _globals['_LISTINDEXESREQUESTALPHA1']._serialized_end=1644 + _globals['_LISTINDEXESREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_LISTINDEXESREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_LISTINDEXESRESPONSEALPHA1']._serialized_start=1646 + _globals['_LISTINDEXESRESPONSEALPHA1']._serialized_end=1690 + _globals['_DELETEINDEXREQUESTALPHA1']._serialized_start=1693 + _globals['_DELETEINDEXREQUESTALPHA1']._serialized_end=1884 + _globals['_DELETEINDEXREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_DELETEINDEXREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_INDEXDOCUMENTSREQUESTALPHA1']._serialized_start=1887 + _globals['_INDEXDOCUMENTSREQUESTALPHA1']._serialized_end=2222 + _globals['_INDEXDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_INDEXDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_INDEXDOCUMENTSRESPONSEALPHA1']._serialized_start=2225 + _globals['_INDEXDOCUMENTSRESPONSEALPHA1']._serialized_end=2358 + _globals['_GETDOCUMENTSREQUESTALPHA1']._serialized_start=2361 + _globals['_GETDOCUMENTSREQUESTALPHA1']._serialized_end=2617 + _globals['_GETDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_GETDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_GETDOCUMENTSRESPONSEALPHA1']._serialized_start=2619 + _globals['_GETDOCUMENTSRESPONSEALPHA1']._serialized_end=2705 + _globals['_DELETEDOCUMENTSREQUESTALPHA1']._serialized_start=2708 + _globals['_DELETEDOCUMENTSREQUESTALPHA1']._serialized_end=3000 + _globals['_DELETEDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_DELETEDOCUMENTSREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_DELETEDOCUMENTSRESPONSEALPHA1']._serialized_start=3002 + _globals['_DELETEDOCUMENTSRESPONSEALPHA1']._serialized_end=3079 + _globals['_SEARCHQUERY']._serialized_start=3082 + _globals['_SEARCHQUERY']._serialized_end=3476 + _globals['_SEARCHREQUESTALPHA1']._serialized_start=3479 + _globals['_SEARCHREQUESTALPHA1']._serialized_end=3726 + _globals['_SEARCHREQUESTALPHA1_METADATAENTRY']._serialized_start=267 + _globals['_SEARCHREQUESTALPHA1_METADATAENTRY']._serialized_end=314 + _globals['_SEARCHRESPONSEALPHA1']._serialized_start=3729 + _globals['_SEARCHRESPONSEALPHA1']._serialized_end=3966 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/search_pb2.pyi b/dapr/proto/runtime/v1/search_pb2.pyi new file mode 100644 index 000000000..131bb9bfb --- /dev/null +++ b/dapr/proto/runtime/v1/search_pb2.pyi @@ -0,0 +1,994 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2026 The Dapr Authors +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.rpc import status_pb2 as _status_pb2 +import builtins as _builtins +import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias + +DESCRIPTOR: _descriptor.FileDescriptor + +class _SortOrder: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _SortOrderEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_SortOrder.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + SORT_ORDER_UNSPECIFIED: _SortOrder.ValueType # 0 + SORT_ORDER_ASC: _SortOrder.ValueType # 1 + SORT_ORDER_DESC: _SortOrder.ValueType # 2 + +class SortOrder(_SortOrder, metaclass=_SortOrderEnumTypeWrapper): ... + +SORT_ORDER_UNSPECIFIED: SortOrder.ValueType # 0 +SORT_ORDER_ASC: SortOrder.ValueType # 1 +SORT_ORDER_DESC: SortOrder.ValueType # 2 +Global___SortOrder: _TypeAlias = SortOrder # noqa: Y015 + +class _IndexAck: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _IndexAckEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IndexAck.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + INDEX_ACK_UNSPECIFIED: _IndexAck.ValueType # 0 + """Never returned by a successful indexing write call.""" + INDEX_ACK_QUEUED: _IndexAck.ValueType # 1 + """The provider accepted the request for asynchronous processing. This does + not indicate that any document has been indexed successfully. + """ + INDEX_ACK_COMPLETED: _IndexAck.ValueType # 2 + """The provider completed the write. failed_items contains every + item-specific failure for this request. + """ + +class IndexAck(_IndexAck, metaclass=_IndexAckEnumTypeWrapper): ... + +INDEX_ACK_UNSPECIFIED: IndexAck.ValueType # 0 +"""Never returned by a successful indexing write call.""" +INDEX_ACK_QUEUED: IndexAck.ValueType # 1 +"""The provider accepted the request for asynchronous processing. This does +not indicate that any document has been indexed successfully. +""" +INDEX_ACK_COMPLETED: IndexAck.ValueType # 2 +"""The provider completed the write. failed_items contains every +item-specific failure for this request. +""" +Global___IndexAck: _TypeAlias = IndexAck # noqa: Y015 + +class _IndexingMode: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _IndexingModeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IndexingMode.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + INDEXING_MODE_UNSPECIFIED: _IndexingMode.ValueType # 0 + """Behaves exactly as INDEXING_MODE_RETURN_ON_ACCEPTANCE. Callers that need + a final result must select INDEXING_MODE_WAIT_FOR_COMPLETION explicitly, + because waiting requires an explicit timeout policy. + """ + INDEXING_MODE_WAIT_FOR_COMPLETION: _IndexingMode.ValueType # 1 + """Wait for a final provider result.""" + INDEXING_MODE_RETURN_ON_ACCEPTANCE: _IndexingMode.ValueType # 2 + """Return after the provider durably accepts the write for background + processing. No eventual result is exposed by this API. + """ + +class IndexingMode(_IndexingMode, metaclass=_IndexingModeEnumTypeWrapper): ... + +INDEXING_MODE_UNSPECIFIED: IndexingMode.ValueType # 0 +"""Behaves exactly as INDEXING_MODE_RETURN_ON_ACCEPTANCE. Callers that need +a final result must select INDEXING_MODE_WAIT_FOR_COMPLETION explicitly, +because waiting requires an explicit timeout policy. +""" +INDEXING_MODE_WAIT_FOR_COMPLETION: IndexingMode.ValueType # 1 +"""Wait for a final provider result.""" +INDEXING_MODE_RETURN_ON_ACCEPTANCE: IndexingMode.ValueType # 2 +"""Return after the provider durably accepts the write for background +processing. No eventual result is exposed by this API. +""" +Global___IndexingMode: _TypeAlias = IndexingMode # noqa: Y015 + +class _IndexingWaitTimeoutAction: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _IndexingWaitTimeoutActionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_IndexingWaitTimeoutAction.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + INDEXING_WAIT_TIMEOUT_ACTION_UNSPECIFIED: _IndexingWaitTimeoutAction.ValueType # 0 + INDEXING_WAIT_TIMEOUT_ACTION_CONTINUE_ASYNC: _IndexingWaitTimeoutAction.ValueType # 1 + """Return INDEX_ACK_QUEUED and allow a durably queued provider task to + continue. Invalid when the provider has no queued acknowledgement. + """ + INDEXING_WAIT_TIMEOUT_ACTION_FAIL_REQUEST: _IndexingWaitTimeoutAction.ValueType # 2 + """Return DEADLINE_EXCEEDED. This does not guarantee cancellation of + provider-side work. + """ + +class IndexingWaitTimeoutAction(_IndexingWaitTimeoutAction, metaclass=_IndexingWaitTimeoutActionEnumTypeWrapper): ... + +INDEXING_WAIT_TIMEOUT_ACTION_UNSPECIFIED: IndexingWaitTimeoutAction.ValueType # 0 +INDEXING_WAIT_TIMEOUT_ACTION_CONTINUE_ASYNC: IndexingWaitTimeoutAction.ValueType # 1 +"""Return INDEX_ACK_QUEUED and allow a durably queued provider task to +continue. Invalid when the provider has no queued acknowledgement. +""" +INDEXING_WAIT_TIMEOUT_ACTION_FAIL_REQUEST: IndexingWaitTimeoutAction.ValueType # 2 +"""Return DEADLINE_EXCEEDED. This does not guarantee cancellation of +provider-side work. +""" +Global___IndexingWaitTimeoutAction: _TypeAlias = IndexingWaitTimeoutAction # noqa: Y015 + +class _TotalHitsRelation: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _TotalHitsRelationEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TotalHitsRelation.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + TOTAL_HITS_RELATION_UNSPECIFIED: _TotalHitsRelation.ValueType # 0 + TOTAL_HITS_RELATION_EXACT: _TotalHitsRelation.ValueType # 1 + TOTAL_HITS_RELATION_LOWER_BOUND: _TotalHitsRelation.ValueType # 2 + TOTAL_HITS_RELATION_ESTIMATE: _TotalHitsRelation.ValueType # 3 + +class TotalHitsRelation(_TotalHitsRelation, metaclass=_TotalHitsRelationEnumTypeWrapper): ... + +TOTAL_HITS_RELATION_UNSPECIFIED: TotalHitsRelation.ValueType # 0 +TOTAL_HITS_RELATION_EXACT: TotalHitsRelation.ValueType # 1 +TOTAL_HITS_RELATION_LOWER_BOUND: TotalHitsRelation.ValueType # 2 +TOTAL_HITS_RELATION_ESTIMATE: TotalHitsRelation.ValueType # 3 +Global___TotalHitsRelation: _TypeAlias = TotalHitsRelation # noqa: Y015 + +@_typing.final +class SearchDocument(_message.Message): + """============================================================================= + Search building block - alpha1 + + The Search building block stores, retrieves and queries index-ready + documents using lexical / structured matching. Extraction, chunking, + embedding generation and ingestion-pipeline orchestration are out of scope; + callers perform those steps before invoking this API. + + Filter DSL (alpha1, portable subset): + Filters are expressed as a google.protobuf.Struct using a JSON-like + document shape with the following operators. Components MUST translate + the portable subset to backend-native queries. + + Comparison: $eq, $ne, $gt, $gte, $lt, $lte + Set: $in, $nin + Existence: $exists (bool) + Logical: $and, $or, $not + + Field paths use dotted notation, e.g. "customer.region". + ============================================================================= + + SearchDocument is a single index-ready document. + """ + + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ID_FIELD_NUMBER: _builtins.int + CONTENT_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + id: _builtins.str + """Caller-supplied document identifier. Required for writes and unique + within an index. + """ + content: _builtins.bytes + """UTF-8 encoded JSON object. Field-level operations (search_fields, + return_fields, highlight_fields, sort, filter) address top-level and + dotted nested keys of this object. A document whose content is not a + JSON object is reported in failed_items with INVALID_ARGUMENT and never + sent to the provider. + """ + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Opaque caller metadata stored with the document and returned unchanged. + It is not indexed, not filterable and not addressable by field-level + operations. + """ + + def __init__( + self, + *, + id: _builtins.str = ..., + content: _builtins.bytes = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["content", b"content", "id", b"id", "metadata", b"metadata"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SearchDocument: _TypeAlias = SearchDocument # noqa: Y015 + +@_typing.final +class SearchHit(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class HighlightsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + DOCUMENT_FIELD_NUMBER: _builtins.int + SCORE_FIELD_NUMBER: _builtins.int + HIGHLIGHTS_FIELD_NUMBER: _builtins.int + score: _builtins.float + """Unnormalized provider-specific relevance score. Higher values indicate a + more relevant match. + """ + @_builtins.property + def document(self) -> Global___SearchDocument: ... + @_builtins.property + def highlights(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Highlighted fragments keyed by field name.""" + + def __init__( + self, + *, + document: Global___SearchDocument | None = ..., + score: _builtins.float = ..., + highlights: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["document", b"document"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["document", b"document", "highlights", b"highlights", "score", b"score"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SearchHit: _TypeAlias = SearchHit # noqa: Y015 + +@_typing.final +class SortClause(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FIELD_FIELD_NUMBER: _builtins.int + ORDER_FIELD_NUMBER: _builtins.int + field: _builtins.str + order: Global___SortOrder.ValueType + def __init__( + self, + *, + field: _builtins.str = ..., + order: Global___SortOrder.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["field", b"field", "order", b"order"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SortClause: _TypeAlias = SortClause # noqa: Y015 + +@_typing.final +class IndexingOptionsAlpha1(_message.Message): + """IndexingOptionsAlpha1 is shared by every write: document indexing and + deletion, vector upsert and deletion. + """ + + DESCRIPTOR: _descriptor.Descriptor + + MODE_FIELD_NUMBER: _builtins.int + WAIT_TIMEOUT_FIELD_NUMBER: _builtins.int + ON_WAIT_TIMEOUT_FIELD_NUMBER: _builtins.int + mode: Global___IndexingMode.ValueType + on_wait_timeout: Global___IndexingWaitTimeoutAction.ValueType + """Required with INDEXING_MODE_WAIT_FOR_COMPLETION.""" + @_builtins.property + def wait_timeout(self) -> _duration_pb2.Duration: + """Required positive limit for waiting on provider completion. Valid only with + INDEXING_MODE_WAIT_FOR_COMPLETION and must be shorter than the remaining + RPC context deadline when one is set. + When the store has a resiliency timeout policy, wait_timeout must also be + shorter than that timeout by at least a tenth of it, and by no less than + 100ms. + """ + + def __init__( + self, + *, + mode: Global___IndexingMode.ValueType = ..., + wait_timeout: _duration_pb2.Duration | None = ..., + on_wait_timeout: Global___IndexingWaitTimeoutAction.ValueType = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_wait_timeout", b"_wait_timeout", "wait_timeout", b"wait_timeout"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_wait_timeout", b"_wait_timeout", "mode", b"mode", "on_wait_timeout", b"on_wait_timeout", "wait_timeout", b"wait_timeout"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__wait_timeout: _TypeAlias = _typing.Literal["wait_timeout"] # noqa: Y015 + _WhichOneofArgType__wait_timeout: _TypeAlias = _typing.Literal["_wait_timeout", b"_wait_timeout"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__wait_timeout) -> _WhichOneofReturnType__wait_timeout | None: ... + +Global___IndexingOptionsAlpha1: _TypeAlias = IndexingOptionsAlpha1 # noqa: Y015 + +@_typing.final +class FailedItem(_message.Message): + """FailedItem is shared by document indexing and vector upserts.""" + + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + id: _builtins.str + @_builtins.property + def error(self) -> _status_pb2.Status: + """error.code uses a canonical google.rpc.Code and must not be OK. + Provider-specific codes may be included in google.rpc.ErrorInfo details. + """ + + def __init__( + self, + *, + id: _builtins.str = ..., + error: _status_pb2.Status | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "id", b"id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___FailedItem: _TypeAlias = FailedItem # noqa: Y015 + +@_typing.final +class CreateIndexRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + INDEX_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + index: _builtins.str + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Component-specific index settings.""" + + def __init__( + self, + *, + store_name: _builtins.str = ..., + index: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["index", b"index", "metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___CreateIndexRequestAlpha1: _TypeAlias = CreateIndexRequestAlpha1 # noqa: Y015 + +@_typing.final +class GetIndexRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + INDEX_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + index: _builtins.str + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + index: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["index", b"index", "metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetIndexRequestAlpha1: _TypeAlias = GetIndexRequestAlpha1 # noqa: Y015 + +@_typing.final +class GetIndexResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + INDEX_FIELD_NUMBER: _builtins.int + DOCUMENT_COUNT_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + index: _builtins.str + document_count: _builtins.int + """Approximate document count. Providers that cannot supply this value + efficiently may return 0. + """ + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Component-specific index properties.""" + + def __init__( + self, + *, + index: _builtins.str = ..., + document_count: _builtins.int = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["document_count", b"document_count", "index", b"index", "properties", b"properties"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetIndexResponseAlpha1: _TypeAlias = GetIndexResponseAlpha1 # noqa: Y015 + +@_typing.final +class ListIndexesRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListIndexesRequestAlpha1: _TypeAlias = ListIndexesRequestAlpha1 # noqa: Y015 + +@_typing.final +class ListIndexesResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + INDEXES_FIELD_NUMBER: _builtins.int + @_builtins.property + def indexes(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + def __init__( + self, + *, + indexes: _abc.Iterable[_builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["indexes", b"indexes"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListIndexesResponseAlpha1: _TypeAlias = ListIndexesResponseAlpha1 # noqa: Y015 + +@_typing.final +class DeleteIndexRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + INDEX_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + index: _builtins.str + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + index: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["index", b"index", "metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteIndexRequestAlpha1: _TypeAlias = DeleteIndexRequestAlpha1 # noqa: Y015 + +@_typing.final +class IndexDocumentsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + INDEX_FIELD_NUMBER: _builtins.int + DOCUMENTS_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + index: _builtins.str + @_builtins.property + def documents(self) -> _containers.RepeatedCompositeFieldContainer[Global___SearchDocument]: ... + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def options(self) -> Global___IndexingOptionsAlpha1: + """Omitted options behave as INDEXING_MODE_RETURN_ON_ACCEPTANCE.""" + + def __init__( + self, + *, + store_name: _builtins.str = ..., + index: _builtins.str = ..., + documents: _abc.Iterable[Global___SearchDocument] | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + options: Global___IndexingOptionsAlpha1 | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "options", b"options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "documents", b"documents", "index", b"index", "metadata", b"metadata", "options", b"options", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__options: _TypeAlias = _typing.Literal["options"] # noqa: Y015 + _WhichOneofArgType__options: _TypeAlias = _typing.Literal["_options", b"_options"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__options) -> _WhichOneofReturnType__options | None: ... + +Global___IndexDocumentsRequestAlpha1: _TypeAlias = IndexDocumentsRequestAlpha1 # noqa: Y015 + +@_typing.final +class IndexDocumentsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FAILED_ITEMS_FIELD_NUMBER: _builtins.int + ACK_FIELD_NUMBER: _builtins.int + ack: Global___IndexAck.ValueType + """Always set to QUEUED or COMPLETED on a successful RPC.""" + @_builtins.property + def failed_items(self) -> _containers.RepeatedCompositeFieldContainer[Global___FailedItem]: + """Item-specific failures known at the acknowledgement boundary.""" + + def __init__( + self, + *, + failed_items: _abc.Iterable[Global___FailedItem] | None = ..., + ack: Global___IndexAck.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ack", b"ack", "failed_items", b"failed_items"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___IndexDocumentsResponseAlpha1: _TypeAlias = IndexDocumentsResponseAlpha1 # noqa: Y015 + +@_typing.final +class GetDocumentsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + INDEX_FIELD_NUMBER: _builtins.int + IDS_FIELD_NUMBER: _builtins.int + INCLUDE_CONTENT_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + index: _builtins.str + include_content: _builtins.bool + """Whether SearchDocument.content is returned. Defaults to false.""" + @_builtins.property + def ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + index: _builtins.str = ..., + ids: _abc.Iterable[_builtins.str] | None = ..., + include_content: _builtins.bool | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_include_content", b"_include_content", "include_content", b"include_content"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_include_content", b"_include_content", "ids", b"ids", "include_content", b"include_content", "index", b"index", "metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__include_content: _TypeAlias = _typing.Literal["include_content"] # noqa: Y015 + _WhichOneofArgType__include_content: _TypeAlias = _typing.Literal["_include_content", b"_include_content"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__include_content) -> _WhichOneofReturnType__include_content | None: ... + +Global___GetDocumentsRequestAlpha1: _TypeAlias = GetDocumentsRequestAlpha1 # noqa: Y015 + +@_typing.final +class GetDocumentsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DOCUMENTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def documents(self) -> _containers.RepeatedCompositeFieldContainer[Global___SearchDocument]: + """Found documents in request order. IDs that do not exist are omitted.""" + + def __init__( + self, + *, + documents: _abc.Iterable[Global___SearchDocument] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["documents", b"documents"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetDocumentsResponseAlpha1: _TypeAlias = GetDocumentsResponseAlpha1 # noqa: Y015 + +@_typing.final +class DeleteDocumentsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + INDEX_FIELD_NUMBER: _builtins.int + IDS_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + index: _builtins.str + @_builtins.property + def ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def options(self) -> Global___IndexingOptionsAlpha1: + """Omitted options behave as INDEXING_MODE_RETURN_ON_ACCEPTANCE.""" + + def __init__( + self, + *, + store_name: _builtins.str = ..., + index: _builtins.str = ..., + ids: _abc.Iterable[_builtins.str] | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + options: Global___IndexingOptionsAlpha1 | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "options", b"options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "ids", b"ids", "index", b"index", "metadata", b"metadata", "options", b"options", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__options: _TypeAlias = _typing.Literal["options"] # noqa: Y015 + _WhichOneofArgType__options: _TypeAlias = _typing.Literal["_options", b"_options"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__options) -> _WhichOneofReturnType__options | None: ... + +Global___DeleteDocumentsRequestAlpha1: _TypeAlias = DeleteDocumentsRequestAlpha1 # noqa: Y015 + +@_typing.final +class DeleteDocumentsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ACK_FIELD_NUMBER: _builtins.int + ack: Global___IndexAck.ValueType + """Always set to QUEUED or COMPLETED on a successful RPC.""" + def __init__( + self, + *, + ack: Global___IndexAck.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ack", b"ack"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteDocumentsResponseAlpha1: _TypeAlias = DeleteDocumentsResponseAlpha1 # noqa: Y015 + +@_typing.final +class SearchQuery(_message.Message): + """SearchQuery selects and shapes the hits of a search.""" + + DESCRIPTOR: _descriptor.Descriptor + + TEXT_FIELD_NUMBER: _builtins.int + NATIVE_FIELD_NUMBER: _builtins.int + FILTER_FIELD_NUMBER: _builtins.int + TOP_K_FIELD_NUMBER: _builtins.int + CONTINUATION_TOKEN_FIELD_NUMBER: _builtins.int + RETURN_FIELDS_FIELD_NUMBER: _builtins.int + INCLUDE_CONTENT_FIELD_NUMBER: _builtins.int + SEARCH_FIELDS_FIELD_NUMBER: _builtins.int + SORT_FIELD_NUMBER: _builtins.int + HIGHLIGHT_FIELDS_FIELD_NUMBER: _builtins.int + text: _builtins.str + top_k: _builtins.int + """Maximum number of hits to return in this page. When omitted or 0, the + component's documented default page size applies. + """ + continuation_token: _builtins.str + """Opaque token returned by the previous SearchResponseAlpha1. Omitted for + the first page. + """ + include_content: _builtins.bool + """Whether SearchDocument.content is returned with each hit. Defaults to + false. + """ + @_builtins.property + def native(self) -> _struct_pb2.Struct: ... + @_builtins.property + def filter(self) -> _struct_pb2.Struct: ... + @_builtins.property + def return_fields(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def search_fields(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def sort(self) -> _containers.RepeatedCompositeFieldContainer[Global___SortClause]: ... + @_builtins.property + def highlight_fields(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + def __init__( + self, + *, + text: _builtins.str = ..., + native: _struct_pb2.Struct | None = ..., + filter: _struct_pb2.Struct | None = ..., + top_k: _builtins.int | None = ..., + continuation_token: _builtins.str | None = ..., + return_fields: _abc.Iterable[_builtins.str] | None = ..., + include_content: _builtins.bool | None = ..., + search_fields: _abc.Iterable[_builtins.str] | None = ..., + sort: _abc.Iterable[Global___SortClause] | None = ..., + highlight_fields: _abc.Iterable[_builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_continuation_token", b"_continuation_token", "_filter", b"_filter", "_include_content", b"_include_content", "_top_k", b"_top_k", "continuation_token", b"continuation_token", "filter", b"filter", "include_content", b"include_content", "kind", b"kind", "native", b"native", "text", b"text", "top_k", b"top_k"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_continuation_token", b"_continuation_token", "_filter", b"_filter", "_include_content", b"_include_content", "_top_k", b"_top_k", "continuation_token", b"continuation_token", "filter", b"filter", "highlight_fields", b"highlight_fields", "include_content", b"include_content", "kind", b"kind", "native", b"native", "return_fields", b"return_fields", "search_fields", b"search_fields", "sort", b"sort", "text", b"text", "top_k", b"top_k"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__continuation_token: _TypeAlias = _typing.Literal["continuation_token"] # noqa: Y015 + _WhichOneofArgType__continuation_token: _TypeAlias = _typing.Literal["_continuation_token", b"_continuation_token"] # noqa: Y015 + _WhichOneofReturnType__filter: _TypeAlias = _typing.Literal["filter"] # noqa: Y015 + _WhichOneofArgType__filter: _TypeAlias = _typing.Literal["_filter", b"_filter"] # noqa: Y015 + _WhichOneofReturnType__include_content: _TypeAlias = _typing.Literal["include_content"] # noqa: Y015 + _WhichOneofArgType__include_content: _TypeAlias = _typing.Literal["_include_content", b"_include_content"] # noqa: Y015 + _WhichOneofReturnType__top_k: _TypeAlias = _typing.Literal["top_k"] # noqa: Y015 + _WhichOneofArgType__top_k: _TypeAlias = _typing.Literal["_top_k", b"_top_k"] # noqa: Y015 + _WhichOneofReturnType_kind: _TypeAlias = _typing.Literal["text", "native"] # noqa: Y015 + _WhichOneofArgType_kind: _TypeAlias = _typing.Literal["kind", b"kind"] # noqa: Y015 + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__continuation_token) -> _WhichOneofReturnType__continuation_token | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__filter) -> _WhichOneofReturnType__filter | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__include_content) -> _WhichOneofReturnType__include_content | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__top_k) -> _WhichOneofReturnType__top_k | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___SearchQuery: _TypeAlias = SearchQuery # noqa: Y015 + +@_typing.final +class SearchRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + INDEX_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + index: _builtins.str + @_builtins.property + def query(self) -> Global___SearchQuery: + """Omitted matches every document in the index.""" + + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + index: _builtins.str = ..., + query: Global___SearchQuery | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_query", b"_query", "query", b"query"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_query", b"_query", "index", b"index", "metadata", b"metadata", "query", b"query", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__query: _TypeAlias = _typing.Literal["query"] # noqa: Y015 + _WhichOneofArgType__query: _TypeAlias = _typing.Literal["_query", b"_query"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__query) -> _WhichOneofReturnType__query | None: ... + +Global___SearchRequestAlpha1: _TypeAlias = SearchRequestAlpha1 # noqa: Y015 + +@_typing.final +class SearchResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HITS_FIELD_NUMBER: _builtins.int + TOTAL_HITS_FIELD_NUMBER: _builtins.int + CONTINUATION_TOKEN_FIELD_NUMBER: _builtins.int + TOTAL_HITS_RELATION_FIELD_NUMBER: _builtins.int + total_hits: _builtins.int + """Best-effort total. Omitted when the provider cannot supply one.""" + continuation_token: _builtins.str + """Opaque token for the next page. Omitted when there are no more results.""" + total_hits_relation: Global___TotalHitsRelation.ValueType + """Describes the accuracy of total_hits. UNSPECIFIED when total_hits is + omitted. + """ + @_builtins.property + def hits(self) -> _containers.RepeatedCompositeFieldContainer[Global___SearchHit]: ... + def __init__( + self, + *, + hits: _abc.Iterable[Global___SearchHit] | None = ..., + total_hits: _builtins.int | None = ..., + continuation_token: _builtins.str | None = ..., + total_hits_relation: Global___TotalHitsRelation.ValueType = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_continuation_token", b"_continuation_token", "_total_hits", b"_total_hits", "continuation_token", b"continuation_token", "total_hits", b"total_hits"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_continuation_token", b"_continuation_token", "_total_hits", b"_total_hits", "continuation_token", b"continuation_token", "hits", b"hits", "total_hits", b"total_hits", "total_hits_relation", b"total_hits_relation"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__continuation_token: _TypeAlias = _typing.Literal["continuation_token"] # noqa: Y015 + _WhichOneofArgType__continuation_token: _TypeAlias = _typing.Literal["_continuation_token", b"_continuation_token"] # noqa: Y015 + _WhichOneofReturnType__total_hits: _TypeAlias = _typing.Literal["total_hits"] # noqa: Y015 + _WhichOneofArgType__total_hits: _TypeAlias = _typing.Literal["_total_hits", b"_total_hits"] # noqa: Y015 + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__continuation_token) -> _WhichOneofReturnType__continuation_token | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__total_hits) -> _WhichOneofReturnType__total_hits | None: ... + +Global___SearchResponseAlpha1: _TypeAlias = SearchResponseAlpha1 # noqa: Y015 diff --git a/dapr/proto/runtime/v1/search_pb2_grpc.py b/dapr/proto/runtime/v1/search_pb2_grpc.py new file mode 100644 index 000000000..07e2b900c --- /dev/null +++ b/dapr/proto/runtime/v1/search_pb2_grpc.py @@ -0,0 +1,24 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + + +GRPC_GENERATED_VERSION = '1.81.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + ' but the generated code in dapr/proto/runtime/v1/search_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/dapr/proto/runtime/v1/vector_pb2.py b/dapr/proto/runtime/v1/vector_pb2.py new file mode 100644 index 000000000..d5503b557 --- /dev/null +++ b/dapr/proto/runtime/v1/vector_pb2.py @@ -0,0 +1,120 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/vector.proto +# Protobuf Python Version: 6.33.5 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 5, + '', + 'dapr/proto/runtime/v1/vector.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 +from dapr.proto.runtime.v1 import search_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_search__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"dapr/proto/runtime/v1/vector.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\"dapr/proto/runtime/v1/search.proto\"\x99\x02\n\x1d\x43reateCollectionRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12T\n\x08metadata\x18\x03 \x03(\x0b\x32\x42.dapr.proto.runtime.v1.CreateCollectionRequestAlpha1.MetadataEntry\x12\x12\n\ndimensions\x18\x04 \x01(\r\x12\x35\n\x06metric\x18\x05 \x01(\x0e\x32%.dapr.proto.runtime.v1.DistanceMetric\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc8\x01\n\x1aGetCollectionRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12Q\n\x08metadata\x18\x03 \x03(\x0b\x32?.dapr.proto.runtime.v1.GetCollectionRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9d\x02\n\x1bGetCollectionResponseAlpha1\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x14\n\x0crecord_count\x18\x02 \x01(\x04\x12V\n\nproperties\x18\x03 \x03(\x0b\x32\x42.dapr.proto.runtime.v1.GetCollectionResponseAlpha1.PropertiesEntry\x12\x12\n\ndimensions\x18\x04 \x01(\r\x12\x35\n\x06metric\x18\x05 \x01(\x0e\x32%.dapr.proto.runtime.v1.DistanceMetric\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb8\x01\n\x1cListCollectionsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12S\n\x08metadata\x18\x02 \x03(\x0b\x32\x41.dapr.proto.runtime.v1.ListCollectionsRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"4\n\x1dListCollectionsResponseAlpha1\x12\x13\n\x0b\x63ollections\x18\x01 \x03(\t\"\xce\x01\n\x1d\x44\x65leteCollectionRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12T\n\x08metadata\x18\x03 \x03(\x0b\x32\x42.dapr.proto.runtime.v1.DeleteCollectionRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x89\x01\n\x0cVectorRecord\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06values\x18\x02 \x03(\x02\x12\x14\n\x07payload\x18\x03 \x01(\x0cH\x00\x88\x01\x01\x12.\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x01\x88\x01\x01\x42\n\n\x08_payloadB\x0b\n\t_metadata\"Q\n\x0bVectorMatch\x12\x33\n\x06record\x18\x01 \x01(\x0b\x32#.dapr.proto.runtime.v1.VectorRecord\x12\r\n\x05score\x18\x02 \x01(\x01\"\xce\x02\n\x1aUpsertVectorsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x34\n\x07records\x18\x03 \x03(\x0b\x32#.dapr.proto.runtime.v1.VectorRecord\x12Q\n\x08metadata\x18\x04 \x03(\x0b\x32?.dapr.proto.runtime.v1.UpsertVectorsRequestAlpha1.MetadataEntry\x12\x42\n\x07options\x18\x05 \x01(\x0b\x32,.dapr.proto.runtime.v1.IndexingOptionsAlpha1H\x00\x88\x01\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08_options\"\x84\x01\n\x1bUpsertVectorsResponseAlpha1\x12\x37\n\x0c\x66\x61iled_items\x18\x01 \x03(\x0b\x32!.dapr.proto.runtime.v1.FailedItem\x12,\n\x03\x61\x63k\x18\x02 \x01(\x0e\x32\x1f.dapr.proto.runtime.v1.IndexAck\"\xa5\x02\n\x1a\x44\x65leteVectorsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x0b\n\x03ids\x18\x03 \x03(\t\x12Q\n\x08metadata\x18\x04 \x03(\x0b\x32?.dapr.proto.runtime.v1.DeleteVectorsRequestAlpha1.MetadataEntry\x12\x42\n\x07options\x18\x05 \x01(\x0b\x32,.dapr.proto.runtime.v1.IndexingOptionsAlpha1H\x00\x88\x01\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08_options\"K\n\x1b\x44\x65leteVectorsResponseAlpha1\x12,\n\x03\x61\x63k\x18\x01 \x01(\x0e\x32\x1f.dapr.proto.runtime.v1.IndexAck\"\xff\x01\n\x17GetVectorsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x0b\n\x03ids\x18\x03 \x03(\t\x12\x1b\n\x0einclude_values\x18\x04 \x01(\x08H\x00\x88\x01\x01\x12N\n\x08metadata\x18\x05 \x03(\x0b\x32<.dapr.proto.runtime.v1.GetVectorsRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_include_values\"P\n\x18GetVectorsResponseAlpha1\x12\x34\n\x07records\x18\x01 \x03(\x0b\x32#.dapr.proto.runtime.v1.VectorRecord\"\xff\x02\n\x0bVectorQuery\x12\x35\n\x06vector\x18\x01 \x01(\x0b\x32#.dapr.proto.runtime.v1.VectorRecordH\x00\x12\x0f\n\x05\x62y_id\x18\x02 \x01(\tH\x00\x12\x12\n\x05top_k\x18\x03 \x01(\rH\x01\x88\x01\x01\x12,\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x02\x88\x01\x01\x12\x1b\n\x0einclude_values\x18\x05 \x01(\x08H\x03\x88\x01\x01\x12\x1c\n\x0finclude_payload\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x35\n\x06metric\x18\x07 \x01(\x0e\x32%.dapr.proto.runtime.v1.DistanceMetric\x12\x1c\n\x0fscore_threshold\x18\x08 \x01(\x01H\x05\x88\x01\x01\x42\x06\n\x04kindB\x08\n\x06_top_kB\t\n\x07_filterB\x11\n\x0f_include_valuesB\x12\n\x10_include_payloadB\x12\n\x10_score_threshold\"\xf9\x01\n\x19QueryVectorsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x31\n\x05query\x18\x03 \x01(\x0b\x32\".dapr.proto.runtime.v1.VectorQuery\x12P\n\x08metadata\x18\x04 \x03(\x0b\x32>.dapr.proto.runtime.v1.QueryVectorsRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x88\x01\n\x1aQueryVectorsResponseAlpha1\x12\x33\n\x07matches\x18\x01 \x03(\x0b\x32\".dapr.proto.runtime.v1.VectorMatch\x12\x35\n\x06metric\x18\x02 \x01(\x0e\x32%.dapr.proto.runtime.v1.DistanceMetric\"\x85\x02\n\x1e\x42\x61tchQueryVectorsRequestAlpha1\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x33\n\x07queries\x18\x03 \x03(\x0b\x32\".dapr.proto.runtime.v1.VectorQuery\x12U\n\x08metadata\x18\x04 \x03(\x0b\x32\x43.dapr.proto.runtime.v1.BatchQueryVectorsRequestAlpha1.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8e\x01\n\x16\x42\x61tchQueryResultAlpha1\x12\x45\n\x08response\x18\x01 \x01(\x0b\x32\x31.dapr.proto.runtime.v1.QueryVectorsResponseAlpha1H\x00\x12#\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x42\x08\n\x06result\"a\n\x1f\x42\x61tchQueryVectorsResponseAlpha1\x12>\n\x07results\x18\x01 \x03(\x0b\x32-.dapr.proto.runtime.v1.BatchQueryResultAlpha1*\x8d\x01\n\x0e\x44istanceMetric\x12\x1f\n\x1b\x44ISTANCE_METRIC_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x44ISTANCE_METRIC_COSINE\x10\x01\x12\x1f\n\x1b\x44ISTANCE_METRIC_DOT_PRODUCT\x10\x02\x12\x1d\n\x19\x44ISTANCE_METRIC_EUCLIDEAN\x10\x03\x42o\n\nio.dapr.v1B\x10\x44\x61prVectorProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\xaa\x02\x1b\x44\x61pr.Client.Autogen.Grpc.v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.vector_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\020DaprVectorProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_CREATECOLLECTIONREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_CREATECOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETCOLLECTIONREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_GETCOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETCOLLECTIONRESPONSEALPHA1_PROPERTIESENTRY']._loaded_options = None + _globals['_GETCOLLECTIONRESPONSEALPHA1_PROPERTIESENTRY']._serialized_options = b'8\001' + _globals['_LISTCOLLECTIONSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_LISTCOLLECTIONSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_DELETECOLLECTIONREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_DELETECOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_UPSERTVECTORSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_UPSERTVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_DELETEVECTORSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_DELETEVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETVECTORSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_GETVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_QUERYVECTORSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_QUERYVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_BATCHQUERYVECTORSREQUESTALPHA1_METADATAENTRY']._loaded_options = None + _globals['_BATCHQUERYVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_DISTANCEMETRIC']._serialized_start=4071 + _globals['_DISTANCEMETRIC']._serialized_end=4212 + _globals['_CREATECOLLECTIONREQUESTALPHA1']._serialized_start=153 + _globals['_CREATECOLLECTIONREQUESTALPHA1']._serialized_end=434 + _globals['_CREATECOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_CREATECOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_GETCOLLECTIONREQUESTALPHA1']._serialized_start=437 + _globals['_GETCOLLECTIONREQUESTALPHA1']._serialized_end=637 + _globals['_GETCOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_GETCOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_GETCOLLECTIONRESPONSEALPHA1']._serialized_start=640 + _globals['_GETCOLLECTIONRESPONSEALPHA1']._serialized_end=925 + _globals['_GETCOLLECTIONRESPONSEALPHA1_PROPERTIESENTRY']._serialized_start=876 + _globals['_GETCOLLECTIONRESPONSEALPHA1_PROPERTIESENTRY']._serialized_end=925 + _globals['_LISTCOLLECTIONSREQUESTALPHA1']._serialized_start=928 + _globals['_LISTCOLLECTIONSREQUESTALPHA1']._serialized_end=1112 + _globals['_LISTCOLLECTIONSREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_LISTCOLLECTIONSREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_LISTCOLLECTIONSRESPONSEALPHA1']._serialized_start=1114 + _globals['_LISTCOLLECTIONSRESPONSEALPHA1']._serialized_end=1166 + _globals['_DELETECOLLECTIONREQUESTALPHA1']._serialized_start=1169 + _globals['_DELETECOLLECTIONREQUESTALPHA1']._serialized_end=1375 + _globals['_DELETECOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_DELETECOLLECTIONREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_VECTORRECORD']._serialized_start=1378 + _globals['_VECTORRECORD']._serialized_end=1515 + _globals['_VECTORMATCH']._serialized_start=1517 + _globals['_VECTORMATCH']._serialized_end=1598 + _globals['_UPSERTVECTORSREQUESTALPHA1']._serialized_start=1601 + _globals['_UPSERTVECTORSREQUESTALPHA1']._serialized_end=1935 + _globals['_UPSERTVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_UPSERTVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_UPSERTVECTORSRESPONSEALPHA1']._serialized_start=1938 + _globals['_UPSERTVECTORSRESPONSEALPHA1']._serialized_end=2070 + _globals['_DELETEVECTORSREQUESTALPHA1']._serialized_start=2073 + _globals['_DELETEVECTORSREQUESTALPHA1']._serialized_end=2366 + _globals['_DELETEVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_DELETEVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_DELETEVECTORSRESPONSEALPHA1']._serialized_start=2368 + _globals['_DELETEVECTORSRESPONSEALPHA1']._serialized_end=2443 + _globals['_GETVECTORSREQUESTALPHA1']._serialized_start=2446 + _globals['_GETVECTORSREQUESTALPHA1']._serialized_end=2701 + _globals['_GETVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_GETVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_GETVECTORSRESPONSEALPHA1']._serialized_start=2703 + _globals['_GETVECTORSRESPONSEALPHA1']._serialized_end=2783 + _globals['_VECTORQUERY']._serialized_start=2786 + _globals['_VECTORQUERY']._serialized_end=3169 + _globals['_QUERYVECTORSREQUESTALPHA1']._serialized_start=3172 + _globals['_QUERYVECTORSREQUESTALPHA1']._serialized_end=3421 + _globals['_QUERYVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_QUERYVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_QUERYVECTORSRESPONSEALPHA1']._serialized_start=3424 + _globals['_QUERYVECTORSRESPONSEALPHA1']._serialized_end=3560 + _globals['_BATCHQUERYVECTORSREQUESTALPHA1']._serialized_start=3563 + _globals['_BATCHQUERYVECTORSREQUESTALPHA1']._serialized_end=3824 + _globals['_BATCHQUERYVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_start=387 + _globals['_BATCHQUERYVECTORSREQUESTALPHA1_METADATAENTRY']._serialized_end=434 + _globals['_BATCHQUERYRESULTALPHA1']._serialized_start=3827 + _globals['_BATCHQUERYRESULTALPHA1']._serialized_end=3969 + _globals['_BATCHQUERYVECTORSRESPONSEALPHA1']._serialized_start=3971 + _globals['_BATCHQUERYVECTORSRESPONSEALPHA1']._serialized_end=4068 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/vector_pb2.pyi b/dapr/proto/runtime/v1/vector_pb2.pyi new file mode 100644 index 000000000..0f87c8ae5 --- /dev/null +++ b/dapr/proto/runtime/v1/vector_pb2.pyi @@ -0,0 +1,863 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2026 The Dapr Authors +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" + +from collections import abc as _abc +from dapr.proto.runtime.v1 import search_pb2 as _search_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.rpc import status_pb2 as _status_pb2 +import builtins as _builtins +import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias + +DESCRIPTOR: _descriptor.FileDescriptor + +class _DistanceMetric: + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 + +class _DistanceMetricEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_DistanceMetric.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor + DISTANCE_METRIC_UNSPECIFIED: _DistanceMetric.ValueType # 0 + """On CreateCollection: the component's documented default metric. On + QueryVectors: the metric configured for the collection. + """ + DISTANCE_METRIC_COSINE: _DistanceMetric.ValueType # 1 + """Cosine similarity. Higher scores indicate closer matches.""" + DISTANCE_METRIC_DOT_PRODUCT: _DistanceMetric.ValueType # 2 + """Dot-product similarity. Higher scores indicate closer matches.""" + DISTANCE_METRIC_EUCLIDEAN: _DistanceMetric.ValueType # 3 + """Euclidean distance. Lower scores indicate closer matches.""" + +class DistanceMetric(_DistanceMetric, metaclass=_DistanceMetricEnumTypeWrapper): + """============================================================================= + Vector building block - alpha1 + + The Vector building block stores, retrieves and queries pre-embedded dense + vectors. Embedding generation is out of scope. IndexingOptionsAlpha1, + IndexAck and FailedItem are shared with search.proto, as is the portable + filter DSL, which addresses VectorRecord.metadata. + + Sparse and named vectors, hybrid fusion and query pagination are deferred + to beta. + ============================================================================= + """ + +DISTANCE_METRIC_UNSPECIFIED: DistanceMetric.ValueType # 0 +"""On CreateCollection: the component's documented default metric. On +QueryVectors: the metric configured for the collection. +""" +DISTANCE_METRIC_COSINE: DistanceMetric.ValueType # 1 +"""Cosine similarity. Higher scores indicate closer matches.""" +DISTANCE_METRIC_DOT_PRODUCT: DistanceMetric.ValueType # 2 +"""Dot-product similarity. Higher scores indicate closer matches.""" +DISTANCE_METRIC_EUCLIDEAN: DistanceMetric.ValueType # 3 +"""Euclidean distance. Lower scores indicate closer matches.""" +Global___DistanceMetric: _TypeAlias = DistanceMetric # noqa: Y015 + +@_typing.final +class CreateCollectionRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + DIMENSIONS_FIELD_NUMBER: _builtins.int + METRIC_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + dimensions: _builtins.int + """Required. Length of every dense vector stored in the collection.""" + metric: Global___DistanceMetric.ValueType + """Distance metric for the collection. UNSPECIFIED selects the component's + documented default. A metric the component cannot provide returns + INVALID_ARGUMENT. + """ + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Component-specific collection settings, such as index parameters.""" + + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + dimensions: _builtins.int = ..., + metric: Global___DistanceMetric.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "dimensions", b"dimensions", "metadata", b"metadata", "metric", b"metric", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___CreateCollectionRequestAlpha1: _TypeAlias = CreateCollectionRequestAlpha1 # noqa: Y015 + +@_typing.final +class GetCollectionRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetCollectionRequestAlpha1: _TypeAlias = GetCollectionRequestAlpha1 # noqa: Y015 + +@_typing.final +class GetCollectionResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + COLLECTION_FIELD_NUMBER: _builtins.int + RECORD_COUNT_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + DIMENSIONS_FIELD_NUMBER: _builtins.int + METRIC_FIELD_NUMBER: _builtins.int + collection: _builtins.str + record_count: _builtins.int + """Approximate number of records. Providers that cannot supply this value + efficiently may return 0. + """ + dimensions: _builtins.int + metric: Global___DistanceMetric.ValueType + """Effective metric. Always a concrete value.""" + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Component-specific collection properties.""" + + def __init__( + self, + *, + collection: _builtins.str = ..., + record_count: _builtins.int = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + dimensions: _builtins.int = ..., + metric: Global___DistanceMetric.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "dimensions", b"dimensions", "metric", b"metric", "properties", b"properties", "record_count", b"record_count"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetCollectionResponseAlpha1: _TypeAlias = GetCollectionResponseAlpha1 # noqa: Y015 + +@_typing.final +class ListCollectionsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListCollectionsRequestAlpha1: _TypeAlias = ListCollectionsRequestAlpha1 # noqa: Y015 + +@_typing.final +class ListCollectionsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + COLLECTIONS_FIELD_NUMBER: _builtins.int + @_builtins.property + def collections(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + def __init__( + self, + *, + collections: _abc.Iterable[_builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collections", b"collections"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListCollectionsResponseAlpha1: _TypeAlias = ListCollectionsResponseAlpha1 # noqa: Y015 + +@_typing.final +class DeleteCollectionRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteCollectionRequestAlpha1: _TypeAlias = DeleteCollectionRequestAlpha1 # noqa: Y015 + +@_typing.final +class VectorRecord(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ID_FIELD_NUMBER: _builtins.int + VALUES_FIELD_NUMBER: _builtins.int + PAYLOAD_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + id: _builtins.str + payload: _builtins.bytes + """Opaque caller payload stored with the record and returned unchanged. Not + filterable. + """ + @_builtins.property + def values(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: + """Dense vector. Length must equal the collection's dimensions.""" + + @_builtins.property + def metadata(self) -> _struct_pb2.Struct: + """Structured, filterable attributes addressed by the filter DSL.""" + + def __init__( + self, + *, + id: _builtins.str = ..., + values: _abc.Iterable[_builtins.float] | None = ..., + payload: _builtins.bytes | None = ..., + metadata: _struct_pb2.Struct | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_metadata", b"_metadata", "_payload", b"_payload", "metadata", b"metadata", "payload", b"payload"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_metadata", b"_metadata", "_payload", b"_payload", "id", b"id", "metadata", b"metadata", "payload", b"payload", "values", b"values"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__metadata: _TypeAlias = _typing.Literal["metadata"] # noqa: Y015 + _WhichOneofArgType__metadata: _TypeAlias = _typing.Literal["_metadata", b"_metadata"] # noqa: Y015 + _WhichOneofReturnType__payload: _TypeAlias = _typing.Literal["payload"] # noqa: Y015 + _WhichOneofArgType__payload: _TypeAlias = _typing.Literal["_payload", b"_payload"] # noqa: Y015 + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__metadata) -> _WhichOneofReturnType__metadata | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__payload) -> _WhichOneofReturnType__payload | None: ... + +Global___VectorRecord: _TypeAlias = VectorRecord # noqa: Y015 + +@_typing.final +class VectorMatch(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RECORD_FIELD_NUMBER: _builtins.int + SCORE_FIELD_NUMBER: _builtins.int + score: _builtins.float + """Unnormalized value of the effective metric. Higher is better for COSINE + and DOT_PRODUCT; lower is better for EUCLIDEAN. + """ + @_builtins.property + def record(self) -> Global___VectorRecord: ... + def __init__( + self, + *, + record: Global___VectorRecord | None = ..., + score: _builtins.float = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["record", b"record"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["record", b"record", "score", b"score"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___VectorMatch: _TypeAlias = VectorMatch # noqa: Y015 + +@_typing.final +class UpsertVectorsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + RECORDS_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + @_builtins.property + def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___VectorRecord]: ... + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def options(self) -> _search_pb2.IndexingOptionsAlpha1: + """Omitted options behave as INDEXING_MODE_RETURN_ON_ACCEPTANCE.""" + + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + records: _abc.Iterable[Global___VectorRecord] | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + options: _search_pb2.IndexingOptionsAlpha1 | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "options", b"options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "collection", b"collection", "metadata", b"metadata", "options", b"options", "records", b"records", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__options: _TypeAlias = _typing.Literal["options"] # noqa: Y015 + _WhichOneofArgType__options: _TypeAlias = _typing.Literal["_options", b"_options"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__options) -> _WhichOneofReturnType__options | None: ... + +Global___UpsertVectorsRequestAlpha1: _TypeAlias = UpsertVectorsRequestAlpha1 # noqa: Y015 + +@_typing.final +class UpsertVectorsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FAILED_ITEMS_FIELD_NUMBER: _builtins.int + ACK_FIELD_NUMBER: _builtins.int + ack: _search_pb2.IndexAck.ValueType + """Always set to QUEUED or COMPLETED on a successful RPC.""" + @_builtins.property + def failed_items(self) -> _containers.RepeatedCompositeFieldContainer[_search_pb2.FailedItem]: + """Item-specific failures known at the acknowledgement boundary.""" + + def __init__( + self, + *, + failed_items: _abc.Iterable[_search_pb2.FailedItem] | None = ..., + ack: _search_pb2.IndexAck.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ack", b"ack", "failed_items", b"failed_items"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___UpsertVectorsResponseAlpha1: _TypeAlias = UpsertVectorsResponseAlpha1 # noqa: Y015 + +@_typing.final +class DeleteVectorsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + IDS_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + OPTIONS_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + @_builtins.property + def ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def options(self) -> _search_pb2.IndexingOptionsAlpha1: + """Omitted options behave as INDEXING_MODE_RETURN_ON_ACCEPTANCE.""" + + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + ids: _abc.Iterable[_builtins.str] | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + options: _search_pb2.IndexingOptionsAlpha1 | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "options", b"options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_options", b"_options", "collection", b"collection", "ids", b"ids", "metadata", b"metadata", "options", b"options", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__options: _TypeAlias = _typing.Literal["options"] # noqa: Y015 + _WhichOneofArgType__options: _TypeAlias = _typing.Literal["_options", b"_options"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__options) -> _WhichOneofReturnType__options | None: ... + +Global___DeleteVectorsRequestAlpha1: _TypeAlias = DeleteVectorsRequestAlpha1 # noqa: Y015 + +@_typing.final +class DeleteVectorsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ACK_FIELD_NUMBER: _builtins.int + ack: _search_pb2.IndexAck.ValueType + """Always set to QUEUED or COMPLETED on a successful RPC.""" + def __init__( + self, + *, + ack: _search_pb2.IndexAck.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ack", b"ack"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteVectorsResponseAlpha1: _TypeAlias = DeleteVectorsResponseAlpha1 # noqa: Y015 + +@_typing.final +class GetVectorsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + IDS_FIELD_NUMBER: _builtins.int + INCLUDE_VALUES_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + include_values: _builtins.bool + """Whether VectorRecord.values is returned. Defaults to false.""" + @_builtins.property + def ids(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + ids: _abc.Iterable[_builtins.str] | None = ..., + include_values: _builtins.bool | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_include_values", b"_include_values", "include_values", b"include_values"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_include_values", b"_include_values", "collection", b"collection", "ids", b"ids", "include_values", b"include_values", "metadata", b"metadata", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__include_values: _TypeAlias = _typing.Literal["include_values"] # noqa: Y015 + _WhichOneofArgType__include_values: _TypeAlias = _typing.Literal["_include_values", b"_include_values"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__include_values) -> _WhichOneofReturnType__include_values | None: ... + +Global___GetVectorsRequestAlpha1: _TypeAlias = GetVectorsRequestAlpha1 # noqa: Y015 + +@_typing.final +class GetVectorsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RECORDS_FIELD_NUMBER: _builtins.int + @_builtins.property + def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___VectorRecord]: + """Found records in request order. IDs that do not exist are omitted.""" + + def __init__( + self, + *, + records: _abc.Iterable[Global___VectorRecord] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetVectorsResponseAlpha1: _TypeAlias = GetVectorsResponseAlpha1 # noqa: Y015 + +@_typing.final +class VectorQuery(_message.Message): + """VectorQuery selects and shapes the matches of one query.""" + + DESCRIPTOR: _descriptor.Descriptor + + VECTOR_FIELD_NUMBER: _builtins.int + BY_ID_FIELD_NUMBER: _builtins.int + TOP_K_FIELD_NUMBER: _builtins.int + FILTER_FIELD_NUMBER: _builtins.int + INCLUDE_VALUES_FIELD_NUMBER: _builtins.int + INCLUDE_PAYLOAD_FIELD_NUMBER: _builtins.int + METRIC_FIELD_NUMBER: _builtins.int + SCORE_THRESHOLD_FIELD_NUMBER: _builtins.int + by_id: _builtins.str + top_k: _builtins.int + """Maximum number of matches to return. When omitted or 0, the component's + documented default applies. + """ + include_values: _builtins.bool + """Whether VectorRecord.values is returned with each match. Defaults to + false. + """ + include_payload: _builtins.bool + """Whether VectorRecord.payload is returned with each match. Defaults to + false. + """ + metric: Global___DistanceMetric.ValueType + """Determines how score and score_threshold are interpreted. UNSPECIFIED + uses the metric configured for the collection. A metric the component + cannot evaluate for this collection returns INVALID_ARGUMENT. + """ + score_threshold: _builtins.float + """Inclusive cutoff. A match is retained when its score is greater than or + equal to this value for COSINE and DOT_PRODUCT, or less than or equal to + this value for EUCLIDEAN. The value is not normalized. + """ + @_builtins.property + def vector(self) -> Global___VectorRecord: + """Only values is read and must not be empty; the remaining VectorRecord + fields are ignored. + """ + + @_builtins.property + def filter(self) -> _struct_pb2.Struct: ... + def __init__( + self, + *, + vector: Global___VectorRecord | None = ..., + by_id: _builtins.str = ..., + top_k: _builtins.int | None = ..., + filter: _struct_pb2.Struct | None = ..., + include_values: _builtins.bool | None = ..., + include_payload: _builtins.bool | None = ..., + metric: Global___DistanceMetric.ValueType = ..., + score_threshold: _builtins.float | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_filter", b"_filter", "_include_payload", b"_include_payload", "_include_values", b"_include_values", "_score_threshold", b"_score_threshold", "_top_k", b"_top_k", "by_id", b"by_id", "filter", b"filter", "include_payload", b"include_payload", "include_values", b"include_values", "kind", b"kind", "score_threshold", b"score_threshold", "top_k", b"top_k", "vector", b"vector"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_filter", b"_filter", "_include_payload", b"_include_payload", "_include_values", b"_include_values", "_score_threshold", b"_score_threshold", "_top_k", b"_top_k", "by_id", b"by_id", "filter", b"filter", "include_payload", b"include_payload", "include_values", b"include_values", "kind", b"kind", "metric", b"metric", "score_threshold", b"score_threshold", "top_k", b"top_k", "vector", b"vector"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__filter: _TypeAlias = _typing.Literal["filter"] # noqa: Y015 + _WhichOneofArgType__filter: _TypeAlias = _typing.Literal["_filter", b"_filter"] # noqa: Y015 + _WhichOneofReturnType__include_payload: _TypeAlias = _typing.Literal["include_payload"] # noqa: Y015 + _WhichOneofArgType__include_payload: _TypeAlias = _typing.Literal["_include_payload", b"_include_payload"] # noqa: Y015 + _WhichOneofReturnType__include_values: _TypeAlias = _typing.Literal["include_values"] # noqa: Y015 + _WhichOneofArgType__include_values: _TypeAlias = _typing.Literal["_include_values", b"_include_values"] # noqa: Y015 + _WhichOneofReturnType__score_threshold: _TypeAlias = _typing.Literal["score_threshold"] # noqa: Y015 + _WhichOneofArgType__score_threshold: _TypeAlias = _typing.Literal["_score_threshold", b"_score_threshold"] # noqa: Y015 + _WhichOneofReturnType__top_k: _TypeAlias = _typing.Literal["top_k"] # noqa: Y015 + _WhichOneofArgType__top_k: _TypeAlias = _typing.Literal["_top_k", b"_top_k"] # noqa: Y015 + _WhichOneofReturnType_kind: _TypeAlias = _typing.Literal["vector", "by_id"] # noqa: Y015 + _WhichOneofArgType_kind: _TypeAlias = _typing.Literal["kind", b"kind"] # noqa: Y015 + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__filter) -> _WhichOneofReturnType__filter | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__include_payload) -> _WhichOneofReturnType__include_payload | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__include_values) -> _WhichOneofReturnType__include_values | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__score_threshold) -> _WhichOneofReturnType__score_threshold | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__top_k) -> _WhichOneofReturnType__top_k | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___VectorQuery: _TypeAlias = VectorQuery # noqa: Y015 + +@_typing.final +class QueryVectorsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + @_builtins.property + def query(self) -> Global___VectorQuery: + """Required.""" + + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + query: Global___VectorQuery | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["query", b"query"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "metadata", b"metadata", "query", b"query", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___QueryVectorsRequestAlpha1: _TypeAlias = QueryVectorsRequestAlpha1 # noqa: Y015 + +@_typing.final +class QueryVectorsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + MATCHES_FIELD_NUMBER: _builtins.int + METRIC_FIELD_NUMBER: _builtins.int + metric: Global___DistanceMetric.ValueType + """Effective metric used for scores. This is set to a concrete value even + when the request uses DISTANCE_METRIC_UNSPECIFIED. + """ + @_builtins.property + def matches(self) -> _containers.RepeatedCompositeFieldContainer[Global___VectorMatch]: ... + def __init__( + self, + *, + matches: _abc.Iterable[Global___VectorMatch] | None = ..., + metric: Global___DistanceMetric.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["matches", b"matches", "metric", b"metric"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___QueryVectorsResponseAlpha1: _TypeAlias = QueryVectorsResponseAlpha1 # noqa: Y015 + +@_typing.final +class BatchQueryVectorsRequestAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class MetadataEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str + def __init__( + self, + *, + key: _builtins.str = ..., + value: _builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + QUERIES_FIELD_NUMBER: _builtins.int + METADATA_FIELD_NUMBER: _builtins.int + store_name: _builtins.str + collection: _builtins.str + @_builtins.property + def queries(self) -> _containers.RepeatedCompositeFieldContainer[Global___VectorQuery]: + """Every query runs against the store_name and collection of this request.""" + + @_builtins.property + def metadata(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Applies to every query.""" + + def __init__( + self, + *, + store_name: _builtins.str = ..., + collection: _builtins.str = ..., + queries: _abc.Iterable[Global___VectorQuery] | None = ..., + metadata: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "metadata", b"metadata", "queries", b"queries", "store_name", b"store_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___BatchQueryVectorsRequestAlpha1: _TypeAlias = BatchQueryVectorsRequestAlpha1 # noqa: Y015 + +@_typing.final +class BatchQueryResultAlpha1(_message.Message): + """BatchQueryResultAlpha1 is the outcome of one query in a batch.""" + + DESCRIPTOR: _descriptor.Descriptor + + RESPONSE_FIELD_NUMBER: _builtins.int + ERROR_FIELD_NUMBER: _builtins.int + @_builtins.property + def response(self) -> Global___QueryVectorsResponseAlpha1: ... + @_builtins.property + def error(self) -> _status_pb2.Status: + """error.code uses a canonical google.rpc.Code and must not be OK.""" + + def __init__( + self, + *, + response: Global___QueryVectorsResponseAlpha1 | None = ..., + error: _status_pb2.Status | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "response", b"response", "result", b"result"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["error", b"error", "response", b"response", "result", b"result"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_result: _TypeAlias = _typing.Literal["response", "error"] # noqa: Y015 + _WhichOneofArgType_result: _TypeAlias = _typing.Literal["result", b"result"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_result) -> _WhichOneofReturnType_result | None: ... + +Global___BatchQueryResultAlpha1: _TypeAlias = BatchQueryResultAlpha1 # noqa: Y015 + +@_typing.final +class BatchQueryVectorsResponseAlpha1(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RESULTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def results(self) -> _containers.RepeatedCompositeFieldContainer[Global___BatchQueryResultAlpha1]: + """One result per request query, in request order.""" + + def __init__( + self, + *, + results: _abc.Iterable[Global___BatchQueryResultAlpha1] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["results", b"results"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___BatchQueryVectorsResponseAlpha1: _TypeAlias = BatchQueryVectorsResponseAlpha1 # noqa: Y015 diff --git a/dapr/proto/runtime/v1/vector_pb2_grpc.py b/dapr/proto/runtime/v1/vector_pb2_grpc.py new file mode 100644 index 000000000..64dc9f925 --- /dev/null +++ b/dapr/proto/runtime/v1/vector_pb2_grpc.py @@ -0,0 +1,24 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + + +GRPC_GENERATED_VERSION = '1.81.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + ' but the generated code in dapr/proto/runtime/v1/vector_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/tools/regen_grpcclient.sh b/tools/regen_grpcclient.sh index 13d669400..48e585974 100755 --- a/tools/regen_grpcclient.sh +++ b/tools/regen_grpcclient.sh @@ -47,6 +47,9 @@ done < <(find "dapr/proto/runtime/v1" -name '*.proto' -print0) popd +# search.proto and vector.proto import google/rpc/status.proto, which grpc_tools does not bundle. +# googleapis-common-protos ships it, and grpcio-status already depends on that package. +googleapis_protos="$(python3 -c 'import pathlib, google.rpc.status_pb2 as m; print(pathlib.Path(m.__file__).parents[2])')" -python3 -m grpc_tools.protoc -I ${target} --proto_path="${tmp}" --python_out=${target} --grpc_python_out=${target} --mypy_out=${target} ${files[@]} +python3 -m grpc_tools.protoc -I ${target} --proto_path="${tmp}" --proto_path="${googleapis_protos}" --python_out=${target} --grpc_python_out=${target} --mypy_out=${target} ${files[@]} echo -e "\ngRPC interface and proto buf generated successfully!"