1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package location
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 anypb "google.golang.org/protobuf/types/known/anypb"
35 )
36
37 const (
38
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44
45 type ListLocationsRequest struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50
51 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
52
53 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
54
55 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
56
57 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
58 }
59
60 func (x *ListLocationsRequest) Reset() {
61 *x = ListLocationsRequest{}
62 if protoimpl.UnsafeEnabled {
63 mi := &file_google_cloud_location_locations_proto_msgTypes[0]
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 ms.StoreMessageInfo(mi)
66 }
67 }
68
69 func (x *ListLocationsRequest) String() string {
70 return protoimpl.X.MessageStringOf(x)
71 }
72
73 func (*ListLocationsRequest) ProtoMessage() {}
74
75 func (x *ListLocationsRequest) ProtoReflect() protoreflect.Message {
76 mi := &file_google_cloud_location_locations_proto_msgTypes[0]
77 if protoimpl.UnsafeEnabled && x != nil {
78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79 if ms.LoadMessageInfo() == nil {
80 ms.StoreMessageInfo(mi)
81 }
82 return ms
83 }
84 return mi.MessageOf(x)
85 }
86
87
88 func (*ListLocationsRequest) Descriptor() ([]byte, []int) {
89 return file_google_cloud_location_locations_proto_rawDescGZIP(), []int{0}
90 }
91
92 func (x *ListLocationsRequest) GetName() string {
93 if x != nil {
94 return x.Name
95 }
96 return ""
97 }
98
99 func (x *ListLocationsRequest) GetFilter() string {
100 if x != nil {
101 return x.Filter
102 }
103 return ""
104 }
105
106 func (x *ListLocationsRequest) GetPageSize() int32 {
107 if x != nil {
108 return x.PageSize
109 }
110 return 0
111 }
112
113 func (x *ListLocationsRequest) GetPageToken() string {
114 if x != nil {
115 return x.PageToken
116 }
117 return ""
118 }
119
120
121 type ListLocationsResponse struct {
122 state protoimpl.MessageState
123 sizeCache protoimpl.SizeCache
124 unknownFields protoimpl.UnknownFields
125
126
127 Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
128
129 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
130 }
131
132 func (x *ListLocationsResponse) Reset() {
133 *x = ListLocationsResponse{}
134 if protoimpl.UnsafeEnabled {
135 mi := &file_google_cloud_location_locations_proto_msgTypes[1]
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 ms.StoreMessageInfo(mi)
138 }
139 }
140
141 func (x *ListLocationsResponse) String() string {
142 return protoimpl.X.MessageStringOf(x)
143 }
144
145 func (*ListLocationsResponse) ProtoMessage() {}
146
147 func (x *ListLocationsResponse) ProtoReflect() protoreflect.Message {
148 mi := &file_google_cloud_location_locations_proto_msgTypes[1]
149 if protoimpl.UnsafeEnabled && x != nil {
150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151 if ms.LoadMessageInfo() == nil {
152 ms.StoreMessageInfo(mi)
153 }
154 return ms
155 }
156 return mi.MessageOf(x)
157 }
158
159
160 func (*ListLocationsResponse) Descriptor() ([]byte, []int) {
161 return file_google_cloud_location_locations_proto_rawDescGZIP(), []int{1}
162 }
163
164 func (x *ListLocationsResponse) GetLocations() []*Location {
165 if x != nil {
166 return x.Locations
167 }
168 return nil
169 }
170
171 func (x *ListLocationsResponse) GetNextPageToken() string {
172 if x != nil {
173 return x.NextPageToken
174 }
175 return ""
176 }
177
178
179 type GetLocationRequest struct {
180 state protoimpl.MessageState
181 sizeCache protoimpl.SizeCache
182 unknownFields protoimpl.UnknownFields
183
184
185 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
186 }
187
188 func (x *GetLocationRequest) Reset() {
189 *x = GetLocationRequest{}
190 if protoimpl.UnsafeEnabled {
191 mi := &file_google_cloud_location_locations_proto_msgTypes[2]
192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
193 ms.StoreMessageInfo(mi)
194 }
195 }
196
197 func (x *GetLocationRequest) String() string {
198 return protoimpl.X.MessageStringOf(x)
199 }
200
201 func (*GetLocationRequest) ProtoMessage() {}
202
203 func (x *GetLocationRequest) ProtoReflect() protoreflect.Message {
204 mi := &file_google_cloud_location_locations_proto_msgTypes[2]
205 if protoimpl.UnsafeEnabled && x != nil {
206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207 if ms.LoadMessageInfo() == nil {
208 ms.StoreMessageInfo(mi)
209 }
210 return ms
211 }
212 return mi.MessageOf(x)
213 }
214
215
216 func (*GetLocationRequest) Descriptor() ([]byte, []int) {
217 return file_google_cloud_location_locations_proto_rawDescGZIP(), []int{2}
218 }
219
220 func (x *GetLocationRequest) GetName() string {
221 if x != nil {
222 return x.Name
223 }
224 return ""
225 }
226
227
228 type Location struct {
229 state protoimpl.MessageState
230 sizeCache protoimpl.SizeCache
231 unknownFields protoimpl.UnknownFields
232
233
234
235 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
236
237 LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
238
239
240 DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
241
242
243
244 Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
245
246
247 Metadata *anypb.Any `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
248 }
249
250 func (x *Location) Reset() {
251 *x = Location{}
252 if protoimpl.UnsafeEnabled {
253 mi := &file_google_cloud_location_locations_proto_msgTypes[3]
254 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
255 ms.StoreMessageInfo(mi)
256 }
257 }
258
259 func (x *Location) String() string {
260 return protoimpl.X.MessageStringOf(x)
261 }
262
263 func (*Location) ProtoMessage() {}
264
265 func (x *Location) ProtoReflect() protoreflect.Message {
266 mi := &file_google_cloud_location_locations_proto_msgTypes[3]
267 if protoimpl.UnsafeEnabled && x != nil {
268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
269 if ms.LoadMessageInfo() == nil {
270 ms.StoreMessageInfo(mi)
271 }
272 return ms
273 }
274 return mi.MessageOf(x)
275 }
276
277
278 func (*Location) Descriptor() ([]byte, []int) {
279 return file_google_cloud_location_locations_proto_rawDescGZIP(), []int{3}
280 }
281
282 func (x *Location) GetName() string {
283 if x != nil {
284 return x.Name
285 }
286 return ""
287 }
288
289 func (x *Location) GetLocationId() string {
290 if x != nil {
291 return x.LocationId
292 }
293 return ""
294 }
295
296 func (x *Location) GetDisplayName() string {
297 if x != nil {
298 return x.DisplayName
299 }
300 return ""
301 }
302
303 func (x *Location) GetLabels() map[string]string {
304 if x != nil {
305 return x.Labels
306 }
307 return nil
308 }
309
310 func (x *Location) GetMetadata() *anypb.Any {
311 if x != nil {
312 return x.Metadata
313 }
314 return nil
315 }
316
317 var File_google_cloud_location_locations_proto protoreflect.FileDescriptor
318
319 var file_google_cloud_location_locations_proto_rawDesc = []byte{
320 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6c,
321 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
322 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
323 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1c,
324 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
325 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
326 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e,
327 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
328 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
329 0x22, 0x7e, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
330 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
331 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06,
332 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69,
333 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
334 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
335 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
336 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
337 0x22, 0x7e, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
338 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x6c, 0x6f, 0x63,
339 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67,
340 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6c, 0x6f, 0x63, 0x61,
341 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6c,
342 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,
343 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
344 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
345 0x22, 0x28, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
346 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
347 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x94, 0x02, 0x0a, 0x08, 0x4c,
348 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
349 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c,
350 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
351 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c,
352 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01,
353 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12,
354 0x43, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
355 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6c,
356 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
357 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61,
358 0x62, 0x65, 0x6c, 0x73, 0x12, 0x30, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
359 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
360 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x6d, 0x65,
361 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
362 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
363 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
364 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
365 0x01, 0x32, 0xa4, 0x03, 0x0a, 0x09, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12,
366 0xab, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
367 0x73, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
368 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f,
369 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c,
370 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6c, 0x6f,
371 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74,
372 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3,
373 0xe4, 0x93, 0x02, 0x39, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
374 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x7d, 0x5a, 0x21, 0x12, 0x1f, 0x2f, 0x76,
375 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
376 0x2f, 0x2a, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x9e, 0x01,
377 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e,
378 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6c, 0x6f, 0x63,
379 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
380 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
381 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
382 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02,
383 0x3d, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x6c, 0x6f, 0x63,
384 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31,
385 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
386 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x1a, 0x48,
387 0xca, 0x41, 0x14, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
388 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
389 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
390 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d,
391 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x6f, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e,
392 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6c, 0x6f, 0x63,
393 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
394 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
395 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
396 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
397 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x6c, 0x6f,
398 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
399 0x33,
400 }
401
402 var (
403 file_google_cloud_location_locations_proto_rawDescOnce sync.Once
404 file_google_cloud_location_locations_proto_rawDescData = file_google_cloud_location_locations_proto_rawDesc
405 )
406
407 func file_google_cloud_location_locations_proto_rawDescGZIP() []byte {
408 file_google_cloud_location_locations_proto_rawDescOnce.Do(func() {
409 file_google_cloud_location_locations_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_location_locations_proto_rawDescData)
410 })
411 return file_google_cloud_location_locations_proto_rawDescData
412 }
413
414 var file_google_cloud_location_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
415 var file_google_cloud_location_locations_proto_goTypes = []interface{}{
416 (*ListLocationsRequest)(nil),
417 (*ListLocationsResponse)(nil),
418 (*GetLocationRequest)(nil),
419 (*Location)(nil),
420 nil,
421 (*anypb.Any)(nil),
422 }
423 var file_google_cloud_location_locations_proto_depIdxs = []int32{
424 3,
425 4,
426 5,
427 0,
428 2,
429 1,
430 3,
431 5,
432 3,
433 3,
434 3,
435 0,
436 }
437
438 func init() { file_google_cloud_location_locations_proto_init() }
439 func file_google_cloud_location_locations_proto_init() {
440 if File_google_cloud_location_locations_proto != nil {
441 return
442 }
443 if !protoimpl.UnsafeEnabled {
444 file_google_cloud_location_locations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
445 switch v := v.(*ListLocationsRequest); i {
446 case 0:
447 return &v.state
448 case 1:
449 return &v.sizeCache
450 case 2:
451 return &v.unknownFields
452 default:
453 return nil
454 }
455 }
456 file_google_cloud_location_locations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
457 switch v := v.(*ListLocationsResponse); i {
458 case 0:
459 return &v.state
460 case 1:
461 return &v.sizeCache
462 case 2:
463 return &v.unknownFields
464 default:
465 return nil
466 }
467 }
468 file_google_cloud_location_locations_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
469 switch v := v.(*GetLocationRequest); i {
470 case 0:
471 return &v.state
472 case 1:
473 return &v.sizeCache
474 case 2:
475 return &v.unknownFields
476 default:
477 return nil
478 }
479 }
480 file_google_cloud_location_locations_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
481 switch v := v.(*Location); i {
482 case 0:
483 return &v.state
484 case 1:
485 return &v.sizeCache
486 case 2:
487 return &v.unknownFields
488 default:
489 return nil
490 }
491 }
492 }
493 type x struct{}
494 out := protoimpl.TypeBuilder{
495 File: protoimpl.DescBuilder{
496 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
497 RawDescriptor: file_google_cloud_location_locations_proto_rawDesc,
498 NumEnums: 0,
499 NumMessages: 5,
500 NumExtensions: 0,
501 NumServices: 1,
502 },
503 GoTypes: file_google_cloud_location_locations_proto_goTypes,
504 DependencyIndexes: file_google_cloud_location_locations_proto_depIdxs,
505 MessageInfos: file_google_cloud_location_locations_proto_msgTypes,
506 }.Build()
507 File_google_cloud_location_locations_proto = out.File
508 file_google_cloud_location_locations_proto_rawDesc = nil
509 file_google_cloud_location_locations_proto_goTypes = nil
510 file_google_cloud_location_locations_proto_depIdxs = nil
511 }
512
513
514 var _ context.Context
515 var _ grpc.ClientConnInterface
516
517
518
519 const _ = grpc.SupportPackageIsVersion6
520
521
522
523
524 type LocationsClient interface {
525
526 ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error)
527
528 GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error)
529 }
530
531 type locationsClient struct {
532 cc grpc.ClientConnInterface
533 }
534
535 func NewLocationsClient(cc grpc.ClientConnInterface) LocationsClient {
536 return &locationsClient{cc}
537 }
538
539 func (c *locationsClient) ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error) {
540 out := new(ListLocationsResponse)
541 err := c.cc.Invoke(ctx, "/google.cloud.location.Locations/ListLocations", in, out, opts...)
542 if err != nil {
543 return nil, err
544 }
545 return out, nil
546 }
547
548 func (c *locationsClient) GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error) {
549 out := new(Location)
550 err := c.cc.Invoke(ctx, "/google.cloud.location.Locations/GetLocation", in, out, opts...)
551 if err != nil {
552 return nil, err
553 }
554 return out, nil
555 }
556
557
558 type LocationsServer interface {
559
560 ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error)
561
562 GetLocation(context.Context, *GetLocationRequest) (*Location, error)
563 }
564
565
566 type UnimplementedLocationsServer struct {
567 }
568
569 func (*UnimplementedLocationsServer) ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error) {
570 return nil, status.Errorf(codes.Unimplemented, "method ListLocations not implemented")
571 }
572 func (*UnimplementedLocationsServer) GetLocation(context.Context, *GetLocationRequest) (*Location, error) {
573 return nil, status.Errorf(codes.Unimplemented, "method GetLocation not implemented")
574 }
575
576 func RegisterLocationsServer(s *grpc.Server, srv LocationsServer) {
577 s.RegisterService(&_Locations_serviceDesc, srv)
578 }
579
580 func _Locations_ListLocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
581 in := new(ListLocationsRequest)
582 if err := dec(in); err != nil {
583 return nil, err
584 }
585 if interceptor == nil {
586 return srv.(LocationsServer).ListLocations(ctx, in)
587 }
588 info := &grpc.UnaryServerInfo{
589 Server: srv,
590 FullMethod: "/google.cloud.location.Locations/ListLocations",
591 }
592 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
593 return srv.(LocationsServer).ListLocations(ctx, req.(*ListLocationsRequest))
594 }
595 return interceptor(ctx, in, info, handler)
596 }
597
598 func _Locations_GetLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
599 in := new(GetLocationRequest)
600 if err := dec(in); err != nil {
601 return nil, err
602 }
603 if interceptor == nil {
604 return srv.(LocationsServer).GetLocation(ctx, in)
605 }
606 info := &grpc.UnaryServerInfo{
607 Server: srv,
608 FullMethod: "/google.cloud.location.Locations/GetLocation",
609 }
610 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
611 return srv.(LocationsServer).GetLocation(ctx, req.(*GetLocationRequest))
612 }
613 return interceptor(ctx, in, info, handler)
614 }
615
616 var _Locations_serviceDesc = grpc.ServiceDesc{
617 ServiceName: "google.cloud.location.Locations",
618 HandlerType: (*LocationsServer)(nil),
619 Methods: []grpc.MethodDesc{
620 {
621 MethodName: "ListLocations",
622 Handler: _Locations_ListLocations_Handler,
623 },
624 {
625 MethodName: "GetLocation",
626 Handler: _Locations_GetLocation_Handler,
627 },
628 },
629 Streams: []grpc.StreamDesc{},
630 Metadata: "google/cloud/location/locations.proto",
631 }
632
View as plain text