empty_pb.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Copyright (c) 2025-2026 Buf Technologies, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Generated from google/protobuf/empty.proto. DO NOT EDIT.
  15. # Generated by protoc-gen-py v0.1.1 with parameter "no_fmt_off".
  16. # ruff: noqa: PGH004
  17. # ruff: noqa
  18. from __future__ import annotations
  19. from typing import NoReturn, TYPE_CHECKING, TypeAlias
  20. from protobuf import Message
  21. from protobuf._codegen import file_desc
  22. if TYPE_CHECKING:
  23. from protobuf import DescFile
  24. _EmptyFields: TypeAlias = NoReturn
  25. class Empty(Message[_EmptyFields]):
  26. """
  27. A generic empty message that you can re-use to avoid defining duplicated
  28. empty messages in your APIs. A typical example is to use it as the request
  29. or the response type of an API method. For instance:
  30. service Foo {
  31. rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
  32. }
  33. ```proto
  34. message google.protobuf.Empty
  35. ```
  36. """
  37. __slots__ = ()
  38. if TYPE_CHECKING:
  39. def __init__(self) -> None:
  40. pass
  41. _DESC = file_desc(
  42. b'\n\x1bgoogle/protobuf/empty.proto\x12\x0fgoogle.protobuf"\x07\n\x05EmptyB}\n\x13com.google.protobufB\nEmptyProtoP\x01Z.google.golang.org/protobuf/types/known/emptypb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3',
  43. [],
  44. {"Empty": Empty},
  45. )
  46. def desc() -> DescFile:
  47. """Returns the descriptor for the file `google/protobuf/empty.proto`."""
  48. return _DESC