resource_pb2.pyi 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 Optional as _Optional
  17. from typing import Union as _Union
  18. from google.protobuf import descriptor as _descriptor
  19. from google.protobuf import descriptor_pb2 as _descriptor_pb2
  20. from google.protobuf import message as _message
  21. from google.protobuf.internal import containers as _containers
  22. from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
  23. DESCRIPTOR: _descriptor.FileDescriptor
  24. RESOURCE_REFERENCE_FIELD_NUMBER: _ClassVar[int]
  25. resource_reference: _descriptor.FieldDescriptor
  26. RESOURCE_DEFINITION_FIELD_NUMBER: _ClassVar[int]
  27. resource_definition: _descriptor.FieldDescriptor
  28. RESOURCE_FIELD_NUMBER: _ClassVar[int]
  29. resource: _descriptor.FieldDescriptor
  30. class ResourceDescriptor(_message.Message):
  31. __slots__ = (
  32. "type",
  33. "pattern",
  34. "name_field",
  35. "history",
  36. "plural",
  37. "singular",
  38. "style",
  39. )
  40. class History(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
  41. __slots__ = ()
  42. HISTORY_UNSPECIFIED: _ClassVar[ResourceDescriptor.History]
  43. ORIGINALLY_SINGLE_PATTERN: _ClassVar[ResourceDescriptor.History]
  44. FUTURE_MULTI_PATTERN: _ClassVar[ResourceDescriptor.History]
  45. HISTORY_UNSPECIFIED: ResourceDescriptor.History
  46. ORIGINALLY_SINGLE_PATTERN: ResourceDescriptor.History
  47. FUTURE_MULTI_PATTERN: ResourceDescriptor.History
  48. class Style(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
  49. __slots__ = ()
  50. STYLE_UNSPECIFIED: _ClassVar[ResourceDescriptor.Style]
  51. DECLARATIVE_FRIENDLY: _ClassVar[ResourceDescriptor.Style]
  52. STYLE_UNSPECIFIED: ResourceDescriptor.Style
  53. DECLARATIVE_FRIENDLY: ResourceDescriptor.Style
  54. TYPE_FIELD_NUMBER: _ClassVar[int]
  55. PATTERN_FIELD_NUMBER: _ClassVar[int]
  56. NAME_FIELD_FIELD_NUMBER: _ClassVar[int]
  57. HISTORY_FIELD_NUMBER: _ClassVar[int]
  58. PLURAL_FIELD_NUMBER: _ClassVar[int]
  59. SINGULAR_FIELD_NUMBER: _ClassVar[int]
  60. STYLE_FIELD_NUMBER: _ClassVar[int]
  61. type: str
  62. pattern: _containers.RepeatedScalarFieldContainer[str]
  63. name_field: str
  64. history: ResourceDescriptor.History
  65. plural: str
  66. singular: str
  67. style: _containers.RepeatedScalarFieldContainer[ResourceDescriptor.Style]
  68. def __init__(
  69. self,
  70. type: _Optional[str] = ...,
  71. pattern: _Optional[_Iterable[str]] = ...,
  72. name_field: _Optional[str] = ...,
  73. history: _Optional[_Union[ResourceDescriptor.History, str]] = ...,
  74. plural: _Optional[str] = ...,
  75. singular: _Optional[str] = ...,
  76. style: _Optional[_Iterable[_Union[ResourceDescriptor.Style, str]]] = ...,
  77. ) -> None: ...
  78. class ResourceReference(_message.Message):
  79. __slots__ = ("type", "child_type")
  80. TYPE_FIELD_NUMBER: _ClassVar[int]
  81. CHILD_TYPE_FIELD_NUMBER: _ClassVar[int]
  82. type: str
  83. child_type: str
  84. def __init__(
  85. self, type: _Optional[str] = ..., child_type: _Optional[str] = ...
  86. ) -> None: ...