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