field_info_pb2.pyi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 2025 Google LLC
  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. from typing import ClassVar as _ClassVar
  15. from typing import Iterable as _Iterable
  16. from typing import Mapping as _Mapping
  17. from typing import Optional as _Optional
  18. from typing import Union as _Union
  19. from google.protobuf import descriptor as _descriptor
  20. from google.protobuf import descriptor_pb2 as _descriptor_pb2
  21. from google.protobuf import message as _message
  22. from google.protobuf.internal import containers as _containers
  23. from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
  24. DESCRIPTOR: _descriptor.FileDescriptor
  25. FIELD_INFO_FIELD_NUMBER: _ClassVar[int]
  26. field_info: _descriptor.FieldDescriptor
  27. class FieldInfo(_message.Message):
  28. __slots__ = ("format", "referenced_types")
  29. class Format(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
  30. __slots__ = ()
  31. FORMAT_UNSPECIFIED: _ClassVar[FieldInfo.Format]
  32. UUID4: _ClassVar[FieldInfo.Format]
  33. IPV4: _ClassVar[FieldInfo.Format]
  34. IPV6: _ClassVar[FieldInfo.Format]
  35. IPV4_OR_IPV6: _ClassVar[FieldInfo.Format]
  36. FORMAT_UNSPECIFIED: FieldInfo.Format
  37. UUID4: FieldInfo.Format
  38. IPV4: FieldInfo.Format
  39. IPV6: FieldInfo.Format
  40. IPV4_OR_IPV6: FieldInfo.Format
  41. FORMAT_FIELD_NUMBER: _ClassVar[int]
  42. REFERENCED_TYPES_FIELD_NUMBER: _ClassVar[int]
  43. format: FieldInfo.Format
  44. referenced_types: _containers.RepeatedCompositeFieldContainer[TypeReference]
  45. def __init__(
  46. self,
  47. format: _Optional[_Union[FieldInfo.Format, str]] = ...,
  48. referenced_types: _Optional[_Iterable[_Union[TypeReference, _Mapping]]] = ...,
  49. ) -> None: ...
  50. class TypeReference(_message.Message):
  51. __slots__ = ("type_name",)
  52. TYPE_NAME_FIELD_NUMBER: _ClassVar[int]
  53. type_name: str
  54. def __init__(self, type_name: _Optional[str] = ...) -> None: ...