Debian Codegraph @

google/api/field_info_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 descriptor_pb2 as _descriptor_pb2
23 from google.protobuf import message as _message
24 from google.protobuf.internal import containers as _containers
25 from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
26
27 DESCRIPTOR: _descriptor.FileDescriptor
28 FIELD_INFO_FIELD_NUMBER: _ClassVar[int]
29 field_info: _descriptor.FieldDescriptor
30
31 class FieldInfo(_message.Message):
32 __slots__ = ("format", "referenced_types")
33 class Format(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
34 __slots__ = ()
35 FORMAT_UNSPECIFIED: _ClassVar[FieldInfo.Format]
36 UUID4: _ClassVar[FieldInfo.Format]
37 IPV4: _ClassVar[FieldInfo.Format]
38 IPV6: _ClassVar[FieldInfo.Format]
39 IPV4_OR_IPV6: _ClassVar[FieldInfo.Format]
40
41 FORMAT_UNSPECIFIED: FieldInfo.Format
42 UUID4: FieldInfo.Format
43 IPV4: FieldInfo.Format
44 IPV6: FieldInfo.Format
45 IPV4_OR_IPV6: FieldInfo.Format
46 FORMAT_FIELD_NUMBER: _ClassVar[int]
47 REFERENCED_TYPES_FIELD_NUMBER: _ClassVar[int]
48 format: FieldInfo.Format
49 referenced_types: _containers.RepeatedCompositeFieldContainer[TypeReference]
50 def __init__(
51 self,
52 format: _Optional[_Union[FieldInfo.Format, str]] = ...,
53 referenced_types: _Optional[_Iterable[_Union[TypeReference, _Mapping]]] = ...,
54 ) -> None: ...
55
56 class TypeReference(_message.Message):
57 __slots__ = ("type_name",)
58 TYPE_NAME_FIELD_NUMBER: _ClassVar[int]
59 type_name: str
60 def __init__(self, type_name: _Optional[str] = ...) -> None: ...