Debian Codegraph @

google/cloud/location/locations_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 any_pb2 as _any_pb2
22 from google.protobuf import descriptor as _descriptor
23 from google.protobuf import message as _message
24 from google.protobuf.internal import containers as _containers
25
26 from google.api import annotations_pb2 as _annotations_pb2
27 from google.api import client_pb2 as _client_pb2
28
29 DESCRIPTOR: _descriptor.FileDescriptor
30
31 class ListLocationsRequest(_message.Message):
32 __slots__ = ("name", "filter", "page_size", "page_token")
33 NAME_FIELD_NUMBER: _ClassVar[int]
34 FILTER_FIELD_NUMBER: _ClassVar[int]
35 PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
36 PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
37 name: str
38 filter: str
39 page_size: int
40 page_token: str
41 def __init__(
42 self,
43 name: _Optional[str] = ...,
44 filter: _Optional[str] = ...,
45 page_size: _Optional[int] = ...,
46 page_token: _Optional[str] = ...,
47 ) -> None: ...
48
49 class ListLocationsResponse(_message.Message):
50 __slots__ = ("locations", "next_page_token")
51 LOCATIONS_FIELD_NUMBER: _ClassVar[int]
52 NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
53 locations: _containers.RepeatedCompositeFieldContainer[Location]
54 next_page_token: str
55 def __init__(
56 self,
57 locations: _Optional[_Iterable[_Union[Location, _Mapping]]] = ...,
58 next_page_token: _Optional[str] = ...,
59 ) -> None: ...
60
61 class GetLocationRequest(_message.Message):
62 __slots__ = ("name",)
63 NAME_FIELD_NUMBER: _ClassVar[int]
64 name: str
65 def __init__(self, name: _Optional[str] = ...) -> None: ...
66
67 class Location(_message.Message):
68 __slots__ = ("name", "location_id", "display_name", "labels", "metadata")
69 class LabelsEntry(_message.Message):
70 __slots__ = ("key", "value")
71 KEY_FIELD_NUMBER: _ClassVar[int]
72 VALUE_FIELD_NUMBER: _ClassVar[int]
73 key: str
74 value: str
75 def __init__(
76 self, key: _Optional[str] = ..., value: _Optional[str] = ...
77 ) -> None: ...
78
79 NAME_FIELD_NUMBER: _ClassVar[int]
80 LOCATION_ID_FIELD_NUMBER: _ClassVar[int]
81 DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
82 LABELS_FIELD_NUMBER: _ClassVar[int]
83 METADATA_FIELD_NUMBER: _ClassVar[int]
84 name: str
85 location_id: str
86 display_name: str
87 labels: _containers.ScalarMap[str, str]
88 metadata: _any_pb2.Any
89 def __init__(
90 self,
91 name: _Optional[str] = ...,
92 location_id: _Optional[str] = ...,
93 display_name: _Optional[str] = ...,
94 labels: _Optional[_Mapping[str, str]] = ...,
95 metadata: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...,
96 ) -> None: ...