config_change_pb2.pyi 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 ChangeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
  25. __slots__ = ()
  26. CHANGE_TYPE_UNSPECIFIED: _ClassVar[ChangeType]
  27. ADDED: _ClassVar[ChangeType]
  28. REMOVED: _ClassVar[ChangeType]
  29. MODIFIED: _ClassVar[ChangeType]
  30. CHANGE_TYPE_UNSPECIFIED: ChangeType
  31. ADDED: ChangeType
  32. REMOVED: ChangeType
  33. MODIFIED: ChangeType
  34. class ConfigChange(_message.Message):
  35. __slots__ = ("element", "old_value", "new_value", "change_type", "advices")
  36. ELEMENT_FIELD_NUMBER: _ClassVar[int]
  37. OLD_VALUE_FIELD_NUMBER: _ClassVar[int]
  38. NEW_VALUE_FIELD_NUMBER: _ClassVar[int]
  39. CHANGE_TYPE_FIELD_NUMBER: _ClassVar[int]
  40. ADVICES_FIELD_NUMBER: _ClassVar[int]
  41. element: str
  42. old_value: str
  43. new_value: str
  44. change_type: ChangeType
  45. advices: _containers.RepeatedCompositeFieldContainer[Advice]
  46. def __init__(
  47. self,
  48. element: _Optional[str] = ...,
  49. old_value: _Optional[str] = ...,
  50. new_value: _Optional[str] = ...,
  51. change_type: _Optional[_Union[ChangeType, str]] = ...,
  52. advices: _Optional[_Iterable[_Union[Advice, _Mapping]]] = ...,
  53. ) -> None: ...
  54. class Advice(_message.Message):
  55. __slots__ = ("description",)
  56. DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
  57. description: str
  58. def __init__(self, description: _Optional[str] = ...) -> None: ...