1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/location/locations.proto 3 4package location // import "google.golang.org/genproto/googleapis/cloud/location" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import any "github.com/golang/protobuf/ptypes/any" 10import _ "google.golang.org/genproto/googleapis/api/annotations" 11 12import ( 13 context "golang.org/x/net/context" 14 grpc "google.golang.org/grpc" 15) 16 17// Reference imports to suppress errors if they are not otherwise used. 18var _ = proto.Marshal 19var _ = fmt.Errorf 20var _ = math.Inf 21 22// This is a compile-time assertion to ensure that this generated file 23// is compatible with the proto package it is being compiled against. 24// A compilation error at this line likely means your copy of the 25// proto package needs to be updated. 26const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 27 28// The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. 29type ListLocationsRequest struct { 30 // The resource that owns the locations collection, if applicable. 31 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 32 // The standard list filter. 33 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 34 // The standard list page size. 35 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 36 // The standard list page token. 37 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 38 XXX_NoUnkeyedLiteral struct{} `json:"-"` 39 XXX_unrecognized []byte `json:"-"` 40 XXX_sizecache int32 `json:"-"` 41} 42 43func (m *ListLocationsRequest) Reset() { *m = ListLocationsRequest{} } 44func (m *ListLocationsRequest) String() string { return proto.CompactTextString(m) } 45func (*ListLocationsRequest) ProtoMessage() {} 46func (*ListLocationsRequest) Descriptor() ([]byte, []int) { 47 return fileDescriptor_locations_7a7af132c8d24683, []int{0} 48} 49func (m *ListLocationsRequest) XXX_Unmarshal(b []byte) error { 50 return xxx_messageInfo_ListLocationsRequest.Unmarshal(m, b) 51} 52func (m *ListLocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 53 return xxx_messageInfo_ListLocationsRequest.Marshal(b, m, deterministic) 54} 55func (dst *ListLocationsRequest) XXX_Merge(src proto.Message) { 56 xxx_messageInfo_ListLocationsRequest.Merge(dst, src) 57} 58func (m *ListLocationsRequest) XXX_Size() int { 59 return xxx_messageInfo_ListLocationsRequest.Size(m) 60} 61func (m *ListLocationsRequest) XXX_DiscardUnknown() { 62 xxx_messageInfo_ListLocationsRequest.DiscardUnknown(m) 63} 64 65var xxx_messageInfo_ListLocationsRequest proto.InternalMessageInfo 66 67func (m *ListLocationsRequest) GetName() string { 68 if m != nil { 69 return m.Name 70 } 71 return "" 72} 73 74func (m *ListLocationsRequest) GetFilter() string { 75 if m != nil { 76 return m.Filter 77 } 78 return "" 79} 80 81func (m *ListLocationsRequest) GetPageSize() int32 { 82 if m != nil { 83 return m.PageSize 84 } 85 return 0 86} 87 88func (m *ListLocationsRequest) GetPageToken() string { 89 if m != nil { 90 return m.PageToken 91 } 92 return "" 93} 94 95// The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. 96type ListLocationsResponse struct { 97 // A list of locations that matches the specified filter in the request. 98 Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"` 99 // The standard List next-page token. 100 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 101 XXX_NoUnkeyedLiteral struct{} `json:"-"` 102 XXX_unrecognized []byte `json:"-"` 103 XXX_sizecache int32 `json:"-"` 104} 105 106func (m *ListLocationsResponse) Reset() { *m = ListLocationsResponse{} } 107func (m *ListLocationsResponse) String() string { return proto.CompactTextString(m) } 108func (*ListLocationsResponse) ProtoMessage() {} 109func (*ListLocationsResponse) Descriptor() ([]byte, []int) { 110 return fileDescriptor_locations_7a7af132c8d24683, []int{1} 111} 112func (m *ListLocationsResponse) XXX_Unmarshal(b []byte) error { 113 return xxx_messageInfo_ListLocationsResponse.Unmarshal(m, b) 114} 115func (m *ListLocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 116 return xxx_messageInfo_ListLocationsResponse.Marshal(b, m, deterministic) 117} 118func (dst *ListLocationsResponse) XXX_Merge(src proto.Message) { 119 xxx_messageInfo_ListLocationsResponse.Merge(dst, src) 120} 121func (m *ListLocationsResponse) XXX_Size() int { 122 return xxx_messageInfo_ListLocationsResponse.Size(m) 123} 124func (m *ListLocationsResponse) XXX_DiscardUnknown() { 125 xxx_messageInfo_ListLocationsResponse.DiscardUnknown(m) 126} 127 128var xxx_messageInfo_ListLocationsResponse proto.InternalMessageInfo 129 130func (m *ListLocationsResponse) GetLocations() []*Location { 131 if m != nil { 132 return m.Locations 133 } 134 return nil 135} 136 137func (m *ListLocationsResponse) GetNextPageToken() string { 138 if m != nil { 139 return m.NextPageToken 140 } 141 return "" 142} 143 144// The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation]. 145type GetLocationRequest struct { 146 // Resource name for the location. 147 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 148 XXX_NoUnkeyedLiteral struct{} `json:"-"` 149 XXX_unrecognized []byte `json:"-"` 150 XXX_sizecache int32 `json:"-"` 151} 152 153func (m *GetLocationRequest) Reset() { *m = GetLocationRequest{} } 154func (m *GetLocationRequest) String() string { return proto.CompactTextString(m) } 155func (*GetLocationRequest) ProtoMessage() {} 156func (*GetLocationRequest) Descriptor() ([]byte, []int) { 157 return fileDescriptor_locations_7a7af132c8d24683, []int{2} 158} 159func (m *GetLocationRequest) XXX_Unmarshal(b []byte) error { 160 return xxx_messageInfo_GetLocationRequest.Unmarshal(m, b) 161} 162func (m *GetLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 163 return xxx_messageInfo_GetLocationRequest.Marshal(b, m, deterministic) 164} 165func (dst *GetLocationRequest) XXX_Merge(src proto.Message) { 166 xxx_messageInfo_GetLocationRequest.Merge(dst, src) 167} 168func (m *GetLocationRequest) XXX_Size() int { 169 return xxx_messageInfo_GetLocationRequest.Size(m) 170} 171func (m *GetLocationRequest) XXX_DiscardUnknown() { 172 xxx_messageInfo_GetLocationRequest.DiscardUnknown(m) 173} 174 175var xxx_messageInfo_GetLocationRequest proto.InternalMessageInfo 176 177func (m *GetLocationRequest) GetName() string { 178 if m != nil { 179 return m.Name 180 } 181 return "" 182} 183 184// A resource that represents Google Cloud Platform location. 185type Location struct { 186 // Resource name for the location, which may vary between implementations. 187 // For example: `"projects/example-project/locations/us-east1"` 188 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 189 // The canonical id for this location. For example: `"us-east1"`. 190 LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"` 191 // The friendly name for this location, typically a nearby city name. 192 // For example, "Tokyo". 193 DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 194 // Cross-service attributes for the location. For example 195 // 196 // {"cloud.googleapis.com/region": "us-east1"} 197 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"` 198 // Service-specific metadata. For example the available capacity at the given 199 // location. 200 Metadata *any.Any `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 201 XXX_NoUnkeyedLiteral struct{} `json:"-"` 202 XXX_unrecognized []byte `json:"-"` 203 XXX_sizecache int32 `json:"-"` 204} 205 206func (m *Location) Reset() { *m = Location{} } 207func (m *Location) String() string { return proto.CompactTextString(m) } 208func (*Location) ProtoMessage() {} 209func (*Location) Descriptor() ([]byte, []int) { 210 return fileDescriptor_locations_7a7af132c8d24683, []int{3} 211} 212func (m *Location) XXX_Unmarshal(b []byte) error { 213 return xxx_messageInfo_Location.Unmarshal(m, b) 214} 215func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 216 return xxx_messageInfo_Location.Marshal(b, m, deterministic) 217} 218func (dst *Location) XXX_Merge(src proto.Message) { 219 xxx_messageInfo_Location.Merge(dst, src) 220} 221func (m *Location) XXX_Size() int { 222 return xxx_messageInfo_Location.Size(m) 223} 224func (m *Location) XXX_DiscardUnknown() { 225 xxx_messageInfo_Location.DiscardUnknown(m) 226} 227 228var xxx_messageInfo_Location proto.InternalMessageInfo 229 230func (m *Location) GetName() string { 231 if m != nil { 232 return m.Name 233 } 234 return "" 235} 236 237func (m *Location) GetLocationId() string { 238 if m != nil { 239 return m.LocationId 240 } 241 return "" 242} 243 244func (m *Location) GetDisplayName() string { 245 if m != nil { 246 return m.DisplayName 247 } 248 return "" 249} 250 251func (m *Location) GetLabels() map[string]string { 252 if m != nil { 253 return m.Labels 254 } 255 return nil 256} 257 258func (m *Location) GetMetadata() *any.Any { 259 if m != nil { 260 return m.Metadata 261 } 262 return nil 263} 264 265func init() { 266 proto.RegisterType((*ListLocationsRequest)(nil), "google.cloud.location.ListLocationsRequest") 267 proto.RegisterType((*ListLocationsResponse)(nil), "google.cloud.location.ListLocationsResponse") 268 proto.RegisterType((*GetLocationRequest)(nil), "google.cloud.location.GetLocationRequest") 269 proto.RegisterType((*Location)(nil), "google.cloud.location.Location") 270 proto.RegisterMapType((map[string]string)(nil), "google.cloud.location.Location.LabelsEntry") 271} 272 273// Reference imports to suppress errors if they are not otherwise used. 274var _ context.Context 275var _ grpc.ClientConn 276 277// This is a compile-time assertion to ensure that this generated file 278// is compatible with the grpc package it is being compiled against. 279const _ = grpc.SupportPackageIsVersion4 280 281// LocationsClient is the client API for Locations service. 282// 283// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 284type LocationsClient interface { 285 // Lists information about the supported locations for this service. 286 ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error) 287 // Gets information about a location. 288 GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error) 289} 290 291type locationsClient struct { 292 cc *grpc.ClientConn 293} 294 295func NewLocationsClient(cc *grpc.ClientConn) LocationsClient { 296 return &locationsClient{cc} 297} 298 299func (c *locationsClient) ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error) { 300 out := new(ListLocationsResponse) 301 err := c.cc.Invoke(ctx, "/google.cloud.location.Locations/ListLocations", in, out, opts...) 302 if err != nil { 303 return nil, err 304 } 305 return out, nil 306} 307 308func (c *locationsClient) GetLocation(ctx context.Context, in *GetLocationRequest, opts ...grpc.CallOption) (*Location, error) { 309 out := new(Location) 310 err := c.cc.Invoke(ctx, "/google.cloud.location.Locations/GetLocation", in, out, opts...) 311 if err != nil { 312 return nil, err 313 } 314 return out, nil 315} 316 317// LocationsServer is the server API for Locations service. 318type LocationsServer interface { 319 // Lists information about the supported locations for this service. 320 ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error) 321 // Gets information about a location. 322 GetLocation(context.Context, *GetLocationRequest) (*Location, error) 323} 324 325func RegisterLocationsServer(s *grpc.Server, srv LocationsServer) { 326 s.RegisterService(&_Locations_serviceDesc, srv) 327} 328 329func _Locations_ListLocations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 330 in := new(ListLocationsRequest) 331 if err := dec(in); err != nil { 332 return nil, err 333 } 334 if interceptor == nil { 335 return srv.(LocationsServer).ListLocations(ctx, in) 336 } 337 info := &grpc.UnaryServerInfo{ 338 Server: srv, 339 FullMethod: "/google.cloud.location.Locations/ListLocations", 340 } 341 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 342 return srv.(LocationsServer).ListLocations(ctx, req.(*ListLocationsRequest)) 343 } 344 return interceptor(ctx, in, info, handler) 345} 346 347func _Locations_GetLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 348 in := new(GetLocationRequest) 349 if err := dec(in); err != nil { 350 return nil, err 351 } 352 if interceptor == nil { 353 return srv.(LocationsServer).GetLocation(ctx, in) 354 } 355 info := &grpc.UnaryServerInfo{ 356 Server: srv, 357 FullMethod: "/google.cloud.location.Locations/GetLocation", 358 } 359 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 360 return srv.(LocationsServer).GetLocation(ctx, req.(*GetLocationRequest)) 361 } 362 return interceptor(ctx, in, info, handler) 363} 364 365var _Locations_serviceDesc = grpc.ServiceDesc{ 366 ServiceName: "google.cloud.location.Locations", 367 HandlerType: (*LocationsServer)(nil), 368 Methods: []grpc.MethodDesc{ 369 { 370 MethodName: "ListLocations", 371 Handler: _Locations_ListLocations_Handler, 372 }, 373 { 374 MethodName: "GetLocation", 375 Handler: _Locations_GetLocation_Handler, 376 }, 377 }, 378 Streams: []grpc.StreamDesc{}, 379 Metadata: "google/cloud/location/locations.proto", 380} 381 382func init() { 383 proto.RegisterFile("google/cloud/location/locations.proto", fileDescriptor_locations_7a7af132c8d24683) 384} 385 386var fileDescriptor_locations_7a7af132c8d24683 = []byte{ 387 // 527 bytes of a gzipped FileDescriptorProto 388 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, 389 0x10, 0xd6, 0x3a, 0x4d, 0x94, 0x8c, 0x29, 0xa0, 0x55, 0x8a, 0xdc, 0x00, 0x4a, 0x62, 0x04, 0xa4, 390 0x05, 0x79, 0x21, 0x5c, 0xf8, 0x51, 0x0e, 0x14, 0x21, 0x84, 0x14, 0xa1, 0xc8, 0x70, 0xe2, 0x12, 391 0x6d, 0xe2, 0xad, 0x65, 0xea, 0xec, 0x1a, 0xef, 0xa6, 0xc2, 0x45, 0xed, 0x01, 0xf1, 0x06, 0xe5, 392 0x21, 0x78, 0x1f, 0x5e, 0x81, 0x87, 0xe0, 0x88, 0xbc, 0xfe, 0x49, 0x28, 0x2e, 0xe5, 0xb6, 0x3b, 393 0xf3, 0x7d, 0xf3, 0xcd, 0xb7, 0x33, 0x36, 0xdc, 0xf6, 0x85, 0xf0, 0x43, 0x46, 0xe6, 0xa1, 0x58, 394 0x7a, 0x24, 0x14, 0x73, 0xaa, 0x02, 0xc1, 0xcb, 0x83, 0x74, 0xa2, 0x58, 0x28, 0x81, 0xb7, 0x32, 395 0x98, 0xa3, 0x61, 0x4e, 0x91, 0xed, 0xdc, 0xc8, 0xd9, 0x34, 0x0a, 0x08, 0xe5, 0x5c, 0xa8, 0x75, 396 0x52, 0x67, 0x3b, 0xcf, 0xea, 0xdb, 0x6c, 0xb9, 0x4f, 0x28, 0x4f, 0xb2, 0x94, 0x7d, 0x02, 0xed, 397 0x71, 0x20, 0xd5, 0xb8, 0x90, 0x71, 0xd9, 0xc7, 0x25, 0x93, 0x0a, 0x63, 0xd8, 0xe0, 0x74, 0xc1, 398 0x2c, 0xd4, 0x43, 0x83, 0x96, 0xab, 0xcf, 0xf8, 0x1a, 0x34, 0xf6, 0x83, 0x50, 0xb1, 0xd8, 0x32, 399 0x74, 0x34, 0xbf, 0xe1, 0xeb, 0xd0, 0x8a, 0xa8, 0xcf, 0xa6, 0x32, 0x38, 0x62, 0x56, 0xad, 0x87, 400 0x06, 0x75, 0xb7, 0x99, 0x06, 0xde, 0x06, 0x47, 0x0c, 0xdf, 0x04, 0xd0, 0x49, 0x25, 0x0e, 0x18, 401 0xb7, 0x36, 0x34, 0x51, 0xc3, 0xdf, 0xa5, 0x01, 0xfb, 0x04, 0xb6, 0xce, 0xe8, 0xcb, 0x48, 0x70, 402 0xc9, 0xf0, 0x08, 0x5a, 0xa5, 0x77, 0x0b, 0xf5, 0x6a, 0x03, 0x73, 0xd8, 0x75, 0x2a, 0xcd, 0x3b, 403 0x05, 0xd9, 0x5d, 0x31, 0xf0, 0x1d, 0xb8, 0xc2, 0xd9, 0x27, 0x35, 0x5d, 0xd3, 0xce, 0x9a, 0xde, 404 0x4c, 0xc3, 0x93, 0x52, 0x7f, 0x00, 0x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xe7, 0xc8, 0xfc, 0xbd, 0x09, 0x9d, 416 0x8b, 0x76, 0xce, 0xde, 0xd1, 0x4d, 0xdc, 0xc2, 0xfd, 0xaa, 0x26, 0x56, 0x3d, 0x90, 0xdd, 0xe3, 417 0x3d, 0x01, 0xdb, 0x73, 0xb1, 0xa8, 0x2e, 0xb8, 0x77, 0xb9, 0xf4, 0x37, 0x49, 0x67, 0x34, 0x41, 418 0xef, 0x47, 0x39, 0xd0, 0x17, 0x21, 0xe5, 0xbe, 0x23, 0x62, 0x9f, 0xf8, 0x8c, 0xeb, 0x09, 0x92, 419 0x2c, 0x45, 0xa3, 0x40, 0x9e, 0xf9, 0x61, 0x3c, 0x2b, 0x0e, 0xbf, 0x10, 0x9a, 0x35, 0x34, 0xf8, 420 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x27, 0xd7, 0x9e, 0x57, 0x5c, 0x04, 0x00, 0x00, 421} 422