| # -*- coding: utf-8 -*- |
| # Generated by the protocol buffer compiler. DO NOT EDIT! |
| # NO CHECKED-IN PROTOBUF GENCODE |
| # source: legion.proto |
| # Protobuf Python Version: 6.33.0 |
| """Generated protocol buffer code.""" |
| from google.protobuf import descriptor as _descriptor |
| from google.protobuf import descriptor_pool as _descriptor_pool |
| from google.protobuf import runtime_version as _runtime_version |
| from google.protobuf import symbol_database as _symbol_database |
| from google.protobuf.internal import builder as _builder |
| _runtime_version.ValidateProtobufRuntimeVersion( |
| _runtime_version.Domain.PUBLIC, |
| 6, |
| 33, |
| 0, |
| '', |
| 'legion.proto' |
| ) |
| # @@protoc_insertion_point(imports) |
| |
| _sym_db = _symbol_database.Default() |
| |
| |
| |
| |
| DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0clegion.proto\x12\x0clegion.proto\"\xa9\x01\n\rLegionRequest\x12/\n\x0c\x66\x65\x61ture_name\x18\x01 \x01(\x0e\x32\x19.legion.proto.FeatureName\x12H\n\x18generate_content_request\x18\x04 \x01(\x0b\x32$.legion.proto.GenerateContentRequestH\x00\x12\x12\n\nrequest_id\x18\x05 \x01(\x05\x42\t\n\x07request\"|\n\x0eLegionResponse\x12J\n\x19generate_content_response\x18\x03 \x01(\x0b\x32%.legion.proto.GenerateContentResponseH\x00\x12\x12\n\nrequest_id\x18\x04 \x01(\x05\x42\n\n\x08response\"P\n\x16GenerateContentRequest\x12\r\n\x05model\x18\x01 \x01(\t\x12\'\n\x08\x63ontents\x18\x02 \x03(\x0b\x32\x15.legion.proto.Content\":\n\x07\x43ontent\x12\x0c\n\x04role\x18\x01 \x01(\t\x12!\n\x05parts\x18\x02 \x03(\x0b\x32\x12.legion.proto.Part\"I\n\x04Part\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12)\n\x0binline_data\x18\x02 \x01(\x0b\x32\x12.legion.proto.BlobH\x00\x42\x06\n\x04\x64\x61ta\">\n\x04\x42lob\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x15\n\rwill_continue\x18\x03 \x01(\x08\"F\n\x17GenerateContentResponse\x12+\n\ncandidates\x18\x01 \x03(\x0b\x32\x17.legion.proto.Candidate\"\xeb\x01\n\tCandidate\x12\r\n\x05index\x18\x01 \x01(\x05\x12&\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x15.legion.proto.Content\x12;\n\rfinish_reason\x18\x03 \x01(\x0e\x32$.legion.proto.Candidate.FinishReason\"j\n\x0c\x46inishReason\x12\x1d\n\x19\x46INISH_REASON_UNSPECIFIED\x10\x00\x12\x08\n\x04STOP\x10\x01\x12\n\n\x06SAFETY\x10\x02\x12\r\n\tBLOCKLIST\x10\x03\x12\x16\n\x12PROHIBITED_CONTENT\x10\x04*\x8a\x01\n\x0b\x46\x65\x61tureName\x12\x1c\n\x18\x46\x45\x41TURE_NAME_UNSPECIFIED\x10\x00\x12-\n)FEATURE_NAME_DEMO_GEMINI_GENERATE_CONTENT\x10\x03\x12.\n)FEATURE_NAME_CHROME_ZERO_STATE_SUGGESTION\x10\xbc\x05\x42\x02H\x03\x62\x08\x65\x64itionsp\xe8\x07') |
| |
| _globals = globals() |
| _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) |
| _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'legion_pb2', _globals) |
| if not _descriptor._USE_C_DESCRIPTORS: |
| _globals['DESCRIPTOR']._loaded_options = None |
| _globals['DESCRIPTOR']._serialized_options = b'H\003' |
| _globals['_FEATURENAME']._serialized_start=920 |
| _globals['_FEATURENAME']._serialized_end=1058 |
| _globals['_LEGIONREQUEST']._serialized_start=31 |
| _globals['_LEGIONREQUEST']._serialized_end=200 |
| _globals['_LEGIONRESPONSE']._serialized_start=202 |
| _globals['_LEGIONRESPONSE']._serialized_end=326 |
| _globals['_GENERATECONTENTREQUEST']._serialized_start=328 |
| _globals['_GENERATECONTENTREQUEST']._serialized_end=408 |
| _globals['_CONTENT']._serialized_start=410 |
| _globals['_CONTENT']._serialized_end=468 |
| _globals['_PART']._serialized_start=470 |
| _globals['_PART']._serialized_end=543 |
| _globals['_BLOB']._serialized_start=545 |
| _globals['_BLOB']._serialized_end=607 |
| _globals['_GENERATECONTENTRESPONSE']._serialized_start=609 |
| _globals['_GENERATECONTENTRESPONSE']._serialized_end=679 |
| _globals['_CANDIDATE']._serialized_start=682 |
| _globals['_CANDIDATE']._serialized_end=917 |
| _globals['_CANDIDATE_FINISHREASON']._serialized_start=811 |
| _globals['_CANDIDATE_FINISHREASON']._serialized_end=917 |
| # @@protoc_insertion_point(module_scope) |