codekingpro/portable-devtools
114k
1# Copyright 2025 Google LLC2#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 at6#7# http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# 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 and13# limitations under the License.14 15from typing import ClassVar as _ClassVar16from typing import Iterable as _Iterable17from typing import Mapping as _Mapping18from typing import Optional as _Optional19from typing import Union as _Union20 21from google.protobuf import descriptor as _descriptor22from google.protobuf import descriptor_pb2 as _descriptor_pb223from google.protobuf import message as _message24from google.protobuf.internal import containers as _containers25from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper26 27DESCRIPTOR: _descriptor.FileDescriptor28FIELD_INFO_FIELD_NUMBER: _ClassVar[int]29field_info: _descriptor.FieldDescriptor30 31class 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.Format42 UUID4: FieldInfo.Format43 IPV4: FieldInfo.Format44 IPV6: FieldInfo.Format45 IPV4_OR_IPV6: FieldInfo.Format46 FORMAT_FIELD_NUMBER: _ClassVar[int]47 REFERENCED_TYPES_FIELD_NUMBER: _ClassVar[int]48 format: FieldInfo.Format49 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 56class TypeReference(_message.Message):57 __slots__ = ("type_name",)58 TYPE_NAME_FIELD_NUMBER: _ClassVar[int]59 type_name: str60 def __init__(self, type_name: _Optional[str] = ...) -> None: ...61 