Debian Codegraph @

google/api/documentation_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
25 DESCRIPTOR: _descriptor.FileDescriptor
26
27 class 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: str
43 pages: _containers.RepeatedCompositeFieldContainer[Page]
44 rules: _containers.RepeatedCompositeFieldContainer[DocumentationRule]
45 documentation_root_url: str
46 service_root_url: str
47 overview: str
48 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
58 class 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: str
64 description: str
65 deprecation_description: str
66 def __init__(
67 self,
68 selector: _Optional[str] = ...,
69 description: _Optional[str] = ...,
70 deprecation_description: _Optional[str] = ...,
71 ) -> None: ...
72
73 class 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: str
79 content: str
80 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: ...