1# Generated by the protocol buffer compiler. DO NOT EDIT! 2# source: route_guide.proto 3 4import sys 5_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 6from google.protobuf import descriptor as _descriptor 7from google.protobuf import message as _message 8from google.protobuf import reflection as _reflection 9from google.protobuf import symbol_database as _symbol_database 10from google.protobuf import descriptor_pb2 11# @@protoc_insertion_point(imports) 12 13_sym_db = _symbol_database.Default() 14 15 16 17 18DESCRIPTOR = _descriptor.FileDescriptor( 19 name='route_guide.proto', 20 package='routeguide', 21 syntax='proto3', 22 serialized_pb=_b('\n\x11route_guide.proto\x12\nrouteguide\",\n\x05Point\x12\x10\n\x08latitude\x18\x01 \x01(\x05\x12\x11\n\tlongitude\x18\x02 \x01(\x05\"I\n\tRectangle\x12\x1d\n\x02lo\x18\x01 \x01(\x0b\x32\x11.routeguide.Point\x12\x1d\n\x02hi\x18\x02 \x01(\x0b\x32\x11.routeguide.Point\"<\n\x07\x46\x65\x61ture\x12\x0c\n\x04name\x18\x01 \x01(\t\x12#\n\x08location\x18\x02 \x01(\x0b\x32\x11.routeguide.Point\"A\n\tRouteNote\x12#\n\x08location\x18\x01 \x01(\x0b\x32\x11.routeguide.Point\x12\x0f\n\x07message\x18\x02 \x01(\t\"b\n\x0cRouteSummary\x12\x13\n\x0bpoint_count\x18\x01 \x01(\x05\x12\x15\n\rfeature_count\x18\x02 \x01(\x05\x12\x10\n\x08\x64istance\x18\x03 \x01(\x05\x12\x14\n\x0c\x65lapsed_time\x18\x04 \x01(\x05\x32\x85\x02\n\nRouteGuide\x12\x36\n\nGetFeature\x12\x11.routeguide.Point\x1a\x13.routeguide.Feature\"\x00\x12>\n\x0cListFeatures\x12\x15.routeguide.Rectangle\x1a\x13.routeguide.Feature\"\x00\x30\x01\x12>\n\x0bRecordRoute\x12\x11.routeguide.Point\x1a\x18.routeguide.RouteSummary\"\x00(\x01\x12?\n\tRouteChat\x12\x15.routeguide.RouteNote\x1a\x15.routeguide.RouteNote\"\x00(\x01\x30\x01\x42\x36\n\x1bio.grpc.examples.routeguideB\x0fRouteGuideProtoP\x01\xa2\x02\x03RTGb\x06proto3') 23) 24 25 26 27 28_POINT = _descriptor.Descriptor( 29 name='Point', 30 full_name='routeguide.Point', 31 filename=None, 32 file=DESCRIPTOR, 33 containing_type=None, 34 fields=[ 35 _descriptor.FieldDescriptor( 36 name='latitude', full_name='routeguide.Point.latitude', index=0, 37 number=1, type=5, cpp_type=1, label=1, 38 has_default_value=False, default_value=0, 39 message_type=None, enum_type=None, containing_type=None, 40 is_extension=False, extension_scope=None, 41 options=None), 42 _descriptor.FieldDescriptor( 43 name='longitude', full_name='routeguide.Point.longitude', index=1, 44 number=2, type=5, cpp_type=1, label=1, 45 has_default_value=False, default_value=0, 46 message_type=None, enum_type=None, containing_type=None, 47 is_extension=False, extension_scope=None, 48 options=None), 49 ], 50 extensions=[ 51 ], 52 nested_types=[], 53 enum_types=[ 54 ], 55 options=None, 56 is_extendable=False, 57 syntax='proto3', 58 extension_ranges=[], 59 oneofs=[ 60 ], 61 serialized_start=33, 62 serialized_end=77, 63) 64 65 66_RECTANGLE = _descriptor.Descriptor( 67 name='Rectangle', 68 full_name='routeguide.Rectangle', 69 filename=None, 70 file=DESCRIPTOR, 71 containing_type=None, 72 fields=[ 73 _descriptor.FieldDescriptor( 74 name='lo', full_name='routeguide.Rectangle.lo', index=0, 75 number=1, type=11, cpp_type=10, label=1, 76 has_default_value=False, default_value=None, 77 message_type=None, enum_type=None, containing_type=None, 78 is_extension=False, extension_scope=None, 79 options=None), 80 _descriptor.FieldDescriptor( 81 name='hi', full_name='routeguide.Rectangle.hi', index=1, 82 number=2, type=11, cpp_type=10, label=1, 83 has_default_value=False, default_value=None, 84 message_type=None, enum_type=None, containing_type=None, 85 is_extension=False, extension_scope=None, 86 options=None), 87 ], 88 extensions=[ 89 ], 90 nested_types=[], 91 enum_types=[ 92 ], 93 options=None, 94 is_extendable=False, 95 syntax='proto3', 96 extension_ranges=[], 97 oneofs=[ 98 ], 99 serialized_start=79, 100 serialized_end=152, 101) 102 103 104_FEATURE = _descriptor.Descriptor( 105 name='Feature', 106 full_name='routeguide.Feature', 107 filename=None, 108 file=DESCRIPTOR, 109 containing_type=None, 110 fields=[ 111 _descriptor.FieldDescriptor( 112 name='name', full_name='routeguide.Feature.name', index=0, 113 number=1, type=9, cpp_type=9, label=1, 114 has_default_value=False, default_value=_b("").decode('utf-8'), 115 message_type=None, enum_type=None, containing_type=None, 116 is_extension=False, extension_scope=None, 117 options=None), 118 _descriptor.FieldDescriptor( 119 name='location', full_name='routeguide.Feature.location', index=1, 120 number=2, type=11, cpp_type=10, label=1, 121 has_default_value=False, default_value=None, 122 message_type=None, enum_type=None, containing_type=None, 123 is_extension=False, extension_scope=None, 124 options=None), 125 ], 126 extensions=[ 127 ], 128 nested_types=[], 129 enum_types=[ 130 ], 131 options=None, 132 is_extendable=False, 133 syntax='proto3', 134 extension_ranges=[], 135 oneofs=[ 136 ], 137 serialized_start=154, 138 serialized_end=214, 139) 140 141 142_ROUTENOTE = _descriptor.Descriptor( 143 name='RouteNote', 144 full_name='routeguide.RouteNote', 145 filename=None, 146 file=DESCRIPTOR, 147 containing_type=None, 148 fields=[ 149 _descriptor.FieldDescriptor( 150 name='location', full_name='routeguide.RouteNote.location', index=0, 151 number=1, type=11, cpp_type=10, label=1, 152 has_default_value=False, default_value=None, 153 message_type=None, enum_type=None, containing_type=None, 154 is_extension=False, extension_scope=None, 155 options=None), 156 _descriptor.FieldDescriptor( 157 name='message', full_name='routeguide.RouteNote.message', index=1, 158 number=2, type=9, cpp_type=9, label=1, 159 has_default_value=False, default_value=_b("").decode('utf-8'), 160 message_type=None, enum_type=None, containing_type=None, 161 is_extension=False, extension_scope=None, 162 options=None), 163 ], 164 extensions=[ 165 ], 166 nested_types=[], 167 enum_types=[ 168 ], 169 options=None, 170 is_extendable=False, 171 syntax='proto3', 172 extension_ranges=[], 173 oneofs=[ 174 ], 175 serialized_start=216, 176 serialized_end=281, 177) 178 179 180_ROUTESUMMARY = _descriptor.Descriptor( 181 name='RouteSummary', 182 full_name='routeguide.RouteSummary', 183 filename=None, 184 file=DESCRIPTOR, 185 containing_type=None, 186 fields=[ 187 _descriptor.FieldDescriptor( 188 name='point_count', full_name='routeguide.RouteSummary.point_count', index=0, 189 number=1, type=5, cpp_type=1, label=1, 190 has_default_value=False, default_value=0, 191 message_type=None, enum_type=None, containing_type=None, 192 is_extension=False, extension_scope=None, 193 options=None), 194 _descriptor.FieldDescriptor( 195 name='feature_count', full_name='routeguide.RouteSummary.feature_count', index=1, 196 number=2, type=5, cpp_type=1, label=1, 197 has_default_value=False, default_value=0, 198 message_type=None, enum_type=None, containing_type=None, 199 is_extension=False, extension_scope=None, 200 options=None), 201 _descriptor.FieldDescriptor( 202 name='distance', full_name='routeguide.RouteSummary.distance', index=2, 203 number=3, type=5, cpp_type=1, label=1, 204 has_default_value=False, default_value=0, 205 message_type=None, enum_type=None, containing_type=None, 206 is_extension=False, extension_scope=None, 207 options=None), 208 _descriptor.FieldDescriptor( 209 name='elapsed_time', full_name='routeguide.RouteSummary.elapsed_time', index=3, 210 number=4, type=5, cpp_type=1, label=1, 211 has_default_value=False, default_value=0, 212 message_type=None, enum_type=None, containing_type=None, 213 is_extension=False, extension_scope=None, 214 options=None), 215 ], 216 extensions=[ 217 ], 218 nested_types=[], 219 enum_types=[ 220 ], 221 options=None, 222 is_extendable=False, 223 syntax='proto3', 224 extension_ranges=[], 225 oneofs=[ 226 ], 227 serialized_start=283, 228 serialized_end=381, 229) 230 231_RECTANGLE.fields_by_name['lo'].message_type = _POINT 232_RECTANGLE.fields_by_name['hi'].message_type = _POINT 233_FEATURE.fields_by_name['location'].message_type = _POINT 234_ROUTENOTE.fields_by_name['location'].message_type = _POINT 235DESCRIPTOR.message_types_by_name['Point'] = _POINT 236DESCRIPTOR.message_types_by_name['Rectangle'] = _RECTANGLE 237DESCRIPTOR.message_types_by_name['Feature'] = _FEATURE 238DESCRIPTOR.message_types_by_name['RouteNote'] = _ROUTENOTE 239DESCRIPTOR.message_types_by_name['RouteSummary'] = _ROUTESUMMARY 240_sym_db.RegisterFileDescriptor(DESCRIPTOR) 241 242Point = _reflection.GeneratedProtocolMessageType('Point', (_message.Message,), dict( 243 DESCRIPTOR = _POINT, 244 __module__ = 'route_guide_pb2' 245 # @@protoc_insertion_point(class_scope:routeguide.Point) 246 )) 247_sym_db.RegisterMessage(Point) 248 249Rectangle = _reflection.GeneratedProtocolMessageType('Rectangle', (_message.Message,), dict( 250 DESCRIPTOR = _RECTANGLE, 251 __module__ = 'route_guide_pb2' 252 # @@protoc_insertion_point(class_scope:routeguide.Rectangle) 253 )) 254_sym_db.RegisterMessage(Rectangle) 255 256Feature = _reflection.GeneratedProtocolMessageType('Feature', (_message.Message,), dict( 257 DESCRIPTOR = _FEATURE, 258 __module__ = 'route_guide_pb2' 259 # @@protoc_insertion_point(class_scope:routeguide.Feature) 260 )) 261_sym_db.RegisterMessage(Feature) 262 263RouteNote = _reflection.GeneratedProtocolMessageType('RouteNote', (_message.Message,), dict( 264 DESCRIPTOR = _ROUTENOTE, 265 __module__ = 'route_guide_pb2' 266 # @@protoc_insertion_point(class_scope:routeguide.RouteNote) 267 )) 268_sym_db.RegisterMessage(RouteNote) 269 270RouteSummary = _reflection.GeneratedProtocolMessageType('RouteSummary', (_message.Message,), dict( 271 DESCRIPTOR = _ROUTESUMMARY, 272 __module__ = 'route_guide_pb2' 273 # @@protoc_insertion_point(class_scope:routeguide.RouteSummary) 274 )) 275_sym_db.RegisterMessage(RouteSummary) 276 277 278DESCRIPTOR.has_options = True 279DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\033io.grpc.examples.routeguideB\017RouteGuideProtoP\001\242\002\003RTG')) 280 281_ROUTEGUIDE = _descriptor.ServiceDescriptor( 282 name='RouteGuide', 283 full_name='routeguide.RouteGuide', 284 file=DESCRIPTOR, 285 index=0, 286 options=None, 287 serialized_start=384, 288 serialized_end=645, 289 methods=[ 290 _descriptor.MethodDescriptor( 291 name='GetFeature', 292 full_name='routeguide.RouteGuide.GetFeature', 293 index=0, 294 containing_service=None, 295 input_type=_POINT, 296 output_type=_FEATURE, 297 options=None, 298 ), 299 _descriptor.MethodDescriptor( 300 name='ListFeatures', 301 full_name='routeguide.RouteGuide.ListFeatures', 302 index=1, 303 containing_service=None, 304 input_type=_RECTANGLE, 305 output_type=_FEATURE, 306 options=None, 307 ), 308 _descriptor.MethodDescriptor( 309 name='RecordRoute', 310 full_name='routeguide.RouteGuide.RecordRoute', 311 index=2, 312 containing_service=None, 313 input_type=_POINT, 314 output_type=_ROUTESUMMARY, 315 options=None, 316 ), 317 _descriptor.MethodDescriptor( 318 name='RouteChat', 319 full_name='routeguide.RouteGuide.RouteChat', 320 index=3, 321 containing_service=None, 322 input_type=_ROUTENOTE, 323 output_type=_ROUTENOTE, 324 options=None, 325 ), 326]) 327_sym_db.RegisterServiceDescriptor(_ROUTEGUIDE) 328 329DESCRIPTOR.services_by_name['RouteGuide'] = _ROUTEGUIDE 330 331# @@protoc_insertion_point(module_scope) 332