diff --git a/stubs/grpcio-health-checking/grpc_health/v1/health_pb2.pyi b/stubs/grpcio-health-checking/grpc_health/v1/health_pb2.pyi index ca12270816b6..e3d8379b50c7 100644 --- a/stubs/grpcio-health-checking/grpc_health/v1/health_pb2.pyi +++ b/stubs/grpcio-health-checking/grpc_health/v1/health_pb2.pyi @@ -1,7 +1,9 @@ +from collections.abc import Mapping from typing import ClassVar, Literal, final from google._upb._message import Descriptor, FileDescriptor, MessageMeta from google.protobuf import message +from google.protobuf.internal.containers import MessageMap from google.protobuf.internal.enum_type_wrapper import EnumTypeWrapper DESCRIPTOR: FileDescriptor @@ -24,3 +26,23 @@ class HealthCheckResponse(message.Message, metaclass=MessageMeta): status: int def __init__(self, status: int | str | None = ...) -> None: ... DESCRIPTOR: Descriptor + +@final +class HealthListRequest(message.Message, metaclass=MessageMeta): + DESCRIPTOR: Descriptor + +@final +class HealthListResponse(message.Message, metaclass=MessageMeta): + @final + class StatusesEntry(message.Message, metaclass=MessageMeta): + KEY_FIELD_NUMBER: ClassVar[int] + VALUE_FIELD_NUMBER: ClassVar[int] + key: str + value: HealthCheckResponse + def __init__(self, key: str | None = ..., value: HealthCheckResponse | None = ...) -> None: ... + DESCRIPTOR: Descriptor + + STATUSES_FIELD_NUMBER: ClassVar[int] + statuses: MessageMap[str, HealthCheckResponse] + def __init__(self, statuses: Mapping[str, HealthCheckResponse] | None = ...) -> None: ... + DESCRIPTOR: Descriptor diff --git a/stubs/grpcio-health-checking/grpc_health/v1/health_pb2_grpc.pyi b/stubs/grpcio-health-checking/grpc_health/v1/health_pb2_grpc.pyi index 5c8552573f9f..2693826b8b88 100644 --- a/stubs/grpcio-health-checking/grpc_health/v1/health_pb2_grpc.pyi +++ b/stubs/grpcio-health-checking/grpc_health/v1/health_pb2_grpc.pyi @@ -13,6 +13,7 @@ class HealthStub: class HealthServicer: # Generated methods are overridden by both synchronous and asynchronous servicers. def Check(self, request: health_pb2.HealthCheckRequest, context: Any) -> Any: ... + def List(self, request: health_pb2.HealthListRequest, context: Any) -> Any: ... def Watch(self, request: health_pb2.HealthCheckRequest, context: Any) -> Any: ... def add_HealthServicer_to_server(servicer: HealthServicer, server: grpc.Server | aio.Server) -> None: ... @@ -32,6 +33,19 @@ class Health: metadata=None, ): ... @staticmethod + def List( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): ... + @staticmethod def Watch( request, target,