health_pb2.pyi 1.3 KB

12345678910111213141516171819202122232425262728
  1. from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
  2. from google.protobuf import descriptor as _descriptor
  3. from google.protobuf import message as _message
  4. from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
  5. DESCRIPTOR: _descriptor.FileDescriptor
  6. class HealthCheckRequest(_message.Message):
  7. __slots__ = ("service",)
  8. SERVICE_FIELD_NUMBER: _ClassVar[int]
  9. service: str
  10. def __init__(self, service: _Optional[str] = ...) -> None: ...
  11. class HealthCheckResponse(_message.Message):
  12. __slots__ = ("status",)
  13. class ServingStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
  14. __slots__ = ()
  15. UNKNOWN: _ClassVar[HealthCheckResponse.ServingStatus]
  16. SERVING: _ClassVar[HealthCheckResponse.ServingStatus]
  17. NOT_SERVING: _ClassVar[HealthCheckResponse.ServingStatus]
  18. SERVICE_UNKNOWN: _ClassVar[HealthCheckResponse.ServingStatus]
  19. UNKNOWN: HealthCheckResponse.ServingStatus
  20. SERVING: HealthCheckResponse.ServingStatus
  21. NOT_SERVING: HealthCheckResponse.ServingStatus
  22. SERVICE_UNKNOWN: HealthCheckResponse.ServingStatus
  23. STATUS_FIELD_NUMBER: _ClassVar[int]
  24. status: HealthCheckResponse.ServingStatus
  25. def __init__(self, status: _Optional[_Union[HealthCheckResponse.ServingStatus, str]] = ...) -> None: ...