1# -*- coding: utf-8 -*- 2# Generated by the protocol buffer compiler. DO NOT EDIT! 3# source: chromiumos/test/api/test_libs_service.proto 4"""Generated protocol buffer code.""" 5from google.protobuf import descriptor as _descriptor 6from google.protobuf import message as _message 7from google.protobuf import reflection as _reflection 8from google.protobuf import symbol_database as _symbol_database 9# @@protoc_insertion_point(imports) 10 11_sym_db = _symbol_database.Default() 12 13 14 15 16DESCRIPTOR = _descriptor.FileDescriptor( 17 name='chromiumos/test/api/test_libs_service.proto', 18 package='chromiumos.test.api', 19 syntax='proto3', 20 serialized_options=b'Z-go.chromium.org/chromiumos/config/go/test/api', 21 create_key=_descriptor._internal_create_key, 22 serialized_pb=b'\n+chromiumos/test/api/test_libs_service.proto\x12\x13\x63hromiumos.test.api\")\n\rGetLibSuccess\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\t\"\xa7\x01\n\rGetLibFailure\x12\x39\n\x06reason\x18\x01 \x01(\x0e\x32).chromiumos.test.api.GetLibFailure.Reason\"[\n\x06Reason\x12\x12\n\x0eREASON_UNKNOWN\x10\x00\x12\x1b\n\x17REASON_UNREGISTERED_LIB\x10\x01\x12 \n\x1cREASON_CONTAINER_START_ERROR\x10\x02\"?\n\rGetLibRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0f\n\x07options\x18\x03 \x03(\t\"\x89\x01\n\x0eGetLibResponse\x12\x35\n\x07success\x18\x01 \x01(\x0b\x32\".chromiumos.test.api.GetLibSuccessH\x00\x12\x35\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\".chromiumos.test.api.GetLibFailureH\x00\x42\t\n\x07outcome\"-\n\x0eKillLibRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07options\x18\x02 \x01(\t\"\x11\n\x0fKillLibResponse2\x90\x02\n\x0fTestLibsService\x12S\n\x08StartLib\x12\".chromiumos.test.api.GetLibRequest\x1a#.chromiumos.test.api.GetLibResponse\x12R\n\x07\x46indLib\x12\".chromiumos.test.api.GetLibRequest\x1a#.chromiumos.test.api.GetLibResponse\x12T\n\x07KillLib\x12#.chromiumos.test.api.KillLibRequest\x1a$.chromiumos.test.api.KillLibResponseB/Z-go.chromium.org/chromiumos/config/go/test/apib\x06proto3' 23) 24 25 26 27_GETLIBFAILURE_REASON = _descriptor.EnumDescriptor( 28 name='Reason', 29 full_name='chromiumos.test.api.GetLibFailure.Reason', 30 filename=None, 31 file=DESCRIPTOR, 32 create_key=_descriptor._internal_create_key, 33 values=[ 34 _descriptor.EnumValueDescriptor( 35 name='REASON_UNKNOWN', index=0, number=0, 36 serialized_options=None, 37 type=None, 38 create_key=_descriptor._internal_create_key), 39 _descriptor.EnumValueDescriptor( 40 name='REASON_UNREGISTERED_LIB', index=1, number=1, 41 serialized_options=None, 42 type=None, 43 create_key=_descriptor._internal_create_key), 44 _descriptor.EnumValueDescriptor( 45 name='REASON_CONTAINER_START_ERROR', index=2, number=2, 46 serialized_options=None, 47 type=None, 48 create_key=_descriptor._internal_create_key), 49 ], 50 containing_type=None, 51 serialized_options=None, 52 serialized_start=188, 53 serialized_end=279, 54) 55_sym_db.RegisterEnumDescriptor(_GETLIBFAILURE_REASON) 56 57 58_GETLIBSUCCESS = _descriptor.Descriptor( 59 name='GetLibSuccess', 60 full_name='chromiumos.test.api.GetLibSuccess', 61 filename=None, 62 file=DESCRIPTOR, 63 containing_type=None, 64 create_key=_descriptor._internal_create_key, 65 fields=[ 66 _descriptor.FieldDescriptor( 67 name='id', full_name='chromiumos.test.api.GetLibSuccess.id', index=0, 68 number=1, type=9, cpp_type=9, label=1, 69 has_default_value=False, default_value=b"".decode('utf-8'), 70 message_type=None, enum_type=None, containing_type=None, 71 is_extension=False, extension_scope=None, 72 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 73 _descriptor.FieldDescriptor( 74 name='port', full_name='chromiumos.test.api.GetLibSuccess.port', index=1, 75 number=2, type=9, cpp_type=9, label=1, 76 has_default_value=False, default_value=b"".decode('utf-8'), 77 message_type=None, enum_type=None, containing_type=None, 78 is_extension=False, extension_scope=None, 79 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 80 ], 81 extensions=[ 82 ], 83 nested_types=[], 84 enum_types=[ 85 ], 86 serialized_options=None, 87 is_extendable=False, 88 syntax='proto3', 89 extension_ranges=[], 90 oneofs=[ 91 ], 92 serialized_start=68, 93 serialized_end=109, 94) 95 96 97_GETLIBFAILURE = _descriptor.Descriptor( 98 name='GetLibFailure', 99 full_name='chromiumos.test.api.GetLibFailure', 100 filename=None, 101 file=DESCRIPTOR, 102 containing_type=None, 103 create_key=_descriptor._internal_create_key, 104 fields=[ 105 _descriptor.FieldDescriptor( 106 name='reason', full_name='chromiumos.test.api.GetLibFailure.reason', index=0, 107 number=1, type=14, cpp_type=8, label=1, 108 has_default_value=False, default_value=0, 109 message_type=None, enum_type=None, containing_type=None, 110 is_extension=False, extension_scope=None, 111 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 112 ], 113 extensions=[ 114 ], 115 nested_types=[], 116 enum_types=[ 117 _GETLIBFAILURE_REASON, 118 ], 119 serialized_options=None, 120 is_extendable=False, 121 syntax='proto3', 122 extension_ranges=[], 123 oneofs=[ 124 ], 125 serialized_start=112, 126 serialized_end=279, 127) 128 129 130_GETLIBREQUEST = _descriptor.Descriptor( 131 name='GetLibRequest', 132 full_name='chromiumos.test.api.GetLibRequest', 133 filename=None, 134 file=DESCRIPTOR, 135 containing_type=None, 136 create_key=_descriptor._internal_create_key, 137 fields=[ 138 _descriptor.FieldDescriptor( 139 name='name', full_name='chromiumos.test.api.GetLibRequest.name', index=0, 140 number=1, type=9, cpp_type=9, label=1, 141 has_default_value=False, default_value=b"".decode('utf-8'), 142 message_type=None, enum_type=None, containing_type=None, 143 is_extension=False, extension_scope=None, 144 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 145 _descriptor.FieldDescriptor( 146 name='version', full_name='chromiumos.test.api.GetLibRequest.version', index=1, 147 number=2, type=9, cpp_type=9, label=1, 148 has_default_value=False, default_value=b"".decode('utf-8'), 149 message_type=None, enum_type=None, containing_type=None, 150 is_extension=False, extension_scope=None, 151 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 152 _descriptor.FieldDescriptor( 153 name='options', full_name='chromiumos.test.api.GetLibRequest.options', index=2, 154 number=3, type=9, cpp_type=9, label=3, 155 has_default_value=False, default_value=[], 156 message_type=None, enum_type=None, containing_type=None, 157 is_extension=False, extension_scope=None, 158 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 159 ], 160 extensions=[ 161 ], 162 nested_types=[], 163 enum_types=[ 164 ], 165 serialized_options=None, 166 is_extendable=False, 167 syntax='proto3', 168 extension_ranges=[], 169 oneofs=[ 170 ], 171 serialized_start=281, 172 serialized_end=344, 173) 174 175 176_GETLIBRESPONSE = _descriptor.Descriptor( 177 name='GetLibResponse', 178 full_name='chromiumos.test.api.GetLibResponse', 179 filename=None, 180 file=DESCRIPTOR, 181 containing_type=None, 182 create_key=_descriptor._internal_create_key, 183 fields=[ 184 _descriptor.FieldDescriptor( 185 name='success', full_name='chromiumos.test.api.GetLibResponse.success', index=0, 186 number=1, type=11, cpp_type=10, label=1, 187 has_default_value=False, default_value=None, 188 message_type=None, enum_type=None, containing_type=None, 189 is_extension=False, extension_scope=None, 190 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 191 _descriptor.FieldDescriptor( 192 name='failure', full_name='chromiumos.test.api.GetLibResponse.failure', index=1, 193 number=2, type=11, cpp_type=10, label=1, 194 has_default_value=False, default_value=None, 195 message_type=None, enum_type=None, containing_type=None, 196 is_extension=False, extension_scope=None, 197 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 198 ], 199 extensions=[ 200 ], 201 nested_types=[], 202 enum_types=[ 203 ], 204 serialized_options=None, 205 is_extendable=False, 206 syntax='proto3', 207 extension_ranges=[], 208 oneofs=[ 209 _descriptor.OneofDescriptor( 210 name='outcome', full_name='chromiumos.test.api.GetLibResponse.outcome', 211 index=0, containing_type=None, 212 create_key=_descriptor._internal_create_key, 213 fields=[]), 214 ], 215 serialized_start=347, 216 serialized_end=484, 217) 218 219 220_KILLLIBREQUEST = _descriptor.Descriptor( 221 name='KillLibRequest', 222 full_name='chromiumos.test.api.KillLibRequest', 223 filename=None, 224 file=DESCRIPTOR, 225 containing_type=None, 226 create_key=_descriptor._internal_create_key, 227 fields=[ 228 _descriptor.FieldDescriptor( 229 name='id', full_name='chromiumos.test.api.KillLibRequest.id', index=0, 230 number=1, type=9, cpp_type=9, label=1, 231 has_default_value=False, default_value=b"".decode('utf-8'), 232 message_type=None, enum_type=None, containing_type=None, 233 is_extension=False, extension_scope=None, 234 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 235 _descriptor.FieldDescriptor( 236 name='options', full_name='chromiumos.test.api.KillLibRequest.options', index=1, 237 number=2, type=9, cpp_type=9, label=1, 238 has_default_value=False, default_value=b"".decode('utf-8'), 239 message_type=None, enum_type=None, containing_type=None, 240 is_extension=False, extension_scope=None, 241 serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), 242 ], 243 extensions=[ 244 ], 245 nested_types=[], 246 enum_types=[ 247 ], 248 serialized_options=None, 249 is_extendable=False, 250 syntax='proto3', 251 extension_ranges=[], 252 oneofs=[ 253 ], 254 serialized_start=486, 255 serialized_end=531, 256) 257 258 259_KILLLIBRESPONSE = _descriptor.Descriptor( 260 name='KillLibResponse', 261 full_name='chromiumos.test.api.KillLibResponse', 262 filename=None, 263 file=DESCRIPTOR, 264 containing_type=None, 265 create_key=_descriptor._internal_create_key, 266 fields=[ 267 ], 268 extensions=[ 269 ], 270 nested_types=[], 271 enum_types=[ 272 ], 273 serialized_options=None, 274 is_extendable=False, 275 syntax='proto3', 276 extension_ranges=[], 277 oneofs=[ 278 ], 279 serialized_start=533, 280 serialized_end=550, 281) 282 283_GETLIBFAILURE.fields_by_name['reason'].enum_type = _GETLIBFAILURE_REASON 284_GETLIBFAILURE_REASON.containing_type = _GETLIBFAILURE 285_GETLIBRESPONSE.fields_by_name['success'].message_type = _GETLIBSUCCESS 286_GETLIBRESPONSE.fields_by_name['failure'].message_type = _GETLIBFAILURE 287_GETLIBRESPONSE.oneofs_by_name['outcome'].fields.append( 288 _GETLIBRESPONSE.fields_by_name['success']) 289_GETLIBRESPONSE.fields_by_name['success'].containing_oneof = _GETLIBRESPONSE.oneofs_by_name['outcome'] 290_GETLIBRESPONSE.oneofs_by_name['outcome'].fields.append( 291 _GETLIBRESPONSE.fields_by_name['failure']) 292_GETLIBRESPONSE.fields_by_name['failure'].containing_oneof = _GETLIBRESPONSE.oneofs_by_name['outcome'] 293DESCRIPTOR.message_types_by_name['GetLibSuccess'] = _GETLIBSUCCESS 294DESCRIPTOR.message_types_by_name['GetLibFailure'] = _GETLIBFAILURE 295DESCRIPTOR.message_types_by_name['GetLibRequest'] = _GETLIBREQUEST 296DESCRIPTOR.message_types_by_name['GetLibResponse'] = _GETLIBRESPONSE 297DESCRIPTOR.message_types_by_name['KillLibRequest'] = _KILLLIBREQUEST 298DESCRIPTOR.message_types_by_name['KillLibResponse'] = _KILLLIBRESPONSE 299_sym_db.RegisterFileDescriptor(DESCRIPTOR) 300 301GetLibSuccess = _reflection.GeneratedProtocolMessageType('GetLibSuccess', (_message.Message,), { 302 'DESCRIPTOR' : _GETLIBSUCCESS, 303 '__module__' : 'chromiumos.test.api.test_libs_service_pb2' 304 # @@protoc_insertion_point(class_scope:chromiumos.test.api.GetLibSuccess) 305 }) 306_sym_db.RegisterMessage(GetLibSuccess) 307 308GetLibFailure = _reflection.GeneratedProtocolMessageType('GetLibFailure', (_message.Message,), { 309 'DESCRIPTOR' : _GETLIBFAILURE, 310 '__module__' : 'chromiumos.test.api.test_libs_service_pb2' 311 # @@protoc_insertion_point(class_scope:chromiumos.test.api.GetLibFailure) 312 }) 313_sym_db.RegisterMessage(GetLibFailure) 314 315GetLibRequest = _reflection.GeneratedProtocolMessageType('GetLibRequest', (_message.Message,), { 316 'DESCRIPTOR' : _GETLIBREQUEST, 317 '__module__' : 'chromiumos.test.api.test_libs_service_pb2' 318 # @@protoc_insertion_point(class_scope:chromiumos.test.api.GetLibRequest) 319 }) 320_sym_db.RegisterMessage(GetLibRequest) 321 322GetLibResponse = _reflection.GeneratedProtocolMessageType('GetLibResponse', (_message.Message,), { 323 'DESCRIPTOR' : _GETLIBRESPONSE, 324 '__module__' : 'chromiumos.test.api.test_libs_service_pb2' 325 # @@protoc_insertion_point(class_scope:chromiumos.test.api.GetLibResponse) 326 }) 327_sym_db.RegisterMessage(GetLibResponse) 328 329KillLibRequest = _reflection.GeneratedProtocolMessageType('KillLibRequest', (_message.Message,), { 330 'DESCRIPTOR' : _KILLLIBREQUEST, 331 '__module__' : 'chromiumos.test.api.test_libs_service_pb2' 332 # @@protoc_insertion_point(class_scope:chromiumos.test.api.KillLibRequest) 333 }) 334_sym_db.RegisterMessage(KillLibRequest) 335 336KillLibResponse = _reflection.GeneratedProtocolMessageType('KillLibResponse', (_message.Message,), { 337 'DESCRIPTOR' : _KILLLIBRESPONSE, 338 '__module__' : 'chromiumos.test.api.test_libs_service_pb2' 339 # @@protoc_insertion_point(class_scope:chromiumos.test.api.KillLibResponse) 340 }) 341_sym_db.RegisterMessage(KillLibResponse) 342 343 344DESCRIPTOR._options = None 345 346_TESTLIBSSERVICE = _descriptor.ServiceDescriptor( 347 name='TestLibsService', 348 full_name='chromiumos.test.api.TestLibsService', 349 file=DESCRIPTOR, 350 index=0, 351 serialized_options=None, 352 create_key=_descriptor._internal_create_key, 353 serialized_start=553, 354 serialized_end=825, 355 methods=[ 356 _descriptor.MethodDescriptor( 357 name='StartLib', 358 full_name='chromiumos.test.api.TestLibsService.StartLib', 359 index=0, 360 containing_service=None, 361 input_type=_GETLIBREQUEST, 362 output_type=_GETLIBRESPONSE, 363 serialized_options=None, 364 create_key=_descriptor._internal_create_key, 365 ), 366 _descriptor.MethodDescriptor( 367 name='FindLib', 368 full_name='chromiumos.test.api.TestLibsService.FindLib', 369 index=1, 370 containing_service=None, 371 input_type=_GETLIBREQUEST, 372 output_type=_GETLIBRESPONSE, 373 serialized_options=None, 374 create_key=_descriptor._internal_create_key, 375 ), 376 _descriptor.MethodDescriptor( 377 name='KillLib', 378 full_name='chromiumos.test.api.TestLibsService.KillLib', 379 index=2, 380 containing_service=None, 381 input_type=_KILLLIBREQUEST, 382 output_type=_KILLLIBRESPONSE, 383 serialized_options=None, 384 create_key=_descriptor._internal_create_key, 385 ), 386]) 387_sym_db.RegisterServiceDescriptor(_TESTLIBSSERVICE) 388 389DESCRIPTOR.services_by_name['TestLibsService'] = _TESTLIBSSERVICE 390 391# @@protoc_insertion_point(module_scope) 392