1// Copyright 2015 gRPC authors. 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.25.0 18// protoc v3.14.0 19// source: examples/route_guide/routeguide/route_guide.proto 20 21package routeguide 22 23import ( 24 proto "github.com/golang/protobuf/proto" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 27 reflect "reflect" 28 sync "sync" 29) 30 31const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36) 37 38// This is a compile-time assertion that a sufficiently up-to-date version 39// of the legacy proto package is being used. 40const _ = proto.ProtoPackageIsVersion4 41 42// Points are represented as latitude-longitude pairs in the E7 representation 43// (degrees multiplied by 10**7 and rounded to the nearest integer). 44// Latitudes should be in the range +/- 90 degrees and longitude should be in 45// the range +/- 180 degrees (inclusive). 46type Point struct { 47 state protoimpl.MessageState 48 sizeCache protoimpl.SizeCache 49 unknownFields protoimpl.UnknownFields 50 51 Latitude int32 `protobuf:"varint,1,opt,name=latitude,proto3" json:"latitude,omitempty"` 52 Longitude int32 `protobuf:"varint,2,opt,name=longitude,proto3" json:"longitude,omitempty"` 53} 54 55func (x *Point) Reset() { 56 *x = Point{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62} 63 64func (x *Point) String() string { 65 return protoimpl.X.MessageStringOf(x) 66} 67 68func (*Point) ProtoMessage() {} 69 70func (x *Point) ProtoReflect() protoreflect.Message { 71 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80} 81 82// Deprecated: Use Point.ProtoReflect.Descriptor instead. 83func (*Point) Descriptor() ([]byte, []int) { 84 return file_examples_route_guide_routeguide_route_guide_proto_rawDescGZIP(), []int{0} 85} 86 87func (x *Point) GetLatitude() int32 { 88 if x != nil { 89 return x.Latitude 90 } 91 return 0 92} 93 94func (x *Point) GetLongitude() int32 { 95 if x != nil { 96 return x.Longitude 97 } 98 return 0 99} 100 101// A latitude-longitude rectangle, represented as two diagonally opposite 102// points "lo" and "hi". 103type Rectangle struct { 104 state protoimpl.MessageState 105 sizeCache protoimpl.SizeCache 106 unknownFields protoimpl.UnknownFields 107 108 // One corner of the rectangle. 109 Lo *Point `protobuf:"bytes,1,opt,name=lo,proto3" json:"lo,omitempty"` 110 // The other corner of the rectangle. 111 Hi *Point `protobuf:"bytes,2,opt,name=hi,proto3" json:"hi,omitempty"` 112} 113 114func (x *Rectangle) Reset() { 115 *x = Rectangle{} 116 if protoimpl.UnsafeEnabled { 117 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[1] 118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 119 ms.StoreMessageInfo(mi) 120 } 121} 122 123func (x *Rectangle) String() string { 124 return protoimpl.X.MessageStringOf(x) 125} 126 127func (*Rectangle) ProtoMessage() {} 128 129func (x *Rectangle) ProtoReflect() protoreflect.Message { 130 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[1] 131 if protoimpl.UnsafeEnabled && x != nil { 132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 133 if ms.LoadMessageInfo() == nil { 134 ms.StoreMessageInfo(mi) 135 } 136 return ms 137 } 138 return mi.MessageOf(x) 139} 140 141// Deprecated: Use Rectangle.ProtoReflect.Descriptor instead. 142func (*Rectangle) Descriptor() ([]byte, []int) { 143 return file_examples_route_guide_routeguide_route_guide_proto_rawDescGZIP(), []int{1} 144} 145 146func (x *Rectangle) GetLo() *Point { 147 if x != nil { 148 return x.Lo 149 } 150 return nil 151} 152 153func (x *Rectangle) GetHi() *Point { 154 if x != nil { 155 return x.Hi 156 } 157 return nil 158} 159 160// A feature names something at a given point. 161// 162// If a feature could not be named, the name is empty. 163type Feature struct { 164 state protoimpl.MessageState 165 sizeCache protoimpl.SizeCache 166 unknownFields protoimpl.UnknownFields 167 168 // The name of the feature. 169 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 170 // The point where the feature is detected. 171 Location *Point `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` 172} 173 174func (x *Feature) Reset() { 175 *x = Feature{} 176 if protoimpl.UnsafeEnabled { 177 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[2] 178 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 179 ms.StoreMessageInfo(mi) 180 } 181} 182 183func (x *Feature) String() string { 184 return protoimpl.X.MessageStringOf(x) 185} 186 187func (*Feature) ProtoMessage() {} 188 189func (x *Feature) ProtoReflect() protoreflect.Message { 190 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[2] 191 if protoimpl.UnsafeEnabled && x != nil { 192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 193 if ms.LoadMessageInfo() == nil { 194 ms.StoreMessageInfo(mi) 195 } 196 return ms 197 } 198 return mi.MessageOf(x) 199} 200 201// Deprecated: Use Feature.ProtoReflect.Descriptor instead. 202func (*Feature) Descriptor() ([]byte, []int) { 203 return file_examples_route_guide_routeguide_route_guide_proto_rawDescGZIP(), []int{2} 204} 205 206func (x *Feature) GetName() string { 207 if x != nil { 208 return x.Name 209 } 210 return "" 211} 212 213func (x *Feature) GetLocation() *Point { 214 if x != nil { 215 return x.Location 216 } 217 return nil 218} 219 220// A RouteNote is a message sent while at a given point. 221type RouteNote struct { 222 state protoimpl.MessageState 223 sizeCache protoimpl.SizeCache 224 unknownFields protoimpl.UnknownFields 225 226 // The location from which the message is sent. 227 Location *Point `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` 228 // The message to be sent. 229 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 230} 231 232func (x *RouteNote) Reset() { 233 *x = RouteNote{} 234 if protoimpl.UnsafeEnabled { 235 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[3] 236 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 237 ms.StoreMessageInfo(mi) 238 } 239} 240 241func (x *RouteNote) String() string { 242 return protoimpl.X.MessageStringOf(x) 243} 244 245func (*RouteNote) ProtoMessage() {} 246 247func (x *RouteNote) ProtoReflect() protoreflect.Message { 248 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[3] 249 if protoimpl.UnsafeEnabled && x != nil { 250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 251 if ms.LoadMessageInfo() == nil { 252 ms.StoreMessageInfo(mi) 253 } 254 return ms 255 } 256 return mi.MessageOf(x) 257} 258 259// Deprecated: Use RouteNote.ProtoReflect.Descriptor instead. 260func (*RouteNote) Descriptor() ([]byte, []int) { 261 return file_examples_route_guide_routeguide_route_guide_proto_rawDescGZIP(), []int{3} 262} 263 264func (x *RouteNote) GetLocation() *Point { 265 if x != nil { 266 return x.Location 267 } 268 return nil 269} 270 271func (x *RouteNote) GetMessage() string { 272 if x != nil { 273 return x.Message 274 } 275 return "" 276} 277 278// A RouteSummary is received in response to a RecordRoute rpc. 279// 280// It contains the number of individual points received, the number of 281// detected features, and the total distance covered as the cumulative sum of 282// the distance between each point. 283type RouteSummary struct { 284 state protoimpl.MessageState 285 sizeCache protoimpl.SizeCache 286 unknownFields protoimpl.UnknownFields 287 288 // The number of points received. 289 PointCount int32 `protobuf:"varint,1,opt,name=point_count,json=pointCount,proto3" json:"point_count,omitempty"` 290 // The number of known features passed while traversing the route. 291 FeatureCount int32 `protobuf:"varint,2,opt,name=feature_count,json=featureCount,proto3" json:"feature_count,omitempty"` 292 // The distance covered in metres. 293 Distance int32 `protobuf:"varint,3,opt,name=distance,proto3" json:"distance,omitempty"` 294 // The duration of the traversal in seconds. 295 ElapsedTime int32 `protobuf:"varint,4,opt,name=elapsed_time,json=elapsedTime,proto3" json:"elapsed_time,omitempty"` 296} 297 298func (x *RouteSummary) Reset() { 299 *x = RouteSummary{} 300 if protoimpl.UnsafeEnabled { 301 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[4] 302 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 303 ms.StoreMessageInfo(mi) 304 } 305} 306 307func (x *RouteSummary) String() string { 308 return protoimpl.X.MessageStringOf(x) 309} 310 311func (*RouteSummary) ProtoMessage() {} 312 313func (x *RouteSummary) ProtoReflect() protoreflect.Message { 314 mi := &file_examples_route_guide_routeguide_route_guide_proto_msgTypes[4] 315 if protoimpl.UnsafeEnabled && x != nil { 316 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 317 if ms.LoadMessageInfo() == nil { 318 ms.StoreMessageInfo(mi) 319 } 320 return ms 321 } 322 return mi.MessageOf(x) 323} 324 325// Deprecated: Use RouteSummary.ProtoReflect.Descriptor instead. 326func (*RouteSummary) Descriptor() ([]byte, []int) { 327 return file_examples_route_guide_routeguide_route_guide_proto_rawDescGZIP(), []int{4} 328} 329 330func (x *RouteSummary) GetPointCount() int32 { 331 if x != nil { 332 return x.PointCount 333 } 334 return 0 335} 336 337func (x *RouteSummary) GetFeatureCount() int32 { 338 if x != nil { 339 return x.FeatureCount 340 } 341 return 0 342} 343 344func (x *RouteSummary) GetDistance() int32 { 345 if x != nil { 346 return x.Distance 347 } 348 return 0 349} 350 351func (x *RouteSummary) GetElapsedTime() int32 { 352 if x != nil { 353 return x.ElapsedTime 354 } 355 return 0 356} 357 358var File_examples_route_guide_routeguide_route_guide_proto protoreflect.FileDescriptor 359 360var file_examples_route_guide_routeguide_route_guide_proto_rawDesc = []byte{ 361 0x0a, 0x31, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 362 0x5f, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 363 0x65, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x70, 0x72, 364 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x22, 365 0x41, 0x0a, 0x05, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 366 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 367 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 368 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 369 0x64, 0x65, 0x22, 0x51, 0x0a, 0x09, 0x52, 0x65, 0x63, 0x74, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x12, 370 0x21, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x6f, 371 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x02, 372 0x6c, 0x6f, 0x12, 0x21, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 373 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 374 0x74, 0x52, 0x02, 0x68, 0x69, 0x22, 0x4c, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 375 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 376 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 377 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 378 0x69, 0x64, 0x65, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 379 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x09, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x65, 380 0x12, 0x2d, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 381 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 382 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 383 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 384 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x0c, 0x52, 0x6f, 385 0x75, 0x74, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 386 0x69, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 387 0x0a, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x66, 388 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 389 0x28, 0x05, 0x52, 0x0c, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 390 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 391 0x28, 0x05, 0x52, 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 392 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 393 0x28, 0x05, 0x52, 0x0b, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x32, 394 0x85, 0x02, 0x0a, 0x0a, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x47, 0x75, 0x69, 0x64, 0x65, 0x12, 0x36, 395 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x11, 0x2e, 0x72, 396 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 397 0x13, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x46, 0x65, 0x61, 398 0x74, 0x75, 0x72, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 399 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x15, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 400 0x69, 0x64, 0x65, 0x2e, 0x52, 0x65, 0x63, 0x74, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x1a, 0x13, 0x2e, 401 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 402 0x72, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3e, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 403 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x11, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 404 0x64, 0x65, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 405 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 406 0x72, 0x79, 0x22, 0x00, 0x28, 0x01, 0x12, 0x3f, 0x0a, 0x09, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 407 0x68, 0x61, 0x74, 0x12, 0x15, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 408 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x65, 0x1a, 0x15, 0x2e, 0x72, 0x6f, 0x75, 409 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4e, 0x6f, 0x74, 410 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x68, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72, 411 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x72, 0x6f, 0x75, 0x74, 412 0x65, 0x67, 0x75, 0x69, 0x64, 0x65, 0x42, 0x0f, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x47, 0x75, 0x69, 413 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 414 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 415 0x63, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 416 0x5f, 0x67, 0x75, 0x69, 0x64, 0x65, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x67, 0x75, 0x69, 0x64, 417 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 418} 419 420var ( 421 file_examples_route_guide_routeguide_route_guide_proto_rawDescOnce sync.Once 422 file_examples_route_guide_routeguide_route_guide_proto_rawDescData = file_examples_route_guide_routeguide_route_guide_proto_rawDesc 423) 424 425func file_examples_route_guide_routeguide_route_guide_proto_rawDescGZIP() []byte { 426 file_examples_route_guide_routeguide_route_guide_proto_rawDescOnce.Do(func() { 427 file_examples_route_guide_routeguide_route_guide_proto_rawDescData = protoimpl.X.CompressGZIP(file_examples_route_guide_routeguide_route_guide_proto_rawDescData) 428 }) 429 return file_examples_route_guide_routeguide_route_guide_proto_rawDescData 430} 431 432var file_examples_route_guide_routeguide_route_guide_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 433var file_examples_route_guide_routeguide_route_guide_proto_goTypes = []interface{}{ 434 (*Point)(nil), // 0: routeguide.Point 435 (*Rectangle)(nil), // 1: routeguide.Rectangle 436 (*Feature)(nil), // 2: routeguide.Feature 437 (*RouteNote)(nil), // 3: routeguide.RouteNote 438 (*RouteSummary)(nil), // 4: routeguide.RouteSummary 439} 440var file_examples_route_guide_routeguide_route_guide_proto_depIdxs = []int32{ 441 0, // 0: routeguide.Rectangle.lo:type_name -> routeguide.Point 442 0, // 1: routeguide.Rectangle.hi:type_name -> routeguide.Point 443 0, // 2: routeguide.Feature.location:type_name -> routeguide.Point 444 0, // 3: routeguide.RouteNote.location:type_name -> routeguide.Point 445 0, // 4: routeguide.RouteGuide.GetFeature:input_type -> routeguide.Point 446 1, // 5: routeguide.RouteGuide.ListFeatures:input_type -> routeguide.Rectangle 447 0, // 6: routeguide.RouteGuide.RecordRoute:input_type -> routeguide.Point 448 3, // 7: routeguide.RouteGuide.RouteChat:input_type -> routeguide.RouteNote 449 2, // 8: routeguide.RouteGuide.GetFeature:output_type -> routeguide.Feature 450 2, // 9: routeguide.RouteGuide.ListFeatures:output_type -> routeguide.Feature 451 4, // 10: routeguide.RouteGuide.RecordRoute:output_type -> routeguide.RouteSummary 452 3, // 11: routeguide.RouteGuide.RouteChat:output_type -> routeguide.RouteNote 453 8, // [8:12] is the sub-list for method output_type 454 4, // [4:8] is the sub-list for method input_type 455 4, // [4:4] is the sub-list for extension type_name 456 4, // [4:4] is the sub-list for extension extendee 457 0, // [0:4] is the sub-list for field type_name 458} 459 460func init() { file_examples_route_guide_routeguide_route_guide_proto_init() } 461func file_examples_route_guide_routeguide_route_guide_proto_init() { 462 if File_examples_route_guide_routeguide_route_guide_proto != nil { 463 return 464 } 465 if !protoimpl.UnsafeEnabled { 466 file_examples_route_guide_routeguide_route_guide_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 467 switch v := v.(*Point); 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_examples_route_guide_routeguide_route_guide_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 479 switch v := v.(*Rectangle); 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 file_examples_route_guide_routeguide_route_guide_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 491 switch v := v.(*Feature); i { 492 case 0: 493 return &v.state 494 case 1: 495 return &v.sizeCache 496 case 2: 497 return &v.unknownFields 498 default: 499 return nil 500 } 501 } 502 file_examples_route_guide_routeguide_route_guide_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 503 switch v := v.(*RouteNote); i { 504 case 0: 505 return &v.state 506 case 1: 507 return &v.sizeCache 508 case 2: 509 return &v.unknownFields 510 default: 511 return nil 512 } 513 } 514 file_examples_route_guide_routeguide_route_guide_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 515 switch v := v.(*RouteSummary); i { 516 case 0: 517 return &v.state 518 case 1: 519 return &v.sizeCache 520 case 2: 521 return &v.unknownFields 522 default: 523 return nil 524 } 525 } 526 } 527 type x struct{} 528 out := protoimpl.TypeBuilder{ 529 File: protoimpl.DescBuilder{ 530 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 531 RawDescriptor: file_examples_route_guide_routeguide_route_guide_proto_rawDesc, 532 NumEnums: 0, 533 NumMessages: 5, 534 NumExtensions: 0, 535 NumServices: 1, 536 }, 537 GoTypes: file_examples_route_guide_routeguide_route_guide_proto_goTypes, 538 DependencyIndexes: file_examples_route_guide_routeguide_route_guide_proto_depIdxs, 539 MessageInfos: file_examples_route_guide_routeguide_route_guide_proto_msgTypes, 540 }.Build() 541 File_examples_route_guide_routeguide_route_guide_proto = out.File 542 file_examples_route_guide_routeguide_route_guide_proto_rawDesc = nil 543 file_examples_route_guide_routeguide_route_guide_proto_goTypes = nil 544 file_examples_route_guide_routeguide_route_guide_proto_depIdxs = nil 545} 546