diff --git a/dapr/aio/clients/grpc/client.py b/dapr/aio/clients/grpc/client.py index d363775fb..a17b5311a 100644 --- a/dapr/aio/clients/grpc/client.py +++ b/dapr/aio/clients/grpc/client.py @@ -96,7 +96,6 @@ from dapr.conf import settings from dapr.conf.helpers import GrpcEndpoint from dapr.proto import api_service_v1, api_v1, common_v1 -from dapr.proto.runtime.v1.dapr_pb2 import UnsubscribeConfigurationResponse from dapr.version import __version__ @@ -1206,7 +1205,9 @@ async def unsubscribe_configuration(self, store_name: str, id: str) -> bool: bool: True if unsubscribed successfully, False otherwise """ req = api_v1.UnsubscribeConfigurationRequest(store_name=store_name, id=id) - response: UnsubscribeConfigurationResponse = await self._stub.UnsubscribeConfiguration(req) + response: api_v1.UnsubscribeConfigurationResponse = ( + await self._stub.UnsubscribeConfiguration(req) + ) return response.ok async def try_lock( diff --git a/dapr/clients/grpc/_jobs.py b/dapr/clients/grpc/_jobs.py index 5df9975f0..792cc95a4 100644 --- a/dapr/clients/grpc/_jobs.py +++ b/dapr/clients/grpc/_jobs.py @@ -119,7 +119,7 @@ def _get_proto(self): """ from google.protobuf.any_pb2 import Any as GrpcAny - from dapr.proto.runtime.v1 import dapr_pb2 as api_v1 + from dapr.proto import api_v1 # Build the job proto job_proto = api_v1.Job(name=self.name) diff --git a/dapr/clients/grpc/client.py b/dapr/clients/grpc/client.py index a0a886d06..8e56c1880 100644 --- a/dapr/clients/grpc/client.py +++ b/dapr/clients/grpc/client.py @@ -89,7 +89,6 @@ from dapr.conf import settings from dapr.conf.helpers import GrpcEndpoint from dapr.proto import api_service_v1, api_v1, common_v1 -from dapr.proto.runtime.v1.dapr_pb2 import UnsubscribeConfigurationResponse from dapr.version import __version__ @@ -1215,7 +1214,7 @@ def unsubscribe_configuration(self, store_name: str, id: str) -> bool: bool: True if unsubscribed successfully, False otherwise """ req = api_v1.UnsubscribeConfigurationRequest(store_name=store_name, id=id) - response: UnsubscribeConfigurationResponse = self._stub.UnsubscribeConfiguration(req) + response: api_v1.UnsubscribeConfigurationResponse = self._stub.UnsubscribeConfiguration(req) return response.ok def try_lock( diff --git a/dapr/proto/__init__.py b/dapr/proto/__init__.py index 3a918a66d..1ef922e1b 100644 --- a/dapr/proto/__init__.py +++ b/dapr/proto/__init__.py @@ -21,8 +21,9 @@ from dapr.conf import settings from dapr.proto.common.v1 import common_pb2 as common_v1 -from dapr.proto.runtime.v1 import dapr_pb2 as api_v1 +import dapr.proto.runtime.v1 as api_v1 from dapr.proto.runtime.v1 import dapr_pb2_grpc as api_service_v1 + from dapr.proto.runtime.v1 import appcallback_pb2 as appcallback_v1 from dapr.proto.runtime.v1 import appcallback_pb2_grpc as appcallback_service_v1 diff --git a/dapr/proto/common/v1/common_pb2.py b/dapr/proto/common/v1/common_pb2.py index 7f8feb46b..21ef9de3d 100644 --- a/dapr/proto/common/v1/common_pb2.py +++ b/dapr/proto/common/v1/common_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: dapr/proto/common/v1/common.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 6.31.1 """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, + 31, + 1, + '', + 'dapr/proto/common/v1/common.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,12 +31,12 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.common.v1.common_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\014CommonProtosZ/github.com/dapr/dapr/pkg/proto/common/v1;common\252\002\033Dapr.Client.Autogen.Grpc.v1' - _globals['_STATEITEM_METADATAENTRY']._options = None + _globals['_STATEITEM_METADATAENTRY']._loaded_options = None _globals['_STATEITEM_METADATAENTRY']._serialized_options = b'8\001' - _globals['_CONFIGURATIONITEM_METADATAENTRY']._options = None + _globals['_CONFIGURATIONITEM_METADATAENTRY']._loaded_options = None _globals['_CONFIGURATIONITEM_METADATAENTRY']._serialized_options = b'8\001' _globals['_HTTPEXTENSION']._serialized_start=119 _globals['_HTTPEXTENSION']._serialized_end=327 diff --git a/dapr/proto/common/v1/common_pb2.pyi b/dapr/proto/common/v1/common_pb2.pyi index bc44e3359..8ddf0049e 100644 --- a/dapr/proto/common/v1/common_pb2.pyi +++ b/dapr/proto/common/v1/common_pb2.pyi @@ -81,19 +81,20 @@ class HTTPExtension(google.protobuf.message.Message): VERB_FIELD_NUMBER: builtins.int QUERYSTRING_FIELD_NUMBER: builtins.int - verb: global___HTTPExtension.Verb.ValueType + verb: Global___HTTPExtension.Verb.ValueType """Required. HTTP verb.""" querystring: builtins.str """Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2""" def __init__( self, *, - verb: global___HTTPExtension.Verb.ValueType = ..., + verb: Global___HTTPExtension.Verb.ValueType = ..., querystring: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["querystring", b"querystring", "verb", b"verb"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["querystring", b"querystring", "verb", b"verb"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___HTTPExtension = HTTPExtension +Global___HTTPExtension: typing_extensions.TypeAlias = HTTPExtension @typing.final class InvokeRequest(google.protobuf.message.Message): @@ -123,7 +124,7 @@ class InvokeRequest(google.protobuf.message.Message): """ @property - def http_extension(self) -> global___HTTPExtension: + def http_extension(self) -> Global___HTTPExtension: """HTTP specific fields if request conveys http-compatible request. This field is required for http-compatible request. Otherwise, @@ -136,12 +137,14 @@ class InvokeRequest(google.protobuf.message.Message): method: builtins.str = ..., data: google.protobuf.any_pb2.Any | None = ..., content_type: builtins.str = ..., - http_extension: global___HTTPExtension | None = ..., + http_extension: Global___HTTPExtension | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data", b"data", "http_extension", b"http_extension"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["content_type", b"content_type", "data", b"data", "http_extension", b"http_extension", "method", b"method"]) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "http_extension", b"http_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["content_type", b"content_type", "data", b"data", "http_extension", b"http_extension", "method", b"method"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___InvokeRequest = InvokeRequest +Global___InvokeRequest: typing_extensions.TypeAlias = InvokeRequest @typing.final class InvokeResponse(google.protobuf.message.Message): @@ -167,10 +170,12 @@ class InvokeResponse(google.protobuf.message.Message): data: google.protobuf.any_pb2.Any | None = ..., content_type: builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["content_type", b"content_type", "data", b"data"]) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["content_type", b"content_type", "data", b"data"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___InvokeResponse = InvokeResponse +Global___InvokeResponse: typing_extensions.TypeAlias = InvokeResponse @typing.final class StreamPayload(google.protobuf.message.Message): @@ -196,9 +201,10 @@ class StreamPayload(google.protobuf.message.Message): data: builtins.bytes = ..., seq: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "seq", b"seq"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "seq", b"seq"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StreamPayload = StreamPayload +Global___StreamPayload: typing_extensions.TypeAlias = StreamPayload @typing.final class StateItem(google.protobuf.message.Message): @@ -220,7 +226,8 @@ class StateItem(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int @@ -232,7 +239,7 @@ class StateItem(google.protobuf.message.Message): value: builtins.bytes """Required. The state data for key""" @property - def etag(self) -> global___Etag: + def etag(self) -> Global___Etag: """The entity tag which represents the specific version of data. The exact ETag format is defined by the corresponding data store. """ @@ -242,7 +249,7 @@ class StateItem(google.protobuf.message.Message): """The metadata which will be passed to state store component.""" @property - def options(self) -> global___StateOptions: + def options(self) -> Global___StateOptions: """Options for concurrency and consistency to save the state.""" def __init__( @@ -250,14 +257,16 @@ class StateItem(google.protobuf.message.Message): *, key: builtins.str = ..., value: builtins.bytes = ..., - etag: global___Etag | None = ..., + etag: Global___Etag | None = ..., metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - options: global___StateOptions | None = ..., + options: Global___StateOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["etag", b"etag", "options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["etag", b"etag", "key", b"key", "metadata", b"metadata", "options", b"options", "value", b"value"]) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["etag", b"etag", "options", b"options"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["etag", b"etag", "key", b"key", "metadata", b"metadata", "options", b"options", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StateItem = StateItem +Global___StateItem: typing_extensions.TypeAlias = StateItem @typing.final class Etag(google.protobuf.message.Message): @@ -273,9 +282,10 @@ class Etag(google.protobuf.message.Message): *, value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Etag = Etag +Global___Etag: typing_extensions.TypeAlias = Etag @typing.final class StateOptions(google.protobuf.message.Message): @@ -319,17 +329,18 @@ class StateOptions(google.protobuf.message.Message): CONCURRENCY_FIELD_NUMBER: builtins.int CONSISTENCY_FIELD_NUMBER: builtins.int - concurrency: global___StateOptions.StateConcurrency.ValueType - consistency: global___StateOptions.StateConsistency.ValueType + concurrency: Global___StateOptions.StateConcurrency.ValueType + consistency: Global___StateOptions.StateConsistency.ValueType def __init__( self, *, - concurrency: global___StateOptions.StateConcurrency.ValueType = ..., - consistency: global___StateOptions.StateConsistency.ValueType = ..., + concurrency: Global___StateOptions.StateConcurrency.ValueType = ..., + consistency: Global___StateOptions.StateConsistency.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["concurrency", b"concurrency", "consistency", b"consistency"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["concurrency", b"concurrency", "consistency", b"consistency"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StateOptions = StateOptions +Global___StateOptions: typing_extensions.TypeAlias = StateOptions @typing.final class ConfigurationItem(google.protobuf.message.Message): @@ -351,7 +362,8 @@ class ConfigurationItem(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... VALUE_FIELD_NUMBER: builtins.int VERSION_FIELD_NUMBER: builtins.int @@ -371,9 +383,10 @@ class ConfigurationItem(google.protobuf.message.Message): version: builtins.str = ..., metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "value", b"value", "version", b"version"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["metadata", b"metadata", "value", b"value", "version", b"version"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ConfigurationItem = ConfigurationItem +Global___ConfigurationItem: typing_extensions.TypeAlias = ConfigurationItem @typing.final class JobFailurePolicy(google.protobuf.message.Message): @@ -384,20 +397,24 @@ class JobFailurePolicy(google.protobuf.message.Message): DROP_FIELD_NUMBER: builtins.int CONSTANT_FIELD_NUMBER: builtins.int @property - def drop(self) -> global___JobFailurePolicyDrop: ... + def drop(self) -> Global___JobFailurePolicyDrop: ... @property - def constant(self) -> global___JobFailurePolicyConstant: ... + def constant(self) -> Global___JobFailurePolicyConstant: ... def __init__( self, *, - drop: global___JobFailurePolicyDrop | None = ..., - constant: global___JobFailurePolicyConstant | None = ..., + drop: Global___JobFailurePolicyDrop | None = ..., + constant: Global___JobFailurePolicyConstant | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["constant", b"constant", "drop", b"drop", "policy", b"policy"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["constant", b"constant", "drop", b"drop", "policy", b"policy"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["policy", b"policy"]) -> typing.Literal["drop", "constant"] | None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["constant", b"constant", "drop", b"drop", "policy", b"policy"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["constant", b"constant", "drop", b"drop", "policy", b"policy"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_policy: typing_extensions.TypeAlias = typing.Literal["drop", "constant"] + _WhichOneofArgType_policy: typing_extensions.TypeAlias = typing.Literal["policy", b"policy"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_policy) -> _WhichOneofReturnType_policy | None: ... -global___JobFailurePolicy = JobFailurePolicy +Global___JobFailurePolicy: typing_extensions.TypeAlias = JobFailurePolicy @typing.final class JobFailurePolicyDrop(google.protobuf.message.Message): @@ -409,7 +426,7 @@ class JobFailurePolicyDrop(google.protobuf.message.Message): self, ) -> None: ... -global___JobFailurePolicyDrop = JobFailurePolicyDrop +Global___JobFailurePolicyDrop: typing_extensions.TypeAlias = JobFailurePolicyDrop @typing.final class JobFailurePolicyConstant(google.protobuf.message.Message): @@ -433,8 +450,12 @@ class JobFailurePolicyConstant(google.protobuf.message.Message): interval: google.protobuf.duration_pb2.Duration | None = ..., max_retries: builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["_max_retries", b"_max_retries", "interval", b"interval", "max_retries", b"max_retries"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_max_retries", b"_max_retries", "interval", b"interval", "max_retries", b"max_retries"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_max_retries", b"_max_retries"]) -> typing.Literal["max_retries"] | None: ... - -global___JobFailurePolicyConstant = JobFailurePolicyConstant + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_max_retries", b"_max_retries", "interval", b"interval", "max_retries", b"max_retries"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_max_retries", b"_max_retries", "interval", b"interval", "max_retries", b"max_retries"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__max_retries: typing_extensions.TypeAlias = typing.Literal["max_retries"] + _WhichOneofArgType__max_retries: typing_extensions.TypeAlias = typing.Literal["_max_retries", b"_max_retries"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__max_retries) -> _WhichOneofReturnType__max_retries | None: ... + +Global___JobFailurePolicyConstant: typing_extensions.TypeAlias = JobFailurePolicyConstant diff --git a/dapr/proto/common/v1/common_pb2_grpc.py b/dapr/proto/common/v1/common_pb2_grpc.py index 2daafffeb..8e198f49a 100644 --- a/dapr/proto/common/v1/common_pb2_grpc.py +++ b/dapr/proto/common/v1/common_pb2_grpc.py @@ -1,4 +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.76.0' +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/common/v1/common_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/__init__.py b/dapr/proto/runtime/v1/__init__.py index a47978853..00058d699 100644 --- a/dapr/proto/runtime/v1/__init__.py +++ b/dapr/proto/runtime/v1/__init__.py @@ -12,3 +12,34 @@ See the License for the specific language governing permissions and limitations under the License. """ + +from .ai_pb2 import * +from .ai_pb2_grpc import * +from .actors_pb2 import * +from .actors_pb2_grpc import * +from .appcallback_pb2 import * +from .appcallback_pb2_grpc import * +from .binding_pb2 import * +from .binding_pb2_grpc import * +from .configuration_pb2 import * +from .configuration_pb2_grpc import * +from .crypto_pb2 import * +from .crypto_pb2_grpc import * +from .dapr_pb2 import * +from .dapr_pb2_grpc import * +from .invoke_pb2 import * +from .invoke_pb2_grpc import * +from .jobs_pb2 import * +from .jobs_pb2_grpc import * +from .lock_pb2 import * +from .lock_pb2_grpc import * +from .metadata_pb2 import * +from .metadata_pb2_grpc import * +from .pubsub_pb2 import * +from .pubsub_pb2_grpc import * +from .secret_pb2 import * +from .secret_pb2_grpc import * +from .state_pb2 import * +from .state_pb2_grpc import * +from .workflow_pb2 import * +from .workflow_pb2_grpc import * diff --git a/dapr/proto/runtime/v1/actors_pb2.py b/dapr/proto/runtime/v1/actors_pb2.py new file mode 100644 index 000000000..9a99221fb --- /dev/null +++ b/dapr/proto/runtime/v1/actors_pb2.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/actors.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/actors.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +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/actors.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x19google/protobuf/any.proto\x1a!dapr/proto/common/v1/common.proto\"\xbb\x01\n\x19RegisterActorTimerRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x19\n\x08\x64ue_time\x18\x04 \x01(\tR\x07\x64ueTime\x12\x0e\n\x06period\x18\x05 \x01(\t\x12\x10\n\x08\x63\x61llback\x18\x06 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x07 \x01(\x0c\x12\x0b\n\x03ttl\x18\x08 \x01(\t\"e\n\x1bUnregisterActorTimerRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\"\xba\x02\n\x1cRegisterActorReminderRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x19\n\x08\x64ue_time\x18\x04 \x01(\tR\x07\x64ueTime\x12\x0e\n\x06period\x18\x05 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\x12\x0b\n\x03ttl\x18\x07 \x01(\t\x12\x16\n\toverwrite\x18\x08 \x01(\x08H\x00\x88\x01\x01\x12S\n\x0e\x66\x61ilure_policy\x18\t \x01(\x0b\x32&.dapr.proto.common.v1.JobFailurePolicyH\x01R\x0e\x66\x61ilure_policy\x88\x01\x01\x42\x0c\n\n_overwriteB\x11\n\x0f_failure_policy\"h\n\x1eUnregisterActorReminderRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\"]\n\x14GetActorStateRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0b\n\x03key\x18\x03 \x01(\t\"\xa4\x01\n\x15GetActorStateResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.dapr.proto.runtime.v1.GetActorStateResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xac\x01\n#ExecuteActorStateTransactionRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12K\n\noperations\x18\x03 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.TransactionalActorStateOperation\"\xf5\x01\n TransactionalActorStateOperation\x12\x15\n\roperationType\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12#\n\x05value\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any\x12W\n\x08metadata\x18\x04 \x03(\x0b\x32\x45.dapr.proto.runtime.v1.TransactionalActorStateOperation.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe8\x01\n\x12InvokeActorRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0e\n\x06method\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.InvokeActorRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"#\n\x13InvokeActorResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"a\n\x17GetActorReminderRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torID\x12\x0c\n\x04name\x18\x03 \x01(\t\"\xdf\x01\n\x18GetActorReminderResponse\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torID\x12\x1e\n\x08\x64ue_time\x18\x04 \x01(\tH\x00R\x07\x64ueTime\x88\x01\x01\x12\x13\n\x06period\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\"\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x10\n\x03ttl\x18\x07 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_due_timeB\t\n\x07_periodB\x06\n\x04_ttl\"g\n\x19ListActorRemindersRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x1e\n\x08\x61\x63tor_id\x18\x02 \x01(\tH\x00R\x07\x61\x63torId\x88\x01\x01\x42\x0b\n\t_actor_id\"Z\n\x1aListActorRemindersResponse\x12<\n\treminders\x18\x01 \x03(\x0b\x32).dapr.proto.runtime.v1.NamedActorReminder\"Z\n\x12NamedActorReminder\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x08reminder\x18\x02 \x01(\x0b\x32$.dapr.proto.runtime.v1.ActorReminder\"\xd4\x01\n\rActorReminder\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torID\x12\x1e\n\x08\x64ue_time\x18\x04 \x01(\tH\x00R\x07\x64ueTime\x88\x01\x01\x12\x13\n\x06period\x18\x05 \x01(\tH\x01\x88\x01\x01\x12\"\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x10\n\x03ttl\x18\x07 \x01(\tH\x02\x88\x01\x01\x42\x0b\n\t_due_timeB\t\n\x07_periodB\x06\n\x04_ttl\"s\n%UnregisterActorRemindersByTypeRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x1e\n\x08\x61\x63tor_id\x18\x02 \x01(\tH\x00R\x07\x61\x63torId\x88\x01\x01\x42\x0b\n\t_actor_id\"(\n&UnregisterActorRemindersByTypeResponseBi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.actors_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._loaded_options = None + _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._serialized_options = b'8\001' + _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._loaded_options = None + _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._serialized_options = b'8\001' + _globals['_INVOKEACTORREQUEST_METADATAENTRY']._loaded_options = None + _globals['_INVOKEACTORREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_REGISTERACTORTIMERREQUEST']._serialized_start=124 + _globals['_REGISTERACTORTIMERREQUEST']._serialized_end=311 + _globals['_UNREGISTERACTORTIMERREQUEST']._serialized_start=313 + _globals['_UNREGISTERACTORTIMERREQUEST']._serialized_end=414 + _globals['_REGISTERACTORREMINDERREQUEST']._serialized_start=417 + _globals['_REGISTERACTORREMINDERREQUEST']._serialized_end=731 + _globals['_UNREGISTERACTORREMINDERREQUEST']._serialized_start=733 + _globals['_UNREGISTERACTORREMINDERREQUEST']._serialized_end=837 + _globals['_GETACTORSTATEREQUEST']._serialized_start=839 + _globals['_GETACTORSTATEREQUEST']._serialized_end=932 + _globals['_GETACTORSTATERESPONSE']._serialized_start=935 + _globals['_GETACTORSTATERESPONSE']._serialized_end=1099 + _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._serialized_start=1052 + _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._serialized_end=1099 + _globals['_EXECUTEACTORSTATETRANSACTIONREQUEST']._serialized_start=1102 + _globals['_EXECUTEACTORSTATETRANSACTIONREQUEST']._serialized_end=1274 + _globals['_TRANSACTIONALACTORSTATEOPERATION']._serialized_start=1277 + _globals['_TRANSACTIONALACTORSTATEOPERATION']._serialized_end=1522 + _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._serialized_start=1052 + _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._serialized_end=1099 + _globals['_INVOKEACTORREQUEST']._serialized_start=1525 + _globals['_INVOKEACTORREQUEST']._serialized_end=1757 + _globals['_INVOKEACTORREQUEST_METADATAENTRY']._serialized_start=1052 + _globals['_INVOKEACTORREQUEST_METADATAENTRY']._serialized_end=1099 + _globals['_INVOKEACTORRESPONSE']._serialized_start=1759 + _globals['_INVOKEACTORRESPONSE']._serialized_end=1794 + _globals['_GETACTORREMINDERREQUEST']._serialized_start=1796 + _globals['_GETACTORREMINDERREQUEST']._serialized_end=1893 + _globals['_GETACTORREMINDERRESPONSE']._serialized_start=1896 + _globals['_GETACTORREMINDERRESPONSE']._serialized_end=2119 + _globals['_LISTACTORREMINDERSREQUEST']._serialized_start=2121 + _globals['_LISTACTORREMINDERSREQUEST']._serialized_end=2224 + _globals['_LISTACTORREMINDERSRESPONSE']._serialized_start=2226 + _globals['_LISTACTORREMINDERSRESPONSE']._serialized_end=2316 + _globals['_NAMEDACTORREMINDER']._serialized_start=2318 + _globals['_NAMEDACTORREMINDER']._serialized_end=2408 + _globals['_ACTORREMINDER']._serialized_start=2411 + _globals['_ACTORREMINDER']._serialized_end=2623 + _globals['_UNREGISTERACTORREMINDERSBYTYPEREQUEST']._serialized_start=2625 + _globals['_UNREGISTERACTORREMINDERSBYTYPEREQUEST']._serialized_end=2740 + _globals['_UNREGISTERACTORREMINDERSBYTYPERESPONSE']._serialized_start=2742 + _globals['_UNREGISTERACTORREMINDERSBYTYPERESPONSE']._serialized_end=2782 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/actors_pb2.pyi b/dapr/proto/runtime/v1/actors_pb2.pyi new file mode 100644 index 000000000..327a984fd --- /dev/null +++ b/dapr/proto/runtime/v1/actors_pb2.pyi @@ -0,0 +1,610 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import dapr.proto.common.v1.common_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class RegisterActorTimerRequest(google.protobuf.message.Message): + """RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DUE_TIME_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + CALLBACK_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TTL_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + name: builtins.str + due_time: builtins.str + period: builtins.str + callback: builtins.str + data: builtins.bytes + ttl: builtins.str + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + name: builtins.str = ..., + due_time: builtins.str = ..., + period: builtins.str = ..., + callback: builtins.str = ..., + data: builtins.bytes = ..., + ttl: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "callback", b"callback", "data", b"data", "due_time", b"due_time", "name", b"name", "period", b"period", "ttl", b"ttl"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___RegisterActorTimerRequest: typing_extensions.TypeAlias = RegisterActorTimerRequest + +@typing.final +class UnregisterActorTimerRequest(google.protobuf.message.Message): + """UnregisterActorTimerRequest is the message to unregister an actor timer""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + name: builtins.str + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___UnregisterActorTimerRequest: typing_extensions.TypeAlias = UnregisterActorTimerRequest + +@typing.final +class RegisterActorReminderRequest(google.protobuf.message.Message): + """RegisterActorReminderRequest is the message to register a reminder for an actor of a given type and id.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DUE_TIME_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TTL_FIELD_NUMBER: builtins.int + OVERWRITE_FIELD_NUMBER: builtins.int + FAILURE_POLICY_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + name: builtins.str + due_time: builtins.str + period: builtins.str + data: builtins.bytes + ttl: builtins.str + overwrite: builtins.bool + """If true, allows this reminder to overwrite an existing reminder with the + same name. If not set, defaults to true. + """ + @property + def failure_policy(self) -> dapr.proto.common.v1.common_pb2.JobFailurePolicy: + """failure_policy is the optional policy for handling job failures. If not + set, the reminder will have the failure policy of trying 3 times on a + single tick before giving up. + """ + + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + name: builtins.str = ..., + due_time: builtins.str = ..., + period: builtins.str = ..., + data: builtins.bytes = ..., + ttl: builtins.str = ..., + overwrite: builtins.bool | None = ..., + failure_policy: dapr.proto.common.v1.common_pb2.JobFailurePolicy | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_failure_policy", b"_failure_policy", "_overwrite", b"_overwrite", "failure_policy", b"failure_policy", "overwrite", b"overwrite"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_failure_policy", b"_failure_policy", "_overwrite", b"_overwrite", "actor_id", b"actor_id", "actor_type", b"actor_type", "data", b"data", "due_time", b"due_time", "failure_policy", b"failure_policy", "name", b"name", "overwrite", b"overwrite", "period", b"period", "ttl", b"ttl"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__failure_policy: typing_extensions.TypeAlias = typing.Literal["failure_policy"] + _WhichOneofArgType__failure_policy: typing_extensions.TypeAlias = typing.Literal["_failure_policy", b"_failure_policy"] + _WhichOneofReturnType__overwrite: typing_extensions.TypeAlias = typing.Literal["overwrite"] + _WhichOneofArgType__overwrite: typing_extensions.TypeAlias = typing.Literal["_overwrite", b"_overwrite"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__failure_policy) -> _WhichOneofReturnType__failure_policy | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__overwrite) -> _WhichOneofReturnType__overwrite | None: ... + +Global___RegisterActorReminderRequest: typing_extensions.TypeAlias = RegisterActorReminderRequest + +@typing.final +class UnregisterActorReminderRequest(google.protobuf.message.Message): + """UnregisterActorReminderRequest is the message to unregister an actor reminder.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + name: builtins.str + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___UnregisterActorReminderRequest: typing_extensions.TypeAlias = UnregisterActorReminderRequest + +@typing.final +class GetActorStateRequest(google.protobuf.message.Message): + """GetActorStateRequest is the message to get key-value states from specific actor.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + key: builtins.str + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + key: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "key", b"key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetActorStateRequest: typing_extensions.TypeAlias = GetActorStateRequest + +@typing.final +class GetActorStateResponse(google.protobuf.message.Message): + """GetActorStateResponse is the response conveying the actor's state value.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + data: builtins.bytes + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to app.""" + + def __init__( + self, + *, + data: builtins.bytes = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "metadata", b"metadata"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetActorStateResponse: typing_extensions.TypeAlias = GetActorStateResponse + +@typing.final +class ExecuteActorStateTransactionRequest(google.protobuf.message.Message): + """ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + OPERATIONS_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + @property + def operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___TransactionalActorStateOperation]: ... + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + operations: collections.abc.Iterable[Global___TransactionalActorStateOperation] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "operations", b"operations"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ExecuteActorStateTransactionRequest: typing_extensions.TypeAlias = ExecuteActorStateTransactionRequest + +@typing.final +class TransactionalActorStateOperation(google.protobuf.message.Message): + """TransactionalActorStateOperation is the message to execute a specified operation with a key-value pair.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + OPERATIONTYPE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + operationType: builtins.str + key: builtins.str + @property + def value(self) -> google.protobuf.any_pb2.Any: ... + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata used for transactional operations. + + Common metadata property: + - ttlInSeconds : the time to live in seconds for the stored value. + """ + + def __init__( + self, + *, + operationType: builtins.str = ..., + key: builtins.str = ..., + value: google.protobuf.any_pb2.Any | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "metadata", b"metadata", "operationType", b"operationType", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___TransactionalActorStateOperation: typing_extensions.TypeAlias = TransactionalActorStateOperation + +@typing.final +class InvokeActorRequest(google.protobuf.message.Message): + """InvokeActorRequest is the message to call an actor.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + METHOD_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + method: builtins.str + data: builtins.bytes + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + method: builtins.str = ..., + data: builtins.bytes = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "data", b"data", "metadata", b"metadata", "method", b"method"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___InvokeActorRequest: typing_extensions.TypeAlias = InvokeActorRequest + +@typing.final +class InvokeActorResponse(google.protobuf.message.Message): + """InvokeActorResponse is the method that returns an actor invocation response.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATA_FIELD_NUMBER: builtins.int + data: builtins.bytes + def __init__( + self, + *, + data: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___InvokeActorResponse: typing_extensions.TypeAlias = InvokeActorResponse + +@typing.final +class GetActorReminderRequest(google.protobuf.message.Message): + """GetActorReminderRequest is the message to get an already-registered actor reminder""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + name: builtins.str + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetActorReminderRequest: typing_extensions.TypeAlias = GetActorReminderRequest + +@typing.final +class GetActorReminderResponse(google.protobuf.message.Message): + """GetActorReminderResponse is the response conveying an actor's reminder.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + DUE_TIME_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TTL_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + due_time: builtins.str + period: builtins.str + ttl: builtins.str + @property + def data(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + due_time: builtins.str | None = ..., + period: builtins.str | None = ..., + data: google.protobuf.any_pb2.Any | None = ..., + ttl: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time", "_period", b"_period", "_ttl", b"_ttl", "data", b"data", "due_time", b"due_time", "period", b"period", "ttl", b"ttl"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time", "_period", b"_period", "_ttl", b"_ttl", "actor_id", b"actor_id", "actor_type", b"actor_type", "data", b"data", "due_time", b"due_time", "period", b"period", "ttl", b"ttl"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__due_time: typing_extensions.TypeAlias = typing.Literal["due_time"] + _WhichOneofArgType__due_time: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time"] + _WhichOneofReturnType__period: typing_extensions.TypeAlias = typing.Literal["period"] + _WhichOneofArgType__period: typing_extensions.TypeAlias = typing.Literal["_period", b"_period"] + _WhichOneofReturnType__ttl: typing_extensions.TypeAlias = typing.Literal["ttl"] + _WhichOneofArgType__ttl: typing_extensions.TypeAlias = typing.Literal["_ttl", b"_ttl"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__due_time) -> _WhichOneofReturnType__due_time | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__period) -> _WhichOneofReturnType__period | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__ttl) -> _WhichOneofReturnType__ttl | None: ... + +Global___GetActorReminderResponse: typing_extensions.TypeAlias = GetActorReminderResponse + +@typing.final +class ListActorRemindersRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_actor_id", b"_actor_id", "actor_id", b"actor_id"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_actor_id", b"_actor_id", "actor_id", b"actor_id", "actor_type", b"actor_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__actor_id: typing_extensions.TypeAlias = typing.Literal["actor_id"] + _WhichOneofArgType__actor_id: typing_extensions.TypeAlias = typing.Literal["_actor_id", b"_actor_id"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__actor_id) -> _WhichOneofReturnType__actor_id | None: ... + +Global___ListActorRemindersRequest: typing_extensions.TypeAlias = ListActorRemindersRequest + +@typing.final +class ListActorRemindersResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REMINDERS_FIELD_NUMBER: builtins.int + @property + def reminders(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___NamedActorReminder]: ... + def __init__( + self, + *, + reminders: collections.abc.Iterable[Global___NamedActorReminder] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["reminders", b"reminders"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListActorRemindersResponse: typing_extensions.TypeAlias = ListActorRemindersResponse + +@typing.final +class NamedActorReminder(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + REMINDER_FIELD_NUMBER: builtins.int + name: builtins.str + @property + def reminder(self) -> Global___ActorReminder: ... + def __init__( + self, + *, + name: builtins.str = ..., + reminder: Global___ActorReminder | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["reminder", b"reminder"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["name", b"name", "reminder", b"reminder"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___NamedActorReminder: typing_extensions.TypeAlias = NamedActorReminder + +@typing.final +class ActorReminder(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + DUE_TIME_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TTL_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + due_time: builtins.str + period: builtins.str + ttl: builtins.str + @property + def data(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str = ..., + due_time: builtins.str | None = ..., + period: builtins.str | None = ..., + data: google.protobuf.any_pb2.Any | None = ..., + ttl: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time", "_period", b"_period", "_ttl", b"_ttl", "data", b"data", "due_time", b"due_time", "period", b"period", "ttl", b"ttl"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time", "_period", b"_period", "_ttl", b"_ttl", "actor_id", b"actor_id", "actor_type", b"actor_type", "data", b"data", "due_time", b"due_time", "period", b"period", "ttl", b"ttl"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__due_time: typing_extensions.TypeAlias = typing.Literal["due_time"] + _WhichOneofArgType__due_time: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time"] + _WhichOneofReturnType__period: typing_extensions.TypeAlias = typing.Literal["period"] + _WhichOneofArgType__period: typing_extensions.TypeAlias = typing.Literal["_period", b"_period"] + _WhichOneofReturnType__ttl: typing_extensions.TypeAlias = typing.Literal["ttl"] + _WhichOneofArgType__ttl: typing_extensions.TypeAlias = typing.Literal["_ttl", b"_ttl"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__due_time) -> _WhichOneofReturnType__due_time | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__period) -> _WhichOneofReturnType__period | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__ttl) -> _WhichOneofReturnType__ttl | None: ... + +Global___ActorReminder: typing_extensions.TypeAlias = ActorReminder + +@typing.final +class UnregisterActorRemindersByTypeRequest(google.protobuf.message.Message): + """UnregisterActorRemindersByTypeRequest is the message to unregister an actor + reminders by the given type. Optional actor_id can be provided to limit the + scope of the operation to a specific actor instance. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTOR_TYPE_FIELD_NUMBER: builtins.int + ACTOR_ID_FIELD_NUMBER: builtins.int + actor_type: builtins.str + actor_id: builtins.str + def __init__( + self, + *, + actor_type: builtins.str = ..., + actor_id: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_actor_id", b"_actor_id", "actor_id", b"actor_id"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_actor_id", b"_actor_id", "actor_id", b"actor_id", "actor_type", b"actor_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__actor_id: typing_extensions.TypeAlias = typing.Literal["actor_id"] + _WhichOneofArgType__actor_id: typing_extensions.TypeAlias = typing.Literal["_actor_id", b"_actor_id"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__actor_id) -> _WhichOneofReturnType__actor_id | None: ... + +Global___UnregisterActorRemindersByTypeRequest: typing_extensions.TypeAlias = UnregisterActorRemindersByTypeRequest + +@typing.final +class UnregisterActorRemindersByTypeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___UnregisterActorRemindersByTypeResponse: typing_extensions.TypeAlias = UnregisterActorRemindersByTypeResponse diff --git a/dapr/proto/runtime/v1/actors_pb2_grpc.py b/dapr/proto/runtime/v1/actors_pb2_grpc.py new file mode 100644 index 000000000..02669cd7e --- /dev/null +++ b/dapr/proto/runtime/v1/actors_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.76.0' +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/actors_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/ai_pb2.py b/dapr/proto/runtime/v1/ai_pb2.py new file mode 100644 index 000000000..0f56cd0d9 --- /dev/null +++ b/dapr/proto/runtime/v1/ai_pb2.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/ai.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/ai.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x64\x61pr/proto/runtime/v1/ai.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xeb\x03\n\x13\x43onversationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\tcontextID\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x38\n\x06inputs\x18\x03 \x03(\x0b\x32(.dapr.proto.runtime.v1.ConversationInput\x12N\n\nparameters\x18\x04 \x03(\x0b\x32:.dapr.proto.runtime.v1.ConversationRequest.ParametersEntry\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.ConversationRequest.MetadataEntry\x12\x15\n\x08scrubPII\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12\x18\n\x0btemperature\x18\x07 \x01(\x01H\x02\x88\x01\x01\x1aG\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x02\x18\x01\x42\x0c\n\n_contextIDB\x0b\n\t_scrubPIIB\x0e\n\x0c_temperature\"\xe6\x04\n\x19\x43onversationRequestAlpha2\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\ncontext_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12>\n\x06inputs\x18\x03 \x03(\x0b\x32..dapr.proto.runtime.v1.ConversationInputAlpha2\x12T\n\nparameters\x18\x04 \x03(\x0b\x32@.dapr.proto.runtime.v1.ConversationRequestAlpha2.ParametersEntry\x12P\n\x08metadata\x18\x05 \x03(\x0b\x32>.dapr.proto.runtime.v1.ConversationRequestAlpha2.MetadataEntry\x12\x16\n\tscrub_pii\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12\x18\n\x0btemperature\x18\x07 \x01(\x01H\x02\x88\x01\x01\x12\x37\n\x05tools\x18\x08 \x03(\x0b\x32(.dapr.proto.runtime.v1.ConversationTools\x12\x18\n\x0btool_choice\x18\t \x01(\tH\x03\x88\x01\x01\x1aG\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\r\n\x0b_context_idB\x0c\n\n_scrub_piiB\x0e\n\x0c_temperatureB\x0e\n\x0c_tool_choice\"h\n\x11\x43onversationInput\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\x04role\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08scrubPII\x18\x03 \x01(\x08H\x01\x88\x01\x01:\x02\x18\x01\x42\x07\n\x05_roleB\x0b\n\t_scrubPII\"}\n\x17\x43onversationInputAlpha2\x12<\n\x08messages\x18\x01 \x03(\x0b\x32*.dapr.proto.runtime.v1.ConversationMessage\x12\x16\n\tscrub_pii\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x0c\n\n_scrub_pii\"\x97\x03\n\x13\x43onversationMessage\x12M\n\x0cof_developer\x18\x01 \x01(\x0b\x32\x35.dapr.proto.runtime.v1.ConversationMessageOfDeveloperH\x00\x12G\n\tof_system\x18\x02 \x01(\x0b\x32\x32.dapr.proto.runtime.v1.ConversationMessageOfSystemH\x00\x12\x43\n\x07of_user\x18\x03 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationMessageOfUserH\x00\x12M\n\x0cof_assistant\x18\x04 \x01(\x0b\x32\x35.dapr.proto.runtime.v1.ConversationMessageOfAssistantH\x00\x12\x43\n\x07of_tool\x18\x05 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationMessageOfToolH\x00\x42\x0f\n\rmessage_types\"\x80\x01\n\x1e\x43onversationMessageOfDeveloper\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\x07\n\x05_name\"}\n\x1b\x43onversationMessageOfSystem\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\x07\n\x05_name\"{\n\x19\x43onversationMessageOfUser\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\x07\n\x05_name\"\xc2\x01\n\x1e\x43onversationMessageOfAssistant\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContent\x12@\n\ntool_calls\x18\x03 \x03(\x0b\x32,.dapr.proto.runtime.v1.ConversationToolCallsB\x07\n\x05_name\"\x8f\x01\n\x19\x43onversationMessageOfTool\x12\x14\n\x07tool_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x07\x63ontent\x18\x03 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\n\n\x08_tool_id\"\x89\x01\n\x15\x43onversationToolCalls\x12\x0f\n\x02id\x18\x01 \x01(\tH\x01\x88\x01\x01\x12J\n\x08\x66unction\x18\x02 \x01(\x0b\x32\x36.dapr.proto.runtime.v1.ConversationToolCallsOfFunctionH\x00\x42\x0c\n\ntool_typesB\x05\n\x03_id\"B\n\x1f\x43onversationToolCallsOfFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x01(\t\"*\n\x1a\x43onversationMessageContent\x12\x0c\n\x04text\x18\x01 \x01(\t\"\xc0\x01\n\x12\x43onversationResult\x12\x0e\n\x06result\x18\x01 \x01(\t\x12M\n\nparameters\x18\x02 \x03(\x0b\x32\x39.dapr.proto.runtime.v1.ConversationResult.ParametersEntry\x1aG\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01:\x02\x18\x01\"]\n\x18\x43onversationResultAlpha2\x12\x41\n\x07\x63hoices\x18\x01 \x03(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationResultChoices\"\x84\x01\n\x19\x43onversationResultChoices\x12\x15\n\rfinish_reason\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\x03\x12\x41\n\x07message\x18\x03 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationResultMessage\"n\n\x19\x43onversationResultMessage\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12@\n\ntool_calls\x18\x02 \x03(\x0b\x32,.dapr.proto.runtime.v1.ConversationToolCalls\"|\n\x14\x43onversationResponse\x12\x16\n\tcontextID\x18\x01 \x01(\tH\x00\x88\x01\x01\x12:\n\x07outputs\x18\x02 \x03(\x0b\x32).dapr.proto.runtime.v1.ConversationResult:\x02\x18\x01\x42\x0c\n\n_contextID\"\x86\x01\n\x1a\x43onversationResponseAlpha2\x12\x17\n\ncontext_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12@\n\x07outputs\x18\x02 \x03(\x0b\x32/.dapr.proto.runtime.v1.ConversationResultAlpha2B\r\n\x0b_context_id\"g\n\x11\x43onversationTools\x12\x44\n\x08\x66unction\x18\x01 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationToolsFunctionH\x00\x42\x0c\n\ntool_types\"\x80\x01\n\x19\x43onversationToolsFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x0e\n\x0c_descriptionBi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.ai_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._loaded_options = None + _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_CONVERSATIONREQUEST_METADATAENTRY']._loaded_options = None + _globals['_CONVERSATIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_CONVERSATIONREQUEST']._loaded_options = None + _globals['_CONVERSATIONREQUEST']._serialized_options = b'\030\001' + _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._loaded_options = None + _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._loaded_options = None + _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._serialized_options = b'8\001' + _globals['_CONVERSATIONINPUT']._loaded_options = None + _globals['_CONVERSATIONINPUT']._serialized_options = b'\030\001' + _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._loaded_options = None + _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._serialized_options = b'8\001' + _globals['_CONVERSATIONRESULT']._loaded_options = None + _globals['_CONVERSATIONRESULT']._serialized_options = b'\030\001' + _globals['_CONVERSATIONRESPONSE']._loaded_options = None + _globals['_CONVERSATIONRESPONSE']._serialized_options = b'\030\001' + _globals['_CONVERSATIONREQUEST']._serialized_start=115 + _globals['_CONVERSATIONREQUEST']._serialized_end=606 + _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._serialized_start=439 + _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._serialized_end=510 + _globals['_CONVERSATIONREQUEST_METADATAENTRY']._serialized_start=512 + _globals['_CONVERSATIONREQUEST_METADATAENTRY']._serialized_end=559 + _globals['_CONVERSATIONREQUESTALPHA2']._serialized_start=609 + _globals['_CONVERSATIONREQUESTALPHA2']._serialized_end=1223 + _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._serialized_start=439 + _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._serialized_end=510 + _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._serialized_start=512 + _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._serialized_end=559 + _globals['_CONVERSATIONINPUT']._serialized_start=1225 + _globals['_CONVERSATIONINPUT']._serialized_end=1329 + _globals['_CONVERSATIONINPUTALPHA2']._serialized_start=1331 + _globals['_CONVERSATIONINPUTALPHA2']._serialized_end=1456 + _globals['_CONVERSATIONMESSAGE']._serialized_start=1459 + _globals['_CONVERSATIONMESSAGE']._serialized_end=1866 + _globals['_CONVERSATIONMESSAGEOFDEVELOPER']._serialized_start=1869 + _globals['_CONVERSATIONMESSAGEOFDEVELOPER']._serialized_end=1997 + _globals['_CONVERSATIONMESSAGEOFSYSTEM']._serialized_start=1999 + _globals['_CONVERSATIONMESSAGEOFSYSTEM']._serialized_end=2124 + _globals['_CONVERSATIONMESSAGEOFUSER']._serialized_start=2126 + _globals['_CONVERSATIONMESSAGEOFUSER']._serialized_end=2249 + _globals['_CONVERSATIONMESSAGEOFASSISTANT']._serialized_start=2252 + _globals['_CONVERSATIONMESSAGEOFASSISTANT']._serialized_end=2446 + _globals['_CONVERSATIONMESSAGEOFTOOL']._serialized_start=2449 + _globals['_CONVERSATIONMESSAGEOFTOOL']._serialized_end=2592 + _globals['_CONVERSATIONTOOLCALLS']._serialized_start=2595 + _globals['_CONVERSATIONTOOLCALLS']._serialized_end=2732 + _globals['_CONVERSATIONTOOLCALLSOFFUNCTION']._serialized_start=2734 + _globals['_CONVERSATIONTOOLCALLSOFFUNCTION']._serialized_end=2800 + _globals['_CONVERSATIONMESSAGECONTENT']._serialized_start=2802 + _globals['_CONVERSATIONMESSAGECONTENT']._serialized_end=2844 + _globals['_CONVERSATIONRESULT']._serialized_start=2847 + _globals['_CONVERSATIONRESULT']._serialized_end=3039 + _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._serialized_start=439 + _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._serialized_end=510 + _globals['_CONVERSATIONRESULTALPHA2']._serialized_start=3041 + _globals['_CONVERSATIONRESULTALPHA2']._serialized_end=3134 + _globals['_CONVERSATIONRESULTCHOICES']._serialized_start=3137 + _globals['_CONVERSATIONRESULTCHOICES']._serialized_end=3269 + _globals['_CONVERSATIONRESULTMESSAGE']._serialized_start=3271 + _globals['_CONVERSATIONRESULTMESSAGE']._serialized_end=3381 + _globals['_CONVERSATIONRESPONSE']._serialized_start=3383 + _globals['_CONVERSATIONRESPONSE']._serialized_end=3507 + _globals['_CONVERSATIONRESPONSEALPHA2']._serialized_start=3510 + _globals['_CONVERSATIONRESPONSEALPHA2']._serialized_end=3644 + _globals['_CONVERSATIONTOOLS']._serialized_start=3646 + _globals['_CONVERSATIONTOOLS']._serialized_end=3749 + _globals['_CONVERSATIONTOOLSFUNCTION']._serialized_start=3752 + _globals['_CONVERSATIONTOOLSFUNCTION']._serialized_end=3880 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/ai_pb2.pyi b/dapr/proto/runtime/v1/ai_pb2.pyi new file mode 100644 index 000000000..0497cae3b --- /dev/null +++ b/dapr/proto/runtime/v1/ai_pb2.pyi @@ -0,0 +1,911 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.struct_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +if sys.version_info >= (3, 13): + from warnings import deprecated +else: + from typing_extensions import deprecated + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@deprecated("""This message has been marked as deprecated using proto message options.""") +@typing.final +class ConversationRequest(google.protobuf.message.Message): + """ConversationRequest is the request object for Conversation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ParametersEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: builtins.int + CONTEXTID_FIELD_NUMBER: builtins.int + INPUTS_FIELD_NUMBER: builtins.int + PARAMETERS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + SCRUBPII_FIELD_NUMBER: builtins.int + TEMPERATURE_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of Conversation component""" + contextID: builtins.str + """The ID of an existing chat (like in ChatGPT)""" + scrubPII: builtins.bool + """Scrub PII data that comes back from the LLM""" + temperature: builtins.float + """Temperature for the LLM to optimize for creativity or predictability""" + @property + def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationInput]: + """Inputs for the conversation, support multiple input in one time.""" + + @property + def parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]: + """Parameters for all custom fields.""" + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata passing to conversation components.""" + + def __init__( + self, + *, + name: builtins.str = ..., + contextID: builtins.str | None = ..., + inputs: collections.abc.Iterable[Global___ConversationInput] | None = ..., + parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + scrubPII: builtins.bool | None = ..., + temperature: builtins.float | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_contextID", b"_contextID", "_scrubPII", b"_scrubPII", "_temperature", b"_temperature", "contextID", b"contextID", "scrubPII", b"scrubPII", "temperature", b"temperature"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_contextID", b"_contextID", "_scrubPII", b"_scrubPII", "_temperature", b"_temperature", "contextID", b"contextID", "inputs", b"inputs", "metadata", b"metadata", "name", b"name", "parameters", b"parameters", "scrubPII", b"scrubPII", "temperature", b"temperature"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__contextID: typing_extensions.TypeAlias = typing.Literal["contextID"] + _WhichOneofArgType__contextID: typing_extensions.TypeAlias = typing.Literal["_contextID", b"_contextID"] + _WhichOneofReturnType__scrubPII: typing_extensions.TypeAlias = typing.Literal["scrubPII"] + _WhichOneofArgType__scrubPII: typing_extensions.TypeAlias = typing.Literal["_scrubPII", b"_scrubPII"] + _WhichOneofReturnType__temperature: typing_extensions.TypeAlias = typing.Literal["temperature"] + _WhichOneofArgType__temperature: typing_extensions.TypeAlias = typing.Literal["_temperature", b"_temperature"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__contextID) -> _WhichOneofReturnType__contextID | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__scrubPII) -> _WhichOneofReturnType__scrubPII | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__temperature) -> _WhichOneofReturnType__temperature | None: ... + +Global___ConversationRequest: typing_extensions.TypeAlias = ConversationRequest + +@typing.final +class ConversationRequestAlpha2(google.protobuf.message.Message): + """ConversationRequestAlpha2 is the new request object for Conversation. + Many of these fields are inspired by openai.ChatCompletionNewParams + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2106 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ParametersEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: builtins.int + CONTEXT_ID_FIELD_NUMBER: builtins.int + INPUTS_FIELD_NUMBER: builtins.int + PARAMETERS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + SCRUB_PII_FIELD_NUMBER: builtins.int + TEMPERATURE_FIELD_NUMBER: builtins.int + TOOLS_FIELD_NUMBER: builtins.int + TOOL_CHOICE_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of Conversation component""" + context_id: builtins.str + """The ID of an existing chat (like in ChatGPT)""" + scrub_pii: builtins.bool + """Scrub PII data that comes back from the LLM""" + temperature: builtins.float + """Temperature for the LLM to optimize for creativity or predictability""" + tool_choice: builtins.str + """Controls which (if any) tool is called by the model. + `none` means the model will not call any tool and instead generates a message. + `auto` means the model can pick between generating a message or calling one or more tools. + Alternatively, a specific tool name may be used here, and casing/syntax must match on tool name. + `none` is the default when no tools are present. + `auto` is the default if tools are present. + `required` requires one or more functions to be called. + ref: https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1976 + ref: https://python.langchain.com/docs/how_to/tool_choice/ + """ + @property + def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationInputAlpha2]: + """Inputs for the conversation, support multiple input in one time. + This is the revamped conversation inputs better matching openai. + """ + + @property + def parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]: + """Parameters for all custom fields.""" + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata passing to conversation components.""" + + @property + def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationTools]: + """Tools register the tools available to be used by the LLM during the conversation. + These are sent on a per request basis. + The tools available during the first round of the conversation + may be different than tools specified later on. + """ + + def __init__( + self, + *, + name: builtins.str = ..., + context_id: builtins.str | None = ..., + inputs: collections.abc.Iterable[Global___ConversationInputAlpha2] | None = ..., + parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + scrub_pii: builtins.bool | None = ..., + temperature: builtins.float | None = ..., + tools: collections.abc.Iterable[Global___ConversationTools] | None = ..., + tool_choice: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_context_id", b"_context_id", "_scrub_pii", b"_scrub_pii", "_temperature", b"_temperature", "_tool_choice", b"_tool_choice", "context_id", b"context_id", "scrub_pii", b"scrub_pii", "temperature", b"temperature", "tool_choice", b"tool_choice"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_context_id", b"_context_id", "_scrub_pii", b"_scrub_pii", "_temperature", b"_temperature", "_tool_choice", b"_tool_choice", "context_id", b"context_id", "inputs", b"inputs", "metadata", b"metadata", "name", b"name", "parameters", b"parameters", "scrub_pii", b"scrub_pii", "temperature", b"temperature", "tool_choice", b"tool_choice", "tools", b"tools"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__context_id: typing_extensions.TypeAlias = typing.Literal["context_id"] + _WhichOneofArgType__context_id: typing_extensions.TypeAlias = typing.Literal["_context_id", b"_context_id"] + _WhichOneofReturnType__scrub_pii: typing_extensions.TypeAlias = typing.Literal["scrub_pii"] + _WhichOneofArgType__scrub_pii: typing_extensions.TypeAlias = typing.Literal["_scrub_pii", b"_scrub_pii"] + _WhichOneofReturnType__temperature: typing_extensions.TypeAlias = typing.Literal["temperature"] + _WhichOneofArgType__temperature: typing_extensions.TypeAlias = typing.Literal["_temperature", b"_temperature"] + _WhichOneofReturnType__tool_choice: typing_extensions.TypeAlias = typing.Literal["tool_choice"] + _WhichOneofArgType__tool_choice: typing_extensions.TypeAlias = typing.Literal["_tool_choice", b"_tool_choice"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__context_id) -> _WhichOneofReturnType__context_id | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__scrub_pii) -> _WhichOneofReturnType__scrub_pii | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__temperature) -> _WhichOneofReturnType__temperature | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__tool_choice) -> _WhichOneofReturnType__tool_choice | None: ... + +Global___ConversationRequestAlpha2: typing_extensions.TypeAlias = ConversationRequestAlpha2 + +@deprecated("""This message has been marked as deprecated using proto message options.""") +@typing.final +class ConversationInput(google.protobuf.message.Message): + """maintained for backwards compatibility""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTENT_FIELD_NUMBER: builtins.int + ROLE_FIELD_NUMBER: builtins.int + SCRUBPII_FIELD_NUMBER: builtins.int + content: builtins.str + """The content to send to the llm""" + role: builtins.str + """The role to set for the message""" + scrubPII: builtins.bool + """Scrub PII data that goes into the LLM""" + def __init__( + self, + *, + content: builtins.str = ..., + role: builtins.str | None = ..., + scrubPII: builtins.bool | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_role", b"_role", "_scrubPII", b"_scrubPII", "role", b"role", "scrubPII", b"scrubPII"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_role", b"_role", "_scrubPII", b"_scrubPII", "content", b"content", "role", b"role", "scrubPII", b"scrubPII"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__role: typing_extensions.TypeAlias = typing.Literal["role"] + _WhichOneofArgType__role: typing_extensions.TypeAlias = typing.Literal["_role", b"_role"] + _WhichOneofReturnType__scrubPII: typing_extensions.TypeAlias = typing.Literal["scrubPII"] + _WhichOneofArgType__scrubPII: typing_extensions.TypeAlias = typing.Literal["_scrubPII", b"_scrubPII"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__role) -> _WhichOneofReturnType__role | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__scrubPII) -> _WhichOneofReturnType__scrubPII | None: ... + +Global___ConversationInput: typing_extensions.TypeAlias = ConversationInput + +@typing.final +class ConversationInputAlpha2(google.protobuf.message.Message): + """directly inspired by openai.ChatCompletionNewParams + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2106 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MESSAGES_FIELD_NUMBER: builtins.int + SCRUB_PII_FIELD_NUMBER: builtins.int + scrub_pii: builtins.bool + """Scrub PII data that goes into the LLM""" + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationMessage]: + """The content to send to the llm""" + + def __init__( + self, + *, + messages: collections.abc.Iterable[Global___ConversationMessage] | None = ..., + scrub_pii: builtins.bool | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_scrub_pii", b"_scrub_pii", "scrub_pii", b"scrub_pii"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_scrub_pii", b"_scrub_pii", "messages", b"messages", "scrub_pii", b"scrub_pii"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__scrub_pii: typing_extensions.TypeAlias = typing.Literal["scrub_pii"] + _WhichOneofArgType__scrub_pii: typing_extensions.TypeAlias = typing.Literal["_scrub_pii", b"_scrub_pii"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__scrub_pii) -> _WhichOneofReturnType__scrub_pii | None: ... + +Global___ConversationInputAlpha2: typing_extensions.TypeAlias = ConversationInputAlpha2 + +@typing.final +class ConversationMessage(google.protobuf.message.Message): + """inspired by openai.ChatCompletionMessageParamUnion + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1449 + The role field is inherent to the type of ConversationMessage, + and is propagated in the backend according to the underlying LLM provider type. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OF_DEVELOPER_FIELD_NUMBER: builtins.int + OF_SYSTEM_FIELD_NUMBER: builtins.int + OF_USER_FIELD_NUMBER: builtins.int + OF_ASSISTANT_FIELD_NUMBER: builtins.int + OF_TOOL_FIELD_NUMBER: builtins.int + @property + def of_developer(self) -> Global___ConversationMessageOfDeveloper: ... + @property + def of_system(self) -> Global___ConversationMessageOfSystem: ... + @property + def of_user(self) -> Global___ConversationMessageOfUser: ... + @property + def of_assistant(self) -> Global___ConversationMessageOfAssistant: ... + @property + def of_tool(self) -> Global___ConversationMessageOfTool: + """Note: there could be a ConversationMessageOfFunction type here too, + but that is deprecated in openai, so we will not support this. + """ + + def __init__( + self, + *, + of_developer: Global___ConversationMessageOfDeveloper | None = ..., + of_system: Global___ConversationMessageOfSystem | None = ..., + of_user: Global___ConversationMessageOfUser | None = ..., + of_assistant: Global___ConversationMessageOfAssistant | None = ..., + of_tool: Global___ConversationMessageOfTool | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["message_types", b"message_types", "of_assistant", b"of_assistant", "of_developer", b"of_developer", "of_system", b"of_system", "of_tool", b"of_tool", "of_user", b"of_user"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["message_types", b"message_types", "of_assistant", b"of_assistant", "of_developer", b"of_developer", "of_system", b"of_system", "of_tool", b"of_tool", "of_user", b"of_user"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_message_types: typing_extensions.TypeAlias = typing.Literal["of_developer", "of_system", "of_user", "of_assistant", "of_tool"] + _WhichOneofArgType_message_types: typing_extensions.TypeAlias = typing.Literal["message_types", b"message_types"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_message_types) -> _WhichOneofReturnType_message_types | None: ... + +Global___ConversationMessage: typing_extensions.TypeAlias = ConversationMessage + +@typing.final +class ConversationMessageOfDeveloper(google.protobuf.message.Message): + """inspired by openai.ChatCompletionDeveloperMessageParam + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1130 + ConversationMessageOfDeveloper is intended to be the contents of a conversation message, + as the role of a developer. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of the participant in the message.""" + @property + def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationMessageContent]: ... + def __init__( + self, + *, + name: builtins.str | None = ..., + content: collections.abc.Iterable[Global___ConversationMessageContent] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "name", b"name"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "content", b"content", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__name: typing_extensions.TypeAlias = typing.Literal["name"] + _WhichOneofArgType__name: typing_extensions.TypeAlias = typing.Literal["_name", b"_name"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__name) -> _WhichOneofReturnType__name | None: ... + +Global___ConversationMessageOfDeveloper: typing_extensions.TypeAlias = ConversationMessageOfDeveloper + +@typing.final +class ConversationMessageOfSystem(google.protobuf.message.Message): + """inspired by openai.ChatCompletionSystemMessageParam + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1842 + ConversationMessageOfSystem is intended to be the contents of a conversation message, + as the role of a system. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + name: builtins.str + @property + def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationMessageContent]: ... + def __init__( + self, + *, + name: builtins.str | None = ..., + content: collections.abc.Iterable[Global___ConversationMessageContent] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "name", b"name"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "content", b"content", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__name: typing_extensions.TypeAlias = typing.Literal["name"] + _WhichOneofArgType__name: typing_extensions.TypeAlias = typing.Literal["_name", b"_name"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__name) -> _WhichOneofReturnType__name | None: ... + +Global___ConversationMessageOfSystem: typing_extensions.TypeAlias = ConversationMessageOfSystem + +@typing.final +class ConversationMessageOfUser(google.protobuf.message.Message): + """inspired by openai.ChatCompletionUserMessageParam + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2060C6-L2060C36 + ConversationMessageOfUser is intended to be the contents of a conversation message, + as the role of an end user. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + name: builtins.str + @property + def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationMessageContent]: ... + def __init__( + self, + *, + name: builtins.str | None = ..., + content: collections.abc.Iterable[Global___ConversationMessageContent] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "name", b"name"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "content", b"content", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__name: typing_extensions.TypeAlias = typing.Literal["name"] + _WhichOneofArgType__name: typing_extensions.TypeAlias = typing.Literal["_name", b"_name"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__name) -> _WhichOneofReturnType__name | None: ... + +Global___ConversationMessageOfUser: typing_extensions.TypeAlias = ConversationMessageOfUser + +@typing.final +class ConversationMessageOfAssistant(google.protobuf.message.Message): + """inspired by openai.ChatCompletionAssistantMessageParam + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L310 + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2060C6-L2060C36 + ConversationMessageOfAssistant is intended to be the contents of a conversation message, + as the role of an assistant. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + TOOL_CALLS_FIELD_NUMBER: builtins.int + name: builtins.str + @property + def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationMessageContent]: + """TODO: there is an audio field here to bring in when the time comes 1.17 or later.""" + + @property + def tool_calls(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationToolCalls]: + """Tool calls generated by the model, such as function calls for the client to then make.""" + + def __init__( + self, + *, + name: builtins.str | None = ..., + content: collections.abc.Iterable[Global___ConversationMessageContent] | None = ..., + tool_calls: collections.abc.Iterable[Global___ConversationToolCalls] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "name", b"name"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name", b"_name", "content", b"content", "name", b"name", "tool_calls", b"tool_calls"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__name: typing_extensions.TypeAlias = typing.Literal["name"] + _WhichOneofArgType__name: typing_extensions.TypeAlias = typing.Literal["_name", b"_name"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__name) -> _WhichOneofReturnType__name | None: ... + +Global___ConversationMessageOfAssistant: typing_extensions.TypeAlias = ConversationMessageOfAssistant + +@typing.final +class ConversationMessageOfTool(google.protobuf.message.Message): + """inspired by openai.ChatCompletionToolMessageParam + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2011 + ConversationMessageOfTool is intended to be the contents of a conversation message, + as the role of a tool. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TOOL_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + CONTENT_FIELD_NUMBER: builtins.int + tool_id: builtins.str + """Tool ID is helpful for tracking tool history""" + name: builtins.str + """Name of tool associated with the message""" + @property + def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationMessageContent]: ... + def __init__( + self, + *, + tool_id: builtins.str | None = ..., + name: builtins.str = ..., + content: collections.abc.Iterable[Global___ConversationMessageContent] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_tool_id", b"_tool_id", "tool_id", b"tool_id"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_tool_id", b"_tool_id", "content", b"content", "name", b"name", "tool_id", b"tool_id"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__tool_id: typing_extensions.TypeAlias = typing.Literal["tool_id"] + _WhichOneofArgType__tool_id: typing_extensions.TypeAlias = typing.Literal["_tool_id", b"_tool_id"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__tool_id) -> _WhichOneofReturnType__tool_id | None: ... + +Global___ConversationMessageOfTool: typing_extensions.TypeAlias = ConversationMessageOfTool + +@typing.final +class ConversationToolCalls(google.protobuf.message.Message): + """inspired by openai.ChatCompletionMessageToolCallParam and openai.ChatCompletionMessageToolCall + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1669 + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1611 + ConversationToolCalls is the tool call request sent from the llm to the client to then call to execute. + This assumes that in our api if a client makes a request that would get a tool call response from the llm, + that this client can also have the tool handy itself to execute it. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + FUNCTION_FIELD_NUMBER: builtins.int + id: builtins.str + @property + def function(self) -> Global___ConversationToolCallsOfFunction: ... + def __init__( + self, + *, + id: builtins.str | None = ..., + function: Global___ConversationToolCallsOfFunction | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_id", b"_id", "function", b"function", "id", b"id", "tool_types", b"tool_types"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_id", b"_id", "function", b"function", "id", b"id", "tool_types", b"tool_types"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__id: typing_extensions.TypeAlias = typing.Literal["id"] + _WhichOneofArgType__id: typing_extensions.TypeAlias = typing.Literal["_id", b"_id"] + _WhichOneofReturnType_tool_types: typing_extensions.TypeAlias = typing.Literal["function"] + _WhichOneofArgType_tool_types: typing_extensions.TypeAlias = typing.Literal["tool_types", b"tool_types"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__id) -> _WhichOneofReturnType__id | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType_tool_types) -> _WhichOneofReturnType_tool_types | None: ... + +Global___ConversationToolCalls: typing_extensions.TypeAlias = ConversationToolCalls + +@typing.final +class ConversationToolCallsOfFunction(google.protobuf.message.Message): + """inspired by openai.ChatCompletionMessageToolCallFunctionParam + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1692 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + ARGUMENTS_FIELD_NUMBER: builtins.int + name: builtins.str + arguments: builtins.str + """The arguments to call the function with, as generated by the model in JSON + format. Note that the model does not always generate valid JSON, and may + hallucinate parameters not defined by your function schema. Validate the + arguments in your code before calling your function. + """ + def __init__( + self, + *, + name: builtins.str = ..., + arguments: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arguments", b"arguments", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ConversationToolCallsOfFunction: typing_extensions.TypeAlias = ConversationToolCallsOfFunction + +@typing.final +class ConversationMessageContent(google.protobuf.message.Message): + """inspired by openai.ChatCompletionContentPartTextParam & openai.ChatCompletionDeveloperMessageParamContentUnion + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1084 + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1154C6-L1154C53 + Note: openai has this message be either a message of string or message of array type, + so instead of this, we support that in one message type instead. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TEXT_FIELD_NUMBER: builtins.int + text: builtins.str + def __init__( + self, + *, + text: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["text", b"text"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ConversationMessageContent: typing_extensions.TypeAlias = ConversationMessageContent + +@deprecated("""This message has been marked as deprecated using proto message options.""") +@typing.final +class ConversationResult(google.protobuf.message.Message): + """ConversationResult is the result for one input.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ParametersEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + RESULT_FIELD_NUMBER: builtins.int + PARAMETERS_FIELD_NUMBER: builtins.int + result: builtins.str + """Result for the one conversation input.""" + @property + def parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]: + """Parameters for all custom fields.""" + + def __init__( + self, + *, + result: builtins.str = ..., + parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["parameters", b"parameters", "result", b"result"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ConversationResult: typing_extensions.TypeAlias = ConversationResult + +@typing.final +class ConversationResultAlpha2(google.protobuf.message.Message): + """inspired by openai.ChatCompletion + ConversationResultAlpha2 is the result for one input. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CHOICES_FIELD_NUMBER: builtins.int + @property + def choices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationResultChoices]: + """Result for the conversation input.""" + + def __init__( + self, + *, + choices: collections.abc.Iterable[Global___ConversationResultChoices] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["choices", b"choices"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ConversationResultAlpha2: typing_extensions.TypeAlias = ConversationResultAlpha2 + +@typing.final +class ConversationResultChoices(google.protobuf.message.Message): + """inspired by openai.ChatCompletionChoice + based on https://github.com/openai/openai-go/blob/main/chatcompletion.go#L226 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FINISH_REASON_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + finish_reason: builtins.str + """The reason the model stopped generating tokens. This will be `stop` if the model + hit a natural stop point or a provided stop sequence, `length` if the maximum + number of tokens specified in the request was reached, `content_filter` if + content was omitted due to a flag from our content filters, `tool_calls` if the + model called a tool. + Any of "stop", "length", "tool_calls", "content_filter". + """ + index: builtins.int + """The index of the choice in the list of choices.""" + @property + def message(self) -> Global___ConversationResultMessage: ... + def __init__( + self, + *, + finish_reason: builtins.str = ..., + index: builtins.int = ..., + message: Global___ConversationResultMessage | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["message", b"message"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["finish_reason", b"finish_reason", "index", b"index", "message", b"message"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ConversationResultChoices: typing_extensions.TypeAlias = ConversationResultChoices + +@typing.final +class ConversationResultMessage(google.protobuf.message.Message): + """inspired by openai.ChatCompletionMessage + based on https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1218C6-L1218C27 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTENT_FIELD_NUMBER: builtins.int + TOOL_CALLS_FIELD_NUMBER: builtins.int + content: builtins.str + """The contents of the message.""" + @property + def tool_calls(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationToolCalls]: + """The tool calls generated by the model.""" + + def __init__( + self, + *, + content: builtins.str = ..., + tool_calls: collections.abc.Iterable[Global___ConversationToolCalls] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["content", b"content", "tool_calls", b"tool_calls"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ConversationResultMessage: typing_extensions.TypeAlias = ConversationResultMessage + +@deprecated("""This message has been marked as deprecated using proto message options.""") +@typing.final +class ConversationResponse(google.protobuf.message.Message): + """ConversationResponse is the response for Conversation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTEXTID_FIELD_NUMBER: builtins.int + OUTPUTS_FIELD_NUMBER: builtins.int + contextID: builtins.str + """The ID of an existing chat (like in ChatGPT)""" + @property + def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationResult]: + """An array of results.""" + + def __init__( + self, + *, + contextID: builtins.str | None = ..., + outputs: collections.abc.Iterable[Global___ConversationResult] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_contextID", b"_contextID", "contextID", b"contextID"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_contextID", b"_contextID", "contextID", b"contextID", "outputs", b"outputs"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__contextID: typing_extensions.TypeAlias = typing.Literal["contextID"] + _WhichOneofArgType__contextID: typing_extensions.TypeAlias = typing.Literal["_contextID", b"_contextID"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__contextID) -> _WhichOneofReturnType__contextID | None: ... + +Global___ConversationResponse: typing_extensions.TypeAlias = ConversationResponse + +@typing.final +class ConversationResponseAlpha2(google.protobuf.message.Message): + """ConversationResponseAlpha2 is the Alpha2 response for Conversation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONTEXT_ID_FIELD_NUMBER: builtins.int + OUTPUTS_FIELD_NUMBER: builtins.int + context_id: builtins.str + """The ID of an existing chat (like in ChatGPT)""" + @property + def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConversationResultAlpha2]: + """An array of results.""" + + def __init__( + self, + *, + context_id: builtins.str | None = ..., + outputs: collections.abc.Iterable[Global___ConversationResultAlpha2] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_context_id", b"_context_id", "context_id", b"context_id"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_context_id", b"_context_id", "context_id", b"context_id", "outputs", b"outputs"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__context_id: typing_extensions.TypeAlias = typing.Literal["context_id"] + _WhichOneofArgType__context_id: typing_extensions.TypeAlias = typing.Literal["_context_id", b"_context_id"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__context_id) -> _WhichOneofReturnType__context_id | None: ... + +Global___ConversationResponseAlpha2: typing_extensions.TypeAlias = ConversationResponseAlpha2 + +@typing.final +class ConversationTools(google.protobuf.message.Message): + """ConversationTools are the typed tools available to be called. + inspired by openai.ChatCompletionToolParam + https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1950 + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FUNCTION_FIELD_NUMBER: builtins.int + @property + def function(self) -> Global___ConversationToolsFunction: ... + def __init__( + self, + *, + function: Global___ConversationToolsFunction | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["function", b"function", "tool_types", b"tool_types"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["function", b"function", "tool_types", b"tool_types"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_tool_types: typing_extensions.TypeAlias = typing.Literal["function"] + _WhichOneofArgType_tool_types: typing_extensions.TypeAlias = typing.Literal["tool_types", b"tool_types"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_tool_types) -> _WhichOneofReturnType_tool_types | None: ... + +Global___ConversationTools: typing_extensions.TypeAlias = ConversationTools + +@typing.final +class ConversationToolsFunction(google.protobuf.message.Message): + """ConversationToolsFunction is the main tool type to be used in a conversation. + inspired by openai.FunctionDefinitionParam + https://pkg.go.dev/github.com/openai/openai-go/shared#FunctionDefinitionParam + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + PARAMETERS_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of the function to be called.""" + description: builtins.str + """A description of what the function does, + used by the model to choose when and how to call the function. + """ + @property + def parameters(self) -> google.protobuf.struct_pb2.Struct: + """The parameters the functions accepts, described as a JSON Schema object. + See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, + and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. + Omitting `parameters` defines a function with an empty parameter list. + """ + + def __init__( + self, + *, + name: builtins.str = ..., + description: builtins.str | None = ..., + parameters: google.protobuf.struct_pb2.Struct | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_description", b"_description", "description", b"description", "parameters", b"parameters"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_description", b"_description", "description", b"description", "name", b"name", "parameters", b"parameters"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__description: typing_extensions.TypeAlias = typing.Literal["description"] + _WhichOneofArgType__description: typing_extensions.TypeAlias = typing.Literal["_description", b"_description"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__description) -> _WhichOneofReturnType__description | None: ... + +Global___ConversationToolsFunction: typing_extensions.TypeAlias = ConversationToolsFunction diff --git a/dapr/proto/runtime/v1/ai_pb2_grpc.py b/dapr/proto/runtime/v1/ai_pb2_grpc.py new file mode 100644 index 000000000..d4f769741 --- /dev/null +++ b/dapr/proto/runtime/v1/ai_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.76.0' +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/ai_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/appcallback_pb2.py b/dapr/proto/runtime/v1/appcallback_pb2.py index 6773f7623..eb8fdea45 100644 --- a/dapr/proto/runtime/v1/appcallback_pb2.py +++ b/dapr/proto/runtime/v1/appcallback_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: dapr/proto/runtime/v1/appcallback.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 6.31.1 """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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/appcallback.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,16 +33,16 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.appcallback_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\025DaprAppCallbackProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002 Dapr.AppCallback.Autogen.Grpc.v1' - _globals['_TOPICEVENTBULKREQUESTENTRY_METADATAENTRY']._options = None + _globals['_TOPICEVENTBULKREQUESTENTRY_METADATAENTRY']._loaded_options = None _globals['_TOPICEVENTBULKREQUESTENTRY_METADATAENTRY']._serialized_options = b'8\001' - _globals['_TOPICEVENTBULKREQUEST_METADATAENTRY']._options = None + _globals['_TOPICEVENTBULKREQUEST_METADATAENTRY']._loaded_options = None _globals['_TOPICEVENTBULKREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_BINDINGEVENTREQUEST_METADATAENTRY']._options = None + _globals['_BINDINGEVENTREQUEST_METADATAENTRY']._loaded_options = None _globals['_BINDINGEVENTREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_TOPICSUBSCRIPTION_METADATAENTRY']._options = None + _globals['_TOPICSUBSCRIPTION_METADATAENTRY']._loaded_options = None _globals['_TOPICSUBSCRIPTION_METADATAENTRY']._serialized_options = b'8\001' _globals['_JOBEVENTREQUEST']._serialized_start=188 _globals['_JOBEVENTREQUEST']._serialized_end=354 diff --git a/dapr/proto/runtime/v1/appcallback_pb2.pyi b/dapr/proto/runtime/v1/appcallback_pb2.pyi index 6c12dc572..a42db30bc 100644 --- a/dapr/proto/runtime/v1/appcallback_pb2.pyi +++ b/dapr/proto/runtime/v1/appcallback_pb2.pyi @@ -73,10 +73,12 @@ class JobEventRequest(google.protobuf.message.Message): content_type: builtins.str = ..., http_extension: dapr.proto.common.v1.common_pb2.HTTPExtension | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["data", b"data", "http_extension", b"http_extension"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["content_type", b"content_type", "data", b"data", "http_extension", b"http_extension", "method", b"method", "name", b"name"]) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "http_extension", b"http_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["content_type", b"content_type", "data", b"data", "http_extension", b"http_extension", "method", b"method", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___JobEventRequest = JobEventRequest +Global___JobEventRequest: typing_extensions.TypeAlias = JobEventRequest @typing.final class JobEventResponse(google.protobuf.message.Message): @@ -88,7 +90,7 @@ class JobEventResponse(google.protobuf.message.Message): self, ) -> None: ... -global___JobEventResponse = JobEventResponse +Global___JobEventResponse: typing_extensions.TypeAlias = JobEventResponse @typing.final class TopicEventRequest(google.protobuf.message.Message): @@ -154,10 +156,12 @@ class TopicEventRequest(google.protobuf.message.Message): path: builtins.str = ..., extensions: google.protobuf.struct_pb2.Struct | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["extensions", b"extensions"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "data_content_type", b"data_content_type", "extensions", b"extensions", "id", b"id", "path", b"path", "pubsub_name", b"pubsub_name", "source", b"source", "spec_version", b"spec_version", "topic", b"topic", "type", b"type"]) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["extensions", b"extensions"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "data_content_type", b"data_content_type", "extensions", b"extensions", "id", b"id", "path", b"path", "pubsub_name", b"pubsub_name", "source", b"source", "spec_version", b"spec_version", "topic", b"topic", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicEventRequest = TopicEventRequest +Global___TopicEventRequest: typing_extensions.TypeAlias = TopicEventRequest @typing.final class TopicEventResponse(google.protobuf.message.Message): @@ -189,16 +193,17 @@ class TopicEventResponse(google.protobuf.message.Message): """DROP status signals Dapr to drop the message as part of an unexpected scenario (warning is logged).""" STATUS_FIELD_NUMBER: builtins.int - status: global___TopicEventResponse.TopicEventResponseStatus.ValueType + status: Global___TopicEventResponse.TopicEventResponseStatus.ValueType """The list of output bindings.""" def __init__( self, *, - status: global___TopicEventResponse.TopicEventResponseStatus.ValueType = ..., + status: Global___TopicEventResponse.TopicEventResponseStatus.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["status", b"status"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicEventResponse = TopicEventResponse +Global___TopicEventResponse: typing_extensions.TypeAlias = TopicEventResponse @typing.final class TopicEventCERequest(google.protobuf.message.Message): @@ -240,10 +245,12 @@ class TopicEventCERequest(google.protobuf.message.Message): data: builtins.bytes = ..., extensions: google.protobuf.struct_pb2.Struct | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["extensions", b"extensions"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "data_content_type", b"data_content_type", "extensions", b"extensions", "id", b"id", "source", b"source", "spec_version", b"spec_version", "type", b"type"]) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["extensions", b"extensions"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "data_content_type", b"data_content_type", "extensions", b"extensions", "id", b"id", "source", b"source", "spec_version", b"spec_version", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicEventCERequest = TopicEventCERequest +Global___TopicEventCERequest: typing_extensions.TypeAlias = TopicEventCERequest @typing.final class TopicEventBulkRequestEntry(google.protobuf.message.Message): @@ -265,7 +272,8 @@ class TopicEventBulkRequestEntry(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... ENTRY_ID_FIELD_NUMBER: builtins.int BYTES_FIELD_NUMBER: builtins.int @@ -278,7 +286,7 @@ class TopicEventBulkRequestEntry(google.protobuf.message.Message): content_type: builtins.str """content type of the event contained.""" @property - def cloud_event(self) -> global___TopicEventCERequest: ... + def cloud_event(self) -> Global___TopicEventCERequest: ... @property def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """The metadata associated with the event.""" @@ -288,15 +296,19 @@ class TopicEventBulkRequestEntry(google.protobuf.message.Message): *, entry_id: builtins.str = ..., bytes: builtins.bytes = ..., - cloud_event: global___TopicEventCERequest | None = ..., + cloud_event: Global___TopicEventCERequest | None = ..., content_type: builtins.str = ..., metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bytes", b"bytes", "cloud_event", b"cloud_event", "event", b"event"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bytes", b"bytes", "cloud_event", b"cloud_event", "content_type", b"content_type", "entry_id", b"entry_id", "event", b"event", "metadata", b"metadata"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["event", b"event"]) -> typing.Literal["bytes", "cloud_event"] | None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["bytes", b"bytes", "cloud_event", b"cloud_event", "event", b"event"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["bytes", b"bytes", "cloud_event", b"cloud_event", "content_type", b"content_type", "entry_id", b"entry_id", "event", b"event", "metadata", b"metadata"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_event: typing_extensions.TypeAlias = typing.Literal["bytes", "cloud_event"] + _WhichOneofArgType_event: typing_extensions.TypeAlias = typing.Literal["event", b"event"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_event) -> _WhichOneofReturnType_event | None: ... -global___TopicEventBulkRequestEntry = TopicEventBulkRequestEntry +Global___TopicEventBulkRequestEntry: typing_extensions.TypeAlias = TopicEventBulkRequestEntry @typing.final class TopicEventBulkRequest(google.protobuf.message.Message): @@ -318,7 +330,8 @@ class TopicEventBulkRequest(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... ID_FIELD_NUMBER: builtins.int ENTRIES_FIELD_NUMBER: builtins.int @@ -340,7 +353,7 @@ class TopicEventBulkRequest(google.protobuf.message.Message): This value is used by OnTopicEvent to "switch" inside the handler. """ @property - def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TopicEventBulkRequestEntry]: + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___TopicEventBulkRequestEntry]: """The list of items inside this bulk request.""" @property @@ -351,16 +364,17 @@ class TopicEventBulkRequest(google.protobuf.message.Message): self, *, id: builtins.str = ..., - entries: collections.abc.Iterable[global___TopicEventBulkRequestEntry] | None = ..., + entries: collections.abc.Iterable[Global___TopicEventBulkRequestEntry] | None = ..., metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., topic: builtins.str = ..., pubsub_name: builtins.str = ..., type: builtins.str = ..., path: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["entries", b"entries", "id", b"id", "metadata", b"metadata", "path", b"path", "pubsub_name", b"pubsub_name", "topic", b"topic", "type", b"type"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["entries", b"entries", "id", b"id", "metadata", b"metadata", "path", b"path", "pubsub_name", b"pubsub_name", "topic", b"topic", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicEventBulkRequest = TopicEventBulkRequest +Global___TopicEventBulkRequest: typing_extensions.TypeAlias = TopicEventBulkRequest @typing.final class TopicEventBulkResponseEntry(google.protobuf.message.Message): @@ -374,17 +388,18 @@ class TopicEventBulkResponseEntry(google.protobuf.message.Message): STATUS_FIELD_NUMBER: builtins.int entry_id: builtins.str """Unique identifier associated the message.""" - status: global___TopicEventResponse.TopicEventResponseStatus.ValueType + status: Global___TopicEventResponse.TopicEventResponseStatus.ValueType """The status of the response.""" def __init__( self, *, entry_id: builtins.str = ..., - status: global___TopicEventResponse.TopicEventResponseStatus.ValueType = ..., + status: Global___TopicEventResponse.TopicEventResponseStatus.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["entry_id", b"entry_id", "status", b"status"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["entry_id", b"entry_id", "status", b"status"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicEventBulkResponseEntry = TopicEventBulkResponseEntry +Global___TopicEventBulkResponseEntry: typing_extensions.TypeAlias = TopicEventBulkResponseEntry @typing.final class TopicEventBulkResponse(google.protobuf.message.Message): @@ -394,17 +409,18 @@ class TopicEventBulkResponse(google.protobuf.message.Message): STATUSES_FIELD_NUMBER: builtins.int @property - def statuses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TopicEventBulkResponseEntry]: + def statuses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___TopicEventBulkResponseEntry]: """The list of all responses for the bulk request.""" def __init__( self, *, - statuses: collections.abc.Iterable[global___TopicEventBulkResponseEntry] | None = ..., + statuses: collections.abc.Iterable[Global___TopicEventBulkResponseEntry] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["statuses", b"statuses"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["statuses", b"statuses"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicEventBulkResponse = TopicEventBulkResponse +Global___TopicEventBulkResponse: typing_extensions.TypeAlias = TopicEventBulkResponse @typing.final class BindingEventRequest(google.protobuf.message.Message): @@ -426,7 +442,8 @@ class BindingEventRequest(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... NAME_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int @@ -446,9 +463,10 @@ class BindingEventRequest(google.protobuf.message.Message): data: builtins.bytes = ..., metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "metadata", b"metadata", "name", b"name"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "metadata", b"metadata", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___BindingEventRequest = BindingEventRequest +Global___BindingEventRequest: typing_extensions.TypeAlias = BindingEventRequest @typing.final class BindingEventResponse(google.protobuf.message.Message): @@ -486,7 +504,7 @@ class BindingEventResponse(google.protobuf.message.Message): """The name of state store where states are saved.""" data: builtins.bytes """The content which will be sent to "to" output bindings.""" - concurrency: global___BindingEventResponse.BindingEventConcurrency.ValueType + concurrency: Global___BindingEventResponse.BindingEventConcurrency.ValueType """The concurrency of output bindings to send data to "to" output bindings list. The default is SEQUENTIAL. """ @@ -505,11 +523,12 @@ class BindingEventResponse(google.protobuf.message.Message): states: collections.abc.Iterable[dapr.proto.common.v1.common_pb2.StateItem] | None = ..., to: collections.abc.Iterable[builtins.str] | None = ..., data: builtins.bytes = ..., - concurrency: global___BindingEventResponse.BindingEventConcurrency.ValueType = ..., + concurrency: Global___BindingEventResponse.BindingEventConcurrency.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["concurrency", b"concurrency", "data", b"data", "states", b"states", "store_name", b"store_name", "to", b"to"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["concurrency", b"concurrency", "data", b"data", "states", b"states", "store_name", b"store_name", "to", b"to"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___BindingEventResponse = BindingEventResponse +Global___BindingEventResponse: typing_extensions.TypeAlias = BindingEventResponse @typing.final class ListTopicSubscriptionsResponse(google.protobuf.message.Message): @@ -519,17 +538,18 @@ class ListTopicSubscriptionsResponse(google.protobuf.message.Message): SUBSCRIPTIONS_FIELD_NUMBER: builtins.int @property - def subscriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TopicSubscription]: + def subscriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___TopicSubscription]: """The list of topics.""" def __init__( self, *, - subscriptions: collections.abc.Iterable[global___TopicSubscription] | None = ..., + subscriptions: collections.abc.Iterable[Global___TopicSubscription] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["subscriptions", b"subscriptions"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["subscriptions", b"subscriptions"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListTopicSubscriptionsResponse = ListTopicSubscriptionsResponse +Global___ListTopicSubscriptionsResponse: typing_extensions.TypeAlias = ListTopicSubscriptionsResponse @typing.final class TopicSubscription(google.protobuf.message.Message): @@ -551,7 +571,8 @@ class TopicSubscription(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... PUBSUB_NAME_FIELD_NUMBER: builtins.int TOPIC_FIELD_NUMBER: builtins.int @@ -570,13 +591,13 @@ class TopicSubscription(google.protobuf.message.Message): """The optional properties used for this topic's subscription e.g. session id""" @property - def routes(self) -> global___TopicRoutes: + def routes(self) -> Global___TopicRoutes: """The optional routing rules to match against. In the gRPC interface, OnTopicEvent is still invoked but the matching path is sent in the TopicEventRequest. """ @property - def bulk_subscribe(self) -> global___BulkSubscribeConfig: + def bulk_subscribe(self) -> Global___BulkSubscribeConfig: """The optional bulk subscribe settings for this topic.""" def __init__( @@ -585,14 +606,16 @@ class TopicSubscription(google.protobuf.message.Message): pubsub_name: builtins.str = ..., topic: builtins.str = ..., metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - routes: global___TopicRoutes | None = ..., + routes: Global___TopicRoutes | None = ..., dead_letter_topic: builtins.str = ..., - bulk_subscribe: global___BulkSubscribeConfig | None = ..., + bulk_subscribe: Global___BulkSubscribeConfig | None = ..., ) -> None: ... - def HasField(self, field_name: typing.Literal["bulk_subscribe", b"bulk_subscribe", "routes", b"routes"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["bulk_subscribe", b"bulk_subscribe", "dead_letter_topic", b"dead_letter_topic", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "routes", b"routes", "topic", b"topic"]) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["bulk_subscribe", b"bulk_subscribe", "routes", b"routes"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["bulk_subscribe", b"bulk_subscribe", "dead_letter_topic", b"dead_letter_topic", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "routes", b"routes", "topic", b"topic"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicSubscription = TopicSubscription +Global___TopicSubscription: typing_extensions.TypeAlias = TopicSubscription @typing.final class TopicRoutes(google.protobuf.message.Message): @@ -603,18 +626,19 @@ class TopicRoutes(google.protobuf.message.Message): default: builtins.str """The default path for this topic.""" @property - def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TopicRule]: + def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___TopicRule]: """The list of rules for this topic.""" def __init__( self, *, - rules: collections.abc.Iterable[global___TopicRule] | None = ..., + rules: collections.abc.Iterable[Global___TopicRule] | None = ..., default: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["default", b"default", "rules", b"rules"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["default", b"default", "rules", b"rules"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicRoutes = TopicRoutes +Global___TopicRoutes: typing_extensions.TypeAlias = TopicRoutes @typing.final class TopicRule(google.protobuf.message.Message): @@ -638,9 +662,10 @@ class TopicRule(google.protobuf.message.Message): match: builtins.str = ..., path: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["match", b"match", "path", b"path"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["match", b"match", "path", b"path"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TopicRule = TopicRule +Global___TopicRule: typing_extensions.TypeAlias = TopicRule @typing.final class BulkSubscribeConfig(google.protobuf.message.Message): @@ -664,9 +689,10 @@ class BulkSubscribeConfig(google.protobuf.message.Message): max_messages_count: builtins.int = ..., max_await_duration_ms: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["enabled", b"enabled", "max_await_duration_ms", b"max_await_duration_ms", "max_messages_count", b"max_messages_count"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["enabled", b"enabled", "max_await_duration_ms", b"max_await_duration_ms", "max_messages_count", b"max_messages_count"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___BulkSubscribeConfig = BulkSubscribeConfig +Global___BulkSubscribeConfig: typing_extensions.TypeAlias = BulkSubscribeConfig @typing.final class ListInputBindingsResponse(google.protobuf.message.Message): @@ -684,9 +710,10 @@ class ListInputBindingsResponse(google.protobuf.message.Message): *, bindings: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["bindings", b"bindings"]) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["bindings", b"bindings"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListInputBindingsResponse = ListInputBindingsResponse +Global___ListInputBindingsResponse: typing_extensions.TypeAlias = ListInputBindingsResponse @typing.final class HealthCheckResponse(google.protobuf.message.Message): @@ -700,4 +727,4 @@ class HealthCheckResponse(google.protobuf.message.Message): self, ) -> None: ... -global___HealthCheckResponse = HealthCheckResponse +Global___HealthCheckResponse: typing_extensions.TypeAlias = HealthCheckResponse diff --git a/dapr/proto/runtime/v1/appcallback_pb2_grpc.py b/dapr/proto/runtime/v1/appcallback_pb2_grpc.py index b203f7db0..d7bfe94b3 100644 --- a/dapr/proto/runtime/v1/appcallback_pb2_grpc.py +++ b/dapr/proto/runtime/v1/appcallback_pb2_grpc.py @@ -1,11 +1,31 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings 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 appcallback_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +GRPC_GENERATED_VERSION = '1.76.0' +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/appcallback_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}.' + ) + class AppCallbackStub(object): """AppCallback V1 allows user application to interact with Dapr runtime. @@ -23,27 +43,27 @@ def __init__(self, channel): '/dapr.proto.runtime.v1.AppCallback/OnInvoke', request_serializer=dapr_dot_proto_dot_common_dot_v1_dot_common__pb2.InvokeRequest.SerializeToString, response_deserializer=dapr_dot_proto_dot_common_dot_v1_dot_common__pb2.InvokeResponse.FromString, - ) + _registered_method=True) self.ListTopicSubscriptions = channel.unary_unary( '/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions', request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.ListTopicSubscriptionsResponse.FromString, - ) + _registered_method=True) self.OnTopicEvent = channel.unary_unary( '/dapr.proto.runtime.v1.AppCallback/OnTopicEvent', request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventRequest.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventResponse.FromString, - ) + _registered_method=True) self.ListInputBindings = channel.unary_unary( '/dapr.proto.runtime.v1.AppCallback/ListInputBindings', request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.ListInputBindingsResponse.FromString, - ) + _registered_method=True) self.OnBindingEvent = channel.unary_unary( '/dapr.proto.runtime.v1.AppCallback/OnBindingEvent', request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.BindingEventRequest.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.BindingEventResponse.FromString, - ) + _registered_method=True) class AppCallbackServicer(object): @@ -122,6 +142,7 @@ def add_AppCallbackServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'dapr.proto.runtime.v1.AppCallback', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('dapr.proto.runtime.v1.AppCallback', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -142,11 +163,21 @@ def OnInvoke(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallback/OnInvoke', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallback/OnInvoke', dapr_dot_proto_dot_common_dot_v1_dot_common__pb2.InvokeRequest.SerializeToString, dapr_dot_proto_dot_common_dot_v1_dot_common__pb2.InvokeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ListTopicSubscriptions(request, @@ -159,11 +190,21 @@ def ListTopicSubscriptions(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallback/ListTopicSubscriptions', google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.ListTopicSubscriptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def OnTopicEvent(request, @@ -176,11 +217,21 @@ def OnTopicEvent(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallback/OnTopicEvent', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallback/OnTopicEvent', dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventRequest.SerializeToString, dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ListInputBindings(request, @@ -193,11 +244,21 @@ def ListInputBindings(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallback/ListInputBindings', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallback/ListInputBindings', google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.ListInputBindingsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def OnBindingEvent(request, @@ -210,11 +271,21 @@ def OnBindingEvent(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallback/OnBindingEvent', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallback/OnBindingEvent', dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.BindingEventRequest.SerializeToString, dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.BindingEventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class AppCallbackHealthCheckStub(object): @@ -232,7 +303,7 @@ def __init__(self, channel): '/dapr.proto.runtime.v1.AppCallbackHealthCheck/HealthCheck', request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.HealthCheckResponse.FromString, - ) + _registered_method=True) class AppCallbackHealthCheckServicer(object): @@ -259,6 +330,7 @@ def add_AppCallbackHealthCheckServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'dapr.proto.runtime.v1.AppCallbackHealthCheck', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('dapr.proto.runtime.v1.AppCallbackHealthCheck', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -278,11 +350,21 @@ def HealthCheck(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallbackHealthCheck/HealthCheck', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallbackHealthCheck/HealthCheck', google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.HealthCheckResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class AppCallbackAlphaStub(object): @@ -300,12 +382,12 @@ def __init__(self, channel): '/dapr.proto.runtime.v1.AppCallbackAlpha/OnBulkTopicEventAlpha1', request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventBulkRequest.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventBulkResponse.FromString, - ) + _registered_method=True) self.OnJobEventAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.AppCallbackAlpha/OnJobEventAlpha1', request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.JobEventRequest.SerializeToString, response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.JobEventResponse.FromString, - ) + _registered_method=True) class AppCallbackAlphaServicer(object): @@ -344,6 +426,7 @@ def add_AppCallbackAlphaServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'dapr.proto.runtime.v1.AppCallbackAlpha', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('dapr.proto.runtime.v1.AppCallbackAlpha', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -363,11 +446,21 @@ def OnBulkTopicEventAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallbackAlpha/OnBulkTopicEventAlpha1', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallbackAlpha/OnBulkTopicEventAlpha1', dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventBulkRequest.SerializeToString, dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.TopicEventBulkResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def OnJobEventAlpha1(request, @@ -380,8 +473,18 @@ def OnJobEventAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.AppCallbackAlpha/OnJobEventAlpha1', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.AppCallbackAlpha/OnJobEventAlpha1', dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.JobEventRequest.SerializeToString, dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2.JobEventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dapr/proto/runtime/v1/binding_pb2.py b/dapr/proto/runtime/v1/binding_pb2.py new file mode 100644 index 000000000..de643b43f --- /dev/null +++ b/dapr/proto/runtime/v1/binding_pb2.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/binding.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/binding.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#dapr/proto/runtime/v1/binding.proto\x12\x15\x64\x61pr.proto.runtime.v1\"\xc3\x01\n\x14InvokeBindingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12K\n\x08metadata\x18\x03 \x03(\x0b\x32\x39.dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry\x12\x11\n\toperation\x18\x04 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\x15InvokeBindingResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.dapr.proto.runtime.v1.InvokeBindingResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.binding_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._loaded_options = None + _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._loaded_options = None + _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._serialized_options = b'8\001' + _globals['_INVOKEBINDINGREQUEST']._serialized_start=63 + _globals['_INVOKEBINDINGREQUEST']._serialized_end=258 + _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._serialized_start=211 + _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._serialized_end=258 + _globals['_INVOKEBINDINGRESPONSE']._serialized_start=261 + _globals['_INVOKEBINDINGRESPONSE']._serialized_end=425 + _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._serialized_start=211 + _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._serialized_end=258 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/binding_pb2.pyi b/dapr/proto/runtime/v1/binding_pb2.pyi new file mode 100644 index 000000000..20b819afe --- /dev/null +++ b/dapr/proto/runtime/v1/binding_pb2.pyi @@ -0,0 +1,130 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class InvokeBindingRequest(google.protobuf.message.Message): + """InvokeBindingRequest is the message to send data to output bindings""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of the output binding to invoke.""" + data: builtins.bytes + """The data which will be sent to output binding.""" + operation: builtins.str + """The name of the operation type for the binding to invoke""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata passing to output binding components + + Common metadata property: + - ttlInSeconds : the time to live in seconds for the message. + + If set in the binding definition will cause all messages to + have a default time to live. The message ttl overrides any value + in the binding definition. + """ + + def __init__( + self, + *, + name: builtins.str = ..., + data: builtins.bytes = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + operation: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "metadata", b"metadata", "name", b"name", "operation", b"operation"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___InvokeBindingRequest: typing_extensions.TypeAlias = InvokeBindingRequest + +@typing.final +class InvokeBindingResponse(google.protobuf.message.Message): + """InvokeBindingResponse is the message returned from an output binding invocation""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + DATA_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + data: builtins.bytes + """The data which will be sent to output binding.""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata returned from an external system""" + + def __init__( + self, + *, + data: builtins.bytes = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "metadata", b"metadata"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___InvokeBindingResponse: typing_extensions.TypeAlias = InvokeBindingResponse diff --git a/dapr/proto/runtime/v1/binding_pb2_grpc.py b/dapr/proto/runtime/v1/binding_pb2_grpc.py new file mode 100644 index 000000000..822b02cbc --- /dev/null +++ b/dapr/proto/runtime/v1/binding_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.76.0' +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/binding_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/configuration_pb2.py b/dapr/proto/runtime/v1/configuration_pb2.py new file mode 100644 index 000000000..5ab10c73d --- /dev/null +++ b/dapr/proto/runtime/v1/configuration_pb2.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/configuration.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/configuration.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/configuration.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a!dapr/proto/common/v1/common.proto\"\xbc\x01\n\x17GetConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\t\x12N\n\x08metadata\x18\x03 \x03(\x0b\x32<.dapr.proto.runtime.v1.GetConfigurationRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbc\x01\n\x18GetConfigurationResponse\x12I\n\x05items\x18\x01 \x03(\x0b\x32:.dapr.proto.runtime.v1.GetConfigurationResponse.ItemsEntry\x1aU\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.dapr.proto.common.v1.ConfigurationItem:\x02\x38\x01\"\xc8\x01\n\x1dSubscribeConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\t\x12T\n\x08metadata\x18\x03 \x03(\x0b\x32\x42.dapr.proto.runtime.v1.SubscribeConfigurationRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\x1fUnsubscribeConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"\xd4\x01\n\x1eSubscribeConfigurationResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12O\n\x05items\x18\x02 \x03(\x0b\x32@.dapr.proto.runtime.v1.SubscribeConfigurationResponse.ItemsEntry\x1aU\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.dapr.proto.common.v1.ConfigurationItem:\x02\x38\x01\"?\n UnsubscribeConfigurationResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\tBi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.configuration_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._loaded_options = None + _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._loaded_options = None + _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_options = b'8\001' + _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._loaded_options = None + _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._loaded_options = None + _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_options = b'8\001' + _globals['_GETCONFIGURATIONREQUEST']._serialized_start=104 + _globals['_GETCONFIGURATIONREQUEST']._serialized_end=292 + _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._serialized_start=245 + _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._serialized_end=292 + _globals['_GETCONFIGURATIONRESPONSE']._serialized_start=295 + _globals['_GETCONFIGURATIONRESPONSE']._serialized_end=483 + _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_start=398 + _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_end=483 + _globals['_SUBSCRIBECONFIGURATIONREQUEST']._serialized_start=486 + _globals['_SUBSCRIBECONFIGURATIONREQUEST']._serialized_end=686 + _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._serialized_start=245 + _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._serialized_end=292 + _globals['_UNSUBSCRIBECONFIGURATIONREQUEST']._serialized_start=688 + _globals['_UNSUBSCRIBECONFIGURATIONREQUEST']._serialized_end=753 + _globals['_SUBSCRIBECONFIGURATIONRESPONSE']._serialized_start=756 + _globals['_SUBSCRIBECONFIGURATIONRESPONSE']._serialized_end=968 + _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_start=398 + _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_end=483 + _globals['_UNSUBSCRIBECONFIGURATIONRESPONSE']._serialized_start=970 + _globals['_UNSUBSCRIBECONFIGURATIONRESPONSE']._serialized_end=1033 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/configuration_pb2.pyi b/dapr/proto/runtime/v1/configuration_pb2.pyi new file mode 100644 index 000000000..6523275fa --- /dev/null +++ b/dapr/proto/runtime/v1/configuration_pb2.pyi @@ -0,0 +1,259 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import dapr.proto.common.v1.common_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class GetConfigurationRequest(google.protobuf.message.Message): + """GetConfigurationRequest is the message to get a list of key-value configuration from specified configuration store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + KEYS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """Required. The name of configuration store.""" + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Optional. The key of the configuration item to fetch. + If set, only query for the specified configuration items. + Empty list means fetch all. + """ + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Optional. The metadata which will be sent to configuration store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + keys: collections.abc.Iterable[builtins.str] | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["keys", b"keys", "metadata", b"metadata", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetConfigurationRequest: typing_extensions.TypeAlias = GetConfigurationRequest + +@typing.final +class GetConfigurationResponse(google.protobuf.message.Message): + """GetConfigurationResponse is the response conveying the list of configuration values. + It should be the FULL configuration of specified application which contains all of its configuration items. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ItemsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> dapr.proto.common.v1.common_pb2.ConfigurationItem: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: dapr.proto.common.v1.common_pb2.ConfigurationItem | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ITEMS_FIELD_NUMBER: builtins.int + @property + def items(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem]: ... + def __init__( + self, + *, + items: collections.abc.Mapping[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["items", b"items"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetConfigurationResponse: typing_extensions.TypeAlias = GetConfigurationResponse + +@typing.final +class SubscribeConfigurationRequest(google.protobuf.message.Message): + """SubscribeConfigurationRequest is the message to get a list of key-value configuration from specified configuration store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + KEYS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of configuration store.""" + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Optional. The key of the configuration item to fetch. + If set, only query for the specified configuration items. + Empty list means fetch all. + """ + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to configuration store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + keys: collections.abc.Iterable[builtins.str] | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["keys", b"keys", "metadata", b"metadata", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubscribeConfigurationRequest: typing_extensions.TypeAlias = SubscribeConfigurationRequest + +@typing.final +class UnsubscribeConfigurationRequest(google.protobuf.message.Message): + """UnSubscribeConfigurationRequest is the message to stop watching the key-value configuration.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STORE_NAME_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of configuration store.""" + id: builtins.str + """The id to unsubscribe.""" + def __init__( + self, + *, + store_name: builtins.str = ..., + id: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["id", b"id", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___UnsubscribeConfigurationRequest: typing_extensions.TypeAlias = UnsubscribeConfigurationRequest + +@typing.final +class SubscribeConfigurationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ItemsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> dapr.proto.common.v1.common_pb2.ConfigurationItem: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: dapr.proto.common.v1.common_pb2.ConfigurationItem | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ID_FIELD_NUMBER: builtins.int + ITEMS_FIELD_NUMBER: builtins.int + id: builtins.str + """Subscribe id, used to stop subscription.""" + @property + def items(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem]: + """The list of items containing configuration values""" + + def __init__( + self, + *, + id: builtins.str = ..., + items: collections.abc.Mapping[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["id", b"id", "items", b"items"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubscribeConfigurationResponse: typing_extensions.TypeAlias = SubscribeConfigurationResponse + +@typing.final +class UnsubscribeConfigurationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OK_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + ok: builtins.bool + message: builtins.str + def __init__( + self, + *, + ok: builtins.bool = ..., + message: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["message", b"message", "ok", b"ok"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___UnsubscribeConfigurationResponse: typing_extensions.TypeAlias = UnsubscribeConfigurationResponse diff --git a/dapr/proto/runtime/v1/configuration_pb2_grpc.py b/dapr/proto/runtime/v1/configuration_pb2_grpc.py new file mode 100644 index 000000000..ecdb3ab3c --- /dev/null +++ b/dapr/proto/runtime/v1/configuration_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.76.0' +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/configuration_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/crypto_pb2.py b/dapr/proto/runtime/v1/crypto_pb2.py new file mode 100644 index 000000000..0420f5b1a --- /dev/null +++ b/dapr/proto/runtime/v1/crypto_pb2.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/crypto.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/crypto.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/crypto.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a!dapr/proto/common/v1/common.proto\"\xb0\x01\n\x13SubtleGetKeyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x44\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x34.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat\"\x1e\n\tKeyFormat\x12\x07\n\x03PEM\x10\x00\x12\x08\n\x04JSON\x10\x01\"C\n\x14SubtleGetKeyResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\npublic_key\x18\x02 \x01(\tR\tpublicKey\"\xb6\x01\n\x14SubtleEncryptRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x11\n\tplaintext\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x06 \x01(\x0cR\x0e\x61ssociatedData\"8\n\x15SubtleEncryptResponse\x12\x12\n\nciphertext\x18\x01 \x01(\x0c\x12\x0b\n\x03tag\x18\x02 \x01(\x0c\"\xc4\x01\n\x14SubtleDecryptRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x12\n\nciphertext\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\x0b\n\x03tag\x18\x06 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x07 \x01(\x0cR\x0e\x61ssociatedData\"*\n\x15SubtleDecryptResponse\x12\x11\n\tplaintext\x18\x01 \x01(\x0c\"\xc8\x01\n\x14SubtleWrapKeyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12#\n\rplaintext_key\x18\x02 \x01(\x0cR\x0cplaintextKey\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x06 \x01(\x0cR\x0e\x61ssociatedData\"E\n\x15SubtleWrapKeyResponse\x12\x1f\n\x0bwrapped_key\x18\x01 \x01(\x0cR\nwrappedKey\x12\x0b\n\x03tag\x18\x02 \x01(\x0c\"\xd3\x01\n\x16SubtleUnwrapKeyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x1f\n\x0bwrapped_key\x18\x02 \x01(\x0cR\nwrappedKey\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\x0b\n\x03tag\x18\x06 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x07 \x01(\x0cR\x0e\x61ssociatedData\">\n\x17SubtleUnwrapKeyResponse\x12#\n\rplaintext_key\x18\x01 \x01(\x0cR\x0cplaintextKey\"x\n\x11SubtleSignRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x0e\n\x06\x64igest\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\"\'\n\x12SubtleSignResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\"\x8d\x01\n\x13SubtleVerifyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x0e\n\x06\x64igest\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\x11\n\tsignature\x18\x05 \x01(\x0c\"%\n\x14SubtleVerifyResponse\x12\r\n\x05valid\x18\x01 \x01(\x08\"\x85\x01\n\x0e\x45ncryptRequest\x12=\n\x07options\x18\x01 \x01(\x0b\x32,.dapr.proto.runtime.v1.EncryptRequestOptions\x12\x34\n\x07payload\x18\x02 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"\xfe\x01\n\x15\x45ncryptRequestOptions\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x19\n\x08key_name\x18\x02 \x01(\tR\x07keyName\x12\x1a\n\x12key_wrap_algorithm\x18\x03 \x01(\t\x12\x1e\n\x16\x64\x61ta_encryption_cipher\x18\n \x01(\t\x12\x37\n\x18omit_decryption_key_name\x18\x0b \x01(\x08R\x15omitDecryptionKeyName\x12.\n\x13\x64\x65\x63ryption_key_name\x18\x0c \x01(\tR\x11\x64\x65\x63ryptionKeyName\"G\n\x0f\x45ncryptResponse\x12\x34\n\x07payload\x18\x01 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"\x85\x01\n\x0e\x44\x65\x63ryptRequest\x12=\n\x07options\x18\x01 \x01(\x0b\x32,.dapr.proto.runtime.v1.DecryptRequestOptions\x12\x34\n\x07payload\x18\x02 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"Y\n\x15\x44\x65\x63ryptRequestOptions\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x19\n\x08key_name\x18\x0c \x01(\tR\x07keyName\"G\n\x0f\x44\x65\x63ryptResponse\x12\x34\n\x07payload\x18\x01 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayloadBi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.crypto_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_SUBTLEGETKEYREQUEST']._serialized_start=97 + _globals['_SUBTLEGETKEYREQUEST']._serialized_end=273 + _globals['_SUBTLEGETKEYREQUEST_KEYFORMAT']._serialized_start=243 + _globals['_SUBTLEGETKEYREQUEST_KEYFORMAT']._serialized_end=273 + _globals['_SUBTLEGETKEYRESPONSE']._serialized_start=275 + _globals['_SUBTLEGETKEYRESPONSE']._serialized_end=342 + _globals['_SUBTLEENCRYPTREQUEST']._serialized_start=345 + _globals['_SUBTLEENCRYPTREQUEST']._serialized_end=527 + _globals['_SUBTLEENCRYPTRESPONSE']._serialized_start=529 + _globals['_SUBTLEENCRYPTRESPONSE']._serialized_end=585 + _globals['_SUBTLEDECRYPTREQUEST']._serialized_start=588 + _globals['_SUBTLEDECRYPTREQUEST']._serialized_end=784 + _globals['_SUBTLEDECRYPTRESPONSE']._serialized_start=786 + _globals['_SUBTLEDECRYPTRESPONSE']._serialized_end=828 + _globals['_SUBTLEWRAPKEYREQUEST']._serialized_start=831 + _globals['_SUBTLEWRAPKEYREQUEST']._serialized_end=1031 + _globals['_SUBTLEWRAPKEYRESPONSE']._serialized_start=1033 + _globals['_SUBTLEWRAPKEYRESPONSE']._serialized_end=1102 + _globals['_SUBTLEUNWRAPKEYREQUEST']._serialized_start=1105 + _globals['_SUBTLEUNWRAPKEYREQUEST']._serialized_end=1316 + _globals['_SUBTLEUNWRAPKEYRESPONSE']._serialized_start=1318 + _globals['_SUBTLEUNWRAPKEYRESPONSE']._serialized_end=1380 + _globals['_SUBTLESIGNREQUEST']._serialized_start=1382 + _globals['_SUBTLESIGNREQUEST']._serialized_end=1502 + _globals['_SUBTLESIGNRESPONSE']._serialized_start=1504 + _globals['_SUBTLESIGNRESPONSE']._serialized_end=1543 + _globals['_SUBTLEVERIFYREQUEST']._serialized_start=1546 + _globals['_SUBTLEVERIFYREQUEST']._serialized_end=1687 + _globals['_SUBTLEVERIFYRESPONSE']._serialized_start=1689 + _globals['_SUBTLEVERIFYRESPONSE']._serialized_end=1726 + _globals['_ENCRYPTREQUEST']._serialized_start=1729 + _globals['_ENCRYPTREQUEST']._serialized_end=1862 + _globals['_ENCRYPTREQUESTOPTIONS']._serialized_start=1865 + _globals['_ENCRYPTREQUESTOPTIONS']._serialized_end=2119 + _globals['_ENCRYPTRESPONSE']._serialized_start=2121 + _globals['_ENCRYPTRESPONSE']._serialized_end=2192 + _globals['_DECRYPTREQUEST']._serialized_start=2195 + _globals['_DECRYPTREQUEST']._serialized_end=2328 + _globals['_DECRYPTREQUESTOPTIONS']._serialized_start=2330 + _globals['_DECRYPTREQUESTOPTIONS']._serialized_end=2419 + _globals['_DECRYPTRESPONSE']._serialized_start=2421 + _globals['_DECRYPTRESPONSE']._serialized_end=2492 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/crypto_pb2.pyi b/dapr/proto/runtime/v1/crypto_pb2.pyi new file mode 100644 index 000000000..9c0f1b387 --- /dev/null +++ b/dapr/proto/runtime/v1/crypto_pb2.pyi @@ -0,0 +1,645 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import dapr.proto.common.v1.common_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class SubtleGetKeyRequest(google.protobuf.message.Message): + """SubtleGetKeyRequest is the request object for SubtleGetKeyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _KeyFormat: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _KeyFormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SubtleGetKeyRequest._KeyFormat.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + PEM: SubtleGetKeyRequest._KeyFormat.ValueType # 0 + """PEM (PKIX) (default)""" + JSON: SubtleGetKeyRequest._KeyFormat.ValueType # 1 + """JSON (JSON Web Key) as string""" + + class KeyFormat(_KeyFormat, metaclass=_KeyFormatEnumTypeWrapper): ... + PEM: SubtleGetKeyRequest.KeyFormat.ValueType # 0 + """PEM (PKIX) (default)""" + JSON: SubtleGetKeyRequest.KeyFormat.ValueType # 1 + """JSON (JSON Web Key) as string""" + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + FORMAT_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + name: builtins.str + """Name (or name/version) of the key to use in the key vault""" + format: Global___SubtleGetKeyRequest.KeyFormat.ValueType + """Response format""" + def __init__( + self, + *, + component_name: builtins.str = ..., + name: builtins.str = ..., + format: Global___SubtleGetKeyRequest.KeyFormat.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["component_name", b"component_name", "format", b"format", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleGetKeyRequest: typing_extensions.TypeAlias = SubtleGetKeyRequest + +@typing.final +class SubtleGetKeyResponse(google.protobuf.message.Message): + """SubtleGetKeyResponse is the response for SubtleGetKeyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + PUBLIC_KEY_FIELD_NUMBER: builtins.int + name: builtins.str + """Name (or name/version) of the key. + This is returned as response too in case there is a version. + """ + public_key: builtins.str + """Public key, encoded in the requested format""" + def __init__( + self, + *, + name: builtins.str = ..., + public_key: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["name", b"name", "public_key", b"public_key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleGetKeyResponse: typing_extensions.TypeAlias = SubtleGetKeyResponse + +@typing.final +class SubtleEncryptRequest(google.protobuf.message.Message): + """SubtleEncryptRequest is the request for SubtleEncryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + PLAINTEXT_FIELD_NUMBER: builtins.int + ALGORITHM_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + NONCE_FIELD_NUMBER: builtins.int + ASSOCIATED_DATA_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + plaintext: builtins.bytes + """Message to encrypt.""" + algorithm: builtins.str + """Algorithm to use, as in the JWA standard.""" + key_name: builtins.str + """Name (or name/version) of the key.""" + nonce: builtins.bytes + """Nonce / initialization vector. + Ignored with asymmetric ciphers. + """ + associated_data: builtins.bytes + """Associated Data when using AEAD ciphers (optional).""" + def __init__( + self, + *, + component_name: builtins.str = ..., + plaintext: builtins.bytes = ..., + algorithm: builtins.str = ..., + key_name: builtins.str = ..., + nonce: builtins.bytes = ..., + associated_data: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "plaintext", b"plaintext"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleEncryptRequest: typing_extensions.TypeAlias = SubtleEncryptRequest + +@typing.final +class SubtleEncryptResponse(google.protobuf.message.Message): + """SubtleEncryptResponse is the response for SubtleEncryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CIPHERTEXT_FIELD_NUMBER: builtins.int + TAG_FIELD_NUMBER: builtins.int + ciphertext: builtins.bytes + """Encrypted ciphertext.""" + tag: builtins.bytes + """Authentication tag. + This is nil when not using an authenticated cipher. + """ + def __init__( + self, + *, + ciphertext: builtins.bytes = ..., + tag: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["ciphertext", b"ciphertext", "tag", b"tag"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleEncryptResponse: typing_extensions.TypeAlias = SubtleEncryptResponse + +@typing.final +class SubtleDecryptRequest(google.protobuf.message.Message): + """SubtleDecryptRequest is the request for SubtleDecryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + CIPHERTEXT_FIELD_NUMBER: builtins.int + ALGORITHM_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + NONCE_FIELD_NUMBER: builtins.int + TAG_FIELD_NUMBER: builtins.int + ASSOCIATED_DATA_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + ciphertext: builtins.bytes + """Message to decrypt.""" + algorithm: builtins.str + """Algorithm to use, as in the JWA standard.""" + key_name: builtins.str + """Name (or name/version) of the key.""" + nonce: builtins.bytes + """Nonce / initialization vector. + Ignored with asymmetric ciphers. + """ + tag: builtins.bytes + """Authentication tag. + This is nil when not using an authenticated cipher. + """ + associated_data: builtins.bytes + """Associated Data when using AEAD ciphers (optional).""" + def __init__( + self, + *, + component_name: builtins.str = ..., + ciphertext: builtins.bytes = ..., + algorithm: builtins.str = ..., + key_name: builtins.str = ..., + nonce: builtins.bytes = ..., + tag: builtins.bytes = ..., + associated_data: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "ciphertext", b"ciphertext", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "tag", b"tag"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleDecryptRequest: typing_extensions.TypeAlias = SubtleDecryptRequest + +@typing.final +class SubtleDecryptResponse(google.protobuf.message.Message): + """SubtleDecryptResponse is the response for SubtleDecryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PLAINTEXT_FIELD_NUMBER: builtins.int + plaintext: builtins.bytes + """Decrypted plaintext.""" + def __init__( + self, + *, + plaintext: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["plaintext", b"plaintext"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleDecryptResponse: typing_extensions.TypeAlias = SubtleDecryptResponse + +@typing.final +class SubtleWrapKeyRequest(google.protobuf.message.Message): + """SubtleWrapKeyRequest is the request for SubtleWrapKeyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + PLAINTEXT_KEY_FIELD_NUMBER: builtins.int + ALGORITHM_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + NONCE_FIELD_NUMBER: builtins.int + ASSOCIATED_DATA_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + plaintext_key: builtins.bytes + """Key to wrap""" + algorithm: builtins.str + """Algorithm to use, as in the JWA standard.""" + key_name: builtins.str + """Name (or name/version) of the key.""" + nonce: builtins.bytes + """Nonce / initialization vector. + Ignored with asymmetric ciphers. + """ + associated_data: builtins.bytes + """Associated Data when using AEAD ciphers (optional).""" + def __init__( + self, + *, + component_name: builtins.str = ..., + plaintext_key: builtins.bytes = ..., + algorithm: builtins.str = ..., + key_name: builtins.str = ..., + nonce: builtins.bytes = ..., + associated_data: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "plaintext_key", b"plaintext_key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleWrapKeyRequest: typing_extensions.TypeAlias = SubtleWrapKeyRequest + +@typing.final +class SubtleWrapKeyResponse(google.protobuf.message.Message): + """SubtleWrapKeyResponse is the response for SubtleWrapKeyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WRAPPED_KEY_FIELD_NUMBER: builtins.int + TAG_FIELD_NUMBER: builtins.int + wrapped_key: builtins.bytes + """Wrapped key.""" + tag: builtins.bytes + """Authentication tag. + This is nil when not using an authenticated cipher. + """ + def __init__( + self, + *, + wrapped_key: builtins.bytes = ..., + tag: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["tag", b"tag", "wrapped_key", b"wrapped_key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleWrapKeyResponse: typing_extensions.TypeAlias = SubtleWrapKeyResponse + +@typing.final +class SubtleUnwrapKeyRequest(google.protobuf.message.Message): + """SubtleUnwrapKeyRequest is the request for SubtleUnwrapKeyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + WRAPPED_KEY_FIELD_NUMBER: builtins.int + ALGORITHM_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + NONCE_FIELD_NUMBER: builtins.int + TAG_FIELD_NUMBER: builtins.int + ASSOCIATED_DATA_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + wrapped_key: builtins.bytes + """Wrapped key.""" + algorithm: builtins.str + """Algorithm to use, as in the JWA standard.""" + key_name: builtins.str + """Name (or name/version) of the key.""" + nonce: builtins.bytes + """Nonce / initialization vector. + Ignored with asymmetric ciphers. + """ + tag: builtins.bytes + """Authentication tag. + This is nil when not using an authenticated cipher. + """ + associated_data: builtins.bytes + """Associated Data when using AEAD ciphers (optional).""" + def __init__( + self, + *, + component_name: builtins.str = ..., + wrapped_key: builtins.bytes = ..., + algorithm: builtins.str = ..., + key_name: builtins.str = ..., + nonce: builtins.bytes = ..., + tag: builtins.bytes = ..., + associated_data: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "tag", b"tag", "wrapped_key", b"wrapped_key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleUnwrapKeyRequest: typing_extensions.TypeAlias = SubtleUnwrapKeyRequest + +@typing.final +class SubtleUnwrapKeyResponse(google.protobuf.message.Message): + """SubtleUnwrapKeyResponse is the response for SubtleUnwrapKeyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PLAINTEXT_KEY_FIELD_NUMBER: builtins.int + plaintext_key: builtins.bytes + """Key in plaintext""" + def __init__( + self, + *, + plaintext_key: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["plaintext_key", b"plaintext_key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleUnwrapKeyResponse: typing_extensions.TypeAlias = SubtleUnwrapKeyResponse + +@typing.final +class SubtleSignRequest(google.protobuf.message.Message): + """SubtleSignRequest is the request for SubtleSignAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + DIGEST_FIELD_NUMBER: builtins.int + ALGORITHM_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + digest: builtins.bytes + """Digest to sign.""" + algorithm: builtins.str + """Algorithm to use, as in the JWA standard.""" + key_name: builtins.str + """Name (or name/version) of the key.""" + def __init__( + self, + *, + component_name: builtins.str = ..., + digest: builtins.bytes = ..., + algorithm: builtins.str = ..., + key_name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["algorithm", b"algorithm", "component_name", b"component_name", "digest", b"digest", "key_name", b"key_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleSignRequest: typing_extensions.TypeAlias = SubtleSignRequest + +@typing.final +class SubtleSignResponse(google.protobuf.message.Message): + """SubtleSignResponse is the response for SubtleSignAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SIGNATURE_FIELD_NUMBER: builtins.int + signature: builtins.bytes + """The signature that was computed""" + def __init__( + self, + *, + signature: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["signature", b"signature"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleSignResponse: typing_extensions.TypeAlias = SubtleSignResponse + +@typing.final +class SubtleVerifyRequest(google.protobuf.message.Message): + """SubtleVerifyRequest is the request for SubtleVerifyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + DIGEST_FIELD_NUMBER: builtins.int + ALGORITHM_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + digest: builtins.bytes + """Digest of the message.""" + algorithm: builtins.str + """Algorithm to use, as in the JWA standard.""" + key_name: builtins.str + """Name (or name/version) of the key.""" + signature: builtins.bytes + """Signature to verify.""" + def __init__( + self, + *, + component_name: builtins.str = ..., + digest: builtins.bytes = ..., + algorithm: builtins.str = ..., + key_name: builtins.str = ..., + signature: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["algorithm", b"algorithm", "component_name", b"component_name", "digest", b"digest", "key_name", b"key_name", "signature", b"signature"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleVerifyRequest: typing_extensions.TypeAlias = SubtleVerifyRequest + +@typing.final +class SubtleVerifyResponse(google.protobuf.message.Message): + """SubtleVerifyResponse is the response for SubtleVerifyAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALID_FIELD_NUMBER: builtins.int + valid: builtins.bool + """True if the signature is valid.""" + def __init__( + self, + *, + valid: builtins.bool = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["valid", b"valid"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubtleVerifyResponse: typing_extensions.TypeAlias = SubtleVerifyResponse + +@typing.final +class EncryptRequest(google.protobuf.message.Message): + """EncryptRequest is the request for EncryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPTIONS_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + @property + def options(self) -> Global___EncryptRequestOptions: + """Request details. Must be present in the first message only.""" + + @property + def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: + """Chunk of data of arbitrary size.""" + + def __init__( + self, + *, + options: Global___EncryptRequestOptions | None = ..., + payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["options", b"options", "payload", b"payload"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["options", b"options", "payload", b"payload"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___EncryptRequest: typing_extensions.TypeAlias = EncryptRequest + +@typing.final +class EncryptRequestOptions(google.protobuf.message.Message): + """EncryptRequestOptions contains options for the first message in the EncryptAlpha1 request.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + KEY_WRAP_ALGORITHM_FIELD_NUMBER: builtins.int + DATA_ENCRYPTION_CIPHER_FIELD_NUMBER: builtins.int + OMIT_DECRYPTION_KEY_NAME_FIELD_NUMBER: builtins.int + DECRYPTION_KEY_NAME_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component. Required.""" + key_name: builtins.str + """Name (or name/version) of the key. Required.""" + key_wrap_algorithm: builtins.str + """Key wrapping algorithm to use. Required. + Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA). + """ + data_encryption_cipher: builtins.str + """Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305" """ + omit_decryption_key_name: builtins.bool + """If true, the encrypted document does not contain a key reference. + In that case, calls to the Decrypt method must provide a key reference (name or name/version). + Defaults to false. + """ + decryption_key_name: builtins.str + """Key reference to embed in the encrypted document (name or name/version). + This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it. + If unset, uses the reference of the key used to encrypt the document (this is the default behavior). + This option is ignored if omit_decryption_key_name is true. + """ + def __init__( + self, + *, + component_name: builtins.str = ..., + key_name: builtins.str = ..., + key_wrap_algorithm: builtins.str = ..., + data_encryption_cipher: builtins.str = ..., + omit_decryption_key_name: builtins.bool = ..., + decryption_key_name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["component_name", b"component_name", "data_encryption_cipher", b"data_encryption_cipher", "decryption_key_name", b"decryption_key_name", "key_name", b"key_name", "key_wrap_algorithm", b"key_wrap_algorithm", "omit_decryption_key_name", b"omit_decryption_key_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___EncryptRequestOptions: typing_extensions.TypeAlias = EncryptRequestOptions + +@typing.final +class EncryptResponse(google.protobuf.message.Message): + """EncryptResponse is the response for EncryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAYLOAD_FIELD_NUMBER: builtins.int + @property + def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: + """Chunk of data.""" + + def __init__( + self, + *, + payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["payload", b"payload"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["payload", b"payload"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___EncryptResponse: typing_extensions.TypeAlias = EncryptResponse + +@typing.final +class DecryptRequest(google.protobuf.message.Message): + """DecryptRequest is the request for DecryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPTIONS_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + @property + def options(self) -> Global___DecryptRequestOptions: + """Request details. Must be present in the first message only.""" + + @property + def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: + """Chunk of data of arbitrary size.""" + + def __init__( + self, + *, + options: Global___DecryptRequestOptions | None = ..., + payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["options", b"options", "payload", b"payload"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["options", b"options", "payload", b"payload"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DecryptRequest: typing_extensions.TypeAlias = DecryptRequest + +@typing.final +class DecryptRequestOptions(google.protobuf.message.Message): + """DecryptRequestOptions contains options for the first message in the DecryptAlpha1 request.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + COMPONENT_NAME_FIELD_NUMBER: builtins.int + KEY_NAME_FIELD_NUMBER: builtins.int + component_name: builtins.str + """Name of the component""" + key_name: builtins.str + """Name (or name/version) of the key to decrypt the message. + Overrides any key reference included in the message if present. + This is required if the message doesn't include a key reference (i.e. was created with omit_decryption_key_name set to true). + """ + def __init__( + self, + *, + component_name: builtins.str = ..., + key_name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["component_name", b"component_name", "key_name", b"key_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DecryptRequestOptions: typing_extensions.TypeAlias = DecryptRequestOptions + +@typing.final +class DecryptResponse(google.protobuf.message.Message): + """DecryptResponse is the response for DecryptAlpha1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PAYLOAD_FIELD_NUMBER: builtins.int + @property + def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: + """Chunk of data.""" + + def __init__( + self, + *, + payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["payload", b"payload"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["payload", b"payload"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DecryptResponse: typing_extensions.TypeAlias = DecryptResponse diff --git a/dapr/proto/runtime/v1/crypto_pb2_grpc.py b/dapr/proto/runtime/v1/crypto_pb2_grpc.py new file mode 100644 index 000000000..c054d79a2 --- /dev/null +++ b/dapr/proto/runtime/v1/crypto_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.76.0' +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/crypto_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 d978c9d16..1b790f38c 100644 --- a/dapr/proto/runtime/v1/dapr_pb2.py +++ b/dapr/proto/runtime/v1/dapr_pb2.py @@ -1,449 +1,68 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: dapr/proto/runtime/v1/dapr.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 6.31.1 """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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/dapr.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 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 appcallback_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__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 pubsub_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2 +from dapr.proto.runtime.v1 import invoke_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_invoke__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 binding_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_binding__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 metadata_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__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 lock_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2 +from dapr.proto.runtime.v1 import crypto_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2 +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 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n dapr/proto/runtime/v1/dapr.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a!dapr/proto/common/v1/common.proto\x1a\'dapr/proto/runtime/v1/appcallback.proto\"X\n\x14InvokeServiceRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x34\n\x07message\x18\x03 \x01(\x0b\x32#.dapr.proto.common.v1.InvokeRequest\"\xf5\x01\n\x0fGetStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12H\n\x0b\x63onsistency\x18\x03 \x01(\x0e\x32\x33.dapr.proto.common.v1.StateOptions.StateConsistency\x12\x46\n\x08metadata\x18\x04 \x03(\x0b\x32\x34.dapr.proto.runtime.v1.GetStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc9\x01\n\x13GetBulkStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\t\x12\x13\n\x0bparallelism\x18\x03 \x01(\x05\x12J\n\x08metadata\x18\x04 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.GetBulkStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"K\n\x14GetBulkStateResponse\x12\x33\n\x05items\x18\x01 \x03(\x0b\x32$.dapr.proto.runtime.v1.BulkStateItem\"\xbe\x01\n\rBulkStateItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\r\n\x05\x65rror\x18\x04 \x01(\t\x12\x44\n\x08metadata\x18\x05 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.BulkStateItem.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa8\x01\n\x10GetStateResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12G\n\x08metadata\x18\x03 \x03(\x0b\x32\x35.dapr.proto.runtime.v1.GetStateResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x02\n\x12\x44\x65leteStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12(\n\x04\x65tag\x18\x03 \x01(\x0b\x32\x1a.dapr.proto.common.v1.Etag\x12\x33\n\x07options\x18\x04 \x01(\x0b\x32\".dapr.proto.common.v1.StateOptions\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.DeleteStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x16\x44\x65leteBulkStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12/\n\x06states\x18\x02 \x03(\x0b\x32\x1f.dapr.proto.common.v1.StateItem\"W\n\x10SaveStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12/\n\x06states\x18\x02 \x03(\x0b\x32\x1f.dapr.proto.common.v1.StateItem\"\xbc\x01\n\x11QueryStateRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\r\n\x05query\x18\x02 \x01(\t\x12H\n\x08metadata\x18\x03 \x03(\x0b\x32\x36.dapr.proto.runtime.v1.QueryStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x0eQueryStateItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\r\n\x05\x65rror\x18\x04 \x01(\t\"\xd7\x01\n\x12QueryStateResponse\x12\x36\n\x07results\x18\x01 \x03(\x0b\x32%.dapr.proto.runtime.v1.QueryStateItem\x12\r\n\x05token\x18\x02 \x01(\t\x12I\n\x08metadata\x18\x03 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.QueryStateResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdf\x01\n\x13PublishEventRequest\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x19\n\x11\x64\x61ta_content_type\x18\x04 \x01(\t\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.PublishEventRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf5\x01\n\x12\x42ulkPublishRequest\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12?\n\x07\x65ntries\x18\x03 \x03(\x0b\x32..dapr.proto.runtime.v1.BulkPublishRequestEntry\x12I\n\x08metadata\x18\x04 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.BulkPublishRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd1\x01\n\x17\x42ulkPublishRequestEntry\x12\x10\n\x08\x65ntry_id\x18\x01 \x01(\t\x12\r\n\x05\x65vent\x18\x02 \x01(\x0c\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12N\n\x08metadata\x18\x04 \x03(\x0b\x32<.dapr.proto.runtime.v1.BulkPublishRequestEntry.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"c\n\x13\x42ulkPublishResponse\x12L\n\rfailedEntries\x18\x01 \x03(\x0b\x32\x35.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry\"A\n\x1e\x42ulkPublishResponseFailedEntry\x12\x10\n\x08\x65ntry_id\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x84\x02\n!SubscribeTopicEventsRequestAlpha1\x12Z\n\x0finitial_request\x18\x01 \x01(\x0b\x32?.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1H\x00\x12\\\n\x0f\x65vent_processed\x18\x02 \x01(\x0b\x32\x41.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1H\x00\x42%\n#subscribe_topic_events_request_type\"\x96\x02\n(SubscribeTopicEventsRequestInitialAlpha1\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12_\n\x08metadata\x18\x03 \x03(\x0b\x32M.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.MetadataEntry\x12\x1e\n\x11\x64\x65\x61\x64_letter_topic\x18\x04 \x01(\tH\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\x14\n\x12_dead_letter_topic\"s\n*SubscribeTopicEventsRequestProcessedAlpha1\x12\n\n\x02id\x18\x01 \x01(\t\x12\x39\n\x06status\x18\x02 \x01(\x0b\x32).dapr.proto.runtime.v1.TopicEventResponse\"\xed\x01\n\"SubscribeTopicEventsResponseAlpha1\x12\\\n\x10initial_response\x18\x01 \x01(\x0b\x32@.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1H\x00\x12\x41\n\revent_message\x18\x02 \x01(\x0b\x32(.dapr.proto.runtime.v1.TopicEventRequestH\x00\x42&\n$subscribe_topic_events_response_type\"+\n)SubscribeTopicEventsResponseInitialAlpha1\"\xc3\x01\n\x14InvokeBindingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12K\n\x08metadata\x18\x03 \x03(\x0b\x32\x39.dapr.proto.runtime.v1.InvokeBindingRequest.MetadataEntry\x12\x11\n\toperation\x18\x04 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\x15InvokeBindingResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.dapr.proto.runtime.v1.InvokeBindingResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb8\x01\n\x10GetSecretRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\x0b\n\x03key\x18\x02 \x01(\t\x12G\n\x08metadata\x18\x03 \x03(\x0b\x32\x35.dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x82\x01\n\x11GetSecretResponse\x12@\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.GetSecretResponse.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb3\x01\n\x14GetBulkSecretRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12K\n\x08metadata\x18\x02 \x03(\x0b\x32\x39.dapr.proto.runtime.v1.GetBulkSecretRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x85\x01\n\x0eSecretResponse\x12\x43\n\x07secrets\x18\x01 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.SecretResponse.SecretsEntry\x1a.\n\x0cSecretsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb1\x01\n\x15GetBulkSecretResponse\x12\x44\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x36.dapr.proto.runtime.v1.GetBulkSecretResponse.DataEntry\x1aR\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.dapr.proto.runtime.v1.SecretResponse:\x02\x38\x01\"f\n\x1bTransactionalStateOperation\x12\x15\n\roperationType\x18\x01 \x01(\t\x12\x30\n\x07request\x18\x02 \x01(\x0b\x32\x1f.dapr.proto.common.v1.StateItem\"\x83\x02\n\x1e\x45xecuteStateTransactionRequest\x12\x11\n\tstoreName\x18\x01 \x01(\t\x12\x46\n\noperations\x18\x02 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.TransactionalStateOperation\x12U\n\x08metadata\x18\x03 \x03(\x0b\x32\x43.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbb\x01\n\x19RegisterActorTimerRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x19\n\x08\x64ue_time\x18\x04 \x01(\tR\x07\x64ueTime\x12\x0e\n\x06period\x18\x05 \x01(\t\x12\x10\n\x08\x63\x61llback\x18\x06 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x07 \x01(\x0c\x12\x0b\n\x03ttl\x18\x08 \x01(\t\"e\n\x1bUnregisterActorTimerRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\"\xac\x01\n\x1cRegisterActorReminderRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x19\n\x08\x64ue_time\x18\x04 \x01(\tR\x07\x64ueTime\x12\x0e\n\x06period\x18\x05 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\x12\x0b\n\x03ttl\x18\x07 \x01(\t\"h\n\x1eUnregisterActorReminderRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0c\n\x04name\x18\x03 \x01(\t\"]\n\x14GetActorStateRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0b\n\x03key\x18\x03 \x01(\t\"\xa4\x01\n\x15GetActorStateResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12L\n\x08metadata\x18\x02 \x03(\x0b\x32:.dapr.proto.runtime.v1.GetActorStateResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xac\x01\n#ExecuteActorStateTransactionRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12K\n\noperations\x18\x03 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.TransactionalActorStateOperation\"\xf5\x01\n TransactionalActorStateOperation\x12\x15\n\roperationType\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12#\n\x05value\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any\x12W\n\x08metadata\x18\x04 \x03(\x0b\x32\x45.dapr.proto.runtime.v1.TransactionalActorStateOperation.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe8\x01\n\x12InvokeActorRequest\x12\x1d\n\nactor_type\x18\x01 \x01(\tR\tactorType\x12\x19\n\x08\x61\x63tor_id\x18\x02 \x01(\tR\x07\x61\x63torId\x12\x0e\n\x06method\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.InvokeActorRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"#\n\x13InvokeActorResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\x14\n\x12GetMetadataRequest\"\xf6\x06\n\x13GetMetadataResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12Q\n\x13\x61\x63tive_actors_count\x18\x02 \x03(\x0b\x32(.dapr.proto.runtime.v1.ActiveActorsCountB\x02\x18\x01R\x06\x61\x63tors\x12V\n\x15registered_components\x18\x03 \x03(\x0b\x32+.dapr.proto.runtime.v1.RegisteredComponentsR\ncomponents\x12\x65\n\x11\x65xtended_metadata\x18\x04 \x03(\x0b\x32@.dapr.proto.runtime.v1.GetMetadataResponse.ExtendedMetadataEntryR\x08\x65xtended\x12O\n\rsubscriptions\x18\x05 \x03(\x0b\x32).dapr.proto.runtime.v1.PubsubSubscriptionR\rsubscriptions\x12R\n\x0ehttp_endpoints\x18\x06 \x03(\x0b\x32+.dapr.proto.runtime.v1.MetadataHTTPEndpointR\rhttpEndpoints\x12j\n\x19\x61pp_connection_properties\x18\x07 \x01(\x0b\x32..dapr.proto.runtime.v1.AppConnectionPropertiesR\x17\x61ppConnectionProperties\x12\'\n\x0fruntime_version\x18\x08 \x01(\tR\x0eruntimeVersion\x12)\n\x10\x65nabled_features\x18\t \x03(\tR\x0f\x65nabledFeatures\x12H\n\ractor_runtime\x18\n \x01(\x0b\x32#.dapr.proto.runtime.v1.ActorRuntimeR\x0c\x61\x63torRuntime\x12K\n\tscheduler\x18\x0b \x01(\x0b\x32(.dapr.proto.runtime.v1.MetadataSchedulerH\x00R\tscheduler\x88\x01\x01\x1a\x37\n\x15\x45xtendedMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\n_scheduler\"0\n\x11MetadataScheduler\x12\x1b\n\x13\x63onnected_addresses\x18\x01 \x03(\t\"\xbc\x02\n\x0c\x41\x63torRuntime\x12]\n\x0eruntime_status\x18\x01 \x01(\x0e\x32\x36.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatusR\rruntimeStatus\x12M\n\ractive_actors\x18\x02 \x03(\x0b\x32(.dapr.proto.runtime.v1.ActiveActorsCountR\x0c\x61\x63tiveActors\x12\x1d\n\nhost_ready\x18\x03 \x01(\x08R\thostReady\x12\x1c\n\tplacement\x18\x04 \x01(\tR\tplacement\"A\n\x12\x41\x63torRuntimeStatus\x12\x10\n\x0cINITIALIZING\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\"0\n\x11\x41\x63tiveActorsCount\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"Y\n\x14RegisteredComponents\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"*\n\x14MetadataHTTPEndpoint\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\xd1\x01\n\x17\x41ppConnectionProperties\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12\x10\n\x08protocol\x18\x02 \x01(\t\x12\'\n\x0f\x63hannel_address\x18\x03 \x01(\tR\x0e\x63hannelAddress\x12\'\n\x0fmax_concurrency\x18\x04 \x01(\x05R\x0emaxConcurrency\x12\x44\n\x06health\x18\x05 \x01(\x0b\x32\x34.dapr.proto.runtime.v1.AppConnectionHealthProperties\"\xdc\x01\n\x1d\x41ppConnectionHealthProperties\x12*\n\x11health_check_path\x18\x01 \x01(\tR\x0fhealthCheckPath\x12\x32\n\x15health_probe_interval\x18\x02 \x01(\tR\x13healthProbeInterval\x12\x30\n\x14health_probe_timeout\x18\x03 \x01(\tR\x12healthProbeTimeout\x12)\n\x10health_threshold\x18\x04 \x01(\x05R\x0fhealthThreshold\"\x86\x03\n\x12PubsubSubscription\x12\x1f\n\x0bpubsub_name\x18\x01 \x01(\tR\npubsubname\x12\x14\n\x05topic\x18\x02 \x01(\tR\x05topic\x12S\n\x08metadata\x18\x03 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.PubsubSubscription.MetadataEntryR\x08metadata\x12\x44\n\x05rules\x18\x04 \x01(\x0b\x32..dapr.proto.runtime.v1.PubsubSubscriptionRulesR\x05rules\x12*\n\x11\x64\x65\x61\x64_letter_topic\x18\x05 \x01(\tR\x0f\x64\x65\x61\x64LetterTopic\x12\x41\n\x04type\x18\x06 \x01(\x0e\x32-.dapr.proto.runtime.v1.PubsubSubscriptionTypeR\x04type\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\x17PubsubSubscriptionRules\x12<\n\x05rules\x18\x01 \x03(\x0b\x32-.dapr.proto.runtime.v1.PubsubSubscriptionRule\"5\n\x16PubsubSubscriptionRule\x12\r\n\x05match\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"0\n\x12SetMetadataRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xbc\x01\n\x17GetConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\t\x12N\n\x08metadata\x18\x03 \x03(\x0b\x32<.dapr.proto.runtime.v1.GetConfigurationRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbc\x01\n\x18GetConfigurationResponse\x12I\n\x05items\x18\x01 \x03(\x0b\x32:.dapr.proto.runtime.v1.GetConfigurationResponse.ItemsEntry\x1aU\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.dapr.proto.common.v1.ConfigurationItem:\x02\x38\x01\"\xc8\x01\n\x1dSubscribeConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\t\x12T\n\x08metadata\x18\x03 \x03(\x0b\x32\x42.dapr.proto.runtime.v1.SubscribeConfigurationRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\x1fUnsubscribeConfigurationRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"\xd4\x01\n\x1eSubscribeConfigurationResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12O\n\x05items\x18\x02 \x03(\x0b\x32@.dapr.proto.runtime.v1.SubscribeConfigurationResponse.ItemsEntry\x1aU\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.dapr.proto.common.v1.ConfigurationItem:\x02\x38\x01\"?\n UnsubscribeConfigurationResponse\x12\n\n\x02ok\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t\"\x9b\x01\n\x0eTryLockRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\x1f\n\x0bresource_id\x18\x02 \x01(\tR\nresourceId\x12\x1d\n\nlock_owner\x18\x03 \x01(\tR\tlockOwner\x12*\n\x11\x65xpiry_in_seconds\x18\x04 \x01(\x05R\x0f\x65xpiryInSeconds\"\"\n\x0fTryLockResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"n\n\rUnlockRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\x1f\n\x0bresource_id\x18\x02 \x01(\tR\nresourceId\x12\x1d\n\nlock_owner\x18\x03 \x01(\tR\tlockOwner\"\xae\x01\n\x0eUnlockResponse\x12<\n\x06status\x18\x01 \x01(\x0e\x32,.dapr.proto.runtime.v1.UnlockResponse.Status\"^\n\x06Status\x12\x0b\n\x07SUCCESS\x10\x00\x12\x17\n\x13LOCK_DOES_NOT_EXIST\x10\x01\x12\x1a\n\x16LOCK_BELONGS_TO_OTHERS\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\"\xb0\x01\n\x13SubtleGetKeyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x44\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x34.dapr.proto.runtime.v1.SubtleGetKeyRequest.KeyFormat\"\x1e\n\tKeyFormat\x12\x07\n\x03PEM\x10\x00\x12\x08\n\x04JSON\x10\x01\"C\n\x14SubtleGetKeyResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\npublic_key\x18\x02 \x01(\tR\tpublicKey\"\xb6\x01\n\x14SubtleEncryptRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x11\n\tplaintext\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x06 \x01(\x0cR\x0e\x61ssociatedData\"8\n\x15SubtleEncryptResponse\x12\x12\n\nciphertext\x18\x01 \x01(\x0c\x12\x0b\n\x03tag\x18\x02 \x01(\x0c\"\xc4\x01\n\x14SubtleDecryptRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x12\n\nciphertext\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\x0b\n\x03tag\x18\x06 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x07 \x01(\x0cR\x0e\x61ssociatedData\"*\n\x15SubtleDecryptResponse\x12\x11\n\tplaintext\x18\x01 \x01(\x0c\"\xc8\x01\n\x14SubtleWrapKeyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12#\n\rplaintext_key\x18\x02 \x01(\x0cR\x0cplaintextKey\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x06 \x01(\x0cR\x0e\x61ssociatedData\"E\n\x15SubtleWrapKeyResponse\x12\x1f\n\x0bwrapped_key\x18\x01 \x01(\x0cR\nwrappedKey\x12\x0b\n\x03tag\x18\x02 \x01(\x0c\"\xd3\x01\n\x16SubtleUnwrapKeyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x1f\n\x0bwrapped_key\x18\x02 \x01(\x0cR\nwrappedKey\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\r\n\x05nonce\x18\x05 \x01(\x0c\x12\x0b\n\x03tag\x18\x06 \x01(\x0c\x12\'\n\x0f\x61ssociated_data\x18\x07 \x01(\x0cR\x0e\x61ssociatedData\">\n\x17SubtleUnwrapKeyResponse\x12#\n\rplaintext_key\x18\x01 \x01(\x0cR\x0cplaintextKey\"x\n\x11SubtleSignRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x0e\n\x06\x64igest\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\"\'\n\x12SubtleSignResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\"\x8d\x01\n\x13SubtleVerifyRequest\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x0e\n\x06\x64igest\x18\x02 \x01(\x0c\x12\x11\n\talgorithm\x18\x03 \x01(\t\x12\x19\n\x08key_name\x18\x04 \x01(\tR\x07keyName\x12\x11\n\tsignature\x18\x05 \x01(\x0c\"%\n\x14SubtleVerifyResponse\x12\r\n\x05valid\x18\x01 \x01(\x08\"\x85\x01\n\x0e\x45ncryptRequest\x12=\n\x07options\x18\x01 \x01(\x0b\x32,.dapr.proto.runtime.v1.EncryptRequestOptions\x12\x34\n\x07payload\x18\x02 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"\xfe\x01\n\x15\x45ncryptRequestOptions\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x19\n\x08key_name\x18\x02 \x01(\tR\x07keyName\x12\x1a\n\x12key_wrap_algorithm\x18\x03 \x01(\t\x12\x1e\n\x16\x64\x61ta_encryption_cipher\x18\n \x01(\t\x12\x37\n\x18omit_decryption_key_name\x18\x0b \x01(\x08R\x15omitDecryptionKeyName\x12.\n\x13\x64\x65\x63ryption_key_name\x18\x0c \x01(\tR\x11\x64\x65\x63ryptionKeyName\"G\n\x0f\x45ncryptResponse\x12\x34\n\x07payload\x18\x01 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"\x85\x01\n\x0e\x44\x65\x63ryptRequest\x12=\n\x07options\x18\x01 \x01(\x0b\x32,.dapr.proto.runtime.v1.DecryptRequestOptions\x12\x34\n\x07payload\x18\x02 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"Y\n\x15\x44\x65\x63ryptRequestOptions\x12%\n\x0e\x63omponent_name\x18\x01 \x01(\tR\rcomponentName\x12\x19\n\x08key_name\x18\x0c \x01(\tR\x07keyName\"G\n\x0f\x44\x65\x63ryptResponse\x12\x34\n\x07payload\x18\x01 \x01(\x0b\x32#.dapr.proto.common.v1.StreamPayload\"d\n\x12GetWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"\x84\x03\n\x13GetWorkflowResponse\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12#\n\rworkflow_name\x18\x02 \x01(\tR\x0cworkflowName\x12\x39\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x42\n\x0flast_updated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rlastUpdatedAt\x12%\n\x0eruntime_status\x18\x05 \x01(\tR\rruntimeStatus\x12N\n\nproperties\x18\x06 \x03(\x0b\x32:.dapr.proto.runtime.v1.GetWorkflowResponse.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x95\x02\n\x14StartWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\x12#\n\rworkflow_name\x18\x03 \x01(\tR\x0cworkflowName\x12I\n\x07options\x18\x04 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.StartWorkflowRequest.OptionsEntry\x12\r\n\x05input\x18\x05 \x01(\x0c\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x15StartWorkflowResponse\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\"j\n\x18TerminateWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"f\n\x14PauseWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"g\n\x15ResumeWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"\x9e\x01\n\x19RaiseEventWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\x12\x1d\n\nevent_name\x18\x03 \x01(\tR\teventName\x12\x12\n\nevent_data\x18\x04 \x01(\x0c\"f\n\x14PurgeWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"\x11\n\x0fShutdownRequest\"\xcf\x02\n\x03Job\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x08schedule\x18\x02 \x01(\tH\x00R\x08schedule\x88\x01\x01\x12\x1d\n\x07repeats\x18\x03 \x01(\rH\x01R\x07repeats\x88\x01\x01\x12\x1e\n\x08\x64ue_time\x18\x04 \x01(\tH\x02R\x07\x64ueTime\x88\x01\x01\x12\x15\n\x03ttl\x18\x05 \x01(\tH\x03R\x03ttl\x88\x01\x01\x12(\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyR\x04\x64\x61ta\x12R\n\x0e\x66\x61ilure_policy\x18\x07 \x01(\x0b\x32&.dapr.proto.common.v1.JobFailurePolicyH\x04R\rfailurePolicy\x88\x01\x01\x42\x0b\n\t_scheduleB\n\n\x08_repeatsB\x0b\n\t_due_timeB\x06\n\x04_ttlB\x11\n\x0f_failure_policy\"[\n\x12ScheduleJobRequest\x12\'\n\x03job\x18\x01 \x01(\x0b\x32\x1a.dapr.proto.runtime.v1.Job\x12\x1c\n\toverwrite\x18\x02 \x01(\x08R\toverwrite\"\x15\n\x13ScheduleJobResponse\"\x1d\n\rGetJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"9\n\x0eGetJobResponse\x12\'\n\x03job\x18\x01 \x01(\x0b\x32\x1a.dapr.proto.runtime.v1.Job\" \n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x13\n\x11\x44\x65leteJobResponse\"\xeb\x03\n\x13\x43onversationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\tcontextID\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x38\n\x06inputs\x18\x03 \x03(\x0b\x32(.dapr.proto.runtime.v1.ConversationInput\x12N\n\nparameters\x18\x04 \x03(\x0b\x32:.dapr.proto.runtime.v1.ConversationRequest.ParametersEntry\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.ConversationRequest.MetadataEntry\x12\x15\n\x08scrubPII\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12\x18\n\x0btemperature\x18\x07 \x01(\x01H\x02\x88\x01\x01\x1aG\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x02\x18\x01\x42\x0c\n\n_contextIDB\x0b\n\t_scrubPIIB\x0e\n\x0c_temperature\"\xe6\x04\n\x19\x43onversationRequestAlpha2\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\ncontext_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12>\n\x06inputs\x18\x03 \x03(\x0b\x32..dapr.proto.runtime.v1.ConversationInputAlpha2\x12T\n\nparameters\x18\x04 \x03(\x0b\x32@.dapr.proto.runtime.v1.ConversationRequestAlpha2.ParametersEntry\x12P\n\x08metadata\x18\x05 \x03(\x0b\x32>.dapr.proto.runtime.v1.ConversationRequestAlpha2.MetadataEntry\x12\x16\n\tscrub_pii\x18\x06 \x01(\x08H\x01\x88\x01\x01\x12\x18\n\x0btemperature\x18\x07 \x01(\x01H\x02\x88\x01\x01\x12\x37\n\x05tools\x18\x08 \x03(\x0b\x32(.dapr.proto.runtime.v1.ConversationTools\x12\x18\n\x0btool_choice\x18\t \x01(\tH\x03\x88\x01\x01\x1aG\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\r\n\x0b_context_idB\x0c\n\n_scrub_piiB\x0e\n\x0c_temperatureB\x0e\n\x0c_tool_choice\"h\n\x11\x43onversationInput\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\x04role\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08scrubPII\x18\x03 \x01(\x08H\x01\x88\x01\x01:\x02\x18\x01\x42\x07\n\x05_roleB\x0b\n\t_scrubPII\"}\n\x17\x43onversationInputAlpha2\x12<\n\x08messages\x18\x01 \x03(\x0b\x32*.dapr.proto.runtime.v1.ConversationMessage\x12\x16\n\tscrub_pii\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\x0c\n\n_scrub_pii\"\x97\x03\n\x13\x43onversationMessage\x12M\n\x0cof_developer\x18\x01 \x01(\x0b\x32\x35.dapr.proto.runtime.v1.ConversationMessageOfDeveloperH\x00\x12G\n\tof_system\x18\x02 \x01(\x0b\x32\x32.dapr.proto.runtime.v1.ConversationMessageOfSystemH\x00\x12\x43\n\x07of_user\x18\x03 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationMessageOfUserH\x00\x12M\n\x0cof_assistant\x18\x04 \x01(\x0b\x32\x35.dapr.proto.runtime.v1.ConversationMessageOfAssistantH\x00\x12\x43\n\x07of_tool\x18\x05 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationMessageOfToolH\x00\x42\x0f\n\rmessage_types\"\x80\x01\n\x1e\x43onversationMessageOfDeveloper\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\x07\n\x05_name\"}\n\x1b\x43onversationMessageOfSystem\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\x07\n\x05_name\"{\n\x19\x43onversationMessageOfUser\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\x07\n\x05_name\"\xc2\x01\n\x1e\x43onversationMessageOfAssistant\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x42\n\x07\x63ontent\x18\x02 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContent\x12@\n\ntool_calls\x18\x03 \x03(\x0b\x32,.dapr.proto.runtime.v1.ConversationToolCallsB\x07\n\x05_name\"\x8f\x01\n\x19\x43onversationMessageOfTool\x12\x14\n\x07tool_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x07\x63ontent\x18\x03 \x03(\x0b\x32\x31.dapr.proto.runtime.v1.ConversationMessageContentB\n\n\x08_tool_id\"\x89\x01\n\x15\x43onversationToolCalls\x12\x0f\n\x02id\x18\x01 \x01(\tH\x01\x88\x01\x01\x12J\n\x08\x66unction\x18\x02 \x01(\x0b\x32\x36.dapr.proto.runtime.v1.ConversationToolCallsOfFunctionH\x00\x42\x0c\n\ntool_typesB\x05\n\x03_id\"B\n\x1f\x43onversationToolCallsOfFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x01(\t\"*\n\x1a\x43onversationMessageContent\x12\x0c\n\x04text\x18\x01 \x01(\t\"\xc0\x01\n\x12\x43onversationResult\x12\x0e\n\x06result\x18\x01 \x01(\t\x12M\n\nparameters\x18\x02 \x03(\x0b\x32\x39.dapr.proto.runtime.v1.ConversationResult.ParametersEntry\x1aG\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01:\x02\x18\x01\"]\n\x18\x43onversationResultAlpha2\x12\x41\n\x07\x63hoices\x18\x01 \x03(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationResultChoices\"\x84\x01\n\x19\x43onversationResultChoices\x12\x15\n\rfinish_reason\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\x03\x12\x41\n\x07message\x18\x03 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationResultMessage\"n\n\x19\x43onversationResultMessage\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12@\n\ntool_calls\x18\x02 \x03(\x0b\x32,.dapr.proto.runtime.v1.ConversationToolCalls\"|\n\x14\x43onversationResponse\x12\x16\n\tcontextID\x18\x01 \x01(\tH\x00\x88\x01\x01\x12:\n\x07outputs\x18\x02 \x03(\x0b\x32).dapr.proto.runtime.v1.ConversationResult:\x02\x18\x01\x42\x0c\n\n_contextID\"\x86\x01\n\x1a\x43onversationResponseAlpha2\x12\x17\n\ncontext_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12@\n\x07outputs\x18\x02 \x03(\x0b\x32/.dapr.proto.runtime.v1.ConversationResultAlpha2B\r\n\x0b_context_id\"g\n\x11\x43onversationTools\x12\x44\n\x08\x66unction\x18\x01 \x01(\x0b\x32\x30.dapr.proto.runtime.v1.ConversationToolsFunctionH\x00\x42\x0c\n\ntool_types\"\x80\x01\n\x19\x43onversationToolsFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x12+\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x0e\n\x0c_description*W\n\x16PubsubSubscriptionType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0f\n\x0b\x44\x45\x43LARATIVE\x10\x01\x12\x10\n\x0cPROGRAMMATIC\x10\x02\x12\r\n\tSTREAMING\x10\x03\x32\xb7\x32\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\x12q\n\x16\x42ulkPublishEventAlpha1\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\x12l\n\rGetActorState\x12+.dapr.proto.runtime.v1.GetActorStateRequest\x1a,.dapr.proto.runtime.v1.GetActorStateResponse\"\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{\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\x12l\n\x11ScheduleJobAlpha1\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\"\x00\x12\x66\n\x0f\x44\x65leteJobAlpha1\x12\'.dapr.proto.runtime.v1.DeleteJobRequest\x1a(.dapr.proto.runtime.v1.DeleteJobResponse\"\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\"\x11\n\x0fShutdownRequest2\xce\x37\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\x12q\n\x16\x42ulkPublishEventAlpha1\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\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\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{\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\x12l\n\x11ScheduleJobAlpha1\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\"\x00\x12\x66\n\x0f\x44\x65leteJobAlpha1\x12\'.dapr.proto.runtime.v1.DeleteJobRequest\x1a(.dapr.proto.runtime.v1.DeleteJobResponse\"\x00\x12\x8d\x01\n\x18\x44\x65leteJobsByPrefixAlpha1\x12\x36.dapr.proto.runtime.v1.DeleteJobsByPrefixRequestAlpha1\x1a\x37.dapr.proto.runtime.v1.DeleteJobsByPrefixResponseAlpha1\"\x00\x12o\n\x0eListJobsAlpha1\x12,.dapr.proto.runtime.v1.ListJobsRequestAlpha1\x1a-.dapr.proto.runtime.v1.ListJobsResponseAlpha1\"\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') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.dapr_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' - _globals['_GETSTATEREQUEST_METADATAENTRY']._options = None - _globals['_GETSTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._options = None - _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_BULKSTATEITEM_METADATAENTRY']._options = None - _globals['_BULKSTATEITEM_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETSTATERESPONSE_METADATAENTRY']._options = None - _globals['_GETSTATERESPONSE_METADATAENTRY']._serialized_options = b'8\001' - _globals['_DELETESTATEREQUEST_METADATAENTRY']._options = None - _globals['_DELETESTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_QUERYSTATEREQUEST_METADATAENTRY']._options = None - _globals['_QUERYSTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_QUERYSTATERESPONSE_METADATAENTRY']._options = None - _globals['_QUERYSTATERESPONSE_METADATAENTRY']._serialized_options = b'8\001' - _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._options = None - _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._options = None - _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._options = None - _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._serialized_options = b'8\001' - _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._options = None - _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._serialized_options = b'8\001' - _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._options = None - _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._options = None - _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETSECRETREQUEST_METADATAENTRY']._options = None - _globals['_GETSECRETREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETSECRETRESPONSE_DATAENTRY']._options = None - _globals['_GETSECRETRESPONSE_DATAENTRY']._serialized_options = b'8\001' - _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._options = None - _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_SECRETRESPONSE_SECRETSENTRY']._options = None - _globals['_SECRETRESPONSE_SECRETSENTRY']._serialized_options = b'8\001' - _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._options = None - _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._serialized_options = b'8\001' - _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._options = None - _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._options = None - _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._serialized_options = b'8\001' - _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._options = None - _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._serialized_options = b'8\001' - _globals['_INVOKEACTORREQUEST_METADATAENTRY']._options = None - _globals['_INVOKEACTORREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._options = None - _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._serialized_options = b'8\001' - _globals['_GETMETADATARESPONSE'].fields_by_name['active_actors_count']._options = None - _globals['_GETMETADATARESPONSE'].fields_by_name['active_actors_count']._serialized_options = b'\030\001' - _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._options = None - _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._options = None - _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._options = None - _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_options = b'8\001' - _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._options = None - _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._options = None - _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_options = b'8\001' - _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._options = None - _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._serialized_options = b'8\001' - _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._options = None - _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._serialized_options = b'8\001' - _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._options = None - _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._serialized_options = b'8\001' - _globals['_CONVERSATIONREQUEST_METADATAENTRY']._options = None - _globals['_CONVERSATIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' - _globals['_CONVERSATIONREQUEST']._options = None - _globals['_CONVERSATIONREQUEST']._serialized_options = b'\030\001' - _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._options = None - _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._serialized_options = b'8\001' - _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._options = None - _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._serialized_options = b'8\001' - _globals['_CONVERSATIONINPUT']._options = None - _globals['_CONVERSATIONINPUT']._serialized_options = b'\030\001' - _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._options = None - _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._serialized_options = b'8\001' - _globals['_CONVERSATIONRESULT']._options = None - _globals['_CONVERSATIONRESULT']._serialized_options = b'\030\001' - _globals['_CONVERSATIONRESPONSE']._options = None - _globals['_CONVERSATIONRESPONSE']._serialized_options = b'\030\001' - _globals['_DAPR'].methods_by_name['StartWorkflowAlpha1']._options = None + _globals['_DAPR'].methods_by_name['StartWorkflowAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['StartWorkflowAlpha1']._serialized_options = b'\210\002\001' - _globals['_DAPR'].methods_by_name['GetWorkflowAlpha1']._options = None + _globals['_DAPR'].methods_by_name['GetWorkflowAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['GetWorkflowAlpha1']._serialized_options = b'\210\002\001' - _globals['_DAPR'].methods_by_name['PurgeWorkflowAlpha1']._options = None + _globals['_DAPR'].methods_by_name['PurgeWorkflowAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['PurgeWorkflowAlpha1']._serialized_options = b'\210\002\001' - _globals['_DAPR'].methods_by_name['TerminateWorkflowAlpha1']._options = None + _globals['_DAPR'].methods_by_name['TerminateWorkflowAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['TerminateWorkflowAlpha1']._serialized_options = b'\210\002\001' - _globals['_DAPR'].methods_by_name['PauseWorkflowAlpha1']._options = None + _globals['_DAPR'].methods_by_name['PauseWorkflowAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['PauseWorkflowAlpha1']._serialized_options = b'\210\002\001' - _globals['_DAPR'].methods_by_name['ResumeWorkflowAlpha1']._options = None + _globals['_DAPR'].methods_by_name['ResumeWorkflowAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['ResumeWorkflowAlpha1']._serialized_options = b'\210\002\001' - _globals['_DAPR'].methods_by_name['RaiseEventWorkflowAlpha1']._options = None + _globals['_DAPR'].methods_by_name['RaiseEventWorkflowAlpha1']._loaded_options = None _globals['_DAPR'].methods_by_name['RaiseEventWorkflowAlpha1']._serialized_options = b'\210\002\001' - _globals['_PUBSUBSUBSCRIPTIONTYPE']._serialized_start=19158 - _globals['_PUBSUBSUBSCRIPTIONTYPE']._serialized_end=19245 - _globals['_INVOKESERVICEREQUEST']._serialized_start=254 - _globals['_INVOKESERVICEREQUEST']._serialized_end=342 - _globals['_GETSTATEREQUEST']._serialized_start=345 - _globals['_GETSTATEREQUEST']._serialized_end=590 - _globals['_GETSTATEREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_GETSTATEREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_GETBULKSTATEREQUEST']._serialized_start=593 - _globals['_GETBULKSTATEREQUEST']._serialized_end=794 - _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_GETBULKSTATERESPONSE']._serialized_start=796 - _globals['_GETBULKSTATERESPONSE']._serialized_end=871 - _globals['_BULKSTATEITEM']._serialized_start=874 - _globals['_BULKSTATEITEM']._serialized_end=1064 - _globals['_BULKSTATEITEM_METADATAENTRY']._serialized_start=543 - _globals['_BULKSTATEITEM_METADATAENTRY']._serialized_end=590 - _globals['_GETSTATERESPONSE']._serialized_start=1067 - _globals['_GETSTATERESPONSE']._serialized_end=1235 - _globals['_GETSTATERESPONSE_METADATAENTRY']._serialized_start=543 - _globals['_GETSTATERESPONSE_METADATAENTRY']._serialized_end=590 - _globals['_DELETESTATEREQUEST']._serialized_start=1238 - _globals['_DELETESTATEREQUEST']._serialized_end=1510 - _globals['_DELETESTATEREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_DELETESTATEREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_DELETEBULKSTATEREQUEST']._serialized_start=1512 - _globals['_DELETEBULKSTATEREQUEST']._serialized_end=1605 - _globals['_SAVESTATEREQUEST']._serialized_start=1607 - _globals['_SAVESTATEREQUEST']._serialized_end=1694 - _globals['_QUERYSTATEREQUEST']._serialized_start=1697 - _globals['_QUERYSTATEREQUEST']._serialized_end=1885 - _globals['_QUERYSTATEREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_QUERYSTATEREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_QUERYSTATEITEM']._serialized_start=1887 - _globals['_QUERYSTATEITEM']._serialized_end=1959 - _globals['_QUERYSTATERESPONSE']._serialized_start=1962 - _globals['_QUERYSTATERESPONSE']._serialized_end=2177 - _globals['_QUERYSTATERESPONSE_METADATAENTRY']._serialized_start=543 - _globals['_QUERYSTATERESPONSE_METADATAENTRY']._serialized_end=590 - _globals['_PUBLISHEVENTREQUEST']._serialized_start=2180 - _globals['_PUBLISHEVENTREQUEST']._serialized_end=2403 - _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_BULKPUBLISHREQUEST']._serialized_start=2406 - _globals['_BULKPUBLISHREQUEST']._serialized_end=2651 - _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_BULKPUBLISHREQUESTENTRY']._serialized_start=2654 - _globals['_BULKPUBLISHREQUESTENTRY']._serialized_end=2863 - _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._serialized_start=543 - _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._serialized_end=590 - _globals['_BULKPUBLISHRESPONSE']._serialized_start=2865 - _globals['_BULKPUBLISHRESPONSE']._serialized_end=2964 - _globals['_BULKPUBLISHRESPONSEFAILEDENTRY']._serialized_start=2966 - _globals['_BULKPUBLISHRESPONSEFAILEDENTRY']._serialized_end=3031 - _globals['_SUBSCRIBETOPICEVENTSREQUESTALPHA1']._serialized_start=3034 - _globals['_SUBSCRIBETOPICEVENTSREQUESTALPHA1']._serialized_end=3294 - _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1']._serialized_start=3297 - _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1']._serialized_end=3575 - _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._serialized_start=543 - _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._serialized_end=590 - _globals['_SUBSCRIBETOPICEVENTSREQUESTPROCESSEDALPHA1']._serialized_start=3577 - _globals['_SUBSCRIBETOPICEVENTSREQUESTPROCESSEDALPHA1']._serialized_end=3692 - _globals['_SUBSCRIBETOPICEVENTSRESPONSEALPHA1']._serialized_start=3695 - _globals['_SUBSCRIBETOPICEVENTSRESPONSEALPHA1']._serialized_end=3932 - _globals['_SUBSCRIBETOPICEVENTSRESPONSEINITIALALPHA1']._serialized_start=3934 - _globals['_SUBSCRIBETOPICEVENTSRESPONSEINITIALALPHA1']._serialized_end=3977 - _globals['_INVOKEBINDINGREQUEST']._serialized_start=3980 - _globals['_INVOKEBINDINGREQUEST']._serialized_end=4175 - _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_INVOKEBINDINGREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_INVOKEBINDINGRESPONSE']._serialized_start=4178 - _globals['_INVOKEBINDINGRESPONSE']._serialized_end=4342 - _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._serialized_start=543 - _globals['_INVOKEBINDINGRESPONSE_METADATAENTRY']._serialized_end=590 - _globals['_GETSECRETREQUEST']._serialized_start=4345 - _globals['_GETSECRETREQUEST']._serialized_end=4529 - _globals['_GETSECRETREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_GETSECRETREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_GETSECRETRESPONSE']._serialized_start=4532 - _globals['_GETSECRETRESPONSE']._serialized_end=4662 - _globals['_GETSECRETRESPONSE_DATAENTRY']._serialized_start=4619 - _globals['_GETSECRETRESPONSE_DATAENTRY']._serialized_end=4662 - _globals['_GETBULKSECRETREQUEST']._serialized_start=4665 - _globals['_GETBULKSECRETREQUEST']._serialized_end=4844 - _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_SECRETRESPONSE']._serialized_start=4847 - _globals['_SECRETRESPONSE']._serialized_end=4980 - _globals['_SECRETRESPONSE_SECRETSENTRY']._serialized_start=4934 - _globals['_SECRETRESPONSE_SECRETSENTRY']._serialized_end=4980 - _globals['_GETBULKSECRETRESPONSE']._serialized_start=4983 - _globals['_GETBULKSECRETRESPONSE']._serialized_end=5160 - _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._serialized_start=5078 - _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._serialized_end=5160 - _globals['_TRANSACTIONALSTATEOPERATION']._serialized_start=5162 - _globals['_TRANSACTIONALSTATEOPERATION']._serialized_end=5264 - _globals['_EXECUTESTATETRANSACTIONREQUEST']._serialized_start=5267 - _globals['_EXECUTESTATETRANSACTIONREQUEST']._serialized_end=5526 - _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_REGISTERACTORTIMERREQUEST']._serialized_start=5529 - _globals['_REGISTERACTORTIMERREQUEST']._serialized_end=5716 - _globals['_UNREGISTERACTORTIMERREQUEST']._serialized_start=5718 - _globals['_UNREGISTERACTORTIMERREQUEST']._serialized_end=5819 - _globals['_REGISTERACTORREMINDERREQUEST']._serialized_start=5822 - _globals['_REGISTERACTORREMINDERREQUEST']._serialized_end=5994 - _globals['_UNREGISTERACTORREMINDERREQUEST']._serialized_start=5996 - _globals['_UNREGISTERACTORREMINDERREQUEST']._serialized_end=6100 - _globals['_GETACTORSTATEREQUEST']._serialized_start=6102 - _globals['_GETACTORSTATEREQUEST']._serialized_end=6195 - _globals['_GETACTORSTATERESPONSE']._serialized_start=6198 - _globals['_GETACTORSTATERESPONSE']._serialized_end=6362 - _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._serialized_start=543 - _globals['_GETACTORSTATERESPONSE_METADATAENTRY']._serialized_end=590 - _globals['_EXECUTEACTORSTATETRANSACTIONREQUEST']._serialized_start=6365 - _globals['_EXECUTEACTORSTATETRANSACTIONREQUEST']._serialized_end=6537 - _globals['_TRANSACTIONALACTORSTATEOPERATION']._serialized_start=6540 - _globals['_TRANSACTIONALACTORSTATEOPERATION']._serialized_end=6785 - _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._serialized_start=543 - _globals['_TRANSACTIONALACTORSTATEOPERATION_METADATAENTRY']._serialized_end=590 - _globals['_INVOKEACTORREQUEST']._serialized_start=6788 - _globals['_INVOKEACTORREQUEST']._serialized_end=7020 - _globals['_INVOKEACTORREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_INVOKEACTORREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_INVOKEACTORRESPONSE']._serialized_start=7022 - _globals['_INVOKEACTORRESPONSE']._serialized_end=7057 - _globals['_GETMETADATAREQUEST']._serialized_start=7059 - _globals['_GETMETADATAREQUEST']._serialized_end=7079 - _globals['_GETMETADATARESPONSE']._serialized_start=7082 - _globals['_GETMETADATARESPONSE']._serialized_end=7968 - _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._serialized_start=7899 - _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._serialized_end=7954 - _globals['_METADATASCHEDULER']._serialized_start=7970 - _globals['_METADATASCHEDULER']._serialized_end=8018 - _globals['_ACTORRUNTIME']._serialized_start=8021 - _globals['_ACTORRUNTIME']._serialized_end=8337 - _globals['_ACTORRUNTIME_ACTORRUNTIMESTATUS']._serialized_start=8272 - _globals['_ACTORRUNTIME_ACTORRUNTIMESTATUS']._serialized_end=8337 - _globals['_ACTIVEACTORSCOUNT']._serialized_start=8339 - _globals['_ACTIVEACTORSCOUNT']._serialized_end=8387 - _globals['_REGISTEREDCOMPONENTS']._serialized_start=8389 - _globals['_REGISTEREDCOMPONENTS']._serialized_end=8478 - _globals['_METADATAHTTPENDPOINT']._serialized_start=8480 - _globals['_METADATAHTTPENDPOINT']._serialized_end=8522 - _globals['_APPCONNECTIONPROPERTIES']._serialized_start=8525 - _globals['_APPCONNECTIONPROPERTIES']._serialized_end=8734 - _globals['_APPCONNECTIONHEALTHPROPERTIES']._serialized_start=8737 - _globals['_APPCONNECTIONHEALTHPROPERTIES']._serialized_end=8957 - _globals['_PUBSUBSUBSCRIPTION']._serialized_start=8960 - _globals['_PUBSUBSUBSCRIPTION']._serialized_end=9350 - _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._serialized_start=543 - _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._serialized_end=590 - _globals['_PUBSUBSUBSCRIPTIONRULES']._serialized_start=9352 - _globals['_PUBSUBSUBSCRIPTIONRULES']._serialized_end=9439 - _globals['_PUBSUBSUBSCRIPTIONRULE']._serialized_start=9441 - _globals['_PUBSUBSUBSCRIPTIONRULE']._serialized_end=9494 - _globals['_SETMETADATAREQUEST']._serialized_start=9496 - _globals['_SETMETADATAREQUEST']._serialized_end=9544 - _globals['_GETCONFIGURATIONREQUEST']._serialized_start=9547 - _globals['_GETCONFIGURATIONREQUEST']._serialized_end=9735 - _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_GETCONFIGURATIONREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_GETCONFIGURATIONRESPONSE']._serialized_start=9738 - _globals['_GETCONFIGURATIONRESPONSE']._serialized_end=9926 - _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_start=9841 - _globals['_GETCONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_end=9926 - _globals['_SUBSCRIBECONFIGURATIONREQUEST']._serialized_start=9929 - _globals['_SUBSCRIBECONFIGURATIONREQUEST']._serialized_end=10129 - _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_SUBSCRIBECONFIGURATIONREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_UNSUBSCRIBECONFIGURATIONREQUEST']._serialized_start=10131 - _globals['_UNSUBSCRIBECONFIGURATIONREQUEST']._serialized_end=10196 - _globals['_SUBSCRIBECONFIGURATIONRESPONSE']._serialized_start=10199 - _globals['_SUBSCRIBECONFIGURATIONRESPONSE']._serialized_end=10411 - _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_start=9841 - _globals['_SUBSCRIBECONFIGURATIONRESPONSE_ITEMSENTRY']._serialized_end=9926 - _globals['_UNSUBSCRIBECONFIGURATIONRESPONSE']._serialized_start=10413 - _globals['_UNSUBSCRIBECONFIGURATIONRESPONSE']._serialized_end=10476 - _globals['_TRYLOCKREQUEST']._serialized_start=10479 - _globals['_TRYLOCKREQUEST']._serialized_end=10634 - _globals['_TRYLOCKRESPONSE']._serialized_start=10636 - _globals['_TRYLOCKRESPONSE']._serialized_end=10670 - _globals['_UNLOCKREQUEST']._serialized_start=10672 - _globals['_UNLOCKREQUEST']._serialized_end=10782 - _globals['_UNLOCKRESPONSE']._serialized_start=10785 - _globals['_UNLOCKRESPONSE']._serialized_end=10959 - _globals['_UNLOCKRESPONSE_STATUS']._serialized_start=10865 - _globals['_UNLOCKRESPONSE_STATUS']._serialized_end=10959 - _globals['_SUBTLEGETKEYREQUEST']._serialized_start=10962 - _globals['_SUBTLEGETKEYREQUEST']._serialized_end=11138 - _globals['_SUBTLEGETKEYREQUEST_KEYFORMAT']._serialized_start=11108 - _globals['_SUBTLEGETKEYREQUEST_KEYFORMAT']._serialized_end=11138 - _globals['_SUBTLEGETKEYRESPONSE']._serialized_start=11140 - _globals['_SUBTLEGETKEYRESPONSE']._serialized_end=11207 - _globals['_SUBTLEENCRYPTREQUEST']._serialized_start=11210 - _globals['_SUBTLEENCRYPTREQUEST']._serialized_end=11392 - _globals['_SUBTLEENCRYPTRESPONSE']._serialized_start=11394 - _globals['_SUBTLEENCRYPTRESPONSE']._serialized_end=11450 - _globals['_SUBTLEDECRYPTREQUEST']._serialized_start=11453 - _globals['_SUBTLEDECRYPTREQUEST']._serialized_end=11649 - _globals['_SUBTLEDECRYPTRESPONSE']._serialized_start=11651 - _globals['_SUBTLEDECRYPTRESPONSE']._serialized_end=11693 - _globals['_SUBTLEWRAPKEYREQUEST']._serialized_start=11696 - _globals['_SUBTLEWRAPKEYREQUEST']._serialized_end=11896 - _globals['_SUBTLEWRAPKEYRESPONSE']._serialized_start=11898 - _globals['_SUBTLEWRAPKEYRESPONSE']._serialized_end=11967 - _globals['_SUBTLEUNWRAPKEYREQUEST']._serialized_start=11970 - _globals['_SUBTLEUNWRAPKEYREQUEST']._serialized_end=12181 - _globals['_SUBTLEUNWRAPKEYRESPONSE']._serialized_start=12183 - _globals['_SUBTLEUNWRAPKEYRESPONSE']._serialized_end=12245 - _globals['_SUBTLESIGNREQUEST']._serialized_start=12247 - _globals['_SUBTLESIGNREQUEST']._serialized_end=12367 - _globals['_SUBTLESIGNRESPONSE']._serialized_start=12369 - _globals['_SUBTLESIGNRESPONSE']._serialized_end=12408 - _globals['_SUBTLEVERIFYREQUEST']._serialized_start=12411 - _globals['_SUBTLEVERIFYREQUEST']._serialized_end=12552 - _globals['_SUBTLEVERIFYRESPONSE']._serialized_start=12554 - _globals['_SUBTLEVERIFYRESPONSE']._serialized_end=12591 - _globals['_ENCRYPTREQUEST']._serialized_start=12594 - _globals['_ENCRYPTREQUEST']._serialized_end=12727 - _globals['_ENCRYPTREQUESTOPTIONS']._serialized_start=12730 - _globals['_ENCRYPTREQUESTOPTIONS']._serialized_end=12984 - _globals['_ENCRYPTRESPONSE']._serialized_start=12986 - _globals['_ENCRYPTRESPONSE']._serialized_end=13057 - _globals['_DECRYPTREQUEST']._serialized_start=13060 - _globals['_DECRYPTREQUEST']._serialized_end=13193 - _globals['_DECRYPTREQUESTOPTIONS']._serialized_start=13195 - _globals['_DECRYPTREQUESTOPTIONS']._serialized_end=13284 - _globals['_DECRYPTRESPONSE']._serialized_start=13286 - _globals['_DECRYPTRESPONSE']._serialized_end=13357 - _globals['_GETWORKFLOWREQUEST']._serialized_start=13359 - _globals['_GETWORKFLOWREQUEST']._serialized_end=13459 - _globals['_GETWORKFLOWRESPONSE']._serialized_start=13462 - _globals['_GETWORKFLOWRESPONSE']._serialized_end=13850 - _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._serialized_start=13801 - _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._serialized_end=13850 - _globals['_STARTWORKFLOWREQUEST']._serialized_start=13853 - _globals['_STARTWORKFLOWREQUEST']._serialized_end=14130 - _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._serialized_start=14084 - _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._serialized_end=14130 - _globals['_STARTWORKFLOWRESPONSE']._serialized_start=14132 - _globals['_STARTWORKFLOWRESPONSE']._serialized_end=14188 - _globals['_TERMINATEWORKFLOWREQUEST']._serialized_start=14190 - _globals['_TERMINATEWORKFLOWREQUEST']._serialized_end=14296 - _globals['_PAUSEWORKFLOWREQUEST']._serialized_start=14298 - _globals['_PAUSEWORKFLOWREQUEST']._serialized_end=14400 - _globals['_RESUMEWORKFLOWREQUEST']._serialized_start=14402 - _globals['_RESUMEWORKFLOWREQUEST']._serialized_end=14505 - _globals['_RAISEEVENTWORKFLOWREQUEST']._serialized_start=14508 - _globals['_RAISEEVENTWORKFLOWREQUEST']._serialized_end=14666 - _globals['_PURGEWORKFLOWREQUEST']._serialized_start=14668 - _globals['_PURGEWORKFLOWREQUEST']._serialized_end=14770 - _globals['_SHUTDOWNREQUEST']._serialized_start=14772 - _globals['_SHUTDOWNREQUEST']._serialized_end=14789 - _globals['_JOB']._serialized_start=14792 - _globals['_JOB']._serialized_end=15127 - _globals['_SCHEDULEJOBREQUEST']._serialized_start=15129 - _globals['_SCHEDULEJOBREQUEST']._serialized_end=15220 - _globals['_SCHEDULEJOBRESPONSE']._serialized_start=15222 - _globals['_SCHEDULEJOBRESPONSE']._serialized_end=15243 - _globals['_GETJOBREQUEST']._serialized_start=15245 - _globals['_GETJOBREQUEST']._serialized_end=15274 - _globals['_GETJOBRESPONSE']._serialized_start=15276 - _globals['_GETJOBRESPONSE']._serialized_end=15333 - _globals['_DELETEJOBREQUEST']._serialized_start=15335 - _globals['_DELETEJOBREQUEST']._serialized_end=15367 - _globals['_DELETEJOBRESPONSE']._serialized_start=15369 - _globals['_DELETEJOBRESPONSE']._serialized_end=15388 - _globals['_CONVERSATIONREQUEST']._serialized_start=15391 - _globals['_CONVERSATIONREQUEST']._serialized_end=15882 - _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._serialized_start=15715 - _globals['_CONVERSATIONREQUEST_PARAMETERSENTRY']._serialized_end=15786 - _globals['_CONVERSATIONREQUEST_METADATAENTRY']._serialized_start=543 - _globals['_CONVERSATIONREQUEST_METADATAENTRY']._serialized_end=590 - _globals['_CONVERSATIONREQUESTALPHA2']._serialized_start=15885 - _globals['_CONVERSATIONREQUESTALPHA2']._serialized_end=16499 - _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._serialized_start=15715 - _globals['_CONVERSATIONREQUESTALPHA2_PARAMETERSENTRY']._serialized_end=15786 - _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._serialized_start=543 - _globals['_CONVERSATIONREQUESTALPHA2_METADATAENTRY']._serialized_end=590 - _globals['_CONVERSATIONINPUT']._serialized_start=16501 - _globals['_CONVERSATIONINPUT']._serialized_end=16605 - _globals['_CONVERSATIONINPUTALPHA2']._serialized_start=16607 - _globals['_CONVERSATIONINPUTALPHA2']._serialized_end=16732 - _globals['_CONVERSATIONMESSAGE']._serialized_start=16735 - _globals['_CONVERSATIONMESSAGE']._serialized_end=17142 - _globals['_CONVERSATIONMESSAGEOFDEVELOPER']._serialized_start=17145 - _globals['_CONVERSATIONMESSAGEOFDEVELOPER']._serialized_end=17273 - _globals['_CONVERSATIONMESSAGEOFSYSTEM']._serialized_start=17275 - _globals['_CONVERSATIONMESSAGEOFSYSTEM']._serialized_end=17400 - _globals['_CONVERSATIONMESSAGEOFUSER']._serialized_start=17402 - _globals['_CONVERSATIONMESSAGEOFUSER']._serialized_end=17525 - _globals['_CONVERSATIONMESSAGEOFASSISTANT']._serialized_start=17528 - _globals['_CONVERSATIONMESSAGEOFASSISTANT']._serialized_end=17722 - _globals['_CONVERSATIONMESSAGEOFTOOL']._serialized_start=17725 - _globals['_CONVERSATIONMESSAGEOFTOOL']._serialized_end=17868 - _globals['_CONVERSATIONTOOLCALLS']._serialized_start=17871 - _globals['_CONVERSATIONTOOLCALLS']._serialized_end=18008 - _globals['_CONVERSATIONTOOLCALLSOFFUNCTION']._serialized_start=18010 - _globals['_CONVERSATIONTOOLCALLSOFFUNCTION']._serialized_end=18076 - _globals['_CONVERSATIONMESSAGECONTENT']._serialized_start=18078 - _globals['_CONVERSATIONMESSAGECONTENT']._serialized_end=18120 - _globals['_CONVERSATIONRESULT']._serialized_start=18123 - _globals['_CONVERSATIONRESULT']._serialized_end=18315 - _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._serialized_start=15715 - _globals['_CONVERSATIONRESULT_PARAMETERSENTRY']._serialized_end=15786 - _globals['_CONVERSATIONRESULTALPHA2']._serialized_start=18317 - _globals['_CONVERSATIONRESULTALPHA2']._serialized_end=18410 - _globals['_CONVERSATIONRESULTCHOICES']._serialized_start=18413 - _globals['_CONVERSATIONRESULTCHOICES']._serialized_end=18545 - _globals['_CONVERSATIONRESULTMESSAGE']._serialized_start=18547 - _globals['_CONVERSATIONRESULTMESSAGE']._serialized_end=18657 - _globals['_CONVERSATIONRESPONSE']._serialized_start=18659 - _globals['_CONVERSATIONRESPONSE']._serialized_end=18783 - _globals['_CONVERSATIONRESPONSEALPHA2']._serialized_start=18786 - _globals['_CONVERSATIONRESPONSEALPHA2']._serialized_end=18920 - _globals['_CONVERSATIONTOOLS']._serialized_start=18922 - _globals['_CONVERSATIONTOOLS']._serialized_end=19025 - _globals['_CONVERSATIONTOOLSFUNCTION']._serialized_start=19028 - _globals['_CONVERSATIONTOOLSFUNCTION']._serialized_end=19156 - _globals['_DAPR']._serialized_start=19248 - _globals['_DAPR']._serialized_end=25703 + _globals['_SHUTDOWNREQUEST']._serialized_start=594 + _globals['_SHUTDOWNREQUEST']._serialized_end=611 + _globals['_DAPR']._serialized_start=614 + _globals['_DAPR']._serialized_end=7732 # @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/dapr_pb2.pyi b/dapr/proto/runtime/v1/dapr_pb2.pyi index 42ce316d0..7f4b953dd 100644 --- a/dapr/proto/runtime/v1/dapr_pb2.pyi +++ b/dapr/proto/runtime/v1/dapr_pb2.pyi @@ -14,17 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import dapr.proto.common.v1.common_pb2 -import dapr.proto.runtime.v1.appcallback_pb2 -import google.protobuf.any_pb2 import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import google.protobuf.struct_pb2 -import google.protobuf.timestamp_pb2 import sys import typing @@ -35,3313 +26,9 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -class _PubsubSubscriptionType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _PubsubSubscriptionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PubsubSubscriptionType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UNKNOWN: _PubsubSubscriptionType.ValueType # 0 - """UNKNOWN is the default value for the subscription type.""" - DECLARATIVE: _PubsubSubscriptionType.ValueType # 1 - """Declarative subscription (k8s CRD)""" - PROGRAMMATIC: _PubsubSubscriptionType.ValueType # 2 - """Programmatically created subscription""" - STREAMING: _PubsubSubscriptionType.ValueType # 3 - """Bidirectional Streaming subscription""" - -class PubsubSubscriptionType(_PubsubSubscriptionType, metaclass=_PubsubSubscriptionTypeEnumTypeWrapper): - """PubsubSubscriptionType indicates the type of subscription""" - -UNKNOWN: PubsubSubscriptionType.ValueType # 0 -"""UNKNOWN is the default value for the subscription type.""" -DECLARATIVE: PubsubSubscriptionType.ValueType # 1 -"""Declarative subscription (k8s CRD)""" -PROGRAMMATIC: PubsubSubscriptionType.ValueType # 2 -"""Programmatically created subscription""" -STREAMING: PubsubSubscriptionType.ValueType # 3 -"""Bidirectional Streaming subscription""" -global___PubsubSubscriptionType = PubsubSubscriptionType - -@typing.final -class InvokeServiceRequest(google.protobuf.message.Message): - """InvokeServiceRequest represents the request message for Service invocation.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - id: builtins.str - """Required. Callee's app id.""" - @property - def message(self) -> dapr.proto.common.v1.common_pb2.InvokeRequest: - """Required. message which will be delivered to callee.""" - - def __init__( - self, - *, - id: builtins.str = ..., - message: dapr.proto.common.v1.common_pb2.InvokeRequest | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "message", b"message"]) -> None: ... - -global___InvokeServiceRequest = InvokeServiceRequest - -@typing.final -class GetStateRequest(google.protobuf.message.Message): - """GetStateRequest is the message to get key-value states from specific state store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - CONSISTENCY_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of state store.""" - key: builtins.str - """The key of the desired state""" - consistency: dapr.proto.common.v1.common_pb2.StateOptions.StateConsistency.ValueType - """The read consistency of the state store.""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to state store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - key: builtins.str = ..., - consistency: dapr.proto.common.v1.common_pb2.StateOptions.StateConsistency.ValueType = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["consistency", b"consistency", "key", b"key", "metadata", b"metadata", "store_name", b"store_name"]) -> None: ... - -global___GetStateRequest = GetStateRequest - -@typing.final -class GetBulkStateRequest(google.protobuf.message.Message): - """GetBulkStateRequest is the message to get a list of key-value states from specific state store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - KEYS_FIELD_NUMBER: builtins.int - PARALLELISM_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of state store.""" - parallelism: builtins.int - """The number of parallel operations executed on the state store for a get operation.""" - @property - def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """The keys to get.""" - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to state store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - keys: collections.abc.Iterable[builtins.str] | None = ..., - parallelism: builtins.int = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["keys", b"keys", "metadata", b"metadata", "parallelism", b"parallelism", "store_name", b"store_name"]) -> None: ... - -global___GetBulkStateRequest = GetBulkStateRequest - -@typing.final -class GetBulkStateResponse(google.protobuf.message.Message): - """GetBulkStateResponse is the response conveying the list of state values.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ITEMS_FIELD_NUMBER: builtins.int - @property - def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BulkStateItem]: - """The list of items containing the keys to get values for.""" - - def __init__( - self, - *, - items: collections.abc.Iterable[global___BulkStateItem] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["items", b"items"]) -> None: ... - -global___GetBulkStateResponse = GetBulkStateResponse - -@typing.final -class BulkStateItem(google.protobuf.message.Message): - """BulkStateItem is the response item for a bulk get operation. - Return values include the item key, data and etag. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - KEY_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - ETAG_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - key: builtins.str - """state item key""" - data: builtins.bytes - """The byte array data""" - etag: builtins.str - """The entity tag which represents the specific version of data. - ETag format is defined by the corresponding data store. - """ - error: builtins.str - """The error that was returned from the state store in case of a failed get operation.""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to app.""" - - def __init__( - self, - *, - key: builtins.str = ..., - data: builtins.bytes = ..., - etag: builtins.str = ..., - error: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "error", b"error", "etag", b"etag", "key", b"key", "metadata", b"metadata"]) -> None: ... - -global___BulkStateItem = BulkStateItem - -@typing.final -class GetStateResponse(google.protobuf.message.Message): - """GetStateResponse is the response conveying the state value and etag.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - DATA_FIELD_NUMBER: builtins.int - ETAG_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - data: builtins.bytes - """The byte array data""" - etag: builtins.str - """The entity tag which represents the specific version of data. - ETag format is defined by the corresponding data store. - """ - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to app.""" - - def __init__( - self, - *, - data: builtins.bytes = ..., - etag: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "etag", b"etag", "metadata", b"metadata"]) -> None: ... - -global___GetStateResponse = GetStateResponse - -@typing.final -class DeleteStateRequest(google.protobuf.message.Message): - """DeleteStateRequest is the message to delete key-value states in the specific state store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - ETAG_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of state store.""" - key: builtins.str - """The key of the desired state""" - @property - def etag(self) -> dapr.proto.common.v1.common_pb2.Etag: - """The entity tag which represents the specific version of data. - The exact ETag format is defined by the corresponding data store. - """ - - @property - def options(self) -> dapr.proto.common.v1.common_pb2.StateOptions: - """State operation options which includes concurrency/ - consistency/retry_policy. - """ - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to state store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - key: builtins.str = ..., - etag: dapr.proto.common.v1.common_pb2.Etag | None = ..., - options: dapr.proto.common.v1.common_pb2.StateOptions | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["etag", b"etag", "options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["etag", b"etag", "key", b"key", "metadata", b"metadata", "options", b"options", "store_name", b"store_name"]) -> None: ... - -global___DeleteStateRequest = DeleteStateRequest - -@typing.final -class DeleteBulkStateRequest(google.protobuf.message.Message): - """DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STORE_NAME_FIELD_NUMBER: builtins.int - STATES_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of state store.""" - @property - def states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[dapr.proto.common.v1.common_pb2.StateItem]: - """The array of the state key values.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - states: collections.abc.Iterable[dapr.proto.common.v1.common_pb2.StateItem] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["states", b"states", "store_name", b"store_name"]) -> None: ... - -global___DeleteBulkStateRequest = DeleteBulkStateRequest - -@typing.final -class SaveStateRequest(google.protobuf.message.Message): - """SaveStateRequest is the message to save multiple states into state store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STORE_NAME_FIELD_NUMBER: builtins.int - STATES_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of state store.""" - @property - def states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[dapr.proto.common.v1.common_pb2.StateItem]: - """The array of the state key values.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - states: collections.abc.Iterable[dapr.proto.common.v1.common_pb2.StateItem] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["states", b"states", "store_name", b"store_name"]) -> None: ... - -global___SaveStateRequest = SaveStateRequest - -@typing.final -class QueryStateRequest(google.protobuf.message.Message): - """QueryStateRequest is the message to query state store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of state store.""" - query: builtins.str - """The query in JSON format.""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to state store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - query: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "query", b"query", "store_name", b"store_name"]) -> None: ... - -global___QueryStateRequest = QueryStateRequest - -@typing.final -class QueryStateItem(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - ETAG_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - key: builtins.str - """The object key.""" - data: builtins.bytes - """The object value.""" - etag: builtins.str - """The entity tag which represents the specific version of data. - ETag format is defined by the corresponding data store. - """ - error: builtins.str - """The error message indicating an error in processing of the query result.""" - def __init__( - self, - *, - key: builtins.str = ..., - data: builtins.bytes = ..., - etag: builtins.str = ..., - error: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "error", b"error", "etag", b"etag", "key", b"key"]) -> None: ... - -global___QueryStateItem = QueryStateItem - -@typing.final -class QueryStateResponse(google.protobuf.message.Message): - """QueryStateResponse is the response conveying the query results.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - RESULTS_FIELD_NUMBER: builtins.int - TOKEN_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - token: builtins.str - """Pagination token.""" - @property - def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryStateItem]: - """An array of query results.""" - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to app.""" - - def __init__( - self, - *, - results: collections.abc.Iterable[global___QueryStateItem] | None = ..., - token: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "results", b"results", "token", b"token"]) -> None: ... - -global___QueryStateResponse = QueryStateResponse - -@typing.final -class PublishEventRequest(google.protobuf.message.Message): - """PublishEventRequest is the message to publish event data to pubsub topic""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - PUBSUB_NAME_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - pubsub_name: builtins.str - """The name of the pubsub component""" - topic: builtins.str - """The pubsub topic""" - data: builtins.bytes - """The data which will be published to topic.""" - data_content_type: builtins.str - """The content type for the data (optional).""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata passing to pub components - - metadata property: - - key : the key of the message. - """ - - def __init__( - self, - *, - pubsub_name: builtins.str = ..., - topic: builtins.str = ..., - data: builtins.bytes = ..., - data_content_type: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "data_content_type", b"data_content_type", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "topic", b"topic"]) -> None: ... - -global___PublishEventRequest = PublishEventRequest - -@typing.final -class BulkPublishRequest(google.protobuf.message.Message): - """BulkPublishRequest is the message to bulk publish events to pubsub topic""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - PUBSUB_NAME_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - ENTRIES_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - pubsub_name: builtins.str - """The name of the pubsub component""" - topic: builtins.str - """The pubsub topic""" - @property - def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BulkPublishRequestEntry]: - """The entries which contain the individual events and associated details to be published""" - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The request level metadata passing to to the pubsub components""" - - def __init__( - self, - *, - pubsub_name: builtins.str = ..., - topic: builtins.str = ..., - entries: collections.abc.Iterable[global___BulkPublishRequestEntry] | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["entries", b"entries", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "topic", b"topic"]) -> None: ... - -global___BulkPublishRequest = BulkPublishRequest - -@typing.final -class BulkPublishRequestEntry(google.protobuf.message.Message): - """BulkPublishRequestEntry is the message containing the event to be bulk published""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - ENTRY_ID_FIELD_NUMBER: builtins.int - EVENT_FIELD_NUMBER: builtins.int - CONTENT_TYPE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - entry_id: builtins.str - """The request scoped unique ID referring to this message. Used to map status in response""" - event: builtins.bytes - """The event which will be pulished to the topic""" - content_type: builtins.str - """The content type for the event""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The event level metadata passing to the pubsub component""" - - def __init__( - self, - *, - entry_id: builtins.str = ..., - event: builtins.bytes = ..., - content_type: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["content_type", b"content_type", "entry_id", b"entry_id", "event", b"event", "metadata", b"metadata"]) -> None: ... - -global___BulkPublishRequestEntry = BulkPublishRequestEntry - -@typing.final -class BulkPublishResponse(google.protobuf.message.Message): - """BulkPublishResponse is the message returned from a BulkPublishEvent call""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FAILEDENTRIES_FIELD_NUMBER: builtins.int - @property - def failedEntries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BulkPublishResponseFailedEntry]: - """The entries for different events that failed publish in the BulkPublishEvent call""" - - def __init__( - self, - *, - failedEntries: collections.abc.Iterable[global___BulkPublishResponseFailedEntry] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["failedEntries", b"failedEntries"]) -> None: ... - -global___BulkPublishResponse = BulkPublishResponse - -@typing.final -class BulkPublishResponseFailedEntry(google.protobuf.message.Message): - """BulkPublishResponseFailedEntry is the message containing the entryID and error of a failed event in BulkPublishEvent call""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ENTRY_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - entry_id: builtins.str - """The response scoped unique ID referring to this message""" - error: builtins.str - """The error message if any on failure""" - def __init__( - self, - *, - entry_id: builtins.str = ..., - error: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["entry_id", b"entry_id", "error", b"error"]) -> None: ... - -global___BulkPublishResponseFailedEntry = BulkPublishResponseFailedEntry - -@typing.final -class SubscribeTopicEventsRequestAlpha1(google.protobuf.message.Message): - """SubscribeTopicEventsRequestAlpha1 is a message containing the details for - subscribing to a topic via streaming. - The first message must always be the initial request. All subsequent - messages must be event processed responses. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INITIAL_REQUEST_FIELD_NUMBER: builtins.int - EVENT_PROCESSED_FIELD_NUMBER: builtins.int - @property - def initial_request(self) -> global___SubscribeTopicEventsRequestInitialAlpha1: ... - @property - def event_processed(self) -> global___SubscribeTopicEventsRequestProcessedAlpha1: ... - def __init__( - self, - *, - initial_request: global___SubscribeTopicEventsRequestInitialAlpha1 | None = ..., - event_processed: global___SubscribeTopicEventsRequestProcessedAlpha1 | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["event_processed", b"event_processed", "initial_request", b"initial_request", "subscribe_topic_events_request_type", b"subscribe_topic_events_request_type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["event_processed", b"event_processed", "initial_request", b"initial_request", "subscribe_topic_events_request_type", b"subscribe_topic_events_request_type"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["subscribe_topic_events_request_type", b"subscribe_topic_events_request_type"]) -> typing.Literal["initial_request", "event_processed"] | None: ... - -global___SubscribeTopicEventsRequestAlpha1 = SubscribeTopicEventsRequestAlpha1 - -@typing.final -class SubscribeTopicEventsRequestInitialAlpha1(google.protobuf.message.Message): - """SubscribeTopicEventsRequestInitialAlpha1 is the initial message containing - the details for subscribing to a topic via streaming. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - PUBSUB_NAME_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - DEAD_LETTER_TOPIC_FIELD_NUMBER: builtins.int - pubsub_name: builtins.str - """The name of the pubsub component""" - topic: builtins.str - """The pubsub topic""" - dead_letter_topic: builtins.str - """dead_letter_topic is the topic to which messages that fail to be processed - are sent. - """ - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata passing to pub components - - metadata property: - - key : the key of the message. - """ - - def __init__( - self, - *, - pubsub_name: builtins.str = ..., - topic: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - dead_letter_topic: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_dead_letter_topic", b"_dead_letter_topic", "dead_letter_topic", b"dead_letter_topic"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_dead_letter_topic", b"_dead_letter_topic", "dead_letter_topic", b"dead_letter_topic", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "topic", b"topic"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_dead_letter_topic", b"_dead_letter_topic"]) -> typing.Literal["dead_letter_topic"] | None: ... - -global___SubscribeTopicEventsRequestInitialAlpha1 = SubscribeTopicEventsRequestInitialAlpha1 - -@typing.final -class SubscribeTopicEventsRequestProcessedAlpha1(google.protobuf.message.Message): - """SubscribeTopicEventsRequestProcessedAlpha1 is the message containing the - subscription to a topic. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - STATUS_FIELD_NUMBER: builtins.int - id: builtins.str - """id is the unique identifier for the subscription request.""" - @property - def status(self) -> dapr.proto.runtime.v1.appcallback_pb2.TopicEventResponse: - """status is the result of the subscription request.""" - - def __init__( - self, - *, - id: builtins.str = ..., - status: dapr.proto.runtime.v1.appcallback_pb2.TopicEventResponse | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["status", b"status"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "status", b"status"]) -> None: ... - -global___SubscribeTopicEventsRequestProcessedAlpha1 = SubscribeTopicEventsRequestProcessedAlpha1 - -@typing.final -class SubscribeTopicEventsResponseAlpha1(google.protobuf.message.Message): - """SubscribeTopicEventsResponseAlpha1 is a message returned from daprd - when subscribing to a topic via streaming. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INITIAL_RESPONSE_FIELD_NUMBER: builtins.int - EVENT_MESSAGE_FIELD_NUMBER: builtins.int - @property - def initial_response(self) -> global___SubscribeTopicEventsResponseInitialAlpha1: ... - @property - def event_message(self) -> dapr.proto.runtime.v1.appcallback_pb2.TopicEventRequest: ... - def __init__( - self, - *, - initial_response: global___SubscribeTopicEventsResponseInitialAlpha1 | None = ..., - event_message: dapr.proto.runtime.v1.appcallback_pb2.TopicEventRequest | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["event_message", b"event_message", "initial_response", b"initial_response", "subscribe_topic_events_response_type", b"subscribe_topic_events_response_type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["event_message", b"event_message", "initial_response", b"initial_response", "subscribe_topic_events_response_type", b"subscribe_topic_events_response_type"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["subscribe_topic_events_response_type", b"subscribe_topic_events_response_type"]) -> typing.Literal["initial_response", "event_message"] | None: ... - -global___SubscribeTopicEventsResponseAlpha1 = SubscribeTopicEventsResponseAlpha1 - -@typing.final -class SubscribeTopicEventsResponseInitialAlpha1(google.protobuf.message.Message): - """SubscribeTopicEventsResponseInitialAlpha1 is the initial response from daprd - when subscribing to a topic. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___SubscribeTopicEventsResponseInitialAlpha1 = SubscribeTopicEventsResponseInitialAlpha1 - -@typing.final -class InvokeBindingRequest(google.protobuf.message.Message): - """InvokeBindingRequest is the message to send data to output bindings""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - OPERATION_FIELD_NUMBER: builtins.int - name: builtins.str - """The name of the output binding to invoke.""" - data: builtins.bytes - """The data which will be sent to output binding.""" - operation: builtins.str - """The name of the operation type for the binding to invoke""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata passing to output binding components - - Common metadata property: - - ttlInSeconds : the time to live in seconds for the message. - - If set in the binding definition will cause all messages to - have a default time to live. The message ttl overrides any value - in the binding definition. - """ - - def __init__( - self, - *, - name: builtins.str = ..., - data: builtins.bytes = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - operation: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "metadata", b"metadata", "name", b"name", "operation", b"operation"]) -> None: ... - -global___InvokeBindingRequest = InvokeBindingRequest - -@typing.final -class InvokeBindingResponse(google.protobuf.message.Message): - """InvokeBindingResponse is the message returned from an output binding invocation""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - DATA_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - data: builtins.bytes - """The data which will be sent to output binding.""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata returned from an external system""" - - def __init__( - self, - *, - data: builtins.bytes = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "metadata", b"metadata"]) -> None: ... - -global___InvokeBindingResponse = InvokeBindingResponse - -@typing.final -class GetSecretRequest(google.protobuf.message.Message): - """GetSecretRequest is the message to get secret from secret store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of secret store.""" - key: builtins.str - """The name of secret key.""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to secret store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - key: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "metadata", b"metadata", "store_name", b"store_name"]) -> None: ... - -global___GetSecretRequest = GetSecretRequest - -@typing.final -class GetSecretResponse(google.protobuf.message.Message): - """GetSecretResponse is the response message to convey the requested secret.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class DataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - DATA_FIELD_NUMBER: builtins.int - @property - def data(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """data is the secret value. Some secret store, such as kubernetes secret - store, can save multiple secrets for single secret key. - """ - - def __init__( - self, - *, - data: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... - -global___GetSecretResponse = GetSecretResponse - -@typing.final -class GetBulkSecretRequest(google.protobuf.message.Message): - """GetBulkSecretRequest is the message to get the secrets from secret store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of secret store.""" - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to secret store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "store_name", b"store_name"]) -> None: ... - -global___GetBulkSecretRequest = GetBulkSecretRequest - -@typing.final -class SecretResponse(google.protobuf.message.Message): - """SecretResponse is a map of decrypted string/string values""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class SecretsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - SECRETS_FIELD_NUMBER: builtins.int - @property - def secrets(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - def __init__( - self, - *, - secrets: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["secrets", b"secrets"]) -> None: ... - -global___SecretResponse = SecretResponse - -@typing.final -class GetBulkSecretResponse(google.protobuf.message.Message): - """GetBulkSecretResponse is the response message to convey the requested secrets.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class DataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> global___SecretResponse: ... - def __init__( - self, - *, - key: builtins.str = ..., - value: global___SecretResponse | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - DATA_FIELD_NUMBER: builtins.int - @property - def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___SecretResponse]: - """data hold the secret values. Some secret store, such as kubernetes secret - store, can save multiple secrets for single secret key. - """ - - def __init__( - self, - *, - data: collections.abc.Mapping[builtins.str, global___SecretResponse] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... - -global___GetBulkSecretResponse = GetBulkSecretResponse - -@typing.final -class TransactionalStateOperation(google.protobuf.message.Message): - """TransactionalStateOperation is the message to execute a specified operation with a key-value pair.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OPERATIONTYPE_FIELD_NUMBER: builtins.int - REQUEST_FIELD_NUMBER: builtins.int - operationType: builtins.str - """The type of operation to be executed""" - @property - def request(self) -> dapr.proto.common.v1.common_pb2.StateItem: - """State values to be operated on""" - - def __init__( - self, - *, - operationType: builtins.str = ..., - request: dapr.proto.common.v1.common_pb2.StateItem | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["request", b"request"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["operationType", b"operationType", "request", b"request"]) -> None: ... - -global___TransactionalStateOperation = TransactionalStateOperation - -@typing.final -class ExecuteStateTransactionRequest(google.protobuf.message.Message): - """ExecuteStateTransactionRequest is the message to execute multiple operations on a specified store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORENAME_FIELD_NUMBER: builtins.int - OPERATIONS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - storeName: builtins.str - """Required. name of state store.""" - @property - def operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TransactionalStateOperation]: - """Required. transactional operation list.""" - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata used for transactional operations.""" - - def __init__( - self, - *, - storeName: builtins.str = ..., - operations: collections.abc.Iterable[global___TransactionalStateOperation] | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "operations", b"operations", "storeName", b"storeName"]) -> None: ... - -global___ExecuteStateTransactionRequest = ExecuteStateTransactionRequest - -@typing.final -class RegisterActorTimerRequest(google.protobuf.message.Message): - """RegisterActorTimerRequest is the message to register a timer for an actor of a given type and id.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACTOR_TYPE_FIELD_NUMBER: builtins.int - ACTOR_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - DUE_TIME_FIELD_NUMBER: builtins.int - PERIOD_FIELD_NUMBER: builtins.int - CALLBACK_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - TTL_FIELD_NUMBER: builtins.int - actor_type: builtins.str - actor_id: builtins.str - name: builtins.str - due_time: builtins.str - period: builtins.str - callback: builtins.str - data: builtins.bytes - ttl: builtins.str - def __init__( - self, - *, - actor_type: builtins.str = ..., - actor_id: builtins.str = ..., - name: builtins.str = ..., - due_time: builtins.str = ..., - period: builtins.str = ..., - callback: builtins.str = ..., - data: builtins.bytes = ..., - ttl: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "callback", b"callback", "data", b"data", "due_time", b"due_time", "name", b"name", "period", b"period", "ttl", b"ttl"]) -> None: ... - -global___RegisterActorTimerRequest = RegisterActorTimerRequest - -@typing.final -class UnregisterActorTimerRequest(google.protobuf.message.Message): - """UnregisterActorTimerRequest is the message to unregister an actor timer""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACTOR_TYPE_FIELD_NUMBER: builtins.int - ACTOR_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - actor_type: builtins.str - actor_id: builtins.str - name: builtins.str - def __init__( - self, - *, - actor_type: builtins.str = ..., - actor_id: builtins.str = ..., - name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "name", b"name"]) -> None: ... - -global___UnregisterActorTimerRequest = UnregisterActorTimerRequest - -@typing.final -class RegisterActorReminderRequest(google.protobuf.message.Message): - """RegisterActorReminderRequest is the message to register a reminder for an actor of a given type and id.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACTOR_TYPE_FIELD_NUMBER: builtins.int - ACTOR_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - DUE_TIME_FIELD_NUMBER: builtins.int - PERIOD_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - TTL_FIELD_NUMBER: builtins.int - actor_type: builtins.str - actor_id: builtins.str - name: builtins.str - due_time: builtins.str - period: builtins.str - data: builtins.bytes - ttl: builtins.str - def __init__( - self, - *, - actor_type: builtins.str = ..., - actor_id: builtins.str = ..., - name: builtins.str = ..., - due_time: builtins.str = ..., - period: builtins.str = ..., - data: builtins.bytes = ..., - ttl: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "data", b"data", "due_time", b"due_time", "name", b"name", "period", b"period", "ttl", b"ttl"]) -> None: ... - -global___RegisterActorReminderRequest = RegisterActorReminderRequest - -@typing.final -class UnregisterActorReminderRequest(google.protobuf.message.Message): - """UnregisterActorReminderRequest is the message to unregister an actor reminder.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACTOR_TYPE_FIELD_NUMBER: builtins.int - ACTOR_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - actor_type: builtins.str - actor_id: builtins.str - name: builtins.str - def __init__( - self, - *, - actor_type: builtins.str = ..., - actor_id: builtins.str = ..., - name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "name", b"name"]) -> None: ... - -global___UnregisterActorReminderRequest = UnregisterActorReminderRequest - -@typing.final -class GetActorStateRequest(google.protobuf.message.Message): - """GetActorStateRequest is the message to get key-value states from specific actor.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACTOR_TYPE_FIELD_NUMBER: builtins.int - ACTOR_ID_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - actor_type: builtins.str - actor_id: builtins.str - key: builtins.str - def __init__( - self, - *, - actor_type: builtins.str = ..., - actor_id: builtins.str = ..., - key: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "key", b"key"]) -> None: ... - -global___GetActorStateRequest = GetActorStateRequest - -@typing.final -class GetActorStateResponse(google.protobuf.message.Message): - """GetActorStateResponse is the response conveying the actor's state value.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - DATA_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - data: builtins.bytes - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to app.""" - - def __init__( - self, - *, - data: builtins.bytes = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data", "metadata", b"metadata"]) -> None: ... - -global___GetActorStateResponse = GetActorStateResponse - -@typing.final -class ExecuteActorStateTransactionRequest(google.protobuf.message.Message): - """ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACTOR_TYPE_FIELD_NUMBER: builtins.int - ACTOR_ID_FIELD_NUMBER: builtins.int - OPERATIONS_FIELD_NUMBER: builtins.int - actor_type: builtins.str - actor_id: builtins.str - @property - def operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TransactionalActorStateOperation]: ... - def __init__( - self, - *, - actor_type: builtins.str = ..., - actor_id: builtins.str = ..., - operations: collections.abc.Iterable[global___TransactionalActorStateOperation] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "operations", b"operations"]) -> None: ... - -global___ExecuteActorStateTransactionRequest = ExecuteActorStateTransactionRequest - -@typing.final -class TransactionalActorStateOperation(google.protobuf.message.Message): - """TransactionalActorStateOperation is the message to execute a specified operation with a key-value pair.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - OPERATIONTYPE_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - operationType: builtins.str - key: builtins.str - @property - def value(self) -> google.protobuf.any_pb2.Any: ... - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata used for transactional operations. - - Common metadata property: - - ttlInSeconds : the time to live in seconds for the stored value. - """ - - def __init__( - self, - *, - operationType: builtins.str = ..., - key: builtins.str = ..., - value: google.protobuf.any_pb2.Any | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "metadata", b"metadata", "operationType", b"operationType", "value", b"value"]) -> None: ... - -global___TransactionalActorStateOperation = TransactionalActorStateOperation - -@typing.final -class InvokeActorRequest(google.protobuf.message.Message): - """InvokeActorRequest is the message to call an actor.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - ACTOR_TYPE_FIELD_NUMBER: builtins.int - ACTOR_ID_FIELD_NUMBER: builtins.int - METHOD_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - actor_type: builtins.str - actor_id: builtins.str - method: builtins.str - data: builtins.bytes - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - def __init__( - self, - *, - actor_type: builtins.str = ..., - actor_id: builtins.str = ..., - method: builtins.str = ..., - data: builtins.bytes = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["actor_id", b"actor_id", "actor_type", b"actor_type", "data", b"data", "metadata", b"metadata", "method", b"method"]) -> None: ... - -global___InvokeActorRequest = InvokeActorRequest - -@typing.final -class InvokeActorResponse(google.protobuf.message.Message): - """InvokeActorResponse is the method that returns an actor invocation response.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_FIELD_NUMBER: builtins.int - data: builtins.bytes - def __init__( - self, - *, - data: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... - -global___InvokeActorResponse = InvokeActorResponse - -@typing.final -class GetMetadataRequest(google.protobuf.message.Message): - """GetMetadataRequest is the message for the GetMetadata request. - Empty - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___GetMetadataRequest = GetMetadataRequest - -@typing.final -class GetMetadataResponse(google.protobuf.message.Message): - """GetMetadataResponse is a message that is returned on GetMetadata rpc call.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ExtendedMetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - ID_FIELD_NUMBER: builtins.int - ACTIVE_ACTORS_COUNT_FIELD_NUMBER: builtins.int - REGISTERED_COMPONENTS_FIELD_NUMBER: builtins.int - EXTENDED_METADATA_FIELD_NUMBER: builtins.int - SUBSCRIPTIONS_FIELD_NUMBER: builtins.int - HTTP_ENDPOINTS_FIELD_NUMBER: builtins.int - APP_CONNECTION_PROPERTIES_FIELD_NUMBER: builtins.int - RUNTIME_VERSION_FIELD_NUMBER: builtins.int - ENABLED_FEATURES_FIELD_NUMBER: builtins.int - ACTOR_RUNTIME_FIELD_NUMBER: builtins.int - SCHEDULER_FIELD_NUMBER: builtins.int - id: builtins.str - runtime_version: builtins.str - @property - def active_actors_count(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ActiveActorsCount]: - """Deprecated alias for actor_runtime.active_actors.""" - - @property - def registered_components(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RegisteredComponents]: ... - @property - def extended_metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def subscriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PubsubSubscription]: ... - @property - def http_endpoints(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MetadataHTTPEndpoint]: ... - @property - def app_connection_properties(self) -> global___AppConnectionProperties: ... - @property - def enabled_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def actor_runtime(self) -> global___ActorRuntime: ... - @property - def scheduler(self) -> global___MetadataScheduler: ... - def __init__( - self, - *, - id: builtins.str = ..., - active_actors_count: collections.abc.Iterable[global___ActiveActorsCount] | None = ..., - registered_components: collections.abc.Iterable[global___RegisteredComponents] | None = ..., - extended_metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - subscriptions: collections.abc.Iterable[global___PubsubSubscription] | None = ..., - http_endpoints: collections.abc.Iterable[global___MetadataHTTPEndpoint] | None = ..., - app_connection_properties: global___AppConnectionProperties | None = ..., - runtime_version: builtins.str = ..., - enabled_features: collections.abc.Iterable[builtins.str] | None = ..., - actor_runtime: global___ActorRuntime | None = ..., - scheduler: global___MetadataScheduler | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_scheduler", b"_scheduler", "actor_runtime", b"actor_runtime", "app_connection_properties", b"app_connection_properties", "scheduler", b"scheduler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_scheduler", b"_scheduler", "active_actors_count", b"active_actors_count", "actor_runtime", b"actor_runtime", "app_connection_properties", b"app_connection_properties", "enabled_features", b"enabled_features", "extended_metadata", b"extended_metadata", "http_endpoints", b"http_endpoints", "id", b"id", "registered_components", b"registered_components", "runtime_version", b"runtime_version", "scheduler", b"scheduler", "subscriptions", b"subscriptions"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_scheduler", b"_scheduler"]) -> typing.Literal["scheduler"] | None: ... - -global___GetMetadataResponse = GetMetadataResponse - -@typing.final -class MetadataScheduler(google.protobuf.message.Message): - """MetadataScheduler is a message that contains the list of addresses of the - scheduler connections. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONNECTED_ADDRESSES_FIELD_NUMBER: builtins.int - @property - def connected_addresses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """connected_addresses the list of addresses of the scheduler connections.""" - - def __init__( - self, - *, - connected_addresses: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["connected_addresses", b"connected_addresses"]) -> None: ... - -global___MetadataScheduler = MetadataScheduler - -@typing.final -class ActorRuntime(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _ActorRuntimeStatus: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _ActorRuntimeStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ActorRuntime._ActorRuntimeStatus.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - INITIALIZING: ActorRuntime._ActorRuntimeStatus.ValueType # 0 - """Indicates that the actor runtime is still being initialized.""" - DISABLED: ActorRuntime._ActorRuntimeStatus.ValueType # 1 - """Indicates that the actor runtime is disabled. - This normally happens when Dapr is started without "placement-host-address" - """ - RUNNING: ActorRuntime._ActorRuntimeStatus.ValueType # 2 - """Indicates the actor runtime is running, either as an actor host or client.""" - - class ActorRuntimeStatus(_ActorRuntimeStatus, metaclass=_ActorRuntimeStatusEnumTypeWrapper): ... - INITIALIZING: ActorRuntime.ActorRuntimeStatus.ValueType # 0 - """Indicates that the actor runtime is still being initialized.""" - DISABLED: ActorRuntime.ActorRuntimeStatus.ValueType # 1 - """Indicates that the actor runtime is disabled. - This normally happens when Dapr is started without "placement-host-address" - """ - RUNNING: ActorRuntime.ActorRuntimeStatus.ValueType # 2 - """Indicates the actor runtime is running, either as an actor host or client.""" - - RUNTIME_STATUS_FIELD_NUMBER: builtins.int - ACTIVE_ACTORS_FIELD_NUMBER: builtins.int - HOST_READY_FIELD_NUMBER: builtins.int - PLACEMENT_FIELD_NUMBER: builtins.int - runtime_status: global___ActorRuntime.ActorRuntimeStatus.ValueType - """Contains an enum indicating whether the actor runtime has been initialized.""" - host_ready: builtins.bool - """Indicates whether the actor runtime is ready to host actors.""" - placement: builtins.str - """Custom message from the placement provider.""" - @property - def active_actors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ActiveActorsCount]: - """Count of active actors per type.""" - - def __init__( - self, - *, - runtime_status: global___ActorRuntime.ActorRuntimeStatus.ValueType = ..., - active_actors: collections.abc.Iterable[global___ActiveActorsCount] | None = ..., - host_ready: builtins.bool = ..., - placement: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["active_actors", b"active_actors", "host_ready", b"host_ready", "placement", b"placement", "runtime_status", b"runtime_status"]) -> None: ... - -global___ActorRuntime = ActorRuntime - -@typing.final -class ActiveActorsCount(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - COUNT_FIELD_NUMBER: builtins.int - type: builtins.str - count: builtins.int - def __init__( - self, - *, - type: builtins.str = ..., - count: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["count", b"count", "type", b"type"]) -> None: ... - -global___ActiveActorsCount = ActiveActorsCount - -@typing.final -class RegisteredComponents(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - CAPABILITIES_FIELD_NUMBER: builtins.int - name: builtins.str - type: builtins.str - version: builtins.str - @property - def capabilities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - def __init__( - self, - *, - name: builtins.str = ..., - type: builtins.str = ..., - version: builtins.str = ..., - capabilities: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["capabilities", b"capabilities", "name", b"name", "type", b"type", "version", b"version"]) -> None: ... - -global___RegisteredComponents = RegisteredComponents - -@typing.final -class MetadataHTTPEndpoint(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - name: builtins.str - def __init__( - self, - *, - name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... - -global___MetadataHTTPEndpoint = MetadataHTTPEndpoint - -@typing.final -class AppConnectionProperties(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PORT_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - CHANNEL_ADDRESS_FIELD_NUMBER: builtins.int - MAX_CONCURRENCY_FIELD_NUMBER: builtins.int - HEALTH_FIELD_NUMBER: builtins.int - port: builtins.int - protocol: builtins.str - channel_address: builtins.str - max_concurrency: builtins.int - @property - def health(self) -> global___AppConnectionHealthProperties: ... - def __init__( - self, - *, - port: builtins.int = ..., - protocol: builtins.str = ..., - channel_address: builtins.str = ..., - max_concurrency: builtins.int = ..., - health: global___AppConnectionHealthProperties | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["health", b"health"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["channel_address", b"channel_address", "health", b"health", "max_concurrency", b"max_concurrency", "port", b"port", "protocol", b"protocol"]) -> None: ... - -global___AppConnectionProperties = AppConnectionProperties - -@typing.final -class AppConnectionHealthProperties(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HEALTH_CHECK_PATH_FIELD_NUMBER: builtins.int - HEALTH_PROBE_INTERVAL_FIELD_NUMBER: builtins.int - HEALTH_PROBE_TIMEOUT_FIELD_NUMBER: builtins.int - HEALTH_THRESHOLD_FIELD_NUMBER: builtins.int - health_check_path: builtins.str - health_probe_interval: builtins.str - health_probe_timeout: builtins.str - health_threshold: builtins.int - def __init__( - self, - *, - health_check_path: builtins.str = ..., - health_probe_interval: builtins.str = ..., - health_probe_timeout: builtins.str = ..., - health_threshold: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["health_check_path", b"health_check_path", "health_probe_interval", b"health_probe_interval", "health_probe_timeout", b"health_probe_timeout", "health_threshold", b"health_threshold"]) -> None: ... - -global___AppConnectionHealthProperties = AppConnectionHealthProperties - -@typing.final -class PubsubSubscription(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - PUBSUB_NAME_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - RULES_FIELD_NUMBER: builtins.int - DEAD_LETTER_TOPIC_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - pubsub_name: builtins.str - topic: builtins.str - dead_letter_topic: builtins.str - type: global___PubsubSubscriptionType.ValueType - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def rules(self) -> global___PubsubSubscriptionRules: ... - def __init__( - self, - *, - pubsub_name: builtins.str = ..., - topic: builtins.str = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - rules: global___PubsubSubscriptionRules | None = ..., - dead_letter_topic: builtins.str = ..., - type: global___PubsubSubscriptionType.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["rules", b"rules"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["dead_letter_topic", b"dead_letter_topic", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "rules", b"rules", "topic", b"topic", "type", b"type"]) -> None: ... - -global___PubsubSubscription = PubsubSubscription - -@typing.final -class PubsubSubscriptionRules(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RULES_FIELD_NUMBER: builtins.int - @property - def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PubsubSubscriptionRule]: ... - def __init__( - self, - *, - rules: collections.abc.Iterable[global___PubsubSubscriptionRule] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["rules", b"rules"]) -> None: ... - -global___PubsubSubscriptionRules = PubsubSubscriptionRules - -@typing.final -class PubsubSubscriptionRule(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MATCH_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - match: builtins.str - path: builtins.str - def __init__( - self, - *, - match: builtins.str = ..., - path: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["match", b"match", "path", b"path"]) -> None: ... - -global___PubsubSubscriptionRule = PubsubSubscriptionRule - -@typing.final -class SetMetadataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - -global___SetMetadataRequest = SetMetadataRequest - -@typing.final -class GetConfigurationRequest(google.protobuf.message.Message): - """GetConfigurationRequest is the message to get a list of key-value configuration from specified configuration store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - KEYS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """Required. The name of configuration store.""" - @property - def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """Optional. The key of the configuration item to fetch. - If set, only query for the specified configuration items. - Empty list means fetch all. - """ - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Optional. The metadata which will be sent to configuration store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - keys: collections.abc.Iterable[builtins.str] | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["keys", b"keys", "metadata", b"metadata", "store_name", b"store_name"]) -> None: ... - -global___GetConfigurationRequest = GetConfigurationRequest - -@typing.final -class GetConfigurationResponse(google.protobuf.message.Message): - """GetConfigurationResponse is the response conveying the list of configuration values. - It should be the FULL configuration of specified application which contains all of its configuration items. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ItemsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> dapr.proto.common.v1.common_pb2.ConfigurationItem: ... - def __init__( - self, - *, - key: builtins.str = ..., - value: dapr.proto.common.v1.common_pb2.ConfigurationItem | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - ITEMS_FIELD_NUMBER: builtins.int - @property - def items(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem]: ... - def __init__( - self, - *, - items: collections.abc.Mapping[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["items", b"items"]) -> None: ... - -global___GetConfigurationResponse = GetConfigurationResponse - -@typing.final -class SubscribeConfigurationRequest(google.protobuf.message.Message): - """SubscribeConfigurationRequest is the message to get a list of key-value configuration from specified configuration store.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - STORE_NAME_FIELD_NUMBER: builtins.int - KEYS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of configuration store.""" - @property - def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """Optional. The key of the configuration item to fetch. - If set, only query for the specified configuration items. - Empty list means fetch all. - """ - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata which will be sent to configuration store components.""" - - def __init__( - self, - *, - store_name: builtins.str = ..., - keys: collections.abc.Iterable[builtins.str] | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["keys", b"keys", "metadata", b"metadata", "store_name", b"store_name"]) -> None: ... - -global___SubscribeConfigurationRequest = SubscribeConfigurationRequest - -@typing.final -class UnsubscribeConfigurationRequest(google.protobuf.message.Message): - """UnSubscribeConfigurationRequest is the message to stop watching the key-value configuration.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STORE_NAME_FIELD_NUMBER: builtins.int - ID_FIELD_NUMBER: builtins.int - store_name: builtins.str - """The name of configuration store.""" - id: builtins.str - """The id to unsubscribe.""" - def __init__( - self, - *, - store_name: builtins.str = ..., - id: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "store_name", b"store_name"]) -> None: ... - -global___UnsubscribeConfigurationRequest = UnsubscribeConfigurationRequest - -@typing.final -class SubscribeConfigurationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ItemsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> dapr.proto.common.v1.common_pb2.ConfigurationItem: ... - def __init__( - self, - *, - key: builtins.str = ..., - value: dapr.proto.common.v1.common_pb2.ConfigurationItem | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - ID_FIELD_NUMBER: builtins.int - ITEMS_FIELD_NUMBER: builtins.int - id: builtins.str - """Subscribe id, used to stop subscription.""" - @property - def items(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem]: - """The list of items containing configuration values""" - - def __init__( - self, - *, - id: builtins.str = ..., - items: collections.abc.Mapping[builtins.str, dapr.proto.common.v1.common_pb2.ConfigurationItem] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["id", b"id", "items", b"items"]) -> None: ... - -global___SubscribeConfigurationResponse = SubscribeConfigurationResponse - -@typing.final -class UnsubscribeConfigurationResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OK_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - ok: builtins.bool - message: builtins.str - def __init__( - self, - *, - ok: builtins.bool = ..., - message: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["message", b"message", "ok", b"ok"]) -> None: ... - -global___UnsubscribeConfigurationResponse = UnsubscribeConfigurationResponse - -@typing.final -class TryLockRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STORE_NAME_FIELD_NUMBER: builtins.int - RESOURCE_ID_FIELD_NUMBER: builtins.int - LOCK_OWNER_FIELD_NUMBER: builtins.int - EXPIRY_IN_SECONDS_FIELD_NUMBER: builtins.int - store_name: builtins.str - """Required. The lock store name,e.g. `redis`.""" - resource_id: builtins.str - """Required. resource_id is the lock key. e.g. `order_id_111` - It stands for "which resource I want to protect" - """ - lock_owner: builtins.str - """Required. lock_owner indicate the identifier of lock owner. - You can generate a uuid as lock_owner.For example,in golang: - - req.LockOwner = uuid.New().String() - - This field is per request,not per process,so it is different for each request, - which aims to prevent multi-thread in the same process trying the same lock concurrently. - - The reason why we don't make it automatically generated is: - 1. If it is automatically generated,there must be a 'my_lock_owner_id' field in the response. - This name is so weird that we think it is inappropriate to put it into the api spec - 2. If we change the field 'my_lock_owner_id' in the response to 'lock_owner',which means the current lock owner of this lock, - we find that in some lock services users can't get the current lock owner.Actually users don't need it at all. - 3. When reentrant lock is needed,the existing lock_owner is required to identify client and check "whether this client can reenter this lock". - So this field in the request shouldn't be removed. - """ - expiry_in_seconds: builtins.int - """Required. The time before expiry.The time unit is second.""" - def __init__( - self, - *, - store_name: builtins.str = ..., - resource_id: builtins.str = ..., - lock_owner: builtins.str = ..., - expiry_in_seconds: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["expiry_in_seconds", b"expiry_in_seconds", "lock_owner", b"lock_owner", "resource_id", b"resource_id", "store_name", b"store_name"]) -> None: ... - -global___TryLockRequest = TryLockRequest - -@typing.final -class TryLockResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SUCCESS_FIELD_NUMBER: builtins.int - success: builtins.bool - def __init__( - self, - *, - success: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["success", b"success"]) -> None: ... - -global___TryLockResponse = TryLockResponse - -@typing.final -class UnlockRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STORE_NAME_FIELD_NUMBER: builtins.int - RESOURCE_ID_FIELD_NUMBER: builtins.int - LOCK_OWNER_FIELD_NUMBER: builtins.int - store_name: builtins.str - resource_id: builtins.str - """resource_id is the lock key.""" - lock_owner: builtins.str - def __init__( - self, - *, - store_name: builtins.str = ..., - resource_id: builtins.str = ..., - lock_owner: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["lock_owner", b"lock_owner", "resource_id", b"resource_id", "store_name", b"store_name"]) -> None: ... - -global___UnlockRequest = UnlockRequest - -@typing.final -class UnlockResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _Status: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UnlockResponse._Status.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - SUCCESS: UnlockResponse._Status.ValueType # 0 - LOCK_DOES_NOT_EXIST: UnlockResponse._Status.ValueType # 1 - LOCK_BELONGS_TO_OTHERS: UnlockResponse._Status.ValueType # 2 - INTERNAL_ERROR: UnlockResponse._Status.ValueType # 3 - - class Status(_Status, metaclass=_StatusEnumTypeWrapper): ... - SUCCESS: UnlockResponse.Status.ValueType # 0 - LOCK_DOES_NOT_EXIST: UnlockResponse.Status.ValueType # 1 - LOCK_BELONGS_TO_OTHERS: UnlockResponse.Status.ValueType # 2 - INTERNAL_ERROR: UnlockResponse.Status.ValueType # 3 - - STATUS_FIELD_NUMBER: builtins.int - status: global___UnlockResponse.Status.ValueType - def __init__( - self, - *, - status: global___UnlockResponse.Status.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ... - -global___UnlockResponse = UnlockResponse - -@typing.final -class SubtleGetKeyRequest(google.protobuf.message.Message): - """SubtleGetKeyRequest is the request object for SubtleGetKeyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _KeyFormat: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _KeyFormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SubtleGetKeyRequest._KeyFormat.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - PEM: SubtleGetKeyRequest._KeyFormat.ValueType # 0 - """PEM (PKIX) (default)""" - JSON: SubtleGetKeyRequest._KeyFormat.ValueType # 1 - """JSON (JSON Web Key) as string""" - - class KeyFormat(_KeyFormat, metaclass=_KeyFormatEnumTypeWrapper): ... - PEM: SubtleGetKeyRequest.KeyFormat.ValueType # 0 - """PEM (PKIX) (default)""" - JSON: SubtleGetKeyRequest.KeyFormat.ValueType # 1 - """JSON (JSON Web Key) as string""" - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - name: builtins.str - """Name (or name/version) of the key to use in the key vault""" - format: global___SubtleGetKeyRequest.KeyFormat.ValueType - """Response format""" - def __init__( - self, - *, - component_name: builtins.str = ..., - name: builtins.str = ..., - format: global___SubtleGetKeyRequest.KeyFormat.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["component_name", b"component_name", "format", b"format", "name", b"name"]) -> None: ... - -global___SubtleGetKeyRequest = SubtleGetKeyRequest - -@typing.final -class SubtleGetKeyResponse(google.protobuf.message.Message): - """SubtleGetKeyResponse is the response for SubtleGetKeyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - PUBLIC_KEY_FIELD_NUMBER: builtins.int - name: builtins.str - """Name (or name/version) of the key. - This is returned as response too in case there is a version. - """ - public_key: builtins.str - """Public key, encoded in the requested format""" - def __init__( - self, - *, - name: builtins.str = ..., - public_key: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["name", b"name", "public_key", b"public_key"]) -> None: ... - -global___SubtleGetKeyResponse = SubtleGetKeyResponse - -@typing.final -class SubtleEncryptRequest(google.protobuf.message.Message): - """SubtleEncryptRequest is the request for SubtleEncryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - PLAINTEXT_FIELD_NUMBER: builtins.int - ALGORITHM_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - NONCE_FIELD_NUMBER: builtins.int - ASSOCIATED_DATA_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - plaintext: builtins.bytes - """Message to encrypt.""" - algorithm: builtins.str - """Algorithm to use, as in the JWA standard.""" - key_name: builtins.str - """Name (or name/version) of the key.""" - nonce: builtins.bytes - """Nonce / initialization vector. - Ignored with asymmetric ciphers. - """ - associated_data: builtins.bytes - """Associated Data when using AEAD ciphers (optional).""" - def __init__( - self, - *, - component_name: builtins.str = ..., - plaintext: builtins.bytes = ..., - algorithm: builtins.str = ..., - key_name: builtins.str = ..., - nonce: builtins.bytes = ..., - associated_data: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "plaintext", b"plaintext"]) -> None: ... - -global___SubtleEncryptRequest = SubtleEncryptRequest - -@typing.final -class SubtleEncryptResponse(google.protobuf.message.Message): - """SubtleEncryptResponse is the response for SubtleEncryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CIPHERTEXT_FIELD_NUMBER: builtins.int - TAG_FIELD_NUMBER: builtins.int - ciphertext: builtins.bytes - """Encrypted ciphertext.""" - tag: builtins.bytes - """Authentication tag. - This is nil when not using an authenticated cipher. - """ - def __init__( - self, - *, - ciphertext: builtins.bytes = ..., - tag: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["ciphertext", b"ciphertext", "tag", b"tag"]) -> None: ... - -global___SubtleEncryptResponse = SubtleEncryptResponse - -@typing.final -class SubtleDecryptRequest(google.protobuf.message.Message): - """SubtleDecryptRequest is the request for SubtleDecryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - CIPHERTEXT_FIELD_NUMBER: builtins.int - ALGORITHM_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - NONCE_FIELD_NUMBER: builtins.int - TAG_FIELD_NUMBER: builtins.int - ASSOCIATED_DATA_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - ciphertext: builtins.bytes - """Message to decrypt.""" - algorithm: builtins.str - """Algorithm to use, as in the JWA standard.""" - key_name: builtins.str - """Name (or name/version) of the key.""" - nonce: builtins.bytes - """Nonce / initialization vector. - Ignored with asymmetric ciphers. - """ - tag: builtins.bytes - """Authentication tag. - This is nil when not using an authenticated cipher. - """ - associated_data: builtins.bytes - """Associated Data when using AEAD ciphers (optional).""" - def __init__( - self, - *, - component_name: builtins.str = ..., - ciphertext: builtins.bytes = ..., - algorithm: builtins.str = ..., - key_name: builtins.str = ..., - nonce: builtins.bytes = ..., - tag: builtins.bytes = ..., - associated_data: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "ciphertext", b"ciphertext", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "tag", b"tag"]) -> None: ... - -global___SubtleDecryptRequest = SubtleDecryptRequest - -@typing.final -class SubtleDecryptResponse(google.protobuf.message.Message): - """SubtleDecryptResponse is the response for SubtleDecryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PLAINTEXT_FIELD_NUMBER: builtins.int - plaintext: builtins.bytes - """Decrypted plaintext.""" - def __init__( - self, - *, - plaintext: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["plaintext", b"plaintext"]) -> None: ... - -global___SubtleDecryptResponse = SubtleDecryptResponse - -@typing.final -class SubtleWrapKeyRequest(google.protobuf.message.Message): - """SubtleWrapKeyRequest is the request for SubtleWrapKeyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - PLAINTEXT_KEY_FIELD_NUMBER: builtins.int - ALGORITHM_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - NONCE_FIELD_NUMBER: builtins.int - ASSOCIATED_DATA_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - plaintext_key: builtins.bytes - """Key to wrap""" - algorithm: builtins.str - """Algorithm to use, as in the JWA standard.""" - key_name: builtins.str - """Name (or name/version) of the key.""" - nonce: builtins.bytes - """Nonce / initialization vector. - Ignored with asymmetric ciphers. - """ - associated_data: builtins.bytes - """Associated Data when using AEAD ciphers (optional).""" - def __init__( - self, - *, - component_name: builtins.str = ..., - plaintext_key: builtins.bytes = ..., - algorithm: builtins.str = ..., - key_name: builtins.str = ..., - nonce: builtins.bytes = ..., - associated_data: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "plaintext_key", b"plaintext_key"]) -> None: ... - -global___SubtleWrapKeyRequest = SubtleWrapKeyRequest - -@typing.final -class SubtleWrapKeyResponse(google.protobuf.message.Message): - """SubtleWrapKeyResponse is the response for SubtleWrapKeyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - WRAPPED_KEY_FIELD_NUMBER: builtins.int - TAG_FIELD_NUMBER: builtins.int - wrapped_key: builtins.bytes - """Wrapped key.""" - tag: builtins.bytes - """Authentication tag. - This is nil when not using an authenticated cipher. - """ - def __init__( - self, - *, - wrapped_key: builtins.bytes = ..., - tag: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["tag", b"tag", "wrapped_key", b"wrapped_key"]) -> None: ... - -global___SubtleWrapKeyResponse = SubtleWrapKeyResponse - -@typing.final -class SubtleUnwrapKeyRequest(google.protobuf.message.Message): - """SubtleUnwrapKeyRequest is the request for SubtleUnwrapKeyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - WRAPPED_KEY_FIELD_NUMBER: builtins.int - ALGORITHM_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - NONCE_FIELD_NUMBER: builtins.int - TAG_FIELD_NUMBER: builtins.int - ASSOCIATED_DATA_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - wrapped_key: builtins.bytes - """Wrapped key.""" - algorithm: builtins.str - """Algorithm to use, as in the JWA standard.""" - key_name: builtins.str - """Name (or name/version) of the key.""" - nonce: builtins.bytes - """Nonce / initialization vector. - Ignored with asymmetric ciphers. - """ - tag: builtins.bytes - """Authentication tag. - This is nil when not using an authenticated cipher. - """ - associated_data: builtins.bytes - """Associated Data when using AEAD ciphers (optional).""" - def __init__( - self, - *, - component_name: builtins.str = ..., - wrapped_key: builtins.bytes = ..., - algorithm: builtins.str = ..., - key_name: builtins.str = ..., - nonce: builtins.bytes = ..., - tag: builtins.bytes = ..., - associated_data: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["algorithm", b"algorithm", "associated_data", b"associated_data", "component_name", b"component_name", "key_name", b"key_name", "nonce", b"nonce", "tag", b"tag", "wrapped_key", b"wrapped_key"]) -> None: ... - -global___SubtleUnwrapKeyRequest = SubtleUnwrapKeyRequest - -@typing.final -class SubtleUnwrapKeyResponse(google.protobuf.message.Message): - """SubtleUnwrapKeyResponse is the response for SubtleUnwrapKeyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PLAINTEXT_KEY_FIELD_NUMBER: builtins.int - plaintext_key: builtins.bytes - """Key in plaintext""" - def __init__( - self, - *, - plaintext_key: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["plaintext_key", b"plaintext_key"]) -> None: ... - -global___SubtleUnwrapKeyResponse = SubtleUnwrapKeyResponse - -@typing.final -class SubtleSignRequest(google.protobuf.message.Message): - """SubtleSignRequest is the request for SubtleSignAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - DIGEST_FIELD_NUMBER: builtins.int - ALGORITHM_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - digest: builtins.bytes - """Digest to sign.""" - algorithm: builtins.str - """Algorithm to use, as in the JWA standard.""" - key_name: builtins.str - """Name (or name/version) of the key.""" - def __init__( - self, - *, - component_name: builtins.str = ..., - digest: builtins.bytes = ..., - algorithm: builtins.str = ..., - key_name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["algorithm", b"algorithm", "component_name", b"component_name", "digest", b"digest", "key_name", b"key_name"]) -> None: ... - -global___SubtleSignRequest = SubtleSignRequest - -@typing.final -class SubtleSignResponse(google.protobuf.message.Message): - """SubtleSignResponse is the response for SubtleSignAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SIGNATURE_FIELD_NUMBER: builtins.int - signature: builtins.bytes - """The signature that was computed""" - def __init__( - self, - *, - signature: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["signature", b"signature"]) -> None: ... - -global___SubtleSignResponse = SubtleSignResponse - -@typing.final -class SubtleVerifyRequest(google.protobuf.message.Message): - """SubtleVerifyRequest is the request for SubtleVerifyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - DIGEST_FIELD_NUMBER: builtins.int - ALGORITHM_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - SIGNATURE_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - digest: builtins.bytes - """Digest of the message.""" - algorithm: builtins.str - """Algorithm to use, as in the JWA standard.""" - key_name: builtins.str - """Name (or name/version) of the key.""" - signature: builtins.bytes - """Signature to verify.""" - def __init__( - self, - *, - component_name: builtins.str = ..., - digest: builtins.bytes = ..., - algorithm: builtins.str = ..., - key_name: builtins.str = ..., - signature: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["algorithm", b"algorithm", "component_name", b"component_name", "digest", b"digest", "key_name", b"key_name", "signature", b"signature"]) -> None: ... - -global___SubtleVerifyRequest = SubtleVerifyRequest - -@typing.final -class SubtleVerifyResponse(google.protobuf.message.Message): - """SubtleVerifyResponse is the response for SubtleVerifyAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALID_FIELD_NUMBER: builtins.int - valid: builtins.bool - """True if the signature is valid.""" - def __init__( - self, - *, - valid: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["valid", b"valid"]) -> None: ... - -global___SubtleVerifyResponse = SubtleVerifyResponse - -@typing.final -class EncryptRequest(google.protobuf.message.Message): - """EncryptRequest is the request for EncryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OPTIONS_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - @property - def options(self) -> global___EncryptRequestOptions: - """Request details. Must be present in the first message only.""" - - @property - def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: - """Chunk of data of arbitrary size.""" - - def __init__( - self, - *, - options: global___EncryptRequestOptions | None = ..., - payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["options", b"options", "payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["options", b"options", "payload", b"payload"]) -> None: ... - -global___EncryptRequest = EncryptRequest - -@typing.final -class EncryptRequestOptions(google.protobuf.message.Message): - """EncryptRequestOptions contains options for the first message in the EncryptAlpha1 request.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - KEY_WRAP_ALGORITHM_FIELD_NUMBER: builtins.int - DATA_ENCRYPTION_CIPHER_FIELD_NUMBER: builtins.int - OMIT_DECRYPTION_KEY_NAME_FIELD_NUMBER: builtins.int - DECRYPTION_KEY_NAME_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component. Required.""" - key_name: builtins.str - """Name (or name/version) of the key. Required.""" - key_wrap_algorithm: builtins.str - """Key wrapping algorithm to use. Required. - Supported options include: A256KW (alias: AES), A128CBC, A192CBC, A256CBC, RSA-OAEP-256 (alias: RSA). - """ - data_encryption_cipher: builtins.str - """Cipher used to encrypt data (optional): "aes-gcm" (default) or "chacha20-poly1305" """ - omit_decryption_key_name: builtins.bool - """If true, the encrypted document does not contain a key reference. - In that case, calls to the Decrypt method must provide a key reference (name or name/version). - Defaults to false. - """ - decryption_key_name: builtins.str - """Key reference to embed in the encrypted document (name or name/version). - This is helpful if the reference of the key used to decrypt the document is different from the one used to encrypt it. - If unset, uses the reference of the key used to encrypt the document (this is the default behavior). - This option is ignored if omit_decryption_key_name is true. - """ - def __init__( - self, - *, - component_name: builtins.str = ..., - key_name: builtins.str = ..., - key_wrap_algorithm: builtins.str = ..., - data_encryption_cipher: builtins.str = ..., - omit_decryption_key_name: builtins.bool = ..., - decryption_key_name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["component_name", b"component_name", "data_encryption_cipher", b"data_encryption_cipher", "decryption_key_name", b"decryption_key_name", "key_name", b"key_name", "key_wrap_algorithm", b"key_wrap_algorithm", "omit_decryption_key_name", b"omit_decryption_key_name"]) -> None: ... - -global___EncryptRequestOptions = EncryptRequestOptions - -@typing.final -class EncryptResponse(google.protobuf.message.Message): - """EncryptResponse is the response for EncryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PAYLOAD_FIELD_NUMBER: builtins.int - @property - def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: - """Chunk of data.""" - - def __init__( - self, - *, - payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["payload", b"payload"]) -> None: ... - -global___EncryptResponse = EncryptResponse - -@typing.final -class DecryptRequest(google.protobuf.message.Message): - """DecryptRequest is the request for DecryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OPTIONS_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - @property - def options(self) -> global___DecryptRequestOptions: - """Request details. Must be present in the first message only.""" - - @property - def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: - """Chunk of data of arbitrary size.""" - - def __init__( - self, - *, - options: global___DecryptRequestOptions | None = ..., - payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["options", b"options", "payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["options", b"options", "payload", b"payload"]) -> None: ... - -global___DecryptRequest = DecryptRequest - -@typing.final -class DecryptRequestOptions(google.protobuf.message.Message): - """DecryptRequestOptions contains options for the first message in the DecryptAlpha1 request.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - COMPONENT_NAME_FIELD_NUMBER: builtins.int - KEY_NAME_FIELD_NUMBER: builtins.int - component_name: builtins.str - """Name of the component""" - key_name: builtins.str - """Name (or name/version) of the key to decrypt the message. - Overrides any key reference included in the message if present. - This is required if the message doesn't include a key reference (i.e. was created with omit_decryption_key_name set to true). - """ - def __init__( - self, - *, - component_name: builtins.str = ..., - key_name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["component_name", b"component_name", "key_name", b"key_name"]) -> None: ... - -global___DecryptRequestOptions = DecryptRequestOptions - -@typing.final -class DecryptResponse(google.protobuf.message.Message): - """DecryptResponse is the response for DecryptAlpha1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PAYLOAD_FIELD_NUMBER: builtins.int - @property - def payload(self) -> dapr.proto.common.v1.common_pb2.StreamPayload: - """Chunk of data.""" - - def __init__( - self, - *, - payload: dapr.proto.common.v1.common_pb2.StreamPayload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["payload", b"payload"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["payload", b"payload"]) -> None: ... - -global___DecryptResponse = DecryptResponse - -@typing.final -class GetWorkflowRequest(google.protobuf.message.Message): - """GetWorkflowRequest is the request for GetWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the workflow instance to query.""" - workflow_component: builtins.str - """Name of the workflow component.""" - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_component: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"]) -> None: ... - -global___GetWorkflowRequest = GetWorkflowRequest - -@typing.final -class GetWorkflowResponse(google.protobuf.message.Message): - """GetWorkflowResponse is the response for GetWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class PropertiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_NAME_FIELD_NUMBER: builtins.int - CREATED_AT_FIELD_NUMBER: builtins.int - LAST_UPDATED_AT_FIELD_NUMBER: builtins.int - RUNTIME_STATUS_FIELD_NUMBER: builtins.int - PROPERTIES_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the workflow instance.""" - workflow_name: builtins.str - """Name of the workflow.""" - runtime_status: builtins.str - """The current status of the workflow instance, for example, "PENDING", "RUNNING", "SUSPENDED", "COMPLETED", "FAILED", and "TERMINATED".""" - @property - def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The time at which the workflow instance was created.""" - - @property - def last_updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The last time at which the workflow instance had its state changed.""" - - @property - def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Additional component-specific properties of the workflow instance.""" - - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_name: builtins.str = ..., - created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., - runtime_status: builtins.str = ..., - properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["created_at", b"created_at", "last_updated_at", b"last_updated_at"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "instance_id", b"instance_id", "last_updated_at", b"last_updated_at", "properties", b"properties", "runtime_status", b"runtime_status", "workflow_name", b"workflow_name"]) -> None: ... - -global___GetWorkflowResponse = GetWorkflowResponse - -@typing.final -class StartWorkflowRequest(google.protobuf.message.Message): - """StartWorkflowRequest is the request for StartWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class OptionsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int - WORKFLOW_NAME_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - INPUT_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """The ID to assign to the started workflow instance. If empty, a random ID is generated.""" - workflow_component: builtins.str - """Name of the workflow component.""" - workflow_name: builtins.str - """Name of the workflow.""" - input: builtins.bytes - """Input data for the workflow instance.""" - @property - def options(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Additional component-specific options for starting the workflow instance.""" - - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_component: builtins.str = ..., - workflow_name: builtins.str = ..., - options: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - input: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["input", b"input", "instance_id", b"instance_id", "options", b"options", "workflow_component", b"workflow_component", "workflow_name", b"workflow_name"]) -> None: ... - -global___StartWorkflowRequest = StartWorkflowRequest - -@typing.final -class StartWorkflowResponse(google.protobuf.message.Message): - """StartWorkflowResponse is the response for StartWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INSTANCE_ID_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the started workflow instance.""" - def __init__( - self, - *, - instance_id: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id"]) -> None: ... - -global___StartWorkflowResponse = StartWorkflowResponse - -@typing.final -class TerminateWorkflowRequest(google.protobuf.message.Message): - """TerminateWorkflowRequest is the request for TerminateWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the workflow instance to terminate.""" - workflow_component: builtins.str - """Name of the workflow component.""" - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_component: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"]) -> None: ... - -global___TerminateWorkflowRequest = TerminateWorkflowRequest - -@typing.final -class PauseWorkflowRequest(google.protobuf.message.Message): - """PauseWorkflowRequest is the request for PauseWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the workflow instance to pause.""" - workflow_component: builtins.str - """Name of the workflow component.""" - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_component: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"]) -> None: ... - -global___PauseWorkflowRequest = PauseWorkflowRequest - -@typing.final -class ResumeWorkflowRequest(google.protobuf.message.Message): - """ResumeWorkflowRequest is the request for ResumeWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the workflow instance to resume.""" - workflow_component: builtins.str - """Name of the workflow component.""" - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_component: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"]) -> None: ... - -global___ResumeWorkflowRequest = ResumeWorkflowRequest - -@typing.final -class RaiseEventWorkflowRequest(google.protobuf.message.Message): - """RaiseEventWorkflowRequest is the request for RaiseEventWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int - EVENT_NAME_FIELD_NUMBER: builtins.int - EVENT_DATA_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the workflow instance to raise an event for.""" - workflow_component: builtins.str - """Name of the workflow component.""" - event_name: builtins.str - """Name of the event.""" - event_data: builtins.bytes - """Data associated with the event.""" - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_component: builtins.str = ..., - event_name: builtins.str = ..., - event_data: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["event_data", b"event_data", "event_name", b"event_name", "instance_id", b"instance_id", "workflow_component", b"workflow_component"]) -> None: ... - -global___RaiseEventWorkflowRequest = RaiseEventWorkflowRequest - -@typing.final -class PurgeWorkflowRequest(google.protobuf.message.Message): - """PurgeWorkflowRequest is the request for PurgeWorkflowBeta1.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INSTANCE_ID_FIELD_NUMBER: builtins.int - WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int - instance_id: builtins.str - """ID of the workflow instance to purge.""" - workflow_component: builtins.str - """Name of the workflow component.""" - def __init__( - self, - *, - instance_id: builtins.str = ..., - workflow_component: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"]) -> None: ... - -global___PurgeWorkflowRequest = PurgeWorkflowRequest - -@typing.final -class ShutdownRequest(google.protobuf.message.Message): - """ShutdownRequest is the request for Shutdown. - Empty - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___ShutdownRequest = ShutdownRequest - -@typing.final -class Job(google.protobuf.message.Message): - """Job is the definition of a job. At least one of schedule or due_time must be - provided but can also be provided together. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - SCHEDULE_FIELD_NUMBER: builtins.int - REPEATS_FIELD_NUMBER: builtins.int - DUE_TIME_FIELD_NUMBER: builtins.int - TTL_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - FAILURE_POLICY_FIELD_NUMBER: builtins.int - name: builtins.str - """The unique name for the job.""" - schedule: builtins.str - """schedule is an optional schedule at which the job is to be run. - Accepts both systemd timer style cron expressions, as well as human - readable '@' prefixed period strings as defined below. - - Systemd timer style cron accepts 6 fields: - seconds | minutes | hours | day of month | month | day of week - 0-59 | 0-59 | 0-23 | 1-31 | 1-12/jan-dec | 0-6/sun-sat - - "0 30 * * * *" - every hour on the half hour - "0 15 3 * * *" - every day at 03:15 - - Period string expressions: - Entry | Description | Equivalent To - ----- | ----------- | ------------- - @every `` | Run every `` (e.g. '@every 1h30m') | N/A - @yearly (or @annually) | Run once a year, midnight, Jan. 1st | 0 0 0 1 1 * - @monthly | Run once a month, midnight, first of month | 0 0 0 1 * * - @weekly | Run once a week, midnight on Sunday | 0 0 0 * * 0 - @daily (or @midnight) | Run once a day, midnight | 0 0 0 * * * - @hourly | Run once an hour, beginning of hour | 0 0 * * * * - """ - repeats: builtins.int - """repeats is the optional number of times in which the job should be - triggered. If not set, the job will run indefinitely or until expiration. - """ - due_time: builtins.str - """due_time is the optional time at which the job should be active, or the - "one shot" time if other scheduling type fields are not provided. Accepts - a "point in time" string in the format of RFC3339, Go duration string - (calculated from job creation time), or non-repeating ISO8601. - """ - ttl: builtins.str - """ttl is the optional time to live or expiration of the job. Accepts a - "point in time" string in the format of RFC3339, Go duration string - (calculated from job creation time), or non-repeating ISO8601. - """ - @property - def data(self) -> google.protobuf.any_pb2.Any: - """payload is the serialized job payload that will be sent to the recipient - when the job is triggered. - """ - - @property - def failure_policy(self) -> dapr.proto.common.v1.common_pb2.JobFailurePolicy: - """failure_policy is the optional policy for handling job failures.""" - - def __init__( - self, - *, - name: builtins.str = ..., - schedule: builtins.str | None = ..., - repeats: builtins.int | None = ..., - due_time: builtins.str | None = ..., - ttl: builtins.str | None = ..., - data: google.protobuf.any_pb2.Any | None = ..., - failure_policy: dapr.proto.common.v1.common_pb2.JobFailurePolicy | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_due_time", b"_due_time", "_failure_policy", b"_failure_policy", "_repeats", b"_repeats", "_schedule", b"_schedule", "_ttl", b"_ttl", "data", b"data", "due_time", b"due_time", "failure_policy", b"failure_policy", "repeats", b"repeats", "schedule", b"schedule", "ttl", b"ttl"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_due_time", b"_due_time", "_failure_policy", b"_failure_policy", "_repeats", b"_repeats", "_schedule", b"_schedule", "_ttl", b"_ttl", "data", b"data", "due_time", b"due_time", "failure_policy", b"failure_policy", "name", b"name", "repeats", b"repeats", "schedule", b"schedule", "ttl", b"ttl"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_due_time", b"_due_time"]) -> typing.Literal["due_time"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_failure_policy", b"_failure_policy"]) -> typing.Literal["failure_policy"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_repeats", b"_repeats"]) -> typing.Literal["repeats"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_schedule", b"_schedule"]) -> typing.Literal["schedule"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_ttl", b"_ttl"]) -> typing.Literal["ttl"] | None: ... - -global___Job = Job - -@typing.final -class ScheduleJobRequest(google.protobuf.message.Message): - """ScheduleJobRequest is the message to create/schedule the job.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - JOB_FIELD_NUMBER: builtins.int - OVERWRITE_FIELD_NUMBER: builtins.int - overwrite: builtins.bool - """If true, allows this job to overwrite an existing job with the same name.""" - @property - def job(self) -> global___Job: - """The job details.""" - - def __init__( - self, - *, - job: global___Job | None = ..., - overwrite: builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["job", b"job"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["job", b"job", "overwrite", b"overwrite"]) -> None: ... - -global___ScheduleJobRequest = ScheduleJobRequest - -@typing.final -class ScheduleJobResponse(google.protobuf.message.Message): - """ScheduleJobResponse is the message response to create/schedule the job. - Empty - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___ScheduleJobResponse = ScheduleJobResponse - -@typing.final -class GetJobRequest(google.protobuf.message.Message): - """GetJobRequest is the message to retrieve a job.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - name: builtins.str - """The name of the job.""" - def __init__( - self, - *, - name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... - -global___GetJobRequest = GetJobRequest - -@typing.final -class GetJobResponse(google.protobuf.message.Message): - """GetJobResponse is the message's response for a job retrieved.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - JOB_FIELD_NUMBER: builtins.int - @property - def job(self) -> global___Job: - """The job details.""" - - def __init__( - self, - *, - job: global___Job | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["job", b"job"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["job", b"job"]) -> None: ... - -global___GetJobResponse = GetJobResponse - -@typing.final -class DeleteJobRequest(google.protobuf.message.Message): - """DeleteJobRequest is the message to delete the job by name.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - name: builtins.str - """The name of the job.""" - def __init__( - self, - *, - name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... - -global___DeleteJobRequest = DeleteJobRequest - @typing.final -class DeleteJobResponse(google.protobuf.message.Message): - """DeleteJobResponse is the message response to delete the job by name. +class ShutdownRequest(google.protobuf.message.Message): + """ShutdownRequest is the request for Shutdown. Empty """ @@ -3351,785 +38,4 @@ class DeleteJobResponse(google.protobuf.message.Message): self, ) -> None: ... -global___DeleteJobResponse = DeleteJobResponse - -@typing.final -class ConversationRequest(google.protobuf.message.Message): - """ConversationRequest is the request object for Conversation.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ParametersEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> google.protobuf.any_pb2.Any: ... - def __init__( - self, - *, - key: builtins.str = ..., - value: google.protobuf.any_pb2.Any | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - CONTEXTID_FIELD_NUMBER: builtins.int - INPUTS_FIELD_NUMBER: builtins.int - PARAMETERS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - SCRUBPII_FIELD_NUMBER: builtins.int - TEMPERATURE_FIELD_NUMBER: builtins.int - name: builtins.str - """The name of Conversation component""" - contextID: builtins.str - """The ID of an existing chat (like in ChatGPT)""" - scrubPII: builtins.bool - """Scrub PII data that comes back from the LLM""" - temperature: builtins.float - """Temperature for the LLM to optimize for creativity or predictability""" - @property - def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationInput]: - """Inputs for the conversation, support multiple input in one time.""" - - @property - def parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]: - """Parameters for all custom fields.""" - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata passing to conversation components.""" - - def __init__( - self, - *, - name: builtins.str = ..., - contextID: builtins.str | None = ..., - inputs: collections.abc.Iterable[global___ConversationInput] | None = ..., - parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - scrubPII: builtins.bool | None = ..., - temperature: builtins.float | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_contextID", b"_contextID", "_scrubPII", b"_scrubPII", "_temperature", b"_temperature", "contextID", b"contextID", "scrubPII", b"scrubPII", "temperature", b"temperature"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_contextID", b"_contextID", "_scrubPII", b"_scrubPII", "_temperature", b"_temperature", "contextID", b"contextID", "inputs", b"inputs", "metadata", b"metadata", "name", b"name", "parameters", b"parameters", "scrubPII", b"scrubPII", "temperature", b"temperature"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_contextID", b"_contextID"]) -> typing.Literal["contextID"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_scrubPII", b"_scrubPII"]) -> typing.Literal["scrubPII"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_temperature", b"_temperature"]) -> typing.Literal["temperature"] | None: ... - -global___ConversationRequest = ConversationRequest - -@typing.final -class ConversationRequestAlpha2(google.protobuf.message.Message): - """ConversationRequestAlpha2 is the new request object for Conversation. - Many of these fields are inspired by openai.ChatCompletionNewParams - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2106 - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ParametersEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> google.protobuf.any_pb2.Any: ... - def __init__( - self, - *, - key: builtins.str = ..., - value: google.protobuf.any_pb2.Any | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - @typing.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.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: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - CONTEXT_ID_FIELD_NUMBER: builtins.int - INPUTS_FIELD_NUMBER: builtins.int - PARAMETERS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - SCRUB_PII_FIELD_NUMBER: builtins.int - TEMPERATURE_FIELD_NUMBER: builtins.int - TOOLS_FIELD_NUMBER: builtins.int - TOOL_CHOICE_FIELD_NUMBER: builtins.int - name: builtins.str - """The name of Conversation component""" - context_id: builtins.str - """The ID of an existing chat (like in ChatGPT)""" - scrub_pii: builtins.bool - """Scrub PII data that comes back from the LLM""" - temperature: builtins.float - """Temperature for the LLM to optimize for creativity or predictability""" - tool_choice: builtins.str - """Controls which (if any) tool is called by the model. - `none` means the model will not call any tool and instead generates a message. - `auto` means the model can pick between generating a message or calling one or more tools. - Alternatively, a specific tool name may be used here, and casing/syntax must match on tool name. - `none` is the default when no tools are present. - `auto` is the default if tools are present. - `required` requires one or more functions to be called. - ref: https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1976 - ref: https://python.langchain.com/docs/how_to/tool_choice/ - """ - @property - def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationInputAlpha2]: - """Inputs for the conversation, support multiple input in one time. - This is the revamped conversation inputs better matching openai. - """ - - @property - def parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]: - """Parameters for all custom fields.""" - - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """The metadata passing to conversation components.""" - - @property - def tools(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationTools]: - """Tools register the tools available to be used by the LLM during the conversation. - These are sent on a per request basis. - The tools available during the first round of the conversation - may be different than tools specified later on. - """ - - def __init__( - self, - *, - name: builtins.str = ..., - context_id: builtins.str | None = ..., - inputs: collections.abc.Iterable[global___ConversationInputAlpha2] | None = ..., - parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - scrub_pii: builtins.bool | None = ..., - temperature: builtins.float | None = ..., - tools: collections.abc.Iterable[global___ConversationTools] | None = ..., - tool_choice: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_context_id", b"_context_id", "_scrub_pii", b"_scrub_pii", "_temperature", b"_temperature", "_tool_choice", b"_tool_choice", "context_id", b"context_id", "scrub_pii", b"scrub_pii", "temperature", b"temperature", "tool_choice", b"tool_choice"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_context_id", b"_context_id", "_scrub_pii", b"_scrub_pii", "_temperature", b"_temperature", "_tool_choice", b"_tool_choice", "context_id", b"context_id", "inputs", b"inputs", "metadata", b"metadata", "name", b"name", "parameters", b"parameters", "scrub_pii", b"scrub_pii", "temperature", b"temperature", "tool_choice", b"tool_choice", "tools", b"tools"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_context_id", b"_context_id"]) -> typing.Literal["context_id"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_scrub_pii", b"_scrub_pii"]) -> typing.Literal["scrub_pii"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_temperature", b"_temperature"]) -> typing.Literal["temperature"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_tool_choice", b"_tool_choice"]) -> typing.Literal["tool_choice"] | None: ... - -global___ConversationRequestAlpha2 = ConversationRequestAlpha2 - -@typing.final -class ConversationInput(google.protobuf.message.Message): - """maintained for backwards compatibility""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTENT_FIELD_NUMBER: builtins.int - ROLE_FIELD_NUMBER: builtins.int - SCRUBPII_FIELD_NUMBER: builtins.int - content: builtins.str - """The content to send to the llm""" - role: builtins.str - """The role to set for the message""" - scrubPII: builtins.bool - """Scrub PII data that goes into the LLM""" - def __init__( - self, - *, - content: builtins.str = ..., - role: builtins.str | None = ..., - scrubPII: builtins.bool | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_role", b"_role", "_scrubPII", b"_scrubPII", "role", b"role", "scrubPII", b"scrubPII"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_role", b"_role", "_scrubPII", b"_scrubPII", "content", b"content", "role", b"role", "scrubPII", b"scrubPII"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_role", b"_role"]) -> typing.Literal["role"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_scrubPII", b"_scrubPII"]) -> typing.Literal["scrubPII"] | None: ... - -global___ConversationInput = ConversationInput - -@typing.final -class ConversationInputAlpha2(google.protobuf.message.Message): - """directly inspired by openai.ChatCompletionNewParams - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2106 - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MESSAGES_FIELD_NUMBER: builtins.int - SCRUB_PII_FIELD_NUMBER: builtins.int - scrub_pii: builtins.bool - """Scrub PII data that goes into the LLM""" - @property - def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationMessage]: - """The content to send to the llm""" - - def __init__( - self, - *, - messages: collections.abc.Iterable[global___ConversationMessage] | None = ..., - scrub_pii: builtins.bool | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_scrub_pii", b"_scrub_pii", "scrub_pii", b"scrub_pii"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_scrub_pii", b"_scrub_pii", "messages", b"messages", "scrub_pii", b"scrub_pii"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_scrub_pii", b"_scrub_pii"]) -> typing.Literal["scrub_pii"] | None: ... - -global___ConversationInputAlpha2 = ConversationInputAlpha2 - -@typing.final -class ConversationMessage(google.protobuf.message.Message): - """inspired by openai.ChatCompletionMessageParamUnion - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1449 - The role field is inherent to the type of ConversationMessage, - and is propagated in the backend according to the underlying LLM provider type. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - OF_DEVELOPER_FIELD_NUMBER: builtins.int - OF_SYSTEM_FIELD_NUMBER: builtins.int - OF_USER_FIELD_NUMBER: builtins.int - OF_ASSISTANT_FIELD_NUMBER: builtins.int - OF_TOOL_FIELD_NUMBER: builtins.int - @property - def of_developer(self) -> global___ConversationMessageOfDeveloper: ... - @property - def of_system(self) -> global___ConversationMessageOfSystem: ... - @property - def of_user(self) -> global___ConversationMessageOfUser: ... - @property - def of_assistant(self) -> global___ConversationMessageOfAssistant: ... - @property - def of_tool(self) -> global___ConversationMessageOfTool: - """Note: there could be a ConversationMessageOfFunction type here too, - but that is deprecated in openai, so we will not support this. - """ - - def __init__( - self, - *, - of_developer: global___ConversationMessageOfDeveloper | None = ..., - of_system: global___ConversationMessageOfSystem | None = ..., - of_user: global___ConversationMessageOfUser | None = ..., - of_assistant: global___ConversationMessageOfAssistant | None = ..., - of_tool: global___ConversationMessageOfTool | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["message_types", b"message_types", "of_assistant", b"of_assistant", "of_developer", b"of_developer", "of_system", b"of_system", "of_tool", b"of_tool", "of_user", b"of_user"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["message_types", b"message_types", "of_assistant", b"of_assistant", "of_developer", b"of_developer", "of_system", b"of_system", "of_tool", b"of_tool", "of_user", b"of_user"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["message_types", b"message_types"]) -> typing.Literal["of_developer", "of_system", "of_user", "of_assistant", "of_tool"] | None: ... - -global___ConversationMessage = ConversationMessage - -@typing.final -class ConversationMessageOfDeveloper(google.protobuf.message.Message): - """inspired by openai.ChatCompletionDeveloperMessageParam - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1130 - ConversationMessageOfDeveloper is intended to be the contents of a conversation message, - as the role of a developer. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - name: builtins.str - """The name of the participant in the message.""" - @property - def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationMessageContent]: ... - def __init__( - self, - *, - name: builtins.str | None = ..., - content: collections.abc.Iterable[global___ConversationMessageContent] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_name", b"_name", "name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_name", b"_name", "content", b"content", "name", b"name"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_name", b"_name"]) -> typing.Literal["name"] | None: ... - -global___ConversationMessageOfDeveloper = ConversationMessageOfDeveloper - -@typing.final -class ConversationMessageOfSystem(google.protobuf.message.Message): - """inspired by openai.ChatCompletionSystemMessageParam - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1842 - ConversationMessageOfSystem is intended to be the contents of a conversation message, - as the role of a system. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - name: builtins.str - @property - def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationMessageContent]: ... - def __init__( - self, - *, - name: builtins.str | None = ..., - content: collections.abc.Iterable[global___ConversationMessageContent] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_name", b"_name", "name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_name", b"_name", "content", b"content", "name", b"name"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_name", b"_name"]) -> typing.Literal["name"] | None: ... - -global___ConversationMessageOfSystem = ConversationMessageOfSystem - -@typing.final -class ConversationMessageOfUser(google.protobuf.message.Message): - """inspired by openai.ChatCompletionUserMessageParam - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2060C6-L2060C36 - ConversationMessageOfUser is intended to be the contents of a conversation message, - as the role of an end user. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - name: builtins.str - @property - def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationMessageContent]: ... - def __init__( - self, - *, - name: builtins.str | None = ..., - content: collections.abc.Iterable[global___ConversationMessageContent] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_name", b"_name", "name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_name", b"_name", "content", b"content", "name", b"name"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_name", b"_name"]) -> typing.Literal["name"] | None: ... - -global___ConversationMessageOfUser = ConversationMessageOfUser - -@typing.final -class ConversationMessageOfAssistant(google.protobuf.message.Message): - """inspired by openai.ChatCompletionAssistantMessageParam - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L310 - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2060C6-L2060C36 - ConversationMessageOfAssistant is intended to be the contents of a conversation message, - as the role of an assistant. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - TOOL_CALLS_FIELD_NUMBER: builtins.int - name: builtins.str - @property - def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationMessageContent]: - """TODO: there is an audio field here to bring in when the time comes 1.17 or later.""" - - @property - def tool_calls(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationToolCalls]: - """Tool calls generated by the model, such as function calls for the client to then make.""" - - def __init__( - self, - *, - name: builtins.str | None = ..., - content: collections.abc.Iterable[global___ConversationMessageContent] | None = ..., - tool_calls: collections.abc.Iterable[global___ConversationToolCalls] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_name", b"_name", "name", b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_name", b"_name", "content", b"content", "name", b"name", "tool_calls", b"tool_calls"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_name", b"_name"]) -> typing.Literal["name"] | None: ... - -global___ConversationMessageOfAssistant = ConversationMessageOfAssistant - -@typing.final -class ConversationMessageOfTool(google.protobuf.message.Message): - """inspired by openai.ChatCompletionToolMessageParam - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L2011 - ConversationMessageOfTool is intended to be the contents of a conversation message, - as the role of a tool. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TOOL_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - CONTENT_FIELD_NUMBER: builtins.int - tool_id: builtins.str - """Tool ID is helpful for tracking tool history""" - name: builtins.str - """Name of tool associated with the message""" - @property - def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationMessageContent]: ... - def __init__( - self, - *, - tool_id: builtins.str | None = ..., - name: builtins.str = ..., - content: collections.abc.Iterable[global___ConversationMessageContent] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_tool_id", b"_tool_id", "tool_id", b"tool_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_tool_id", b"_tool_id", "content", b"content", "name", b"name", "tool_id", b"tool_id"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_tool_id", b"_tool_id"]) -> typing.Literal["tool_id"] | None: ... - -global___ConversationMessageOfTool = ConversationMessageOfTool - -@typing.final -class ConversationToolCalls(google.protobuf.message.Message): - """inspired by openai.ChatCompletionMessageToolCallParam and openai.ChatCompletionMessageToolCall - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1669 - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1611 - ConversationToolCalls is the tool call request sent from the llm to the client to then call to execute. - This assumes that in our api if a client makes a request that would get a tool call response from the llm, - that this client can also have the tool handy itself to execute it. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - FUNCTION_FIELD_NUMBER: builtins.int - id: builtins.str - @property - def function(self) -> global___ConversationToolCallsOfFunction: ... - def __init__( - self, - *, - id: builtins.str | None = ..., - function: global___ConversationToolCallsOfFunction | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_id", b"_id", "function", b"function", "id", b"id", "tool_types", b"tool_types"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_id", b"_id", "function", b"function", "id", b"id", "tool_types", b"tool_types"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["_id", b"_id"]) -> typing.Literal["id"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing.Literal["tool_types", b"tool_types"]) -> typing.Literal["function"] | None: ... - -global___ConversationToolCalls = ConversationToolCalls - -@typing.final -class ConversationToolCallsOfFunction(google.protobuf.message.Message): - """inspired by openai.ChatCompletionMessageToolCallFunctionParam - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1692 - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - ARGUMENTS_FIELD_NUMBER: builtins.int - name: builtins.str - arguments: builtins.str - """The arguments to call the function with, as generated by the model in JSON - format. Note that the model does not always generate valid JSON, and may - hallucinate parameters not defined by your function schema. Validate the - arguments in your code before calling your function. - """ - def __init__( - self, - *, - name: builtins.str = ..., - arguments: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["arguments", b"arguments", "name", b"name"]) -> None: ... - -global___ConversationToolCallsOfFunction = ConversationToolCallsOfFunction - -@typing.final -class ConversationMessageContent(google.protobuf.message.Message): - """inspired by openai.ChatCompletionContentPartTextParam & openai.ChatCompletionDeveloperMessageParamContentUnion - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1084 - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1154C6-L1154C53 - Note: openai has this message be either a message of string or message of array type, - so instead of this, we support that in one message type instead. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TEXT_FIELD_NUMBER: builtins.int - text: builtins.str - def __init__( - self, - *, - text: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["text", b"text"]) -> None: ... - -global___ConversationMessageContent = ConversationMessageContent - -@typing.final -class ConversationResult(google.protobuf.message.Message): - """ConversationResult is the result for one input.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing.final - class ParametersEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> google.protobuf.any_pb2.Any: ... - def __init__( - self, - *, - key: builtins.str = ..., - value: google.protobuf.any_pb2.Any | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... - - RESULT_FIELD_NUMBER: builtins.int - PARAMETERS_FIELD_NUMBER: builtins.int - result: builtins.str - """Result for the one conversation input.""" - @property - def parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]: - """Parameters for all custom fields.""" - - def __init__( - self, - *, - result: builtins.str = ..., - parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["parameters", b"parameters", "result", b"result"]) -> None: ... - -global___ConversationResult = ConversationResult - -@typing.final -class ConversationResultAlpha2(google.protobuf.message.Message): - """inspired by openai.ChatCompletion - ConversationResultAlpha2 is the result for one input. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CHOICES_FIELD_NUMBER: builtins.int - @property - def choices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationResultChoices]: - """Result for the conversation input.""" - - def __init__( - self, - *, - choices: collections.abc.Iterable[global___ConversationResultChoices] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["choices", b"choices"]) -> None: ... - -global___ConversationResultAlpha2 = ConversationResultAlpha2 - -@typing.final -class ConversationResultChoices(google.protobuf.message.Message): - """inspired by openai.ChatCompletionChoice - based on https://github.com/openai/openai-go/blob/main/chatcompletion.go#L226 - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FINISH_REASON_FIELD_NUMBER: builtins.int - INDEX_FIELD_NUMBER: builtins.int - MESSAGE_FIELD_NUMBER: builtins.int - finish_reason: builtins.str - """The reason the model stopped generating tokens. This will be `stop` if the model - hit a natural stop point or a provided stop sequence, `length` if the maximum - number of tokens specified in the request was reached, `content_filter` if - content was omitted due to a flag from our content filters, `tool_calls` if the - model called a tool. - Any of "stop", "length", "tool_calls", "content_filter". - """ - index: builtins.int - """The index of the choice in the list of choices.""" - @property - def message(self) -> global___ConversationResultMessage: ... - def __init__( - self, - *, - finish_reason: builtins.str = ..., - index: builtins.int = ..., - message: global___ConversationResultMessage | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["finish_reason", b"finish_reason", "index", b"index", "message", b"message"]) -> None: ... - -global___ConversationResultChoices = ConversationResultChoices - -@typing.final -class ConversationResultMessage(google.protobuf.message.Message): - """inspired by openai.ChatCompletionMessage - based on https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1218C6-L1218C27 - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTENT_FIELD_NUMBER: builtins.int - TOOL_CALLS_FIELD_NUMBER: builtins.int - content: builtins.str - """The contents of the message.""" - @property - def tool_calls(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationToolCalls]: - """The tool calls generated by the model.""" - - def __init__( - self, - *, - content: builtins.str = ..., - tool_calls: collections.abc.Iterable[global___ConversationToolCalls] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing.Literal["content", b"content", "tool_calls", b"tool_calls"]) -> None: ... - -global___ConversationResultMessage = ConversationResultMessage - -@typing.final -class ConversationResponse(google.protobuf.message.Message): - """ConversationResponse is the response for Conversation.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTEXTID_FIELD_NUMBER: builtins.int - OUTPUTS_FIELD_NUMBER: builtins.int - contextID: builtins.str - """The ID of an existing chat (like in ChatGPT)""" - @property - def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationResult]: - """An array of results.""" - - def __init__( - self, - *, - contextID: builtins.str | None = ..., - outputs: collections.abc.Iterable[global___ConversationResult] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_contextID", b"_contextID", "contextID", b"contextID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_contextID", b"_contextID", "contextID", b"contextID", "outputs", b"outputs"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_contextID", b"_contextID"]) -> typing.Literal["contextID"] | None: ... - -global___ConversationResponse = ConversationResponse - -@typing.final -class ConversationResponseAlpha2(google.protobuf.message.Message): - """ConversationResponseAlpha2 is the Alpha2 response for Conversation.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CONTEXT_ID_FIELD_NUMBER: builtins.int - OUTPUTS_FIELD_NUMBER: builtins.int - context_id: builtins.str - """The ID of an existing chat (like in ChatGPT)""" - @property - def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConversationResultAlpha2]: - """An array of results.""" - - def __init__( - self, - *, - context_id: builtins.str | None = ..., - outputs: collections.abc.Iterable[global___ConversationResultAlpha2] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_context_id", b"_context_id", "context_id", b"context_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_context_id", b"_context_id", "context_id", b"context_id", "outputs", b"outputs"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_context_id", b"_context_id"]) -> typing.Literal["context_id"] | None: ... - -global___ConversationResponseAlpha2 = ConversationResponseAlpha2 - -@typing.final -class ConversationTools(google.protobuf.message.Message): - """ConversationTools are the typed tools available to be called. - inspired by openai.ChatCompletionToolParam - https://github.com/openai/openai-go/blob/main/chatcompletion.go#L1950 - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FUNCTION_FIELD_NUMBER: builtins.int - @property - def function(self) -> global___ConversationToolsFunction: ... - def __init__( - self, - *, - function: global___ConversationToolsFunction | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["function", b"function", "tool_types", b"tool_types"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["function", b"function", "tool_types", b"tool_types"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["tool_types", b"tool_types"]) -> typing.Literal["function"] | None: ... - -global___ConversationTools = ConversationTools - -@typing.final -class ConversationToolsFunction(google.protobuf.message.Message): - """ConversationToolsFunction is the main tool type to be used in a conversation. - inspired by openai.FunctionDefinitionParam - https://pkg.go.dev/github.com/openai/openai-go/shared#FunctionDefinitionParam - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - PARAMETERS_FIELD_NUMBER: builtins.int - name: builtins.str - """The name of the function to be called.""" - description: builtins.str - """A description of what the function does, - used by the model to choose when and how to call the function. - """ - @property - def parameters(self) -> google.protobuf.struct_pb2.Struct: - """The parameters the functions accepts, described as a JSON Schema object. - See the [guide](https://platform.openai.com/docs/guides/function-calling) for examples, - and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. - Omitting `parameters` defines a function with an empty parameter list. - """ - - def __init__( - self, - *, - name: builtins.str = ..., - description: builtins.str | None = ..., - parameters: google.protobuf.struct_pb2.Struct | None = ..., - ) -> None: ... - def HasField(self, field_name: typing.Literal["_description", b"_description", "description", b"description", "parameters", b"parameters"]) -> builtins.bool: ... - def ClearField(self, field_name: typing.Literal["_description", b"_description", "description", b"description", "name", b"name", "parameters", b"parameters"]) -> None: ... - def WhichOneof(self, oneof_group: typing.Literal["_description", b"_description"]) -> typing.Literal["description"] | None: ... - -global___ConversationToolsFunction = ConversationToolsFunction +Global___ShutdownRequest: typing_extensions.TypeAlias = ShutdownRequest diff --git a/dapr/proto/runtime/v1/dapr_pb2_grpc.py b/dapr/proto/runtime/v1/dapr_pb2_grpc.py index c739588a2..5d9cc0c95 100644 --- a/dapr/proto/runtime/v1/dapr_pb2_grpc.py +++ b/dapr/proto/runtime/v1/dapr_pb2_grpc.py @@ -1,11 +1,44 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings 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 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 from dapr.proto.runtime.v1 import dapr_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2 +from dapr.proto.runtime.v1 import invoke_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_invoke__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 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 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 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 +GRPC_GENERATED_VERSION = '1.76.0' +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/dapr_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}.' + ) + class DaprStub(object): """Dapr service provides APIs to user application to access Dapr building blocks. @@ -19,304 +52,329 @@ def __init__(self, channel): """ self.InvokeService = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/InvokeService', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeServiceRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_invoke__pb2.InvokeServiceRequest.SerializeToString, response_deserializer=dapr_dot_proto_dot_common_dot_v1_dot_common__pb2.InvokeResponse.FromString, - ) + _registered_method=True) self.GetState = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetState', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetStateRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetStateResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetStateRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetStateResponse.FromString, + _registered_method=True) self.GetBulkState = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetBulkState', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkStateRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkStateResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetBulkStateRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetBulkStateResponse.FromString, + _registered_method=True) self.SaveState = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SaveState', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SaveStateRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.SaveStateRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.QueryStateAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/QueryStateAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.QueryStateRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.QueryStateResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.QueryStateRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.QueryStateResponse.FromString, + _registered_method=True) self.DeleteState = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/DeleteState', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteStateRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.DeleteStateRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.DeleteBulkState = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/DeleteBulkState', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteBulkStateRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.DeleteBulkStateRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.ExecuteStateTransaction = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/ExecuteStateTransaction', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ExecuteStateTransactionRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.ExecuteStateTransactionRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.PublishEvent = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/PublishEvent', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PublishEventRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.PublishEventRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.BulkPublishEventAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/BulkPublishEventAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.BulkPublishRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.BulkPublishResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.BulkPublishRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.BulkPublishResponse.FromString, + _registered_method=True) self.SubscribeTopicEventsAlpha1 = channel.stream_stream( '/dapr.proto.runtime.v1.Dapr/SubscribeTopicEventsAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeTopicEventsRequestAlpha1.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeTopicEventsResponseAlpha1.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.SubscribeTopicEventsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.SubscribeTopicEventsResponseAlpha1.FromString, + _registered_method=True) self.InvokeBinding = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/InvokeBinding', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeBindingRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeBindingResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binding__pb2.InvokeBindingRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binding__pb2.InvokeBindingResponse.FromString, + _registered_method=True) self.GetSecret = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetSecret', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetSecretRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetSecretResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetSecretRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetSecretResponse.FromString, + _registered_method=True) self.GetBulkSecret = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetBulkSecret', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkSecretRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkSecretResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetBulkSecretRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetBulkSecretResponse.FromString, + _registered_method=True) self.RegisterActorTimer = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/RegisterActorTimer', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RegisterActorTimerRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.RegisterActorTimerRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.UnregisterActorTimer = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/UnregisterActorTimer', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnregisterActorTimerRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorTimerRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.RegisterActorReminder = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/RegisterActorReminder', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RegisterActorReminderRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.RegisterActorReminderRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.UnregisterActorReminder = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/UnregisterActorReminder', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnregisterActorReminderRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorReminderRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) + self.UnregisterActorRemindersByType = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/UnregisterActorRemindersByType', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorRemindersByTypeRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorRemindersByTypeResponse.FromString, + _registered_method=True) + self.ListActorReminders = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/ListActorReminders', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ListActorRemindersRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ListActorRemindersResponse.FromString, + _registered_method=True) self.GetActorState = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetActorState', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetActorStateRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetActorStateResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorStateRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorStateResponse.FromString, + _registered_method=True) + self.GetActorReminder = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/GetActorReminder', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorReminderRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorReminderResponse.FromString, + _registered_method=True) self.ExecuteActorStateTransaction = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/ExecuteActorStateTransaction', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ExecuteActorStateTransactionRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ExecuteActorStateTransactionRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.InvokeActor = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/InvokeActor', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeActorRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeActorResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.InvokeActorRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.InvokeActorResponse.FromString, + _registered_method=True) self.GetConfigurationAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetConfigurationAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationResponse.FromString, + _registered_method=True) self.GetConfiguration = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetConfiguration', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationResponse.FromString, + _registered_method=True) self.SubscribeConfigurationAlpha1 = channel.unary_stream( '/dapr.proto.runtime.v1.Dapr/SubscribeConfigurationAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationResponse.FromString, + _registered_method=True) self.SubscribeConfiguration = channel.unary_stream( '/dapr.proto.runtime.v1.Dapr/SubscribeConfiguration', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationResponse.FromString, + _registered_method=True) self.UnsubscribeConfigurationAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfigurationAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationResponse.FromString, + _registered_method=True) self.UnsubscribeConfiguration = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfiguration', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationResponse.FromString, + _registered_method=True) self.TryLockAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/TryLockAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TryLockRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TryLockResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.TryLockRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.TryLockResponse.FromString, + _registered_method=True) self.UnlockAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/UnlockAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnlockRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnlockResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.UnlockRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.UnlockResponse.FromString, + _registered_method=True) self.EncryptAlpha1 = channel.stream_stream( '/dapr.proto.runtime.v1.Dapr/EncryptAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.EncryptRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.EncryptResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.EncryptRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.EncryptResponse.FromString, + _registered_method=True) self.DecryptAlpha1 = channel.stream_stream( '/dapr.proto.runtime.v1.Dapr/DecryptAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DecryptRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DecryptResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.DecryptRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.DecryptResponse.FromString, + _registered_method=True) self.GetMetadata = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetMetadata', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetMetadataRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetMetadataResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.GetMetadataRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.GetMetadataResponse.FromString, + _registered_method=True) self.SetMetadata = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SetMetadata', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SetMetadataRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.SetMetadataRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.SubtleGetKeyAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SubtleGetKeyAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleGetKeyRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleGetKeyResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleGetKeyRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleGetKeyResponse.FromString, + _registered_method=True) self.SubtleEncryptAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SubtleEncryptAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleEncryptRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleEncryptResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleEncryptRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleEncryptResponse.FromString, + _registered_method=True) self.SubtleDecryptAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SubtleDecryptAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleDecryptRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleDecryptResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleDecryptRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleDecryptResponse.FromString, + _registered_method=True) self.SubtleWrapKeyAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SubtleWrapKeyAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleWrapKeyRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleWrapKeyResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleWrapKeyRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleWrapKeyResponse.FromString, + _registered_method=True) self.SubtleUnwrapKeyAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SubtleUnwrapKeyAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleUnwrapKeyRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleUnwrapKeyResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleUnwrapKeyRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleUnwrapKeyResponse.FromString, + _registered_method=True) self.SubtleSignAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SubtleSignAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleSignRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleSignResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleSignRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleSignResponse.FromString, + _registered_method=True) self.SubtleVerifyAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/SubtleVerifyAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleVerifyRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleVerifyResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleVerifyRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleVerifyResponse.FromString, + _registered_method=True) self.StartWorkflowAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/StartWorkflowAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowResponse.FromString, + _registered_method=True) self.GetWorkflowAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetWorkflowAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowResponse.FromString, + _registered_method=True) self.PurgeWorkflowAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PurgeWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PurgeWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.TerminateWorkflowAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TerminateWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.TerminateWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.PauseWorkflowAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/PauseWorkflowAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PauseWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PauseWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.ResumeWorkflowAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ResumeWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.ResumeWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.RaiseEventWorkflowAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RaiseEventWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.RaiseEventWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.StartWorkflowBeta1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/StartWorkflowBeta1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowResponse.FromString, + _registered_method=True) self.GetWorkflowBeta1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetWorkflowBeta1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowResponse.FromString, + _registered_method=True) self.PurgeWorkflowBeta1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowBeta1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PurgeWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PurgeWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.TerminateWorkflowBeta1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowBeta1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TerminateWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.TerminateWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.PauseWorkflowBeta1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/PauseWorkflowBeta1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PauseWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PauseWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.ResumeWorkflowBeta1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowBeta1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ResumeWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.ResumeWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.RaiseEventWorkflowBeta1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowBeta1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RaiseEventWorkflowRequest.SerializeToString, + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.RaiseEventWorkflowRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.Shutdown = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/Shutdown', request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ShutdownRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.ScheduleJobAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/ScheduleJobAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ScheduleJobRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ScheduleJobResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ScheduleJobRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ScheduleJobResponse.FromString, + _registered_method=True) self.GetJobAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/GetJobAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetJobRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetJobResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.GetJobRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.GetJobResponse.FromString, + _registered_method=True) self.DeleteJobAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/DeleteJobAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteJobRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteJobResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobResponse.FromString, + _registered_method=True) + self.DeleteJobsByPrefixAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/DeleteJobsByPrefixAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobsByPrefixRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobsByPrefixResponseAlpha1.FromString, + _registered_method=True) + self.ListJobsAlpha1 = channel.unary_unary( + '/dapr.proto.runtime.v1.Dapr/ListJobsAlpha1', + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ListJobsRequestAlpha1.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ListJobsResponseAlpha1.FromString, + _registered_method=True) self.ConverseAlpha1 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/ConverseAlpha1', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationRequest.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationResponse.FromString, - ) + request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationRequest.SerializeToString, + response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationResponse.FromString, + _registered_method=True) self.ConverseAlpha2 = channel.unary_unary( '/dapr.proto.runtime.v1.Dapr/ConverseAlpha2', - request_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationRequestAlpha2.SerializeToString, - response_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationResponseAlpha2.FromString, - ) + 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) class DaprServicer(object): @@ -451,6 +509,18 @@ def UnregisterActorReminder(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def UnregisterActorRemindersByType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListActorReminders(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def GetActorState(self, request, context): """Gets the state for a specific actor. """ @@ -458,6 +528,13 @@ def GetActorState(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def GetActorReminder(self, request, context): + """Gets an actor reminder. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def ExecuteActorStateTransaction(self, request, context): """Executes state transactions for a specified actor """ @@ -731,6 +808,18 @@ def DeleteJobAlpha1(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def DeleteJobsByPrefixAlpha1(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListJobsAlpha1(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def ConverseAlpha1(self, request, context): """Converse with a LLM service """ @@ -750,272 +839,287 @@ def add_DaprServicer_to_server(servicer, server): rpc_method_handlers = { 'InvokeService': grpc.unary_unary_rpc_method_handler( servicer.InvokeService, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeServiceRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_invoke__pb2.InvokeServiceRequest.FromString, response_serializer=dapr_dot_proto_dot_common_dot_v1_dot_common__pb2.InvokeResponse.SerializeToString, ), 'GetState': grpc.unary_unary_rpc_method_handler( servicer.GetState, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetStateRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetStateResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetStateRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetStateResponse.SerializeToString, ), 'GetBulkState': grpc.unary_unary_rpc_method_handler( servicer.GetBulkState, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkStateRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkStateResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetBulkStateRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetBulkStateResponse.SerializeToString, ), 'SaveState': grpc.unary_unary_rpc_method_handler( servicer.SaveState, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SaveStateRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.SaveStateRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'QueryStateAlpha1': grpc.unary_unary_rpc_method_handler( servicer.QueryStateAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.QueryStateRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.QueryStateResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.QueryStateRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.QueryStateResponse.SerializeToString, ), 'DeleteState': grpc.unary_unary_rpc_method_handler( servicer.DeleteState, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteStateRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.DeleteStateRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'DeleteBulkState': grpc.unary_unary_rpc_method_handler( servicer.DeleteBulkState, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteBulkStateRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.DeleteBulkStateRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'ExecuteStateTransaction': grpc.unary_unary_rpc_method_handler( servicer.ExecuteStateTransaction, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ExecuteStateTransactionRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.ExecuteStateTransactionRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'PublishEvent': grpc.unary_unary_rpc_method_handler( servicer.PublishEvent, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PublishEventRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.PublishEventRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'BulkPublishEventAlpha1': grpc.unary_unary_rpc_method_handler( servicer.BulkPublishEventAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.BulkPublishRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.BulkPublishResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.BulkPublishRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.BulkPublishResponse.SerializeToString, ), 'SubscribeTopicEventsAlpha1': grpc.stream_stream_rpc_method_handler( servicer.SubscribeTopicEventsAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeTopicEventsRequestAlpha1.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeTopicEventsResponseAlpha1.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.SubscribeTopicEventsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.SubscribeTopicEventsResponseAlpha1.SerializeToString, ), 'InvokeBinding': grpc.unary_unary_rpc_method_handler( servicer.InvokeBinding, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeBindingRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeBindingResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binding__pb2.InvokeBindingRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_binding__pb2.InvokeBindingResponse.SerializeToString, ), 'GetSecret': grpc.unary_unary_rpc_method_handler( servicer.GetSecret, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetSecretRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetSecretResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetSecretRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetSecretResponse.SerializeToString, ), 'GetBulkSecret': grpc.unary_unary_rpc_method_handler( servicer.GetBulkSecret, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkSecretRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkSecretResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetBulkSecretRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetBulkSecretResponse.SerializeToString, ), 'RegisterActorTimer': grpc.unary_unary_rpc_method_handler( servicer.RegisterActorTimer, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RegisterActorTimerRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.RegisterActorTimerRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'UnregisterActorTimer': grpc.unary_unary_rpc_method_handler( servicer.UnregisterActorTimer, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnregisterActorTimerRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorTimerRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'RegisterActorReminder': grpc.unary_unary_rpc_method_handler( servicer.RegisterActorReminder, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RegisterActorReminderRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.RegisterActorReminderRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'UnregisterActorReminder': grpc.unary_unary_rpc_method_handler( servicer.UnregisterActorReminder, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnregisterActorReminderRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorReminderRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), + 'UnregisterActorRemindersByType': grpc.unary_unary_rpc_method_handler( + servicer.UnregisterActorRemindersByType, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorRemindersByTypeRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorRemindersByTypeResponse.SerializeToString, + ), + 'ListActorReminders': grpc.unary_unary_rpc_method_handler( + servicer.ListActorReminders, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ListActorRemindersRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ListActorRemindersResponse.SerializeToString, + ), 'GetActorState': grpc.unary_unary_rpc_method_handler( servicer.GetActorState, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetActorStateRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetActorStateResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorStateRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorStateResponse.SerializeToString, + ), + 'GetActorReminder': grpc.unary_unary_rpc_method_handler( + servicer.GetActorReminder, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorReminderRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorReminderResponse.SerializeToString, ), 'ExecuteActorStateTransaction': grpc.unary_unary_rpc_method_handler( servicer.ExecuteActorStateTransaction, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ExecuteActorStateTransactionRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ExecuteActorStateTransactionRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'InvokeActor': grpc.unary_unary_rpc_method_handler( servicer.InvokeActor, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeActorRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeActorResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.InvokeActorRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.InvokeActorResponse.SerializeToString, ), 'GetConfigurationAlpha1': grpc.unary_unary_rpc_method_handler( servicer.GetConfigurationAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationResponse.SerializeToString, ), 'GetConfiguration': grpc.unary_unary_rpc_method_handler( servicer.GetConfiguration, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationResponse.SerializeToString, ), 'SubscribeConfigurationAlpha1': grpc.unary_stream_rpc_method_handler( servicer.SubscribeConfigurationAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationResponse.SerializeToString, ), 'SubscribeConfiguration': grpc.unary_stream_rpc_method_handler( servicer.SubscribeConfiguration, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationResponse.SerializeToString, ), 'UnsubscribeConfigurationAlpha1': grpc.unary_unary_rpc_method_handler( servicer.UnsubscribeConfigurationAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationResponse.SerializeToString, ), 'UnsubscribeConfiguration': grpc.unary_unary_rpc_method_handler( servicer.UnsubscribeConfiguration, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationResponse.SerializeToString, ), 'TryLockAlpha1': grpc.unary_unary_rpc_method_handler( servicer.TryLockAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TryLockRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TryLockResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.TryLockRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.TryLockResponse.SerializeToString, ), 'UnlockAlpha1': grpc.unary_unary_rpc_method_handler( servicer.UnlockAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnlockRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnlockResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.UnlockRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.UnlockResponse.SerializeToString, ), 'EncryptAlpha1': grpc.stream_stream_rpc_method_handler( servicer.EncryptAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.EncryptRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.EncryptResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.EncryptRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.EncryptResponse.SerializeToString, ), 'DecryptAlpha1': grpc.stream_stream_rpc_method_handler( servicer.DecryptAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DecryptRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DecryptResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.DecryptRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.DecryptResponse.SerializeToString, ), 'GetMetadata': grpc.unary_unary_rpc_method_handler( servicer.GetMetadata, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetMetadataRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetMetadataResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.GetMetadataRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.GetMetadataResponse.SerializeToString, ), 'SetMetadata': grpc.unary_unary_rpc_method_handler( servicer.SetMetadata, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SetMetadataRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.SetMetadataRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'SubtleGetKeyAlpha1': grpc.unary_unary_rpc_method_handler( servicer.SubtleGetKeyAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleGetKeyRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleGetKeyResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleGetKeyRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleGetKeyResponse.SerializeToString, ), 'SubtleEncryptAlpha1': grpc.unary_unary_rpc_method_handler( servicer.SubtleEncryptAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleEncryptRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleEncryptResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleEncryptRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleEncryptResponse.SerializeToString, ), 'SubtleDecryptAlpha1': grpc.unary_unary_rpc_method_handler( servicer.SubtleDecryptAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleDecryptRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleDecryptResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleDecryptRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleDecryptResponse.SerializeToString, ), 'SubtleWrapKeyAlpha1': grpc.unary_unary_rpc_method_handler( servicer.SubtleWrapKeyAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleWrapKeyRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleWrapKeyResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleWrapKeyRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleWrapKeyResponse.SerializeToString, ), 'SubtleUnwrapKeyAlpha1': grpc.unary_unary_rpc_method_handler( servicer.SubtleUnwrapKeyAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleUnwrapKeyRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleUnwrapKeyResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleUnwrapKeyRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleUnwrapKeyResponse.SerializeToString, ), 'SubtleSignAlpha1': grpc.unary_unary_rpc_method_handler( servicer.SubtleSignAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleSignRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleSignResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleSignRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleSignResponse.SerializeToString, ), 'SubtleVerifyAlpha1': grpc.unary_unary_rpc_method_handler( servicer.SubtleVerifyAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleVerifyRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleVerifyResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleVerifyRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleVerifyResponse.SerializeToString, ), 'StartWorkflowAlpha1': grpc.unary_unary_rpc_method_handler( servicer.StartWorkflowAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowResponse.SerializeToString, ), 'GetWorkflowAlpha1': grpc.unary_unary_rpc_method_handler( servicer.GetWorkflowAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowResponse.SerializeToString, ), 'PurgeWorkflowAlpha1': grpc.unary_unary_rpc_method_handler( servicer.PurgeWorkflowAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PurgeWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PurgeWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'TerminateWorkflowAlpha1': grpc.unary_unary_rpc_method_handler( servicer.TerminateWorkflowAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TerminateWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.TerminateWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'PauseWorkflowAlpha1': grpc.unary_unary_rpc_method_handler( servicer.PauseWorkflowAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PauseWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PauseWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'ResumeWorkflowAlpha1': grpc.unary_unary_rpc_method_handler( servicer.ResumeWorkflowAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ResumeWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.ResumeWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'RaiseEventWorkflowAlpha1': grpc.unary_unary_rpc_method_handler( servicer.RaiseEventWorkflowAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RaiseEventWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.RaiseEventWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'StartWorkflowBeta1': grpc.unary_unary_rpc_method_handler( servicer.StartWorkflowBeta1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowResponse.SerializeToString, ), 'GetWorkflowBeta1': grpc.unary_unary_rpc_method_handler( servicer.GetWorkflowBeta1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowResponse.SerializeToString, ), 'PurgeWorkflowBeta1': grpc.unary_unary_rpc_method_handler( servicer.PurgeWorkflowBeta1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PurgeWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PurgeWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'TerminateWorkflowBeta1': grpc.unary_unary_rpc_method_handler( servicer.TerminateWorkflowBeta1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TerminateWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.TerminateWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'PauseWorkflowBeta1': grpc.unary_unary_rpc_method_handler( servicer.PauseWorkflowBeta1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PauseWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PauseWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'ResumeWorkflowBeta1': grpc.unary_unary_rpc_method_handler( servicer.ResumeWorkflowBeta1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ResumeWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.ResumeWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'RaiseEventWorkflowBeta1': grpc.unary_unary_rpc_method_handler( servicer.RaiseEventWorkflowBeta1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RaiseEventWorkflowRequest.FromString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.RaiseEventWorkflowRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'Shutdown': grpc.unary_unary_rpc_method_handler( @@ -1025,33 +1129,44 @@ def add_DaprServicer_to_server(servicer, server): ), 'ScheduleJobAlpha1': grpc.unary_unary_rpc_method_handler( servicer.ScheduleJobAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ScheduleJobRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ScheduleJobResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ScheduleJobRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ScheduleJobResponse.SerializeToString, ), 'GetJobAlpha1': grpc.unary_unary_rpc_method_handler( servicer.GetJobAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetJobRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetJobResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.GetJobRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.GetJobResponse.SerializeToString, ), 'DeleteJobAlpha1': grpc.unary_unary_rpc_method_handler( servicer.DeleteJobAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteJobRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteJobResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobResponse.SerializeToString, + ), + 'DeleteJobsByPrefixAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.DeleteJobsByPrefixAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobsByPrefixRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobsByPrefixResponseAlpha1.SerializeToString, + ), + 'ListJobsAlpha1': grpc.unary_unary_rpc_method_handler( + servicer.ListJobsAlpha1, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ListJobsRequestAlpha1.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ListJobsResponseAlpha1.SerializeToString, ), 'ConverseAlpha1': grpc.unary_unary_rpc_method_handler( servicer.ConverseAlpha1, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationRequest.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationResponse.SerializeToString, + request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationRequest.FromString, + response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationResponse.SerializeToString, ), 'ConverseAlpha2': grpc.unary_unary_rpc_method_handler( servicer.ConverseAlpha2, - request_deserializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationRequestAlpha2.FromString, - response_serializer=dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationResponseAlpha2.SerializeToString, + 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, ), } generic_handler = grpc.method_handlers_generic_handler( 'dapr.proto.runtime.v1.Dapr', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('dapr.proto.runtime.v1.Dapr', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1070,11 +1185,21 @@ def InvokeService(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/InvokeService', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeServiceRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/InvokeService', + dapr_dot_proto_dot_runtime_dot_v1_dot_invoke__pb2.InvokeServiceRequest.SerializeToString, dapr_dot_proto_dot_common_dot_v1_dot_common__pb2.InvokeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetState(request, @@ -1087,11 +1212,21 @@ def GetState(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetState', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetStateRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetState', + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetStateRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetStateResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetBulkState(request, @@ -1104,11 +1239,21 @@ def GetBulkState(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetBulkState', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkStateRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetBulkState', + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetBulkStateRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.GetBulkStateResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SaveState(request, @@ -1121,11 +1266,21 @@ def SaveState(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SaveState', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SaveStateRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SaveState', + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.SaveStateRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def QueryStateAlpha1(request, @@ -1138,11 +1293,21 @@ def QueryStateAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/QueryStateAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.QueryStateRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.QueryStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/QueryStateAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.QueryStateRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.QueryStateResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteState(request, @@ -1155,11 +1320,21 @@ def DeleteState(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/DeleteState', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteStateRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteState', + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.DeleteStateRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteBulkState(request, @@ -1172,11 +1347,21 @@ def DeleteBulkState(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/DeleteBulkState', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteBulkStateRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteBulkState', + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.DeleteBulkStateRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ExecuteStateTransaction(request, @@ -1189,11 +1374,21 @@ def ExecuteStateTransaction(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/ExecuteStateTransaction', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ExecuteStateTransactionRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ExecuteStateTransaction', + dapr_dot_proto_dot_runtime_dot_v1_dot_state__pb2.ExecuteStateTransactionRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def PublishEvent(request, @@ -1206,11 +1401,21 @@ def PublishEvent(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/PublishEvent', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PublishEventRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/PublishEvent', + dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.PublishEventRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def BulkPublishEventAlpha1(request, @@ -1223,11 +1428,21 @@ def BulkPublishEventAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/BulkPublishEventAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.BulkPublishRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.BulkPublishResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/BulkPublishEventAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.BulkPublishRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.BulkPublishResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeTopicEventsAlpha1(request_iterator, @@ -1240,11 +1455,21 @@ def SubscribeTopicEventsAlpha1(request_iterator, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/dapr.proto.runtime.v1.Dapr/SubscribeTopicEventsAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeTopicEventsRequestAlpha1.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeTopicEventsResponseAlpha1.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.stream_stream( + request_iterator, + target, + '/dapr.proto.runtime.v1.Dapr/SubscribeTopicEventsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.SubscribeTopicEventsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_pubsub__pb2.SubscribeTopicEventsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def InvokeBinding(request, @@ -1257,11 +1482,21 @@ def InvokeBinding(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/InvokeBinding', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeBindingRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeBindingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/InvokeBinding', + dapr_dot_proto_dot_runtime_dot_v1_dot_binding__pb2.InvokeBindingRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_binding__pb2.InvokeBindingResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSecret(request, @@ -1274,11 +1509,21 @@ def GetSecret(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetSecret', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetSecretRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetSecretResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetSecret', + dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetSecretRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetSecretResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetBulkSecret(request, @@ -1291,11 +1536,21 @@ def GetBulkSecret(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetBulkSecret', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkSecretRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetBulkSecretResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetBulkSecret', + dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetBulkSecretRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_secret__pb2.GetBulkSecretResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def RegisterActorTimer(request, @@ -1308,11 +1563,21 @@ def RegisterActorTimer(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/RegisterActorTimer', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RegisterActorTimerRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/RegisterActorTimer', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.RegisterActorTimerRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def UnregisterActorTimer(request, @@ -1325,11 +1590,21 @@ def UnregisterActorTimer(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/UnregisterActorTimer', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnregisterActorTimerRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/UnregisterActorTimer', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorTimerRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def RegisterActorReminder(request, @@ -1342,11 +1617,21 @@ def RegisterActorReminder(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/RegisterActorReminder', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RegisterActorReminderRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/RegisterActorReminder', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.RegisterActorReminderRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def UnregisterActorReminder(request, @@ -1359,11 +1644,75 @@ def UnregisterActorReminder(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/UnregisterActorReminder', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnregisterActorReminderRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/UnregisterActorReminder', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorReminderRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def UnregisterActorRemindersByType(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/UnregisterActorRemindersByType', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorRemindersByTypeRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.UnregisterActorRemindersByTypeResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def ListActorReminders(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/ListActorReminders', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ListActorRemindersRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ListActorRemindersResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetActorState(request, @@ -1376,11 +1725,48 @@ def GetActorState(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetActorState', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetActorStateRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetActorStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetActorState', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorStateRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorStateResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def GetActorReminder(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/GetActorReminder', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorReminderRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.GetActorReminderResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ExecuteActorStateTransaction(request, @@ -1393,11 +1779,21 @@ def ExecuteActorStateTransaction(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/ExecuteActorStateTransaction', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ExecuteActorStateTransactionRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ExecuteActorStateTransaction', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.ExecuteActorStateTransactionRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def InvokeActor(request, @@ -1410,11 +1806,21 @@ def InvokeActor(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/InvokeActor', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeActorRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.InvokeActorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/InvokeActor', + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.InvokeActorRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_actors__pb2.InvokeActorResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetConfigurationAlpha1(request, @@ -1427,11 +1833,21 @@ def GetConfigurationAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetConfigurationAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetConfigurationAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetConfiguration(request, @@ -1444,11 +1860,21 @@ def GetConfiguration(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetConfiguration', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetConfigurationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetConfiguration', + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.GetConfigurationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeConfigurationAlpha1(request, @@ -1461,11 +1887,21 @@ def SubscribeConfigurationAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/dapr.proto.runtime.v1.Dapr/SubscribeConfigurationAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_stream( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubscribeConfigurationAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeConfiguration(request, @@ -1478,11 +1914,21 @@ def SubscribeConfiguration(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/dapr.proto.runtime.v1.Dapr/SubscribeConfiguration', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubscribeConfigurationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_stream( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubscribeConfiguration', + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.SubscribeConfigurationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def UnsubscribeConfigurationAlpha1(request, @@ -1495,11 +1941,21 @@ def UnsubscribeConfigurationAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfigurationAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfigurationAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def UnsubscribeConfiguration(request, @@ -1512,11 +1968,21 @@ def UnsubscribeConfiguration(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfiguration', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnsubscribeConfigurationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/UnsubscribeConfiguration', + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_configuration__pb2.UnsubscribeConfigurationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def TryLockAlpha1(request, @@ -1529,11 +1995,21 @@ def TryLockAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/TryLockAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TryLockRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TryLockResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/TryLockAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.TryLockRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.TryLockResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def UnlockAlpha1(request, @@ -1546,11 +2022,21 @@ def UnlockAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/UnlockAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnlockRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.UnlockResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/UnlockAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.UnlockRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_lock__pb2.UnlockResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def EncryptAlpha1(request_iterator, @@ -1563,11 +2049,21 @@ def EncryptAlpha1(request_iterator, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/dapr.proto.runtime.v1.Dapr/EncryptAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.EncryptRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.EncryptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.stream_stream( + request_iterator, + target, + '/dapr.proto.runtime.v1.Dapr/EncryptAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.EncryptRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.EncryptResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DecryptAlpha1(request_iterator, @@ -1580,11 +2076,21 @@ def DecryptAlpha1(request_iterator, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/dapr.proto.runtime.v1.Dapr/DecryptAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DecryptRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DecryptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.stream_stream( + request_iterator, + target, + '/dapr.proto.runtime.v1.Dapr/DecryptAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.DecryptRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.DecryptResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMetadata(request, @@ -1597,11 +2103,21 @@ def GetMetadata(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetMetadata', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetMetadataRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetMetadataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetMetadata', + dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.GetMetadataRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.GetMetadataResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetMetadata(request, @@ -1614,11 +2130,21 @@ def SetMetadata(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SetMetadata', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SetMetadataRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SetMetadata', + dapr_dot_proto_dot_runtime_dot_v1_dot_metadata__pb2.SetMetadataRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubtleGetKeyAlpha1(request, @@ -1631,11 +2157,21 @@ def SubtleGetKeyAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SubtleGetKeyAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleGetKeyRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleGetKeyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubtleGetKeyAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleGetKeyRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleGetKeyResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubtleEncryptAlpha1(request, @@ -1648,11 +2184,21 @@ def SubtleEncryptAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SubtleEncryptAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleEncryptRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleEncryptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubtleEncryptAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleEncryptRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleEncryptResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubtleDecryptAlpha1(request, @@ -1665,11 +2211,21 @@ def SubtleDecryptAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SubtleDecryptAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleDecryptRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleDecryptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubtleDecryptAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleDecryptRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleDecryptResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubtleWrapKeyAlpha1(request, @@ -1682,11 +2238,21 @@ def SubtleWrapKeyAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SubtleWrapKeyAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleWrapKeyRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleWrapKeyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubtleWrapKeyAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleWrapKeyRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleWrapKeyResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubtleUnwrapKeyAlpha1(request, @@ -1699,11 +2265,21 @@ def SubtleUnwrapKeyAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SubtleUnwrapKeyAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleUnwrapKeyRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleUnwrapKeyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubtleUnwrapKeyAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleUnwrapKeyRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleUnwrapKeyResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubtleSignAlpha1(request, @@ -1716,11 +2292,21 @@ def SubtleSignAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SubtleSignAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleSignRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleSignResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubtleSignAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleSignRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleSignResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubtleVerifyAlpha1(request, @@ -1733,11 +2319,21 @@ def SubtleVerifyAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/SubtleVerifyAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleVerifyRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.SubtleVerifyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/SubtleVerifyAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleVerifyRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_crypto__pb2.SubtleVerifyResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def StartWorkflowAlpha1(request, @@ -1750,11 +2346,21 @@ def StartWorkflowAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/StartWorkflowAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/StartWorkflowAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetWorkflowAlpha1(request, @@ -1767,11 +2373,21 @@ def GetWorkflowAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetWorkflowAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetWorkflowAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def PurgeWorkflowAlpha1(request, @@ -1784,11 +2400,21 @@ def PurgeWorkflowAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PurgeWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PurgeWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def TerminateWorkflowAlpha1(request, @@ -1801,11 +2427,21 @@ def TerminateWorkflowAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TerminateWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.TerminateWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def PauseWorkflowAlpha1(request, @@ -1818,11 +2454,21 @@ def PauseWorkflowAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/PauseWorkflowAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PauseWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/PauseWorkflowAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PauseWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ResumeWorkflowAlpha1(request, @@ -1835,11 +2481,21 @@ def ResumeWorkflowAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ResumeWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.ResumeWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def RaiseEventWorkflowAlpha1(request, @@ -1852,11 +2508,21 @@ def RaiseEventWorkflowAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RaiseEventWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.RaiseEventWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def StartWorkflowBeta1(request, @@ -1869,11 +2535,21 @@ def StartWorkflowBeta1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/StartWorkflowBeta1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.StartWorkflowResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/StartWorkflowBeta1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.StartWorkflowResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetWorkflowBeta1(request, @@ -1886,11 +2562,21 @@ def GetWorkflowBeta1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetWorkflowBeta1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetWorkflowResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetWorkflowBeta1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.GetWorkflowResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def PurgeWorkflowBeta1(request, @@ -1903,11 +2589,21 @@ def PurgeWorkflowBeta1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowBeta1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PurgeWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/PurgeWorkflowBeta1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PurgeWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def TerminateWorkflowBeta1(request, @@ -1920,11 +2616,21 @@ def TerminateWorkflowBeta1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowBeta1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.TerminateWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/TerminateWorkflowBeta1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.TerminateWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def PauseWorkflowBeta1(request, @@ -1937,11 +2643,21 @@ def PauseWorkflowBeta1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/PauseWorkflowBeta1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.PauseWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/PauseWorkflowBeta1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.PauseWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ResumeWorkflowBeta1(request, @@ -1954,11 +2670,21 @@ def ResumeWorkflowBeta1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowBeta1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ResumeWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ResumeWorkflowBeta1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.ResumeWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def RaiseEventWorkflowBeta1(request, @@ -1971,11 +2697,21 @@ def RaiseEventWorkflowBeta1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowBeta1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.RaiseEventWorkflowRequest.SerializeToString, + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/RaiseEventWorkflowBeta1', + dapr_dot_proto_dot_runtime_dot_v1_dot_workflow__pb2.RaiseEventWorkflowRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Shutdown(request, @@ -1988,11 +2724,21 @@ def Shutdown(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/Shutdown', + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/Shutdown', dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ShutdownRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ScheduleJobAlpha1(request, @@ -2005,11 +2751,21 @@ def ScheduleJobAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/ScheduleJobAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ScheduleJobRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ScheduleJobResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ScheduleJobAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ScheduleJobRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ScheduleJobResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetJobAlpha1(request, @@ -2022,11 +2778,21 @@ def GetJobAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/GetJobAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetJobRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.GetJobResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/GetJobAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.GetJobRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.GetJobResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteJobAlpha1(request, @@ -2039,11 +2805,75 @@ def DeleteJobAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/DeleteJobAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteJobRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.DeleteJobResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/DeleteJobAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def DeleteJobsByPrefixAlpha1(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/DeleteJobsByPrefixAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobsByPrefixRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.DeleteJobsByPrefixResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def ListJobsAlpha1(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/ListJobsAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ListJobsRequestAlpha1.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_jobs__pb2.ListJobsResponseAlpha1.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ConverseAlpha1(request, @@ -2056,11 +2886,21 @@ def ConverseAlpha1(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/ConverseAlpha1', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationRequest.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ConverseAlpha1', + dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationRequest.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def ConverseAlpha2(request, @@ -2073,8 +2913,18 @@ def ConverseAlpha2(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/dapr.proto.runtime.v1.Dapr/ConverseAlpha2', - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationRequestAlpha2.SerializeToString, - dapr_dot_proto_dot_runtime_dot_v1_dot_dapr__pb2.ConversationResponseAlpha2.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + return grpc.experimental.unary_unary( + request, + target, + '/dapr.proto.runtime.v1.Dapr/ConverseAlpha2', + dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationRequestAlpha2.SerializeToString, + dapr_dot_proto_dot_runtime_dot_v1_dot_ai__pb2.ConversationResponseAlpha2.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dapr/proto/runtime/v1/invoke_pb2.py b/dapr/proto/runtime/v1/invoke_pb2.py new file mode 100644 index 000000000..56fc5c71f --- /dev/null +++ b/dapr/proto/runtime/v1/invoke_pb2.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/invoke.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/invoke.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/invoke.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a!dapr/proto/common/v1/common.proto\"X\n\x14InvokeServiceRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x34\n\x07message\x18\x03 \x01(\x0b\x32#.dapr.proto.common.v1.InvokeRequestBi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.invoke_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_INVOKESERVICEREQUEST']._serialized_start=96 + _globals['_INVOKESERVICEREQUEST']._serialized_end=184 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/invoke_pb2.pyi b/dapr/proto/runtime/v1/invoke_pb2.pyi new file mode 100644 index 000000000..35da245f5 --- /dev/null +++ b/dapr/proto/runtime/v1/invoke_pb2.pyi @@ -0,0 +1,56 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import dapr.proto.common.v1.common_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class InvokeServiceRequest(google.protobuf.message.Message): + """InvokeServiceRequest represents the request message for Service invocation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + id: builtins.str + """Required. Callee's app id.""" + @property + def message(self) -> dapr.proto.common.v1.common_pb2.InvokeRequest: + """Required. message which will be delivered to callee.""" + + def __init__( + self, + *, + id: builtins.str = ..., + message: dapr.proto.common.v1.common_pb2.InvokeRequest | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["message", b"message"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["id", b"id", "message", b"message"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___InvokeServiceRequest: typing_extensions.TypeAlias = InvokeServiceRequest diff --git a/dapr/proto/runtime/v1/invoke_pb2_grpc.py b/dapr/proto/runtime/v1/invoke_pb2_grpc.py new file mode 100644 index 000000000..0b2904d4c --- /dev/null +++ b/dapr/proto/runtime/v1/invoke_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.76.0' +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/invoke_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/jobs_pb2.py b/dapr/proto/runtime/v1/jobs_pb2.py new file mode 100644 index 000000000..04d358e74 --- /dev/null +++ b/dapr/proto/runtime/v1/jobs_pb2.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/jobs.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/jobs.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +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/jobs.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x19google/protobuf/any.proto\x1a!dapr/proto/common/v1/common.proto\"\xcf\x02\n\x03Job\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x08schedule\x18\x02 \x01(\tH\x00R\x08schedule\x88\x01\x01\x12\x1d\n\x07repeats\x18\x03 \x01(\rH\x01R\x07repeats\x88\x01\x01\x12\x1e\n\x08\x64ue_time\x18\x04 \x01(\tH\x02R\x07\x64ueTime\x88\x01\x01\x12\x15\n\x03ttl\x18\x05 \x01(\tH\x03R\x03ttl\x88\x01\x01\x12(\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyR\x04\x64\x61ta\x12R\n\x0e\x66\x61ilure_policy\x18\x07 \x01(\x0b\x32&.dapr.proto.common.v1.JobFailurePolicyH\x04R\rfailurePolicy\x88\x01\x01\x42\x0b\n\t_scheduleB\n\n\x08_repeatsB\x0b\n\t_due_timeB\x06\n\x04_ttlB\x11\n\x0f_failure_policy\"[\n\x12ScheduleJobRequest\x12\'\n\x03job\x18\x01 \x01(\x0b\x32\x1a.dapr.proto.runtime.v1.Job\x12\x1c\n\toverwrite\x18\x02 \x01(\x08R\toverwrite\"\x15\n\x13ScheduleJobResponse\"\x1d\n\rGetJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"9\n\x0eGetJobResponse\x12\'\n\x03job\x18\x01 \x01(\x0b\x32\x1a.dapr.proto.runtime.v1.Job\" \n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x13\n\x11\x44\x65leteJobResponse\"K\n\x1f\x44\x65leteJobsByPrefixRequestAlpha1\x12\x18\n\x0bname_prefix\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_name_prefix\"\"\n DeleteJobsByPrefixResponseAlpha1\"\x17\n\x15ListJobsRequestAlpha1\"B\n\x16ListJobsResponseAlpha1\x12(\n\x04jobs\x18\x01 \x03(\x0b\x32\x1a.dapr.proto.runtime.v1.JobBi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.jobs_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_JOB']._serialized_start=122 + _globals['_JOB']._serialized_end=457 + _globals['_SCHEDULEJOBREQUEST']._serialized_start=459 + _globals['_SCHEDULEJOBREQUEST']._serialized_end=550 + _globals['_SCHEDULEJOBRESPONSE']._serialized_start=552 + _globals['_SCHEDULEJOBRESPONSE']._serialized_end=573 + _globals['_GETJOBREQUEST']._serialized_start=575 + _globals['_GETJOBREQUEST']._serialized_end=604 + _globals['_GETJOBRESPONSE']._serialized_start=606 + _globals['_GETJOBRESPONSE']._serialized_end=663 + _globals['_DELETEJOBREQUEST']._serialized_start=665 + _globals['_DELETEJOBREQUEST']._serialized_end=697 + _globals['_DELETEJOBRESPONSE']._serialized_start=699 + _globals['_DELETEJOBRESPONSE']._serialized_end=718 + _globals['_DELETEJOBSBYPREFIXREQUESTALPHA1']._serialized_start=720 + _globals['_DELETEJOBSBYPREFIXREQUESTALPHA1']._serialized_end=795 + _globals['_DELETEJOBSBYPREFIXRESPONSEALPHA1']._serialized_start=797 + _globals['_DELETEJOBSBYPREFIXRESPONSEALPHA1']._serialized_end=831 + _globals['_LISTJOBSREQUESTALPHA1']._serialized_start=833 + _globals['_LISTJOBSREQUESTALPHA1']._serialized_end=856 + _globals['_LISTJOBSRESPONSEALPHA1']._serialized_start=858 + _globals['_LISTJOBSRESPONSEALPHA1']._serialized_end=924 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/jobs_pb2.pyi b/dapr/proto/runtime/v1/jobs_pb2.pyi new file mode 100644 index 000000000..10a580460 --- /dev/null +++ b/dapr/proto/runtime/v1/jobs_pb2.pyi @@ -0,0 +1,321 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import dapr.proto.common.v1.common_pb2 +import google.protobuf.any_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class Job(google.protobuf.message.Message): + """Job is the definition of a job. At least one of schedule or due_time must be + provided but can also be provided together. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + SCHEDULE_FIELD_NUMBER: builtins.int + REPEATS_FIELD_NUMBER: builtins.int + DUE_TIME_FIELD_NUMBER: builtins.int + TTL_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + FAILURE_POLICY_FIELD_NUMBER: builtins.int + name: builtins.str + """The unique name for the job.""" + schedule: builtins.str + """schedule is an optional schedule at which the job is to be run. + Accepts both systemd timer style cron expressions, as well as human + readable '@' prefixed period strings as defined below. + + Systemd timer style cron accepts 6 fields: + seconds | minutes | hours | day of month | month | day of week + 0-59 | 0-59 | 0-23 | 1-31 | 1-12/jan-dec | 0-6/sun-sat + + "0 30 * * * *" - every hour on the half hour + "0 15 3 * * *" - every day at 03:15 + + Period string expressions: + Entry | Description | Equivalent To + ----- | ----------- | ------------- + @every `` | Run every `` (e.g. '@every 1h30m') | N/A + @yearly (or @annually) | Run once a year, midnight, Jan. 1st | 0 0 0 1 1 * + @monthly | Run once a month, midnight, first of month | 0 0 0 1 * * + @weekly | Run once a week, midnight on Sunday | 0 0 0 * * 0 + @daily (or @midnight) | Run once a day, midnight | 0 0 0 * * * + @hourly | Run once an hour, beginning of hour | 0 0 * * * * + """ + repeats: builtins.int + """repeats is the optional number of times in which the job should be + triggered. If not set, the job will run indefinitely or until expiration. + """ + due_time: builtins.str + """due_time is the optional time at which the job should be active, or the + "one shot" time if other scheduling type fields are not provided. Accepts + a "point in time" string in the format of RFC3339, Go duration string + (calculated from job creation time), or non-repeating ISO8601. + """ + ttl: builtins.str + """ttl is the optional time to live or expiration of the job. Accepts a + "point in time" string in the format of RFC3339, Go duration string + (calculated from job creation time), or non-repeating ISO8601. + """ + @property + def data(self) -> google.protobuf.any_pb2.Any: + """payload is the serialized job payload that will be sent to the recipient + when the job is triggered. + """ + + @property + def failure_policy(self) -> dapr.proto.common.v1.common_pb2.JobFailurePolicy: + """failure_policy is the optional policy for handling job failures.""" + + def __init__( + self, + *, + name: builtins.str = ..., + schedule: builtins.str | None = ..., + repeats: builtins.int | None = ..., + due_time: builtins.str | None = ..., + ttl: builtins.str | None = ..., + data: google.protobuf.any_pb2.Any | None = ..., + failure_policy: dapr.proto.common.v1.common_pb2.JobFailurePolicy | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time", "_failure_policy", b"_failure_policy", "_repeats", b"_repeats", "_schedule", b"_schedule", "_ttl", b"_ttl", "data", b"data", "due_time", b"due_time", "failure_policy", b"failure_policy", "repeats", b"repeats", "schedule", b"schedule", "ttl", b"ttl"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time", "_failure_policy", b"_failure_policy", "_repeats", b"_repeats", "_schedule", b"_schedule", "_ttl", b"_ttl", "data", b"data", "due_time", b"due_time", "failure_policy", b"failure_policy", "name", b"name", "repeats", b"repeats", "schedule", b"schedule", "ttl", b"ttl"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__due_time: typing_extensions.TypeAlias = typing.Literal["due_time"] + _WhichOneofArgType__due_time: typing_extensions.TypeAlias = typing.Literal["_due_time", b"_due_time"] + _WhichOneofReturnType__failure_policy: typing_extensions.TypeAlias = typing.Literal["failure_policy"] + _WhichOneofArgType__failure_policy: typing_extensions.TypeAlias = typing.Literal["_failure_policy", b"_failure_policy"] + _WhichOneofReturnType__repeats: typing_extensions.TypeAlias = typing.Literal["repeats"] + _WhichOneofArgType__repeats: typing_extensions.TypeAlias = typing.Literal["_repeats", b"_repeats"] + _WhichOneofReturnType__schedule: typing_extensions.TypeAlias = typing.Literal["schedule"] + _WhichOneofArgType__schedule: typing_extensions.TypeAlias = typing.Literal["_schedule", b"_schedule"] + _WhichOneofReturnType__ttl: typing_extensions.TypeAlias = typing.Literal["ttl"] + _WhichOneofArgType__ttl: typing_extensions.TypeAlias = typing.Literal["_ttl", b"_ttl"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__due_time) -> _WhichOneofReturnType__due_time | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__failure_policy) -> _WhichOneofReturnType__failure_policy | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__repeats) -> _WhichOneofReturnType__repeats | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__schedule) -> _WhichOneofReturnType__schedule | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__ttl) -> _WhichOneofReturnType__ttl | None: ... + +Global___Job: typing_extensions.TypeAlias = Job + +@typing.final +class ScheduleJobRequest(google.protobuf.message.Message): + """ScheduleJobRequest is the message to create/schedule the job.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + JOB_FIELD_NUMBER: builtins.int + OVERWRITE_FIELD_NUMBER: builtins.int + overwrite: builtins.bool + """If true, allows this job to overwrite an existing job with the same name.""" + @property + def job(self) -> Global___Job: + """The job details.""" + + def __init__( + self, + *, + job: Global___Job | None = ..., + overwrite: builtins.bool = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["job", b"job"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["job", b"job", "overwrite", b"overwrite"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ScheduleJobRequest: typing_extensions.TypeAlias = ScheduleJobRequest + +@typing.final +class ScheduleJobResponse(google.protobuf.message.Message): + """ScheduleJobResponse is the message response to create/schedule the job. + Empty + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___ScheduleJobResponse: typing_extensions.TypeAlias = ScheduleJobResponse + +@typing.final +class GetJobRequest(google.protobuf.message.Message): + """GetJobRequest is the message to retrieve a job.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of the job.""" + def __init__( + self, + *, + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetJobRequest: typing_extensions.TypeAlias = GetJobRequest + +@typing.final +class GetJobResponse(google.protobuf.message.Message): + """GetJobResponse is the message's response for a job retrieved.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + JOB_FIELD_NUMBER: builtins.int + @property + def job(self) -> Global___Job: + """The job details.""" + + def __init__( + self, + *, + job: Global___Job | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["job", b"job"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["job", b"job"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetJobResponse: typing_extensions.TypeAlias = GetJobResponse + +@typing.final +class DeleteJobRequest(google.protobuf.message.Message): + """DeleteJobRequest is the message to delete the job by name.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of the job.""" + def __init__( + self, + *, + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteJobRequest: typing_extensions.TypeAlias = DeleteJobRequest + +@typing.final +class DeleteJobResponse(google.protobuf.message.Message): + """DeleteJobResponse is the message response to delete the job by name. + Empty + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___DeleteJobResponse: typing_extensions.TypeAlias = DeleteJobResponse + +@typing.final +class DeleteJobsByPrefixRequestAlpha1(google.protobuf.message.Message): + """DeleteJobsByPrefixRequest is the message to delete jobs by name prefix.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_PREFIX_FIELD_NUMBER: builtins.int + name_prefix: builtins.str + """name_prefix is the prefix of the job names to delete. If not provided, all + jobs associated with this app ID will be deleted. + """ + def __init__( + self, + *, + name_prefix: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name_prefix", b"_name_prefix", "name_prefix", b"name_prefix"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_name_prefix", b"_name_prefix", "name_prefix", b"name_prefix"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__name_prefix: typing_extensions.TypeAlias = typing.Literal["name_prefix"] + _WhichOneofArgType__name_prefix: typing_extensions.TypeAlias = typing.Literal["_name_prefix", b"_name_prefix"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__name_prefix) -> _WhichOneofReturnType__name_prefix | None: ... + +Global___DeleteJobsByPrefixRequestAlpha1: typing_extensions.TypeAlias = DeleteJobsByPrefixRequestAlpha1 + +@typing.final +class DeleteJobsByPrefixResponseAlpha1(google.protobuf.message.Message): + """Empty""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___DeleteJobsByPrefixResponseAlpha1: typing_extensions.TypeAlias = DeleteJobsByPrefixResponseAlpha1 + +@typing.final +class ListJobsRequestAlpha1(google.protobuf.message.Message): + """Empty""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___ListJobsRequestAlpha1: typing_extensions.TypeAlias = ListJobsRequestAlpha1 + +@typing.final +class ListJobsResponseAlpha1(google.protobuf.message.Message): + """ListJobsResponse is the message response containing the list of jobs.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + JOBS_FIELD_NUMBER: builtins.int + @property + def jobs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Job]: + """The list of jobs.""" + + def __init__( + self, + *, + jobs: collections.abc.Iterable[Global___Job] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["jobs", b"jobs"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListJobsResponseAlpha1: typing_extensions.TypeAlias = ListJobsResponseAlpha1 diff --git a/dapr/proto/runtime/v1/jobs_pb2_grpc.py b/dapr/proto/runtime/v1/jobs_pb2_grpc.py new file mode 100644 index 000000000..7efc58c13 --- /dev/null +++ b/dapr/proto/runtime/v1/jobs_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.76.0' +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/jobs_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/lock_pb2.py b/dapr/proto/runtime/v1/lock_pb2.py new file mode 100644 index 000000000..c1b1c9a01 --- /dev/null +++ b/dapr/proto/runtime/v1/lock_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/lock.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/lock.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n dapr/proto/runtime/v1/lock.proto\x12\x15\x64\x61pr.proto.runtime.v1\"\x9b\x01\n\x0eTryLockRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\x1f\n\x0bresource_id\x18\x02 \x01(\tR\nresourceId\x12\x1d\n\nlock_owner\x18\x03 \x01(\tR\tlockOwner\x12*\n\x11\x65xpiry_in_seconds\x18\x04 \x01(\x05R\x0f\x65xpiryInSeconds\"\"\n\x0fTryLockResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"n\n\rUnlockRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\x1f\n\x0bresource_id\x18\x02 \x01(\tR\nresourceId\x12\x1d\n\nlock_owner\x18\x03 \x01(\tR\tlockOwner\"\xae\x01\n\x0eUnlockResponse\x12<\n\x06status\x18\x01 \x01(\x0e\x32,.dapr.proto.runtime.v1.UnlockResponse.Status\"^\n\x06Status\x12\x0b\n\x07SUCCESS\x10\x00\x12\x17\n\x13LOCK_DOES_NOT_EXIST\x10\x01\x12\x1a\n\x16LOCK_BELONGS_TO_OTHERS\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.lock_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_TRYLOCKREQUEST']._serialized_start=60 + _globals['_TRYLOCKREQUEST']._serialized_end=215 + _globals['_TRYLOCKRESPONSE']._serialized_start=217 + _globals['_TRYLOCKRESPONSE']._serialized_end=251 + _globals['_UNLOCKREQUEST']._serialized_start=253 + _globals['_UNLOCKREQUEST']._serialized_end=363 + _globals['_UNLOCKRESPONSE']._serialized_start=366 + _globals['_UNLOCKRESPONSE']._serialized_end=540 + _globals['_UNLOCKRESPONSE_STATUS']._serialized_start=446 + _globals['_UNLOCKRESPONSE_STATUS']._serialized_end=540 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/lock_pb2.pyi b/dapr/proto/runtime/v1/lock_pb2.pyi new file mode 100644 index 000000000..c85b78f08 --- /dev/null +++ b/dapr/proto/runtime/v1/lock_pb2.pyi @@ -0,0 +1,147 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class TryLockRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STORE_NAME_FIELD_NUMBER: builtins.int + RESOURCE_ID_FIELD_NUMBER: builtins.int + LOCK_OWNER_FIELD_NUMBER: builtins.int + EXPIRY_IN_SECONDS_FIELD_NUMBER: builtins.int + store_name: builtins.str + """Required. The lock store name,e.g. `redis`.""" + resource_id: builtins.str + """Required. resource_id is the lock key. e.g. `order_id_111` + It stands for "which resource I want to protect" + """ + lock_owner: builtins.str + """Required. lock_owner indicate the identifier of lock owner. + You can generate a uuid as lock_owner.For example,in golang: + + req.LockOwner = uuid.New().String() + + This field is per request,not per process,so it is different for each request, + which aims to prevent multi-thread in the same process trying the same lock concurrently. + + The reason why we don't make it automatically generated is: + 1. If it is automatically generated,there must be a 'my_lock_owner_id' field in the response. + This name is so weird that we think it is inappropriate to put it into the api spec + 2. If we change the field 'my_lock_owner_id' in the response to 'lock_owner',which means the current lock owner of this lock, + we find that in some lock services users can't get the current lock owner.Actually users don't need it at all. + 3. When reentrant lock is needed,the existing lock_owner is required to identify client and check "whether this client can reenter this lock". + So this field in the request shouldn't be removed. + """ + expiry_in_seconds: builtins.int + """Required. The time before expiry.The time unit is second.""" + def __init__( + self, + *, + store_name: builtins.str = ..., + resource_id: builtins.str = ..., + lock_owner: builtins.str = ..., + expiry_in_seconds: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["expiry_in_seconds", b"expiry_in_seconds", "lock_owner", b"lock_owner", "resource_id", b"resource_id", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___TryLockRequest: typing_extensions.TypeAlias = TryLockRequest + +@typing.final +class TryLockResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUCCESS_FIELD_NUMBER: builtins.int + success: builtins.bool + def __init__( + self, + *, + success: builtins.bool = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["success", b"success"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___TryLockResponse: typing_extensions.TypeAlias = TryLockResponse + +@typing.final +class UnlockRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STORE_NAME_FIELD_NUMBER: builtins.int + RESOURCE_ID_FIELD_NUMBER: builtins.int + LOCK_OWNER_FIELD_NUMBER: builtins.int + store_name: builtins.str + resource_id: builtins.str + """resource_id is the lock key.""" + lock_owner: builtins.str + def __init__( + self, + *, + store_name: builtins.str = ..., + resource_id: builtins.str = ..., + lock_owner: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["lock_owner", b"lock_owner", "resource_id", b"resource_id", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___UnlockRequest: typing_extensions.TypeAlias = UnlockRequest + +@typing.final +class UnlockResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Status: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UnlockResponse._Status.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + SUCCESS: UnlockResponse._Status.ValueType # 0 + LOCK_DOES_NOT_EXIST: UnlockResponse._Status.ValueType # 1 + LOCK_BELONGS_TO_OTHERS: UnlockResponse._Status.ValueType # 2 + INTERNAL_ERROR: UnlockResponse._Status.ValueType # 3 + + class Status(_Status, metaclass=_StatusEnumTypeWrapper): ... + SUCCESS: UnlockResponse.Status.ValueType # 0 + LOCK_DOES_NOT_EXIST: UnlockResponse.Status.ValueType # 1 + LOCK_BELONGS_TO_OTHERS: UnlockResponse.Status.ValueType # 2 + INTERNAL_ERROR: UnlockResponse.Status.ValueType # 3 + + STATUS_FIELD_NUMBER: builtins.int + status: Global___UnlockResponse.Status.ValueType + def __init__( + self, + *, + status: Global___UnlockResponse.Status.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["status", b"status"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___UnlockResponse: typing_extensions.TypeAlias = UnlockResponse diff --git a/dapr/proto/runtime/v1/lock_pb2_grpc.py b/dapr/proto/runtime/v1/lock_pb2_grpc.py new file mode 100644 index 000000000..f1d875c49 --- /dev/null +++ b/dapr/proto/runtime/v1/lock_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.76.0' +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/lock_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/metadata_pb2.py b/dapr/proto/runtime/v1/metadata_pb2.py new file mode 100644 index 000000000..ba80df30a --- /dev/null +++ b/dapr/proto/runtime/v1/metadata_pb2.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/metadata.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/metadata.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$dapr/proto/runtime/v1/metadata.proto\x12\x15\x64\x61pr.proto.runtime.v1\"\x14\n\x12GetMetadataRequest\"\xd1\x07\n\x13GetMetadataResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12Q\n\x13\x61\x63tive_actors_count\x18\x02 \x03(\x0b\x32(.dapr.proto.runtime.v1.ActiveActorsCountB\x02\x18\x01R\x06\x61\x63tors\x12V\n\x15registered_components\x18\x03 \x03(\x0b\x32+.dapr.proto.runtime.v1.RegisteredComponentsR\ncomponents\x12\x65\n\x11\x65xtended_metadata\x18\x04 \x03(\x0b\x32@.dapr.proto.runtime.v1.GetMetadataResponse.ExtendedMetadataEntryR\x08\x65xtended\x12O\n\rsubscriptions\x18\x05 \x03(\x0b\x32).dapr.proto.runtime.v1.PubsubSubscriptionR\rsubscriptions\x12R\n\x0ehttp_endpoints\x18\x06 \x03(\x0b\x32+.dapr.proto.runtime.v1.MetadataHTTPEndpointR\rhttpEndpoints\x12j\n\x19\x61pp_connection_properties\x18\x07 \x01(\x0b\x32..dapr.proto.runtime.v1.AppConnectionPropertiesR\x17\x61ppConnectionProperties\x12\'\n\x0fruntime_version\x18\x08 \x01(\tR\x0eruntimeVersion\x12)\n\x10\x65nabled_features\x18\t \x03(\tR\x0f\x65nabledFeatures\x12H\n\ractor_runtime\x18\n \x01(\x0b\x32#.dapr.proto.runtime.v1.ActorRuntimeR\x0c\x61\x63torRuntime\x12K\n\tscheduler\x18\x0b \x01(\x0b\x32(.dapr.proto.runtime.v1.MetadataSchedulerH\x00R\tscheduler\x88\x01\x01\x12K\n\tworkflows\x18\x0c \x01(\x0b\x32(.dapr.proto.runtime.v1.MetadataWorkflowsH\x01R\tworkflows\x88\x01\x01\x1a\x37\n\x15\x45xtendedMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\n_schedulerB\x0c\n\n_workflows\"@\n\x11MetadataWorkflows\x12+\n\x11\x63onnected_workers\x18\x01 \x01(\x05R\x10\x63onnectedWorkers\"0\n\x11MetadataScheduler\x12\x1b\n\x13\x63onnected_addresses\x18\x01 \x03(\t\"\xbc\x02\n\x0c\x41\x63torRuntime\x12]\n\x0eruntime_status\x18\x01 \x01(\x0e\x32\x36.dapr.proto.runtime.v1.ActorRuntime.ActorRuntimeStatusR\rruntimeStatus\x12M\n\ractive_actors\x18\x02 \x03(\x0b\x32(.dapr.proto.runtime.v1.ActiveActorsCountR\x0c\x61\x63tiveActors\x12\x1d\n\nhost_ready\x18\x03 \x01(\x08R\thostReady\x12\x1c\n\tplacement\x18\x04 \x01(\tR\tplacement\"A\n\x12\x41\x63torRuntimeStatus\x12\x10\n\x0cINITIALIZING\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\"0\n\x11\x41\x63tiveActorsCount\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"Y\n\x14RegisteredComponents\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"*\n\x14MetadataHTTPEndpoint\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"\xd1\x01\n\x17\x41ppConnectionProperties\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12\x10\n\x08protocol\x18\x02 \x01(\t\x12\'\n\x0f\x63hannel_address\x18\x03 \x01(\tR\x0e\x63hannelAddress\x12\'\n\x0fmax_concurrency\x18\x04 \x01(\x05R\x0emaxConcurrency\x12\x44\n\x06health\x18\x05 \x01(\x0b\x32\x34.dapr.proto.runtime.v1.AppConnectionHealthProperties\"\xdc\x01\n\x1d\x41ppConnectionHealthProperties\x12*\n\x11health_check_path\x18\x01 \x01(\tR\x0fhealthCheckPath\x12\x32\n\x15health_probe_interval\x18\x02 \x01(\tR\x13healthProbeInterval\x12\x30\n\x14health_probe_timeout\x18\x03 \x01(\tR\x12healthProbeTimeout\x12)\n\x10health_threshold\x18\x04 \x01(\x05R\x0fhealthThreshold\"\x86\x03\n\x12PubsubSubscription\x12\x1f\n\x0bpubsub_name\x18\x01 \x01(\tR\npubsubname\x12\x14\n\x05topic\x18\x02 \x01(\tR\x05topic\x12S\n\x08metadata\x18\x03 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.PubsubSubscription.MetadataEntryR\x08metadata\x12\x44\n\x05rules\x18\x04 \x01(\x0b\x32..dapr.proto.runtime.v1.PubsubSubscriptionRulesR\x05rules\x12*\n\x11\x64\x65\x61\x64_letter_topic\x18\x05 \x01(\tR\x0f\x64\x65\x61\x64LetterTopic\x12\x41\n\x04type\x18\x06 \x01(\x0e\x32-.dapr.proto.runtime.v1.PubsubSubscriptionTypeR\x04type\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\x17PubsubSubscriptionRules\x12<\n\x05rules\x18\x01 \x03(\x0b\x32-.dapr.proto.runtime.v1.PubsubSubscriptionRule\"5\n\x16PubsubSubscriptionRule\x12\r\n\x05match\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"0\n\x12SetMetadataRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t*W\n\x16PubsubSubscriptionType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0f\n\x0b\x44\x45\x43LARATIVE\x10\x01\x12\x10\n\x0cPROGRAMMATIC\x10\x02\x12\r\n\tSTREAMING\x10\x03\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.metadata_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._loaded_options = None + _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._serialized_options = b'8\001' + _globals['_GETMETADATARESPONSE'].fields_by_name['active_actors_count']._loaded_options = None + _globals['_GETMETADATARESPONSE'].fields_by_name['active_actors_count']._serialized_options = b'\030\001' + _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._loaded_options = None + _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._serialized_options = b'8\001' + _globals['_PUBSUBSUBSCRIPTIONTYPE']._serialized_start=2707 + _globals['_PUBSUBSUBSCRIPTIONTYPE']._serialized_end=2794 + _globals['_GETMETADATAREQUEST']._serialized_start=63 + _globals['_GETMETADATAREQUEST']._serialized_end=83 + _globals['_GETMETADATARESPONSE']._serialized_start=86 + _globals['_GETMETADATARESPONSE']._serialized_end=1063 + _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._serialized_start=980 + _globals['_GETMETADATARESPONSE_EXTENDEDMETADATAENTRY']._serialized_end=1035 + _globals['_METADATAWORKFLOWS']._serialized_start=1065 + _globals['_METADATAWORKFLOWS']._serialized_end=1129 + _globals['_METADATASCHEDULER']._serialized_start=1131 + _globals['_METADATASCHEDULER']._serialized_end=1179 + _globals['_ACTORRUNTIME']._serialized_start=1182 + _globals['_ACTORRUNTIME']._serialized_end=1498 + _globals['_ACTORRUNTIME_ACTORRUNTIMESTATUS']._serialized_start=1433 + _globals['_ACTORRUNTIME_ACTORRUNTIMESTATUS']._serialized_end=1498 + _globals['_ACTIVEACTORSCOUNT']._serialized_start=1500 + _globals['_ACTIVEACTORSCOUNT']._serialized_end=1548 + _globals['_REGISTEREDCOMPONENTS']._serialized_start=1550 + _globals['_REGISTEREDCOMPONENTS']._serialized_end=1639 + _globals['_METADATAHTTPENDPOINT']._serialized_start=1641 + _globals['_METADATAHTTPENDPOINT']._serialized_end=1683 + _globals['_APPCONNECTIONPROPERTIES']._serialized_start=1686 + _globals['_APPCONNECTIONPROPERTIES']._serialized_end=1895 + _globals['_APPCONNECTIONHEALTHPROPERTIES']._serialized_start=1898 + _globals['_APPCONNECTIONHEALTHPROPERTIES']._serialized_end=2118 + _globals['_PUBSUBSUBSCRIPTION']._serialized_start=2121 + _globals['_PUBSUBSUBSCRIPTION']._serialized_end=2511 + _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._serialized_start=2464 + _globals['_PUBSUBSUBSCRIPTION_METADATAENTRY']._serialized_end=2511 + _globals['_PUBSUBSUBSCRIPTIONRULES']._serialized_start=2513 + _globals['_PUBSUBSUBSCRIPTIONRULES']._serialized_end=2600 + _globals['_PUBSUBSUBSCRIPTIONRULE']._serialized_start=2602 + _globals['_PUBSUBSUBSCRIPTIONRULE']._serialized_end=2655 + _globals['_SETMETADATAREQUEST']._serialized_start=2657 + _globals['_SETMETADATAREQUEST']._serialized_end=2705 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/metadata_pb2.pyi b/dapr/proto/runtime/v1/metadata_pb2.pyi new file mode 100644 index 000000000..f9860726a --- /dev/null +++ b/dapr/proto/runtime/v1/metadata_pb2.pyi @@ -0,0 +1,482 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _PubsubSubscriptionType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _PubsubSubscriptionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PubsubSubscriptionType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN: _PubsubSubscriptionType.ValueType # 0 + """UNKNOWN is the default value for the subscription type.""" + DECLARATIVE: _PubsubSubscriptionType.ValueType # 1 + """Declarative subscription (k8s CRD)""" + PROGRAMMATIC: _PubsubSubscriptionType.ValueType # 2 + """Programmatically created subscription""" + STREAMING: _PubsubSubscriptionType.ValueType # 3 + """Bidirectional Streaming subscription""" + +class PubsubSubscriptionType(_PubsubSubscriptionType, metaclass=_PubsubSubscriptionTypeEnumTypeWrapper): + """PubsubSubscriptionType indicates the type of subscription""" + +UNKNOWN: PubsubSubscriptionType.ValueType # 0 +"""UNKNOWN is the default value for the subscription type.""" +DECLARATIVE: PubsubSubscriptionType.ValueType # 1 +"""Declarative subscription (k8s CRD)""" +PROGRAMMATIC: PubsubSubscriptionType.ValueType # 2 +"""Programmatically created subscription""" +STREAMING: PubsubSubscriptionType.ValueType # 3 +"""Bidirectional Streaming subscription""" +Global___PubsubSubscriptionType: typing_extensions.TypeAlias = PubsubSubscriptionType + +@typing.final +class GetMetadataRequest(google.protobuf.message.Message): + """GetMetadataRequest is the message for the GetMetadata request. + Empty + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___GetMetadataRequest: typing_extensions.TypeAlias = GetMetadataRequest + +@typing.final +class GetMetadataResponse(google.protobuf.message.Message): + """GetMetadataResponse is a message that is returned on GetMetadata rpc call.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class ExtendedMetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ID_FIELD_NUMBER: builtins.int + ACTIVE_ACTORS_COUNT_FIELD_NUMBER: builtins.int + REGISTERED_COMPONENTS_FIELD_NUMBER: builtins.int + EXTENDED_METADATA_FIELD_NUMBER: builtins.int + SUBSCRIPTIONS_FIELD_NUMBER: builtins.int + HTTP_ENDPOINTS_FIELD_NUMBER: builtins.int + APP_CONNECTION_PROPERTIES_FIELD_NUMBER: builtins.int + RUNTIME_VERSION_FIELD_NUMBER: builtins.int + ENABLED_FEATURES_FIELD_NUMBER: builtins.int + ACTOR_RUNTIME_FIELD_NUMBER: builtins.int + SCHEDULER_FIELD_NUMBER: builtins.int + WORKFLOWS_FIELD_NUMBER: builtins.int + id: builtins.str + runtime_version: builtins.str + @property + def active_actors_count(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ActiveActorsCount]: + """Deprecated alias for actor_runtime.active_actors.""" + + @property + def registered_components(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___RegisteredComponents]: ... + @property + def extended_metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + @property + def subscriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___PubsubSubscription]: ... + @property + def http_endpoints(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___MetadataHTTPEndpoint]: ... + @property + def app_connection_properties(self) -> Global___AppConnectionProperties: ... + @property + def enabled_features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def actor_runtime(self) -> Global___ActorRuntime: ... + @property + def scheduler(self) -> Global___MetadataScheduler: ... + @property + def workflows(self) -> Global___MetadataWorkflows: ... + def __init__( + self, + *, + id: builtins.str = ..., + active_actors_count: collections.abc.Iterable[Global___ActiveActorsCount] | None = ..., + registered_components: collections.abc.Iterable[Global___RegisteredComponents] | None = ..., + extended_metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + subscriptions: collections.abc.Iterable[Global___PubsubSubscription] | None = ..., + http_endpoints: collections.abc.Iterable[Global___MetadataHTTPEndpoint] | None = ..., + app_connection_properties: Global___AppConnectionProperties | None = ..., + runtime_version: builtins.str = ..., + enabled_features: collections.abc.Iterable[builtins.str] | None = ..., + actor_runtime: Global___ActorRuntime | None = ..., + scheduler: Global___MetadataScheduler | None = ..., + workflows: Global___MetadataWorkflows | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_scheduler", b"_scheduler", "_workflows", b"_workflows", "actor_runtime", b"actor_runtime", "app_connection_properties", b"app_connection_properties", "scheduler", b"scheduler", "workflows", b"workflows"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_scheduler", b"_scheduler", "_workflows", b"_workflows", "active_actors_count", b"active_actors_count", "actor_runtime", b"actor_runtime", "app_connection_properties", b"app_connection_properties", "enabled_features", b"enabled_features", "extended_metadata", b"extended_metadata", "http_endpoints", b"http_endpoints", "id", b"id", "registered_components", b"registered_components", "runtime_version", b"runtime_version", "scheduler", b"scheduler", "subscriptions", b"subscriptions", "workflows", b"workflows"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__scheduler: typing_extensions.TypeAlias = typing.Literal["scheduler"] + _WhichOneofArgType__scheduler: typing_extensions.TypeAlias = typing.Literal["_scheduler", b"_scheduler"] + _WhichOneofReturnType__workflows: typing_extensions.TypeAlias = typing.Literal["workflows"] + _WhichOneofArgType__workflows: typing_extensions.TypeAlias = typing.Literal["_workflows", b"_workflows"] + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__scheduler) -> _WhichOneofReturnType__scheduler | None: ... + @typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType__workflows) -> _WhichOneofReturnType__workflows | None: ... + +Global___GetMetadataResponse: typing_extensions.TypeAlias = GetMetadataResponse + +@typing.final +class MetadataWorkflows(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONNECTED_WORKERS_FIELD_NUMBER: builtins.int + connected_workers: builtins.int + def __init__( + self, + *, + connected_workers: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["connected_workers", b"connected_workers"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___MetadataWorkflows: typing_extensions.TypeAlias = MetadataWorkflows + +@typing.final +class MetadataScheduler(google.protobuf.message.Message): + """MetadataScheduler is a message that contains the list of addresses of the + scheduler connections. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONNECTED_ADDRESSES_FIELD_NUMBER: builtins.int + @property + def connected_addresses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """connected_addresses the list of addresses of the scheduler connections.""" + + def __init__( + self, + *, + connected_addresses: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["connected_addresses", b"connected_addresses"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___MetadataScheduler: typing_extensions.TypeAlias = MetadataScheduler + +@typing.final +class ActorRuntime(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _ActorRuntimeStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _ActorRuntimeStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ActorRuntime._ActorRuntimeStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + INITIALIZING: ActorRuntime._ActorRuntimeStatus.ValueType # 0 + """Indicates that the actor runtime is still being initialized.""" + DISABLED: ActorRuntime._ActorRuntimeStatus.ValueType # 1 + """Indicates that the actor runtime is disabled. + This normally happens when Dapr is started without "placement-host-address" + """ + RUNNING: ActorRuntime._ActorRuntimeStatus.ValueType # 2 + """Indicates the actor runtime is running, either as an actor host or client.""" + + class ActorRuntimeStatus(_ActorRuntimeStatus, metaclass=_ActorRuntimeStatusEnumTypeWrapper): ... + INITIALIZING: ActorRuntime.ActorRuntimeStatus.ValueType # 0 + """Indicates that the actor runtime is still being initialized.""" + DISABLED: ActorRuntime.ActorRuntimeStatus.ValueType # 1 + """Indicates that the actor runtime is disabled. + This normally happens when Dapr is started without "placement-host-address" + """ + RUNNING: ActorRuntime.ActorRuntimeStatus.ValueType # 2 + """Indicates the actor runtime is running, either as an actor host or client.""" + + RUNTIME_STATUS_FIELD_NUMBER: builtins.int + ACTIVE_ACTORS_FIELD_NUMBER: builtins.int + HOST_READY_FIELD_NUMBER: builtins.int + PLACEMENT_FIELD_NUMBER: builtins.int + runtime_status: Global___ActorRuntime.ActorRuntimeStatus.ValueType + """Contains an enum indicating whether the actor runtime has been initialized.""" + host_ready: builtins.bool + """Indicates whether the actor runtime is ready to host actors.""" + placement: builtins.str + """Custom message from the placement provider.""" + @property + def active_actors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ActiveActorsCount]: + """Count of active actors per type.""" + + def __init__( + self, + *, + runtime_status: Global___ActorRuntime.ActorRuntimeStatus.ValueType = ..., + active_actors: collections.abc.Iterable[Global___ActiveActorsCount] | None = ..., + host_ready: builtins.bool = ..., + placement: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["active_actors", b"active_actors", "host_ready", b"host_ready", "placement", b"placement", "runtime_status", b"runtime_status"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ActorRuntime: typing_extensions.TypeAlias = ActorRuntime + +@typing.final +class ActiveActorsCount(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + type: builtins.str + count: builtins.int + def __init__( + self, + *, + type: builtins.str = ..., + count: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["count", b"count", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ActiveActorsCount: typing_extensions.TypeAlias = ActiveActorsCount + +@typing.final +class RegisteredComponents(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + CAPABILITIES_FIELD_NUMBER: builtins.int + name: builtins.str + type: builtins.str + version: builtins.str + @property + def capabilities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + name: builtins.str = ..., + type: builtins.str = ..., + version: builtins.str = ..., + capabilities: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["capabilities", b"capabilities", "name", b"name", "type", b"type", "version", b"version"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___RegisteredComponents: typing_extensions.TypeAlias = RegisteredComponents + +@typing.final +class MetadataHTTPEndpoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + name: builtins.str + def __init__( + self, + *, + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___MetadataHTTPEndpoint: typing_extensions.TypeAlias = MetadataHTTPEndpoint + +@typing.final +class AppConnectionProperties(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PORT_FIELD_NUMBER: builtins.int + PROTOCOL_FIELD_NUMBER: builtins.int + CHANNEL_ADDRESS_FIELD_NUMBER: builtins.int + MAX_CONCURRENCY_FIELD_NUMBER: builtins.int + HEALTH_FIELD_NUMBER: builtins.int + port: builtins.int + protocol: builtins.str + channel_address: builtins.str + max_concurrency: builtins.int + @property + def health(self) -> Global___AppConnectionHealthProperties: ... + def __init__( + self, + *, + port: builtins.int = ..., + protocol: builtins.str = ..., + channel_address: builtins.str = ..., + max_concurrency: builtins.int = ..., + health: Global___AppConnectionHealthProperties | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["health", b"health"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["channel_address", b"channel_address", "health", b"health", "max_concurrency", b"max_concurrency", "port", b"port", "protocol", b"protocol"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___AppConnectionProperties: typing_extensions.TypeAlias = AppConnectionProperties + +@typing.final +class AppConnectionHealthProperties(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HEALTH_CHECK_PATH_FIELD_NUMBER: builtins.int + HEALTH_PROBE_INTERVAL_FIELD_NUMBER: builtins.int + HEALTH_PROBE_TIMEOUT_FIELD_NUMBER: builtins.int + HEALTH_THRESHOLD_FIELD_NUMBER: builtins.int + health_check_path: builtins.str + health_probe_interval: builtins.str + health_probe_timeout: builtins.str + health_threshold: builtins.int + def __init__( + self, + *, + health_check_path: builtins.str = ..., + health_probe_interval: builtins.str = ..., + health_probe_timeout: builtins.str = ..., + health_threshold: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["health_check_path", b"health_check_path", "health_probe_interval", b"health_probe_interval", "health_probe_timeout", b"health_probe_timeout", "health_threshold", b"health_threshold"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___AppConnectionHealthProperties: typing_extensions.TypeAlias = AppConnectionHealthProperties + +@typing.final +class PubsubSubscription(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + PUBSUB_NAME_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + RULES_FIELD_NUMBER: builtins.int + DEAD_LETTER_TOPIC_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + pubsub_name: builtins.str + topic: builtins.str + dead_letter_topic: builtins.str + type: Global___PubsubSubscriptionType.ValueType + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + @property + def rules(self) -> Global___PubsubSubscriptionRules: ... + def __init__( + self, + *, + pubsub_name: builtins.str = ..., + topic: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + rules: Global___PubsubSubscriptionRules | None = ..., + dead_letter_topic: builtins.str = ..., + type: Global___PubsubSubscriptionType.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["rules", b"rules"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["dead_letter_topic", b"dead_letter_topic", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "rules", b"rules", "topic", b"topic", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PubsubSubscription: typing_extensions.TypeAlias = PubsubSubscription + +@typing.final +class PubsubSubscriptionRules(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULES_FIELD_NUMBER: builtins.int + @property + def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___PubsubSubscriptionRule]: ... + def __init__( + self, + *, + rules: collections.abc.Iterable[Global___PubsubSubscriptionRule] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["rules", b"rules"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PubsubSubscriptionRules: typing_extensions.TypeAlias = PubsubSubscriptionRules + +@typing.final +class PubsubSubscriptionRule(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MATCH_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + match: builtins.str + path: builtins.str + def __init__( + self, + *, + match: builtins.str = ..., + path: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["match", b"match", "path", b"path"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PubsubSubscriptionRule: typing_extensions.TypeAlias = PubsubSubscriptionRule + +@typing.final +class SetMetadataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SetMetadataRequest: typing_extensions.TypeAlias = SetMetadataRequest diff --git a/dapr/proto/runtime/v1/metadata_pb2_grpc.py b/dapr/proto/runtime/v1/metadata_pb2_grpc.py new file mode 100644 index 000000000..58c1b4c77 --- /dev/null +++ b/dapr/proto/runtime/v1/metadata_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.76.0' +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/metadata_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/pubsub_pb2.py b/dapr/proto/runtime/v1/pubsub_pb2.py new file mode 100644 index 000000000..ecf6cd63a --- /dev/null +++ b/dapr/proto/runtime/v1/pubsub_pb2.py @@ -0,0 +1,72 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/pubsub.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/pubsub.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from dapr.proto.runtime.v1 import appcallback_pb2 as dapr_dot_proto_dot_runtime_dot_v1_dot_appcallback__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"dapr/proto/runtime/v1/pubsub.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\'dapr/proto/runtime/v1/appcallback.proto\"\xdf\x01\n\x13PublishEventRequest\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\x19\n\x11\x64\x61ta_content_type\x18\x04 \x01(\t\x12J\n\x08metadata\x18\x05 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.PublishEventRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf5\x01\n\x12\x42ulkPublishRequest\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12?\n\x07\x65ntries\x18\x03 \x03(\x0b\x32..dapr.proto.runtime.v1.BulkPublishRequestEntry\x12I\n\x08metadata\x18\x04 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.BulkPublishRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd1\x01\n\x17\x42ulkPublishRequestEntry\x12\x10\n\x08\x65ntry_id\x18\x01 \x01(\t\x12\r\n\x05\x65vent\x18\x02 \x01(\x0c\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12N\n\x08metadata\x18\x04 \x03(\x0b\x32<.dapr.proto.runtime.v1.BulkPublishRequestEntry.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"c\n\x13\x42ulkPublishResponse\x12L\n\rfailedEntries\x18\x01 \x03(\x0b\x32\x35.dapr.proto.runtime.v1.BulkPublishResponseFailedEntry\"A\n\x1e\x42ulkPublishResponseFailedEntry\x12\x10\n\x08\x65ntry_id\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"\x84\x02\n!SubscribeTopicEventsRequestAlpha1\x12Z\n\x0finitial_request\x18\x01 \x01(\x0b\x32?.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1H\x00\x12\\\n\x0f\x65vent_processed\x18\x02 \x01(\x0b\x32\x41.dapr.proto.runtime.v1.SubscribeTopicEventsRequestProcessedAlpha1H\x00\x42%\n#subscribe_topic_events_request_type\"\x96\x02\n(SubscribeTopicEventsRequestInitialAlpha1\x12\x13\n\x0bpubsub_name\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12_\n\x08metadata\x18\x03 \x03(\x0b\x32M.dapr.proto.runtime.v1.SubscribeTopicEventsRequestInitialAlpha1.MetadataEntry\x12\x1e\n\x11\x64\x65\x61\x64_letter_topic\x18\x04 \x01(\tH\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\x14\n\x12_dead_letter_topic\"s\n*SubscribeTopicEventsRequestProcessedAlpha1\x12\n\n\x02id\x18\x01 \x01(\t\x12\x39\n\x06status\x18\x02 \x01(\x0b\x32).dapr.proto.runtime.v1.TopicEventResponse\"\xed\x01\n\"SubscribeTopicEventsResponseAlpha1\x12\\\n\x10initial_response\x18\x01 \x01(\x0b\x32@.dapr.proto.runtime.v1.SubscribeTopicEventsResponseInitialAlpha1H\x00\x12\x41\n\revent_message\x18\x02 \x01(\x0b\x32(.dapr.proto.runtime.v1.TopicEventRequestH\x00\x42&\n$subscribe_topic_events_response_type\"+\n)SubscribeTopicEventsResponseInitialAlpha1Bi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.pubsub_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._loaded_options = None + _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._loaded_options = None + _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._loaded_options = None + _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._serialized_options = b'8\001' + _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._loaded_options = None + _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._serialized_options = b'8\001' + _globals['_PUBLISHEVENTREQUEST']._serialized_start=103 + _globals['_PUBLISHEVENTREQUEST']._serialized_end=326 + _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._serialized_start=279 + _globals['_PUBLISHEVENTREQUEST_METADATAENTRY']._serialized_end=326 + _globals['_BULKPUBLISHREQUEST']._serialized_start=329 + _globals['_BULKPUBLISHREQUEST']._serialized_end=574 + _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._serialized_start=279 + _globals['_BULKPUBLISHREQUEST_METADATAENTRY']._serialized_end=326 + _globals['_BULKPUBLISHREQUESTENTRY']._serialized_start=577 + _globals['_BULKPUBLISHREQUESTENTRY']._serialized_end=786 + _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._serialized_start=279 + _globals['_BULKPUBLISHREQUESTENTRY_METADATAENTRY']._serialized_end=326 + _globals['_BULKPUBLISHRESPONSE']._serialized_start=788 + _globals['_BULKPUBLISHRESPONSE']._serialized_end=887 + _globals['_BULKPUBLISHRESPONSEFAILEDENTRY']._serialized_start=889 + _globals['_BULKPUBLISHRESPONSEFAILEDENTRY']._serialized_end=954 + _globals['_SUBSCRIBETOPICEVENTSREQUESTALPHA1']._serialized_start=957 + _globals['_SUBSCRIBETOPICEVENTSREQUESTALPHA1']._serialized_end=1217 + _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1']._serialized_start=1220 + _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1']._serialized_end=1498 + _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._serialized_start=279 + _globals['_SUBSCRIBETOPICEVENTSREQUESTINITIALALPHA1_METADATAENTRY']._serialized_end=326 + _globals['_SUBSCRIBETOPICEVENTSREQUESTPROCESSEDALPHA1']._serialized_start=1500 + _globals['_SUBSCRIBETOPICEVENTSREQUESTPROCESSEDALPHA1']._serialized_end=1615 + _globals['_SUBSCRIBETOPICEVENTSRESPONSEALPHA1']._serialized_start=1618 + _globals['_SUBSCRIBETOPICEVENTSRESPONSEALPHA1']._serialized_end=1855 + _globals['_SUBSCRIBETOPICEVENTSRESPONSEINITIALALPHA1']._serialized_start=1857 + _globals['_SUBSCRIBETOPICEVENTSRESPONSEINITIALALPHA1']._serialized_end=1900 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/pubsub_pb2.pyi b/dapr/proto/runtime/v1/pubsub_pb2.pyi new file mode 100644 index 000000000..bdd03e6f5 --- /dev/null +++ b/dapr/proto/runtime/v1/pubsub_pb2.pyi @@ -0,0 +1,403 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import dapr.proto.runtime.v1.appcallback_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class PublishEventRequest(google.protobuf.message.Message): + """PublishEventRequest is the message to publish event data to pubsub topic""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + PUBSUB_NAME_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + DATA_CONTENT_TYPE_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + pubsub_name: builtins.str + """The name of the pubsub component""" + topic: builtins.str + """The pubsub topic""" + data: builtins.bytes + """The data which will be published to topic.""" + data_content_type: builtins.str + """The content type for the data (optional).""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata passing to pub components + + metadata property: + - key : the key of the message. + """ + + def __init__( + self, + *, + pubsub_name: builtins.str = ..., + topic: builtins.str = ..., + data: builtins.bytes = ..., + data_content_type: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "data_content_type", b"data_content_type", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "topic", b"topic"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PublishEventRequest: typing_extensions.TypeAlias = PublishEventRequest + +@typing.final +class BulkPublishRequest(google.protobuf.message.Message): + """BulkPublishRequest is the message to bulk publish events to pubsub topic""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + PUBSUB_NAME_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + pubsub_name: builtins.str + """The name of the pubsub component""" + topic: builtins.str + """The pubsub topic""" + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___BulkPublishRequestEntry]: + """The entries which contain the individual events and associated details to be published""" + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The request level metadata passing to to the pubsub components""" + + def __init__( + self, + *, + pubsub_name: builtins.str = ..., + topic: builtins.str = ..., + entries: collections.abc.Iterable[Global___BulkPublishRequestEntry] | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["entries", b"entries", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "topic", b"topic"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___BulkPublishRequest: typing_extensions.TypeAlias = BulkPublishRequest + +@typing.final +class BulkPublishRequestEntry(google.protobuf.message.Message): + """BulkPublishRequestEntry is the message containing the event to be bulk published""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ENTRY_ID_FIELD_NUMBER: builtins.int + EVENT_FIELD_NUMBER: builtins.int + CONTENT_TYPE_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + entry_id: builtins.str + """The request scoped unique ID referring to this message. Used to map status in response""" + event: builtins.bytes + """The event which will be pulished to the topic""" + content_type: builtins.str + """The content type for the event""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The event level metadata passing to the pubsub component""" + + def __init__( + self, + *, + entry_id: builtins.str = ..., + event: builtins.bytes = ..., + content_type: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["content_type", b"content_type", "entry_id", b"entry_id", "event", b"event", "metadata", b"metadata"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___BulkPublishRequestEntry: typing_extensions.TypeAlias = BulkPublishRequestEntry + +@typing.final +class BulkPublishResponse(google.protobuf.message.Message): + """BulkPublishResponse is the message returned from a BulkPublishEvent call""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FAILEDENTRIES_FIELD_NUMBER: builtins.int + @property + def failedEntries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___BulkPublishResponseFailedEntry]: + """The entries for different events that failed publish in the BulkPublishEvent call""" + + def __init__( + self, + *, + failedEntries: collections.abc.Iterable[Global___BulkPublishResponseFailedEntry] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["failedEntries", b"failedEntries"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___BulkPublishResponse: typing_extensions.TypeAlias = BulkPublishResponse + +@typing.final +class BulkPublishResponseFailedEntry(google.protobuf.message.Message): + """BulkPublishResponseFailedEntry is the message containing the entryID and error of a failed event in BulkPublishEvent call""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENTRY_ID_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + entry_id: builtins.str + """The response scoped unique ID referring to this message""" + error: builtins.str + """The error message if any on failure""" + def __init__( + self, + *, + entry_id: builtins.str = ..., + error: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["entry_id", b"entry_id", "error", b"error"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___BulkPublishResponseFailedEntry: typing_extensions.TypeAlias = BulkPublishResponseFailedEntry + +@typing.final +class SubscribeTopicEventsRequestAlpha1(google.protobuf.message.Message): + """SubscribeTopicEventsRequestAlpha1 is a message containing the details for + subscribing to a topic via streaming. + The first message must always be the initial request. All subsequent + messages must be event processed responses. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INITIAL_REQUEST_FIELD_NUMBER: builtins.int + EVENT_PROCESSED_FIELD_NUMBER: builtins.int + @property + def initial_request(self) -> Global___SubscribeTopicEventsRequestInitialAlpha1: ... + @property + def event_processed(self) -> Global___SubscribeTopicEventsRequestProcessedAlpha1: ... + def __init__( + self, + *, + initial_request: Global___SubscribeTopicEventsRequestInitialAlpha1 | None = ..., + event_processed: Global___SubscribeTopicEventsRequestProcessedAlpha1 | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["event_processed", b"event_processed", "initial_request", b"initial_request", "subscribe_topic_events_request_type", b"subscribe_topic_events_request_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["event_processed", b"event_processed", "initial_request", b"initial_request", "subscribe_topic_events_request_type", b"subscribe_topic_events_request_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_subscribe_topic_events_request_type: typing_extensions.TypeAlias = typing.Literal["initial_request", "event_processed"] + _WhichOneofArgType_subscribe_topic_events_request_type: typing_extensions.TypeAlias = typing.Literal["subscribe_topic_events_request_type", b"subscribe_topic_events_request_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_subscribe_topic_events_request_type) -> _WhichOneofReturnType_subscribe_topic_events_request_type | None: ... + +Global___SubscribeTopicEventsRequestAlpha1: typing_extensions.TypeAlias = SubscribeTopicEventsRequestAlpha1 + +@typing.final +class SubscribeTopicEventsRequestInitialAlpha1(google.protobuf.message.Message): + """SubscribeTopicEventsRequestInitialAlpha1 is the initial message containing + the details for subscribing to a topic via streaming. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + PUBSUB_NAME_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + DEAD_LETTER_TOPIC_FIELD_NUMBER: builtins.int + pubsub_name: builtins.str + """The name of the pubsub component""" + topic: builtins.str + """The pubsub topic""" + dead_letter_topic: builtins.str + """dead_letter_topic is the topic to which messages that fail to be processed + are sent. + """ + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata passing to pub components + + metadata property: + - key : the key of the message. + """ + + def __init__( + self, + *, + pubsub_name: builtins.str = ..., + topic: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + dead_letter_topic: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_dead_letter_topic", b"_dead_letter_topic", "dead_letter_topic", b"dead_letter_topic"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_dead_letter_topic", b"_dead_letter_topic", "dead_letter_topic", b"dead_letter_topic", "metadata", b"metadata", "pubsub_name", b"pubsub_name", "topic", b"topic"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__dead_letter_topic: typing_extensions.TypeAlias = typing.Literal["dead_letter_topic"] + _WhichOneofArgType__dead_letter_topic: typing_extensions.TypeAlias = typing.Literal["_dead_letter_topic", b"_dead_letter_topic"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__dead_letter_topic) -> _WhichOneofReturnType__dead_letter_topic | None: ... + +Global___SubscribeTopicEventsRequestInitialAlpha1: typing_extensions.TypeAlias = SubscribeTopicEventsRequestInitialAlpha1 + +@typing.final +class SubscribeTopicEventsRequestProcessedAlpha1(google.protobuf.message.Message): + """SubscribeTopicEventsRequestProcessedAlpha1 is the message containing the + subscription to a topic. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + id: builtins.str + """id is the unique identifier for the subscription request.""" + @property + def status(self) -> dapr.proto.runtime.v1.appcallback_pb2.TopicEventResponse: + """status is the result of the subscription request.""" + + def __init__( + self, + *, + id: builtins.str = ..., + status: dapr.proto.runtime.v1.appcallback_pb2.TopicEventResponse | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["status", b"status"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["id", b"id", "status", b"status"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SubscribeTopicEventsRequestProcessedAlpha1: typing_extensions.TypeAlias = SubscribeTopicEventsRequestProcessedAlpha1 + +@typing.final +class SubscribeTopicEventsResponseAlpha1(google.protobuf.message.Message): + """SubscribeTopicEventsResponseAlpha1 is a message returned from daprd + when subscribing to a topic via streaming. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INITIAL_RESPONSE_FIELD_NUMBER: builtins.int + EVENT_MESSAGE_FIELD_NUMBER: builtins.int + @property + def initial_response(self) -> Global___SubscribeTopicEventsResponseInitialAlpha1: ... + @property + def event_message(self) -> dapr.proto.runtime.v1.appcallback_pb2.TopicEventRequest: ... + def __init__( + self, + *, + initial_response: Global___SubscribeTopicEventsResponseInitialAlpha1 | None = ..., + event_message: dapr.proto.runtime.v1.appcallback_pb2.TopicEventRequest | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["event_message", b"event_message", "initial_response", b"initial_response", "subscribe_topic_events_response_type", b"subscribe_topic_events_response_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["event_message", b"event_message", "initial_response", b"initial_response", "subscribe_topic_events_response_type", b"subscribe_topic_events_response_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_subscribe_topic_events_response_type: typing_extensions.TypeAlias = typing.Literal["initial_response", "event_message"] + _WhichOneofArgType_subscribe_topic_events_response_type: typing_extensions.TypeAlias = typing.Literal["subscribe_topic_events_response_type", b"subscribe_topic_events_response_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_subscribe_topic_events_response_type) -> _WhichOneofReturnType_subscribe_topic_events_response_type | None: ... + +Global___SubscribeTopicEventsResponseAlpha1: typing_extensions.TypeAlias = SubscribeTopicEventsResponseAlpha1 + +@typing.final +class SubscribeTopicEventsResponseInitialAlpha1(google.protobuf.message.Message): + """SubscribeTopicEventsResponseInitialAlpha1 is the initial response from daprd + when subscribing to a topic. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +Global___SubscribeTopicEventsResponseInitialAlpha1: typing_extensions.TypeAlias = SubscribeTopicEventsResponseInitialAlpha1 diff --git a/dapr/proto/runtime/v1/pubsub_pb2_grpc.py b/dapr/proto/runtime/v1/pubsub_pb2_grpc.py new file mode 100644 index 000000000..9d4d03889 --- /dev/null +++ b/dapr/proto/runtime/v1/pubsub_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.76.0' +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/pubsub_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/secret_pb2.py b/dapr/proto/runtime/v1/secret_pb2.py new file mode 100644 index 000000000..d54579ab3 --- /dev/null +++ b/dapr/proto/runtime/v1/secret_pb2.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/secret.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/secret.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"dapr/proto/runtime/v1/secret.proto\x12\x15\x64\x61pr.proto.runtime.v1\"\xb8\x01\n\x10GetSecretRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\x0b\n\x03key\x18\x02 \x01(\t\x12G\n\x08metadata\x18\x03 \x03(\x0b\x32\x35.dapr.proto.runtime.v1.GetSecretRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x82\x01\n\x11GetSecretResponse\x12@\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.GetSecretResponse.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb3\x01\n\x14GetBulkSecretRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12K\n\x08metadata\x18\x02 \x03(\x0b\x32\x39.dapr.proto.runtime.v1.GetBulkSecretRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x85\x01\n\x0eSecretResponse\x12\x43\n\x07secrets\x18\x01 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.SecretResponse.SecretsEntry\x1a.\n\x0cSecretsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb1\x01\n\x15GetBulkSecretResponse\x12\x44\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x36.dapr.proto.runtime.v1.GetBulkSecretResponse.DataEntry\x1aR\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.dapr.proto.runtime.v1.SecretResponse:\x02\x38\x01\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.secret_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_GETSECRETREQUEST_METADATAENTRY']._loaded_options = None + _globals['_GETSECRETREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETSECRETRESPONSE_DATAENTRY']._loaded_options = None + _globals['_GETSECRETRESPONSE_DATAENTRY']._serialized_options = b'8\001' + _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._loaded_options = None + _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_SECRETRESPONSE_SECRETSENTRY']._loaded_options = None + _globals['_SECRETRESPONSE_SECRETSENTRY']._serialized_options = b'8\001' + _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._loaded_options = None + _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._serialized_options = b'8\001' + _globals['_GETSECRETREQUEST']._serialized_start=62 + _globals['_GETSECRETREQUEST']._serialized_end=246 + _globals['_GETSECRETREQUEST_METADATAENTRY']._serialized_start=199 + _globals['_GETSECRETREQUEST_METADATAENTRY']._serialized_end=246 + _globals['_GETSECRETRESPONSE']._serialized_start=249 + _globals['_GETSECRETRESPONSE']._serialized_end=379 + _globals['_GETSECRETRESPONSE_DATAENTRY']._serialized_start=336 + _globals['_GETSECRETRESPONSE_DATAENTRY']._serialized_end=379 + _globals['_GETBULKSECRETREQUEST']._serialized_start=382 + _globals['_GETBULKSECRETREQUEST']._serialized_end=561 + _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._serialized_start=199 + _globals['_GETBULKSECRETREQUEST_METADATAENTRY']._serialized_end=246 + _globals['_SECRETRESPONSE']._serialized_start=564 + _globals['_SECRETRESPONSE']._serialized_end=697 + _globals['_SECRETRESPONSE_SECRETSENTRY']._serialized_start=651 + _globals['_SECRETRESPONSE_SECRETSENTRY']._serialized_end=697 + _globals['_GETBULKSECRETRESPONSE']._serialized_start=700 + _globals['_GETBULKSECRETRESPONSE']._serialized_end=877 + _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._serialized_start=795 + _globals['_GETBULKSECRETRESPONSE_DATAENTRY']._serialized_end=877 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/secret_pb2.pyi b/dapr/proto/runtime/v1/secret_pb2.pyi new file mode 100644 index 000000000..1698014ba --- /dev/null +++ b/dapr/proto/runtime/v1/secret_pb2.pyi @@ -0,0 +1,237 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class GetSecretRequest(google.protobuf.message.Message): + """GetSecretRequest is the message to get secret from secret store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of secret store.""" + key: builtins.str + """The name of secret key.""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to secret store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + key: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "metadata", b"metadata", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetSecretRequest: typing_extensions.TypeAlias = GetSecretRequest + +@typing.final +class GetSecretResponse(google.protobuf.message.Message): + """GetSecretResponse is the response message to convey the requested secret.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class DataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + DATA_FIELD_NUMBER: builtins.int + @property + def data(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """data is the secret value. Some secret store, such as kubernetes secret + store, can save multiple secrets for single secret key. + """ + + def __init__( + self, + *, + data: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetSecretResponse: typing_extensions.TypeAlias = GetSecretResponse + +@typing.final +class GetBulkSecretRequest(google.protobuf.message.Message): + """GetBulkSecretRequest is the message to get the secrets from secret store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of secret store.""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to secret store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["metadata", b"metadata", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetBulkSecretRequest: typing_extensions.TypeAlias = GetBulkSecretRequest + +@typing.final +class SecretResponse(google.protobuf.message.Message): + """SecretResponse is a map of decrypted string/string values""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class SecretsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + SECRETS_FIELD_NUMBER: builtins.int + @property + def secrets(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + def __init__( + self, + *, + secrets: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["secrets", b"secrets"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SecretResponse: typing_extensions.TypeAlias = SecretResponse + +@typing.final +class GetBulkSecretResponse(google.protobuf.message.Message): + """GetBulkSecretResponse is the response message to convey the requested secrets.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class DataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> Global___SecretResponse: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: Global___SecretResponse | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + DATA_FIELD_NUMBER: builtins.int + @property + def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, Global___SecretResponse]: + """data hold the secret values. Some secret store, such as kubernetes secret + store, can save multiple secrets for single secret key. + """ + + def __init__( + self, + *, + data: collections.abc.Mapping[builtins.str, Global___SecretResponse] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetBulkSecretResponse: typing_extensions.TypeAlias = GetBulkSecretResponse diff --git a/dapr/proto/runtime/v1/secret_pb2_grpc.py b/dapr/proto/runtime/v1/secret_pb2_grpc.py new file mode 100644 index 000000000..52607485e --- /dev/null +++ b/dapr/proto/runtime/v1/secret_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.76.0' +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/secret_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/state_pb2.py b/dapr/proto/runtime/v1/state_pb2.py new file mode 100644 index 000000000..d40e802c0 --- /dev/null +++ b/dapr/proto/runtime/v1/state_pb2.py @@ -0,0 +1,94 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/state.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/state.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/state.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a!dapr/proto/common/v1/common.proto\"\xf5\x01\n\x0fGetStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12H\n\x0b\x63onsistency\x18\x03 \x01(\x0e\x32\x33.dapr.proto.common.v1.StateOptions.StateConsistency\x12\x46\n\x08metadata\x18\x04 \x03(\x0b\x32\x34.dapr.proto.runtime.v1.GetStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc9\x01\n\x13GetBulkStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\t\x12\x13\n\x0bparallelism\x18\x03 \x01(\x05\x12J\n\x08metadata\x18\x04 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.GetBulkStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"K\n\x14GetBulkStateResponse\x12\x33\n\x05items\x18\x01 \x03(\x0b\x32$.dapr.proto.runtime.v1.BulkStateItem\"\xbe\x01\n\rBulkStateItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\r\n\x05\x65rror\x18\x04 \x01(\t\x12\x44\n\x08metadata\x18\x05 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.BulkStateItem.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa8\x01\n\x10GetStateResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12G\n\x08metadata\x18\x03 \x03(\x0b\x32\x35.dapr.proto.runtime.v1.GetStateResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x02\n\x12\x44\x65leteStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12(\n\x04\x65tag\x18\x03 \x01(\x0b\x32\x1a.dapr.proto.common.v1.Etag\x12\x33\n\x07options\x18\x04 \x01(\x0b\x32\".dapr.proto.common.v1.StateOptions\x12I\n\x08metadata\x18\x05 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.DeleteStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x16\x44\x65leteBulkStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12/\n\x06states\x18\x02 \x03(\x0b\x32\x1f.dapr.proto.common.v1.StateItem\"W\n\x10SaveStateRequest\x12\x12\n\nstore_name\x18\x01 \x01(\t\x12/\n\x06states\x18\x02 \x03(\x0b\x32\x1f.dapr.proto.common.v1.StateItem\"\xbc\x01\n\x11QueryStateRequest\x12\x1d\n\nstore_name\x18\x01 \x01(\tR\tstoreName\x12\r\n\x05query\x18\x02 \x01(\t\x12H\n\x08metadata\x18\x03 \x03(\x0b\x32\x36.dapr.proto.runtime.v1.QueryStateRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x0eQueryStateItem\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\r\n\x05\x65rror\x18\x04 \x01(\t\"\xd7\x01\n\x12QueryStateResponse\x12\x36\n\x07results\x18\x01 \x03(\x0b\x32%.dapr.proto.runtime.v1.QueryStateItem\x12\r\n\x05token\x18\x02 \x01(\t\x12I\n\x08metadata\x18\x03 \x03(\x0b\x32\x37.dapr.proto.runtime.v1.QueryStateResponse.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x1bTransactionalStateOperation\x12\x15\n\roperationType\x18\x01 \x01(\t\x12\x30\n\x07request\x18\x02 \x01(\x0b\x32\x1f.dapr.proto.common.v1.StateItem\"\x83\x02\n\x1e\x45xecuteStateTransactionRequest\x12\x11\n\tstoreName\x18\x01 \x01(\t\x12\x46\n\noperations\x18\x02 \x03(\x0b\x32\x32.dapr.proto.runtime.v1.TransactionalStateOperation\x12U\n\x08metadata\x18\x03 \x03(\x0b\x32\x43.dapr.proto.runtime.v1.ExecuteStateTransactionRequest.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.state_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_GETSTATEREQUEST_METADATAENTRY']._loaded_options = None + _globals['_GETSTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._loaded_options = None + _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_BULKSTATEITEM_METADATAENTRY']._loaded_options = None + _globals['_BULKSTATEITEM_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETSTATERESPONSE_METADATAENTRY']._loaded_options = None + _globals['_GETSTATERESPONSE_METADATAENTRY']._serialized_options = b'8\001' + _globals['_DELETESTATEREQUEST_METADATAENTRY']._loaded_options = None + _globals['_DELETESTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_QUERYSTATEREQUEST_METADATAENTRY']._loaded_options = None + _globals['_QUERYSTATEREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_QUERYSTATERESPONSE_METADATAENTRY']._loaded_options = None + _globals['_QUERYSTATERESPONSE_METADATAENTRY']._serialized_options = b'8\001' + _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._loaded_options = None + _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._serialized_options = b'8\001' + _globals['_GETSTATEREQUEST']._serialized_start=96 + _globals['_GETSTATEREQUEST']._serialized_end=341 + _globals['_GETSTATEREQUEST_METADATAENTRY']._serialized_start=294 + _globals['_GETSTATEREQUEST_METADATAENTRY']._serialized_end=341 + _globals['_GETBULKSTATEREQUEST']._serialized_start=344 + _globals['_GETBULKSTATEREQUEST']._serialized_end=545 + _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._serialized_start=294 + _globals['_GETBULKSTATEREQUEST_METADATAENTRY']._serialized_end=341 + _globals['_GETBULKSTATERESPONSE']._serialized_start=547 + _globals['_GETBULKSTATERESPONSE']._serialized_end=622 + _globals['_BULKSTATEITEM']._serialized_start=625 + _globals['_BULKSTATEITEM']._serialized_end=815 + _globals['_BULKSTATEITEM_METADATAENTRY']._serialized_start=294 + _globals['_BULKSTATEITEM_METADATAENTRY']._serialized_end=341 + _globals['_GETSTATERESPONSE']._serialized_start=818 + _globals['_GETSTATERESPONSE']._serialized_end=986 + _globals['_GETSTATERESPONSE_METADATAENTRY']._serialized_start=294 + _globals['_GETSTATERESPONSE_METADATAENTRY']._serialized_end=341 + _globals['_DELETESTATEREQUEST']._serialized_start=989 + _globals['_DELETESTATEREQUEST']._serialized_end=1261 + _globals['_DELETESTATEREQUEST_METADATAENTRY']._serialized_start=294 + _globals['_DELETESTATEREQUEST_METADATAENTRY']._serialized_end=341 + _globals['_DELETEBULKSTATEREQUEST']._serialized_start=1263 + _globals['_DELETEBULKSTATEREQUEST']._serialized_end=1356 + _globals['_SAVESTATEREQUEST']._serialized_start=1358 + _globals['_SAVESTATEREQUEST']._serialized_end=1445 + _globals['_QUERYSTATEREQUEST']._serialized_start=1448 + _globals['_QUERYSTATEREQUEST']._serialized_end=1636 + _globals['_QUERYSTATEREQUEST_METADATAENTRY']._serialized_start=294 + _globals['_QUERYSTATEREQUEST_METADATAENTRY']._serialized_end=341 + _globals['_QUERYSTATEITEM']._serialized_start=1638 + _globals['_QUERYSTATEITEM']._serialized_end=1710 + _globals['_QUERYSTATERESPONSE']._serialized_start=1713 + _globals['_QUERYSTATERESPONSE']._serialized_end=1928 + _globals['_QUERYSTATERESPONSE_METADATAENTRY']._serialized_start=294 + _globals['_QUERYSTATERESPONSE_METADATAENTRY']._serialized_end=341 + _globals['_TRANSACTIONALSTATEOPERATION']._serialized_start=1930 + _globals['_TRANSACTIONALSTATEOPERATION']._serialized_end=2032 + _globals['_EXECUTESTATETRANSACTIONREQUEST']._serialized_start=2035 + _globals['_EXECUTESTATETRANSACTIONREQUEST']._serialized_end=2294 + _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._serialized_start=294 + _globals['_EXECUTESTATETRANSACTIONREQUEST_METADATAENTRY']._serialized_end=341 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/state_pb2.pyi b/dapr/proto/runtime/v1/state_pb2.pyi new file mode 100644 index 000000000..86da1c2d0 --- /dev/null +++ b/dapr/proto/runtime/v1/state_pb2.pyi @@ -0,0 +1,574 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import dapr.proto.common.v1.common_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class GetStateRequest(google.protobuf.message.Message): + """GetStateRequest is the message to get key-value states from specific state store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + CONSISTENCY_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of state store.""" + key: builtins.str + """The key of the desired state""" + consistency: dapr.proto.common.v1.common_pb2.StateOptions.StateConsistency.ValueType + """The read consistency of the state store.""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to state store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + key: builtins.str = ..., + consistency: dapr.proto.common.v1.common_pb2.StateOptions.StateConsistency.ValueType = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["consistency", b"consistency", "key", b"key", "metadata", b"metadata", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetStateRequest: typing_extensions.TypeAlias = GetStateRequest + +@typing.final +class GetBulkStateRequest(google.protobuf.message.Message): + """GetBulkStateRequest is the message to get a list of key-value states from specific state store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + KEYS_FIELD_NUMBER: builtins.int + PARALLELISM_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of state store.""" + parallelism: builtins.int + """The number of parallel operations executed on the state store for a get operation.""" + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """The keys to get.""" + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to state store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + keys: collections.abc.Iterable[builtins.str] | None = ..., + parallelism: builtins.int = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["keys", b"keys", "metadata", b"metadata", "parallelism", b"parallelism", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetBulkStateRequest: typing_extensions.TypeAlias = GetBulkStateRequest + +@typing.final +class GetBulkStateResponse(google.protobuf.message.Message): + """GetBulkStateResponse is the response conveying the list of state values.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ITEMS_FIELD_NUMBER: builtins.int + @property + def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___BulkStateItem]: + """The list of items containing the keys to get values for.""" + + def __init__( + self, + *, + items: collections.abc.Iterable[Global___BulkStateItem] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["items", b"items"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetBulkStateResponse: typing_extensions.TypeAlias = GetBulkStateResponse + +@typing.final +class BulkStateItem(google.protobuf.message.Message): + """BulkStateItem is the response item for a bulk get operation. + Return values include the item key, data and etag. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + ETAG_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + key: builtins.str + """state item key""" + data: builtins.bytes + """The byte array data""" + etag: builtins.str + """The entity tag which represents the specific version of data. + ETag format is defined by the corresponding data store. + """ + error: builtins.str + """The error that was returned from the state store in case of a failed get operation.""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to app.""" + + def __init__( + self, + *, + key: builtins.str = ..., + data: builtins.bytes = ..., + etag: builtins.str = ..., + error: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "error", b"error", "etag", b"etag", "key", b"key", "metadata", b"metadata"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___BulkStateItem: typing_extensions.TypeAlias = BulkStateItem + +@typing.final +class GetStateResponse(google.protobuf.message.Message): + """GetStateResponse is the response conveying the state value and etag.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + DATA_FIELD_NUMBER: builtins.int + ETAG_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + data: builtins.bytes + """The byte array data""" + etag: builtins.str + """The entity tag which represents the specific version of data. + ETag format is defined by the corresponding data store. + """ + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to app.""" + + def __init__( + self, + *, + data: builtins.bytes = ..., + etag: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "etag", b"etag", "metadata", b"metadata"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetStateResponse: typing_extensions.TypeAlias = GetStateResponse + +@typing.final +class DeleteStateRequest(google.protobuf.message.Message): + """DeleteStateRequest is the message to delete key-value states in the specific state store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + ETAG_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of state store.""" + key: builtins.str + """The key of the desired state""" + @property + def etag(self) -> dapr.proto.common.v1.common_pb2.Etag: + """The entity tag which represents the specific version of data. + The exact ETag format is defined by the corresponding data store. + """ + + @property + def options(self) -> dapr.proto.common.v1.common_pb2.StateOptions: + """State operation options which includes concurrency/ + consistency/retry_policy. + """ + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to state store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + key: builtins.str = ..., + etag: dapr.proto.common.v1.common_pb2.Etag | None = ..., + options: dapr.proto.common.v1.common_pb2.StateOptions | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["etag", b"etag", "options", b"options"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["etag", b"etag", "key", b"key", "metadata", b"metadata", "options", b"options", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteStateRequest: typing_extensions.TypeAlias = DeleteStateRequest + +@typing.final +class DeleteBulkStateRequest(google.protobuf.message.Message): + """DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STORE_NAME_FIELD_NUMBER: builtins.int + STATES_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of state store.""" + @property + def states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[dapr.proto.common.v1.common_pb2.StateItem]: + """The array of the state key values.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + states: collections.abc.Iterable[dapr.proto.common.v1.common_pb2.StateItem] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["states", b"states", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DeleteBulkStateRequest: typing_extensions.TypeAlias = DeleteBulkStateRequest + +@typing.final +class SaveStateRequest(google.protobuf.message.Message): + """SaveStateRequest is the message to save multiple states into state store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STORE_NAME_FIELD_NUMBER: builtins.int + STATES_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of state store.""" + @property + def states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[dapr.proto.common.v1.common_pb2.StateItem]: + """The array of the state key values.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + states: collections.abc.Iterable[dapr.proto.common.v1.common_pb2.StateItem] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["states", b"states", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SaveStateRequest: typing_extensions.TypeAlias = SaveStateRequest + +@typing.final +class QueryStateRequest(google.protobuf.message.Message): + """QueryStateRequest is the message to query state store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORE_NAME_FIELD_NUMBER: builtins.int + QUERY_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + store_name: builtins.str + """The name of state store.""" + query: builtins.str + """The query in JSON format.""" + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to state store components.""" + + def __init__( + self, + *, + store_name: builtins.str = ..., + query: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["metadata", b"metadata", "query", b"query", "store_name", b"store_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___QueryStateRequest: typing_extensions.TypeAlias = QueryStateRequest + +@typing.final +class QueryStateItem(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + ETAG_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + key: builtins.str + """The object key.""" + data: builtins.bytes + """The object value.""" + etag: builtins.str + """The entity tag which represents the specific version of data. + ETag format is defined by the corresponding data store. + """ + error: builtins.str + """The error message indicating an error in processing of the query result.""" + def __init__( + self, + *, + key: builtins.str = ..., + data: builtins.bytes = ..., + etag: builtins.str = ..., + error: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data", b"data", "error", b"error", "etag", b"etag", "key", b"key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___QueryStateItem: typing_extensions.TypeAlias = QueryStateItem + +@typing.final +class QueryStateResponse(google.protobuf.message.Message): + """QueryStateResponse is the response conveying the query results.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + RESULTS_FIELD_NUMBER: builtins.int + TOKEN_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + token: builtins.str + """Pagination token.""" + @property + def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___QueryStateItem]: + """An array of query results.""" + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata which will be sent to app.""" + + def __init__( + self, + *, + results: collections.abc.Iterable[Global___QueryStateItem] | None = ..., + token: builtins.str = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["metadata", b"metadata", "results", b"results", "token", b"token"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___QueryStateResponse: typing_extensions.TypeAlias = QueryStateResponse + +@typing.final +class TransactionalStateOperation(google.protobuf.message.Message): + """TransactionalStateOperation is the message to execute a specified operation with a key-value pair.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATIONTYPE_FIELD_NUMBER: builtins.int + REQUEST_FIELD_NUMBER: builtins.int + operationType: builtins.str + """The type of operation to be executed""" + @property + def request(self) -> dapr.proto.common.v1.common_pb2.StateItem: + """State values to be operated on""" + + def __init__( + self, + *, + operationType: builtins.str = ..., + request: dapr.proto.common.v1.common_pb2.StateItem | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["request", b"request"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["operationType", b"operationType", "request", b"request"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___TransactionalStateOperation: typing_extensions.TypeAlias = TransactionalStateOperation + +@typing.final +class ExecuteStateTransactionRequest(google.protobuf.message.Message): + """ExecuteStateTransactionRequest is the message to execute multiple operations on a specified store.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + STORENAME_FIELD_NUMBER: builtins.int + OPERATIONS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + storeName: builtins.str + """Required. name of state store.""" + @property + def operations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___TransactionalStateOperation]: + """Required. transactional operation list.""" + + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """The metadata used for transactional operations.""" + + def __init__( + self, + *, + storeName: builtins.str = ..., + operations: collections.abc.Iterable[Global___TransactionalStateOperation] | None = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["metadata", b"metadata", "operations", b"operations", "storeName", b"storeName"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ExecuteStateTransactionRequest: typing_extensions.TypeAlias = ExecuteStateTransactionRequest diff --git a/dapr/proto/runtime/v1/state_pb2_grpc.py b/dapr/proto/runtime/v1/state_pb2_grpc.py new file mode 100644 index 000000000..5dfc30057 --- /dev/null +++ b/dapr/proto/runtime/v1/state_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.76.0' +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/state_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/workflow_pb2.py b/dapr/proto/runtime/v1/workflow_pb2.py new file mode 100644 index 000000000..8c9338e91 --- /dev/null +++ b/dapr/proto/runtime/v1/workflow_pb2.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: dapr/proto/runtime/v1/workflow.proto +# Protobuf Python Version: 6.31.1 +"""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, + 31, + 1, + '', + 'dapr/proto/runtime/v1/workflow.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$dapr/proto/runtime/v1/workflow.proto\x12\x15\x64\x61pr.proto.runtime.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"d\n\x12GetWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"\x84\x03\n\x13GetWorkflowResponse\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12#\n\rworkflow_name\x18\x02 \x01(\tR\x0cworkflowName\x12\x39\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x42\n\x0flast_updated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rlastUpdatedAt\x12%\n\x0eruntime_status\x18\x05 \x01(\tR\rruntimeStatus\x12N\n\nproperties\x18\x06 \x03(\x0b\x32:.dapr.proto.runtime.v1.GetWorkflowResponse.PropertiesEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x95\x02\n\x14StartWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\x12#\n\rworkflow_name\x18\x03 \x01(\tR\x0cworkflowName\x12I\n\x07options\x18\x04 \x03(\x0b\x32\x38.dapr.proto.runtime.v1.StartWorkflowRequest.OptionsEntry\x12\r\n\x05input\x18\x05 \x01(\x0c\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x15StartWorkflowResponse\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\"j\n\x18TerminateWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"f\n\x14PauseWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"g\n\x15ResumeWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\"\x9e\x01\n\x19RaiseEventWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponent\x12\x1d\n\nevent_name\x18\x03 \x01(\tR\teventName\x12\x12\n\nevent_data\x18\x04 \x01(\x0c\"f\n\x14PurgeWorkflowRequest\x12\x1f\n\x0binstance_id\x18\x01 \x01(\tR\ninstanceID\x12-\n\x12workflow_component\x18\x02 \x01(\tR\x11workflowComponentBi\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) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dapr.proto.runtime.v1.workflow_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\nio.dapr.v1B\nDaprProtosZ1github.com/dapr/dapr/pkg/proto/runtime/v1;runtime\252\002\033Dapr.Client.Autogen.Grpc.v1' + _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._loaded_options = None + _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._serialized_options = b'8\001' + _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._loaded_options = None + _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._serialized_options = b'8\001' + _globals['_GETWORKFLOWREQUEST']._serialized_start=96 + _globals['_GETWORKFLOWREQUEST']._serialized_end=196 + _globals['_GETWORKFLOWRESPONSE']._serialized_start=199 + _globals['_GETWORKFLOWRESPONSE']._serialized_end=587 + _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._serialized_start=538 + _globals['_GETWORKFLOWRESPONSE_PROPERTIESENTRY']._serialized_end=587 + _globals['_STARTWORKFLOWREQUEST']._serialized_start=590 + _globals['_STARTWORKFLOWREQUEST']._serialized_end=867 + _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._serialized_start=821 + _globals['_STARTWORKFLOWREQUEST_OPTIONSENTRY']._serialized_end=867 + _globals['_STARTWORKFLOWRESPONSE']._serialized_start=869 + _globals['_STARTWORKFLOWRESPONSE']._serialized_end=925 + _globals['_TERMINATEWORKFLOWREQUEST']._serialized_start=927 + _globals['_TERMINATEWORKFLOWREQUEST']._serialized_end=1033 + _globals['_PAUSEWORKFLOWREQUEST']._serialized_start=1035 + _globals['_PAUSEWORKFLOWREQUEST']._serialized_end=1137 + _globals['_RESUMEWORKFLOWREQUEST']._serialized_start=1139 + _globals['_RESUMEWORKFLOWREQUEST']._serialized_end=1242 + _globals['_RAISEEVENTWORKFLOWREQUEST']._serialized_start=1245 + _globals['_RAISEEVENTWORKFLOWREQUEST']._serialized_end=1403 + _globals['_PURGEWORKFLOWREQUEST']._serialized_start=1405 + _globals['_PURGEWORKFLOWREQUEST']._serialized_end=1507 +# @@protoc_insertion_point(module_scope) diff --git a/dapr/proto/runtime/v1/workflow_pb2.pyi b/dapr/proto/runtime/v1/workflow_pb2.pyi new file mode 100644 index 000000000..0bbff3d09 --- /dev/null +++ b/dapr/proto/runtime/v1/workflow_pb2.pyi @@ -0,0 +1,314 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file + +Copyright 2025 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. +""" + +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class GetWorkflowRequest(google.protobuf.message.Message): + """GetWorkflowRequest is the request for GetWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the workflow instance to query.""" + workflow_component: builtins.str + """Name of the workflow component.""" + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_component: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetWorkflowRequest: typing_extensions.TypeAlias = GetWorkflowRequest + +@typing.final +class GetWorkflowResponse(google.protobuf.message.Message): + """GetWorkflowResponse is the response for GetWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class PropertiesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_NAME_FIELD_NUMBER: builtins.int + CREATED_AT_FIELD_NUMBER: builtins.int + LAST_UPDATED_AT_FIELD_NUMBER: builtins.int + RUNTIME_STATUS_FIELD_NUMBER: builtins.int + PROPERTIES_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the workflow instance.""" + workflow_name: builtins.str + """Name of the workflow.""" + runtime_status: builtins.str + """The current status of the workflow instance, for example, "PENDING", "RUNNING", "SUSPENDED", "COMPLETED", "FAILED", and "TERMINATED".""" + @property + def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time at which the workflow instance was created.""" + + @property + def last_updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The last time at which the workflow instance had its state changed.""" + + @property + def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Additional component-specific properties of the workflow instance.""" + + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_name: builtins.str = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + runtime_status: builtins.str = ..., + properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["created_at", b"created_at", "last_updated_at", b"last_updated_at"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["created_at", b"created_at", "instance_id", b"instance_id", "last_updated_at", b"last_updated_at", "properties", b"properties", "runtime_status", b"runtime_status", "workflow_name", b"workflow_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetWorkflowResponse: typing_extensions.TypeAlias = GetWorkflowResponse + +@typing.final +class StartWorkflowRequest(google.protobuf.message.Message): + """StartWorkflowRequest is the request for StartWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class OptionsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.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: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int + WORKFLOW_NAME_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + INPUT_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """The ID to assign to the started workflow instance. If empty, a random ID is generated.""" + workflow_component: builtins.str + """Name of the workflow component.""" + workflow_name: builtins.str + """Name of the workflow.""" + input: builtins.bytes + """Input data for the workflow instance.""" + @property + def options(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + """Additional component-specific options for starting the workflow instance.""" + + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_component: builtins.str = ..., + workflow_name: builtins.str = ..., + options: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + input: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["input", b"input", "instance_id", b"instance_id", "options", b"options", "workflow_component", b"workflow_component", "workflow_name", b"workflow_name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___StartWorkflowRequest: typing_extensions.TypeAlias = StartWorkflowRequest + +@typing.final +class StartWorkflowResponse(google.protobuf.message.Message): + """StartWorkflowResponse is the response for StartWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INSTANCE_ID_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the started workflow instance.""" + def __init__( + self, + *, + instance_id: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["instance_id", b"instance_id"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___StartWorkflowResponse: typing_extensions.TypeAlias = StartWorkflowResponse + +@typing.final +class TerminateWorkflowRequest(google.protobuf.message.Message): + """TerminateWorkflowRequest is the request for TerminateWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the workflow instance to terminate.""" + workflow_component: builtins.str + """Name of the workflow component.""" + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_component: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___TerminateWorkflowRequest: typing_extensions.TypeAlias = TerminateWorkflowRequest + +@typing.final +class PauseWorkflowRequest(google.protobuf.message.Message): + """PauseWorkflowRequest is the request for PauseWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the workflow instance to pause.""" + workflow_component: builtins.str + """Name of the workflow component.""" + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_component: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PauseWorkflowRequest: typing_extensions.TypeAlias = PauseWorkflowRequest + +@typing.final +class ResumeWorkflowRequest(google.protobuf.message.Message): + """ResumeWorkflowRequest is the request for ResumeWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the workflow instance to resume.""" + workflow_component: builtins.str + """Name of the workflow component.""" + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_component: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ResumeWorkflowRequest: typing_extensions.TypeAlias = ResumeWorkflowRequest + +@typing.final +class RaiseEventWorkflowRequest(google.protobuf.message.Message): + """RaiseEventWorkflowRequest is the request for RaiseEventWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int + EVENT_NAME_FIELD_NUMBER: builtins.int + EVENT_DATA_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the workflow instance to raise an event for.""" + workflow_component: builtins.str + """Name of the workflow component.""" + event_name: builtins.str + """Name of the event.""" + event_data: builtins.bytes + """Data associated with the event.""" + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_component: builtins.str = ..., + event_name: builtins.str = ..., + event_data: builtins.bytes = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["event_data", b"event_data", "event_name", b"event_name", "instance_id", b"instance_id", "workflow_component", b"workflow_component"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___RaiseEventWorkflowRequest: typing_extensions.TypeAlias = RaiseEventWorkflowRequest + +@typing.final +class PurgeWorkflowRequest(google.protobuf.message.Message): + """PurgeWorkflowRequest is the request for PurgeWorkflowBeta1.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INSTANCE_ID_FIELD_NUMBER: builtins.int + WORKFLOW_COMPONENT_FIELD_NUMBER: builtins.int + instance_id: builtins.str + """ID of the workflow instance to purge.""" + workflow_component: builtins.str + """Name of the workflow component.""" + def __init__( + self, + *, + instance_id: builtins.str = ..., + workflow_component: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["instance_id", b"instance_id", "workflow_component", b"workflow_component"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PurgeWorkflowRequest: typing_extensions.TypeAlias = PurgeWorkflowRequest diff --git a/dapr/proto/runtime/v1/workflow_pb2_grpc.py b/dapr/proto/runtime/v1/workflow_pb2_grpc.py new file mode 100644 index 000000000..24be1cbbb --- /dev/null +++ b/dapr/proto/runtime/v1/workflow_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.76.0' +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/workflow_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/tests/clients/fake_dapr_server.py b/tests/clients/fake_dapr_server.py index a1ee695eb..73cd22fd9 100644 --- a/tests/clients/fake_dapr_server.py +++ b/tests/clients/fake_dapr_server.py @@ -12,36 +12,6 @@ from dapr.clients.grpc._response import WorkflowRuntimeStatus from dapr.proto import api_service_v1, api_v1, appcallback_v1, common_v1 from dapr.proto.common.v1.common_pb2 import ConfigurationItem -from dapr.proto.runtime.v1.dapr_pb2 import ( - ActiveActorsCount, - ConversationResponseAlpha2, - ConversationResultAlpha2, - ConversationResultChoices, - ConversationResultMessage, - ConversationToolCalls, - ConversationToolCallsOfFunction, - DecryptRequest, - DecryptResponse, - EncryptRequest, - EncryptResponse, - GetMetadataResponse, - GetWorkflowRequest, - GetWorkflowResponse, - PauseWorkflowRequest, - PurgeWorkflowRequest, - QueryStateItem, - RaiseEventWorkflowRequest, - RegisteredComponents, - ResumeWorkflowRequest, - SetMetadataRequest, - StartWorkflowRequest, - StartWorkflowResponse, - TerminateWorkflowRequest, - TryLockRequest, - TryLockResponse, - UnlockRequest, - UnlockResponse, -) from tests.clients.certs import GrpcCerts from tests.clients.fake_http_server import FakeHttpServer @@ -368,7 +338,7 @@ def QueryStateAlpha1(self, request, context): self.check_for_exception(context) items = [ - QueryStateItem(key=str(key), data=bytes('value of ' + str(key), 'UTF-8')) + api_v1.QueryStateItem(key=str(key), data=bytes('value of ' + str(key), 'UTF-8')) for key in range(1, 11) ] query = json.loads(request.query) @@ -387,55 +357,55 @@ def QueryStateAlpha1(self, request, context): return api_v1.QueryStateResponse(results=items, token=str(tokenIndex)) - def TryLockAlpha1(self, request: TryLockRequest, context): + def TryLockAlpha1(self, request: api_v1.TryLockRequest, context): lock_id = (request.store_name, request.resource_id) if lock_id not in self.locks_to_owner: self.locks_to_owner[lock_id] = request.lock_owner - return TryLockResponse(success=True) + return api_v1.TryLockResponse(success=True) else: # Lock already acquired - return TryLockResponse(success=False) + return api_v1.TryLockResponse(success=False) - def UnlockAlpha1(self, request: UnlockRequest, context): + def UnlockAlpha1(self, request: api_v1.UnlockRequest, context): lock_id = (request.store_name, request.resource_id) if lock_id not in self.locks_to_owner: - return UnlockResponse(status=UnlockResponse.Status.LOCK_DOES_NOT_EXIST) + return api_v1.UnlockResponse(status=api_v1.UnlockResponse.Status.LOCK_DOES_NOT_EXIST) elif self.locks_to_owner[lock_id] == request.lock_owner: del self.locks_to_owner[lock_id] - return UnlockResponse(status=UnlockResponse.Status.SUCCESS) + return api_v1.UnlockResponse(status=api_v1.UnlockResponse.Status.SUCCESS) else: - return UnlockResponse(status=UnlockResponse.Status.LOCK_BELONGS_TO_OTHERS) + return api_v1.UnlockResponse(status=api_v1.UnlockResponse.Status.LOCK_BELONGS_TO_OTHERS) - def EncryptAlpha1(self, requests: EncryptRequest, context): + def EncryptAlpha1(self, requests: api_v1.EncryptRequest, context): for req in requests: # mock encrypt operation by uppercasing the data req.payload.data = req.payload.data.upper() - yield EncryptResponse(payload=req.payload) + yield api_v1.EncryptResponse(payload=req.payload) - def DecryptAlpha1(self, requests: DecryptRequest, context): + def DecryptAlpha1(self, requests: api_v1.DecryptRequest, context): for req in requests: # mock decrypt operation by lowercasing the data req.payload.data = req.payload.data.lower() - yield DecryptResponse(payload=req.payload) + yield api_v1.DecryptResponse(payload=req.payload) - def StartWorkflowBeta1(self, request: StartWorkflowRequest, context): + def StartWorkflowBeta1(self, request: api_v1.StartWorkflowRequest, context): instance_id = request.instance_id if instance_id not in self.workflow_status: self.workflow_status[instance_id] = WorkflowRuntimeStatus.RUNNING - return StartWorkflowResponse(instance_id=instance_id) + return api_v1.StartWorkflowResponse(instance_id=instance_id) else: # workflow already running raise Exception('Unable to start insance of the workflow') - def GetWorkflowBeta1(self, request: GetWorkflowRequest, context): + def GetWorkflowBeta1(self, request: api_v1.GetWorkflowRequest, context): instance_id = request.instance_id if instance_id in self.workflow_status: status = str(self.workflow_status[instance_id])[len('WorkflowRuntimeStatus.') :] - return GetWorkflowResponse( + return api_v1.GetWorkflowResponse( instance_id=instance_id, workflow_name='example', created_at=None, @@ -447,7 +417,7 @@ def GetWorkflowBeta1(self, request: GetWorkflowRequest, context): # workflow non-existent raise Exception('Workflow instance does not exist') - def PauseWorkflowBeta1(self, request: PauseWorkflowRequest, context): + def PauseWorkflowBeta1(self, request: api_v1.PauseWorkflowRequest, context): instance_id = request.instance_id if instance_id in self.workflow_status: @@ -457,7 +427,7 @@ def PauseWorkflowBeta1(self, request: PauseWorkflowRequest, context): # workflow non-existent raise Exception('Workflow instance could not be paused') - def ResumeWorkflowBeta1(self, request: ResumeWorkflowRequest, context): + def ResumeWorkflowBeta1(self, request: api_v1.ResumeWorkflowRequest, context): instance_id = request.instance_id if instance_id in self.workflow_status: @@ -467,7 +437,7 @@ def ResumeWorkflowBeta1(self, request: ResumeWorkflowRequest, context): # workflow non-existent raise Exception('Workflow instance could not be resumed') - def TerminateWorkflowBeta1(self, request: TerminateWorkflowRequest, context): + def TerminateWorkflowBeta1(self, request: api_v1.TerminateWorkflowRequest, context): instance_id = request.instance_id if instance_id in self.workflow_status: @@ -477,7 +447,7 @@ def TerminateWorkflowBeta1(self, request: TerminateWorkflowRequest, context): # workflow non-existent raise Exception('Workflow instance could not be terminated') - def PurgeWorkflowBeta1(self, request: PurgeWorkflowRequest, context): + def PurgeWorkflowBeta1(self, request: api_v1.PurgeWorkflowRequest, context): instance_id = request.instance_id if instance_id in self.workflow_status: @@ -487,7 +457,7 @@ def PurgeWorkflowBeta1(self, request: PurgeWorkflowRequest, context): # workflow non-existent raise Exception('Workflow instance could not be purged') - def RaiseEventWorkflowBeta1(self, request: RaiseEventWorkflowRequest, context): + def RaiseEventWorkflowBeta1(self, request: api_v1.RaiseEventWorkflowRequest, context): instance_id = request.instance_id if instance_id in self.workflow_status: @@ -499,25 +469,25 @@ def RaiseEventWorkflowBeta1(self, request: RaiseEventWorkflowRequest, context): def GetMetadata(self, request, context): self.check_for_exception(context) - return GetMetadataResponse( + return api_v1.GetMetadataResponse( id='myapp', active_actors_count=[ - ActiveActorsCount( + api_v1.ActiveActorsCount( type='Nichelle Nichols', count=1, ), ], registered_components=[ - RegisteredComponents( + api_v1.RegisteredComponents( name='lockstore', type='lock.redis', version='', # Missing capabilities definition, ), - RegisteredComponents( + api_v1.RegisteredComponents( name='pubsub', type='pubsub.redis', version='v1', capabilities=[] ), - RegisteredComponents( + api_v1.RegisteredComponents( name='statestore', type='state.redis', version='v1', @@ -587,9 +557,9 @@ def ConverseAlpha2(self, request, context): # Simulate a tool call for weather requests for tool in request.tools: if tool.function and 'weather' in tool.function.name.lower(): - tool_call = ConversationToolCalls( + tool_call = api_v1.ConversationToolCalls( id=f'call_{input_idx}_{msg_idx}', - function=ConversationToolCallsOfFunction( + function=api_v1.ConversationToolCallsOfFunction( name=tool.function.name, arguments='{"location": "San Francisco", "unit": "celsius"}', ), @@ -599,22 +569,22 @@ def ConverseAlpha2(self, request, context): break # Create result message - result_message = ConversationResultMessage( + result_message = api_v1.ConversationResultMessage( content=response_content, tool_calls=tool_calls ) # Create choice finish_reason = 'tool_calls' if tool_calls else 'stop' - choice = ConversationResultChoices( + choice = api_v1.ConversationResultChoices( finish_reason=finish_reason, index=msg_idx, message=result_message ) choices.append(choice) # Create result for this input - result = ConversationResultAlpha2(choices=choices) + result = api_v1.ConversationResultAlpha2(choices=choices) outputs.append(result) - return ConversationResponseAlpha2( + return api_v1.ConversationResponseAlpha2( context_id=request.context_id if request.HasField('context_id') else None, outputs=outputs, ) @@ -662,7 +632,7 @@ def DeleteJobAlpha1(self, request, context): return empty_pb2.Empty() - def SetMetadata(self, request: SetMetadataRequest, context): + def SetMetadata(self, request: api_v1.SetMetadataRequest, context): self.metadata[request.key] = request.value return empty_pb2.Empty() diff --git a/tests/clients/test_jobs.py b/tests/clients/test_jobs.py index 645d43256..216f8e80d 100644 --- a/tests/clients/test_jobs.py +++ b/tests/clients/test_jobs.py @@ -9,7 +9,7 @@ from google.protobuf.any_pb2 import Any as GrpcAny from dapr.clients.grpc._jobs import ConstantFailurePolicy, DropFailurePolicy, Job -from dapr.proto.runtime.v1 import dapr_pb2 as api_v1 +from dapr.proto import api_v1 class TestJobClass(unittest.TestCase): diff --git a/tools/regen_grpcclient.sh b/tools/regen_grpcclient.sh index d1936e3f7..13d669400 100755 --- a/tools/regen_grpcclient.sh +++ b/tools/regen_grpcclient.sh @@ -2,7 +2,7 @@ # ------------------------------------------------------------ # Copyright 2021 The Dapr Authors -# Licensed under the Apache License, Version 2.0 (the "License"); +# 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 @@ -14,96 +14,39 @@ # ------------------------------------------------------------ # Path to store output -PROTO_PATH="dapr/proto" -SRC=. DAPR_BRANCH=${DAPR_BRANCH:-master} -# Http request CLI -HTTP_REQUEST_CLI=curl +if type "curl" > /dev/null; then + HTTP_REQUEST_CLI=curl +elif type "wget" > /dev/null; then + HTTP_REQUEST_CLI=wget +else + echo "Either curl or wget is required" + exit 1 +fi +target="$(pwd)" -checkHttpRequestCLI() { - if type "curl" > /dev/null; then - HTTP_REQUEST_CLI=curl - elif type "wget" > /dev/null; then - HTTP_REQUEST_CLI=wget - else - echo "Either curl or wget is required" - exit 1 - fi -} +tmp="$(mktemp -d dapr-protos)" +trap 'rm -rf "$tmp"' EXIT -downloadFile() { - PKG_NAME=$1 - FILE_NAME=$2 - FILE_PATH="${PROTO_PATH}/${PKG_NAME}/v1" +url="https://github.com/dapr/dapr/archive/refs/heads/${DAPR_BRANCH}.tar.gz" - # URL for proto file - PROTO_URL="https://raw.githubusercontent.com/dapr/dapr/${DAPR_BRANCH}/dapr/proto/${PKG_NAME}/v1/${FILE_NAME}.proto" +pushd "$tmp" +echo "Downloading Dapr from $url..." +if [ "$HTTP_REQUEST_CLI" == "curl" ]; then + curl -SsL "$url" -o - | tar --strip-components=1 -xzf - +else + wget -q -O - "$url" | tar --strip-components=1 -xzf - +fi - mkdir -p "${FILE_PATH}" +files=("dapr/proto/common/v1/common.proto") +while IFS= read -r -d '' file; do + files+=("$file") +done < <(find "dapr/proto/runtime/v1" -name '*.proto' -print0) - echo "Downloading $PROTO_URL ..." - if [ "$HTTP_REQUEST_CLI" == "curl" ]; then - pushd ${FILE_PATH} - curl -SsL "$PROTO_URL" -o "${FILE_NAME}.proto" - popd - else - wget -q -P "$PROTO_URL" "${FILE_PATH}/${FILE_NAME}.proto" - fi +popd - if [ ! -e "${FILE_PATH}/${FILE_NAME}.proto" ]; then - echo "failed to download $PROTO_URL ..." - ret_val=$FILE_NAME - exit 1 - fi -} - -generateGrpc() { - PKG_NAME=$1 - FILE_NAME=$2 - FILE_PATH="${PROTO_PATH}/${PKG_NAME}/v1" - - python3 -m grpc_tools.protoc -I ${SRC} --python_out=${SRC} --grpc_python_out=${SRC} --mypy_out=${SRC} ${FILE_PATH}/${FILE_NAME}.proto - - if [ ! -e "${FILE_PATH}/${FILE_NAME}_pb2.py" ]; then - echo "failed to generate proto buf $FILE_NAME" - ret_val=$FILE_NAME - exit 1 - fi -} - -fail_trap() { - result=$? - if [ $result != 0 ]; then - echo "Failed to generate gRPC interface and proto buf: $ret_val" - fi - cleanup - exit $result -} - -cleanup() { - find $PROTO_PATH -type f -name '*.proto' -delete -} - -generateGrpcSuccess() { - export PYTHONPATH=`pwd`/$SRC - echo -e "\ngRPC interface and proto buf generated successfully!" -} - -# ----------------------------------------------------------------------------- -# main -# ----------------------------------------------------------------------------- -trap "fail_trap" EXIT - -checkHttpRequestCLI -downloadFile common common -generateGrpc common common -downloadFile runtime appcallback -generateGrpc runtime appcallback -downloadFile runtime dapr -generateGrpc runtime dapr -cleanup - -generateGrpcSuccess +python3 -m grpc_tools.protoc -I ${target} --proto_path="${tmp}" --python_out=${target} --grpc_python_out=${target} --mypy_out=${target} ${files[@]} +echo -e "\ngRPC interface and proto buf generated successfully!" diff --git a/tools/requirements.txt b/tools/requirements.txt index e92160336..cdddb9744 100644 --- a/tools/requirements.txt +++ b/tools/requirements.txt @@ -1,2 +1,2 @@ -grpcio-tools==1.62.3 -mypy-protobuf==3.7.0 +grpcio-tools==1.76.0 +mypy-protobuf==4.0.0