c_sharp_features_pb.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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/c_sharp_features.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 Final, NoReturn, TYPE_CHECKING, TypeAlias
  20. from protobuf import Extension, Message
  21. from protobuf._codegen import file_desc
  22. from . import descriptor_pb
  23. from .descriptor_pb import FeatureSet
  24. if TYPE_CHECKING:
  25. from protobuf import DescFile
  26. _CSharpFeaturesFields: TypeAlias = NoReturn
  27. class CSharpFeatures(Message[_CSharpFeaturesFields]):
  28. """
  29. ```proto
  30. message pb.CSharpFeatures
  31. ```
  32. """
  33. __slots__ = ()
  34. if TYPE_CHECKING:
  35. def __init__(self) -> None:
  36. pass
  37. ext_csharp: Final[Extension[FeatureSet, CSharpFeatures]] = Extension()
  38. """
  39. ```proto
  40. extend google.protobuf.FeatureSet { optional pb.CSharpFeatures csharp = 1004 [json_name = "[pb.csharp]"] }
  41. ```
  42. """
  43. _DESC = file_desc(
  44. b'\n&google/protobuf/c_sharp_features.proto\x12\x02pb\x1a google/protobuf/descriptor.proto"\x10\n\x0eCSharpFeatures:H\n\x06csharp\x18\xec\x07 \x01(\x0b2\x12.pb.CSharpFeatures\x12\x1b.google.protobuf.FeatureSetR\x06csharpB9B\x18CSharpFeaturesOuterClassP\x01\xaa\x02\x1aGoogle.Protobuf.Reflection',
  45. [descriptor_pb.desc()],
  46. {"CSharpFeatures": CSharpFeatures, "csharp": ext_csharp},
  47. )
  48. def desc() -> DescFile:
  49. """Returns the descriptor for the file `google/protobuf/c_sharp_features.proto`."""
  50. return _DESC