consumer_pb2.pyi 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 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. class ProjectProperties(_message.Message):
  25. __slots__ = ("properties",)
  26. PROPERTIES_FIELD_NUMBER: _ClassVar[int]
  27. properties: _containers.RepeatedCompositeFieldContainer[Property]
  28. def __init__(
  29. self, properties: _Optional[_Iterable[_Union[Property, _Mapping]]] = ...
  30. ) -> None: ...
  31. class Property(_message.Message):
  32. __slots__ = ("name", "type", "description")
  33. class PropertyType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
  34. __slots__ = ()
  35. UNSPECIFIED: _ClassVar[Property.PropertyType]
  36. INT64: _ClassVar[Property.PropertyType]
  37. BOOL: _ClassVar[Property.PropertyType]
  38. STRING: _ClassVar[Property.PropertyType]
  39. DOUBLE: _ClassVar[Property.PropertyType]
  40. UNSPECIFIED: Property.PropertyType
  41. INT64: Property.PropertyType
  42. BOOL: Property.PropertyType
  43. STRING: Property.PropertyType
  44. DOUBLE: Property.PropertyType
  45. NAME_FIELD_NUMBER: _ClassVar[int]
  46. TYPE_FIELD_NUMBER: _ClassVar[int]
  47. DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
  48. name: str
  49. type: Property.PropertyType
  50. description: str
  51. def __init__(
  52. self,
  53. name: _Optional[str] = ...,
  54. type: _Optional[_Union[Property.PropertyType, str]] = ...,
  55. description: _Optional[str] = ...,
  56. ) -> None: ...