codekingpro/portable-devtools
115k
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 message as _message23from google.protobuf.internal import containers as _containers24 25DESCRIPTOR: _descriptor.FileDescriptor26 27class Documentation(_message.Message):28 __slots__ = (29 "summary",30 "pages",31 "rules",32 "documentation_root_url",33 "service_root_url",34 "overview",35 )36 SUMMARY_FIELD_NUMBER: _ClassVar[int]37 PAGES_FIELD_NUMBER: _ClassVar[int]38 RULES_FIELD_NUMBER: _ClassVar[int]39 DOCUMENTATION_ROOT_URL_FIELD_NUMBER: _ClassVar[int]40 SERVICE_ROOT_URL_FIELD_NUMBER: _ClassVar[int]41 OVERVIEW_FIELD_NUMBER: _ClassVar[int]42 summary: str43 pages: _containers.RepeatedCompositeFieldContainer[Page]44 rules: _containers.RepeatedCompositeFieldContainer[DocumentationRule]45 documentation_root_url: str46 service_root_url: str47 overview: str48 def __init__(49 self,50 summary: _Optional[str] = ...,51 pages: _Optional[_Iterable[_Union[Page, _Mapping]]] = ...,52 rules: _Optional[_Iterable[_Union[DocumentationRule, _Mapping]]] = ...,53 documentation_root_url: _Optional[str] = ...,54 service_root_url: _Optional[str] = ...,55 overview: _Optional[str] = ...,56 ) -> None: ...57 58class DocumentationRule(_message.Message):59 __slots__ = ("selector", "description", "deprecation_description")60 SELECTOR_FIELD_NUMBER: _ClassVar[int]61 DESCRIPTION_FIELD_NUMBER: _ClassVar[int]62 DEPRECATION_DESCRIPTION_FIELD_NUMBER: _ClassVar[int]63 selector: str64 description: str65 deprecation_description: str66 def __init__(67 self,68 selector: _Optional[str] = ...,69 description: _Optional[str] = ...,70 deprecation_description: _Optional[str] = ...,71 ) -> None: ...72 73class Page(_message.Message):74 __slots__ = ("name", "content", "subpages")75 NAME_FIELD_NUMBER: _ClassVar[int]76 CONTENT_FIELD_NUMBER: _ClassVar[int]77 SUBPAGES_FIELD_NUMBER: _ClassVar[int]78 name: str79 content: str80 subpages: _containers.RepeatedCompositeFieldContainer[Page]81 def __init__(82 self,83 name: _Optional[str] = ...,84 content: _Optional[str] = ...,85 subpages: _Optional[_Iterable[_Union[Page, _Mapping]]] = ...,86 ) -> None: ...87 