Debian Codegraph @

google/api/consumer_pb2.pyi

raw
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
15 from typing import ClassVar as _ClassVar
16 from typing import Iterable as _Iterable
17 from typing import Mapping as _Mapping
18 from typing import Optional as _Optional
19 from typing import Union as _Union
20
21 from google.protobuf import descriptor as _descriptor
22 from google.protobuf import message as _message
23 from google.protobuf.internal import containers as _containers
24 from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
25
26 DESCRIPTOR: _descriptor.FileDescriptor
27
28 class ProjectProperties(_message.Message):
29 __slots__ = ("properties",)
30 PROPERTIES_FIELD_NUMBER: _ClassVar[int]
31 properties: _containers.RepeatedCompositeFieldContainer[Property]
32 def __init__(
33 self, properties: _Optional[_Iterable[_Union[Property, _Mapping]]] = ...
34 ) -> None: ...
35
36 class Property(_message.Message):
37 __slots__ = ("name", "type", "description")
38 class PropertyType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
39 __slots__ = ()
40 UNSPECIFIED: _ClassVar[Property.PropertyType]
41 INT64: _ClassVar[Property.PropertyType]
42 BOOL: _ClassVar[Property.PropertyType]
43 STRING: _ClassVar[Property.PropertyType]
44 DOUBLE: _ClassVar[Property.PropertyType]
45
46 UNSPECIFIED: Property.PropertyType
47 INT64: Property.PropertyType
48 BOOL: Property.PropertyType
49 STRING: Property.PropertyType
50 DOUBLE: Property.PropertyType
51 NAME_FIELD_NUMBER: _ClassVar[int]
52 TYPE_FIELD_NUMBER: _ClassVar[int]
53 DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
54 name: str
55 type: Property.PropertyType
56 description: str
57 def __init__(
58 self,
59 name: _Optional[str] = ...,
60 type: _Optional[_Union[Property.PropertyType, str]] = ...,
61 description: _Optional[str] = ...,
62 ) -> None: ...