# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: components/optimization_guide/proto/model_quality_metadata.proto
# Protobuf Python Version: 7.35.1
"""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,
    7,
    35,
    1,
    '',
    'components/optimization_guide/proto/model_quality_metadata.proto'
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from components.optimization_guide.proto import model_execution_pb2 as components_dot_optimization__guide_dot_proto_dot_model__execution__pb2
from components.optimization_guide.proto import on_device_base_model_metadata_pb2 as components_dot_optimization__guide_dot_proto_dot_on__device__base__model__metadata__pb2
from third_party.metrics_proto import system_profile_pb2 as third__party_dot_metrics__proto_dot_system__profile__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n@components/optimization_guide/proto/model_quality_metadata.proto\x12\x18optimization_guide.proto\x1a\x39\x63omponents/optimization_guide/proto/model_execution.proto\x1aGcomponents/optimization_guide/proto/on_device_base_model_metadata.proto\x1a.third_party/metrics_proto/system_profile.proto\"\xd4\x01\n\x0fLoggingMetadata\x12\x33\n\x0esystem_profile\x18\x01 \x01(\x0b\x32\x1b.metrics.SystemProfileProto\x12Q\n\x18on_device_system_profile\x18\x02 \x01(\x0b\x32/.optimization_guide.proto.OnDeviceSystemProfile\x12\x11\n\tclient_id\x18\x03 \x01(\x03\x12 \n\x18is_likely_dogfood_client\x18\x05 \x01(\x08J\x04\x08\x04\x10\x05\"^\n\x15OnDeviceSystemProfile\x12\x45\n\x11performance_class\x18\x01 \x01(\x0e\x32*.optimization_guide.proto.PerformanceClass\"\xff\x01\n\x12ModelExecutionInfo\x12\\\n\x1eon_device_model_execution_info\x18\x02 \x01(\x0b\x32\x34.optimization_guide.proto.OnDeviceModelExecutionInfo\x12?\n\x0e\x65rror_response\x18\x03 \x01(\x0b\x32\'.optimization_guide.proto.ErrorResponse\x12\"\n\x1amodel_execution_error_enum\x18\x07 \x01(\r\x12\x14\n\x0c\x65xecution_id\x18\x04 \x01(\tJ\x04\x08\x01\x10\x02J\x04\x08\x05\x10\x06J\x04\x08\x06\x10\x07\"\xc2\x01\n\x1aOnDeviceModelExecutionInfo\x12U\n\x0f\x65xecution_infos\x18\x02 \x03(\x0b\x32<.optimization_guide.proto.InternalOnDeviceModelExecutionInfo\x12G\n\x0emodel_versions\x18\x03 \x01(\x0b\x32/.optimization_guide.proto.OnDeviceModelVersionsJ\x04\x08\x01\x10\x02\"\x9a\x01\n\x15OnDeviceModelVersions\x12^\n\x1fon_device_model_service_version\x18\x01 \x01(\x0b\x32\x35.optimization_guide.proto.OnDeviceModelServiceVersion\x12!\n\x19text_safety_model_version\x18\x02 \x01(\x03\"\xb6\x01\n\x1bOnDeviceModelServiceVersion\x12\x19\n\x11\x63omponent_version\x18\x01 \x01(\t\x12Z\n\x1don_device_base_model_metadata\x18\x02 \x01(\x0b\x32\x33.optimization_guide.proto.OnDeviceBaseModelMetadata\x12 \n\x18model_adaptation_version\x18\x03 \x01(\x03\"\xae\x01\n\"InternalOnDeviceModelExecutionInfo\x12\x42\n\x07request\x18\x01 \x01(\x0b\x32\x31.optimization_guide.proto.InternalOnDeviceRequest\x12\x44\n\x08response\x18\x02 \x01(\x0b\x32\x32.optimization_guide.proto.InternalOnDeviceResponse\"\xdd\x01\n\x17InternalOnDeviceRequest\x12`\n\x1fon_device_model_service_request\x18\x01 \x01(\x0b\x32\x35.optimization_guide.proto.OnDeviceModelServiceRequestH\x00\x12U\n\x19text_safety_model_request\x18\x02 \x01(\x0b\x32\x30.optimization_guide.proto.TextSafetyModelRequestH\x00\x42\t\n\x07request\"\xe3\x01\n\x18InternalOnDeviceResponse\x12\x62\n on_device_model_service_response\x18\x01 \x01(\x0b\x32\x36.optimization_guide.proto.OnDeviceModelServiceResponseH\x00\x12W\n\x1atext_safety_model_response\x18\x02 \x01(\x0b\x32\x31.optimization_guide.proto.TextSafetyModelResponseH\x00\x42\n\n\x08response\"\xf0\x01\n\x1bOnDeviceModelServiceRequest\x12\x1c\n\x14input_context_string\x18\x01 \x01(\t\x12*\n\"input_context_num_tokens_processed\x18\x02 \x01(\r\x12\x18\n\x10\x65xecution_string\x18\x03 \x01(\t\x12&\n\x1e\x65xecution_num_tokens_processed\x18\x04 \x01(\r\x12\x45\n=time_from_input_context_processed_to_request_initiated_millis\x18\x05 \x01(\x03\"\xe2\x01\n\x1cOnDeviceModelServiceResponse\x12\x15\n\routput_string\x18\x01 \x01(\t\x12%\n\x1dtime_to_first_response_millis\x18\x02 \x01(\x03\x12!\n\x19time_to_completion_millis\x18\x03 \x01(\x03\x12L\n\x06status\x18\x04 \x01(\x0e\x32<.optimization_guide.proto.OnDeviceModelServiceResponseStatus\x12\x13\n\x0bhas_repeats\x18\x05 \x01(\x08\"3\n\x16TextSafetyModelRequest\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x8d\x01\n\x17TextSafetyModelResponse\x12\x0e\n\x06scores\x18\x01 \x03(\x02\x12\x11\n\tis_unsafe\x18\x02 \x01(\x08\x12\x1b\n\x13server_execution_id\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\x12\x1b\n\x13language_confidence\x18\x05 \x01(\x02*\xcb\x01\n\x10PerformanceClass\x12!\n\x1dPERFORMANCE_CLASS_UNSPECIFIED\x10\x00\x12\x1e\n\x1aPERFORMANCE_CLASS_VERY_LOW\x10\x01\x12\x19\n\x15PERFORMANCE_CLASS_LOW\x10\x02\x12\x1c\n\x18PERFORMANCE_CLASS_MEDIUM\x10\x03\x12\x1a\n\x16PERFORMANCE_CLASS_HIGH\x10\x04\x12\x1f\n\x1bPERFORMANCE_CLASS_VERY_HIGH\x10\x05*\xc9\x01\n\"OnDeviceModelServiceResponseStatus\x12\x37\n3ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_UNSPECIFIED\x10\x00\x12\x33\n/ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_SUCCESS\x10\x01\x12\x35\n1ON_DEVICE_MODEL_SERVICE_RESPONSE_STATUS_RETRACTED\x10\x02\x42O\n0org.chromium.components.optimization_guide.protoB\x19ModelQualityMetadataProtoH\x03\x62\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'components.optimization_guide.proto.model_quality_metadata_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  _globals['DESCRIPTOR']._loaded_options = None
  _globals['DESCRIPTOR']._serialized_options = b'\n0org.chromium.components.optimization_guide.protoB\031ModelQualityMetadataProtoH\003'
  _globals['_PERFORMANCECLASS']._serialized_start=2683
  _globals['_PERFORMANCECLASS']._serialized_end=2886
  _globals['_ONDEVICEMODELSERVICERESPONSESTATUS']._serialized_start=2889
  _globals['_ONDEVICEMODELSERVICERESPONSESTATUS']._serialized_end=3090
  _globals['_LOGGINGMETADATA']._serialized_start=275
  _globals['_LOGGINGMETADATA']._serialized_end=487
  _globals['_ONDEVICESYSTEMPROFILE']._serialized_start=489
  _globals['_ONDEVICESYSTEMPROFILE']._serialized_end=583
  _globals['_MODELEXECUTIONINFO']._serialized_start=586
  _globals['_MODELEXECUTIONINFO']._serialized_end=841
  _globals['_ONDEVICEMODELEXECUTIONINFO']._serialized_start=844
  _globals['_ONDEVICEMODELEXECUTIONINFO']._serialized_end=1038
  _globals['_ONDEVICEMODELVERSIONS']._serialized_start=1041
  _globals['_ONDEVICEMODELVERSIONS']._serialized_end=1195
  _globals['_ONDEVICEMODELSERVICEVERSION']._serialized_start=1198
  _globals['_ONDEVICEMODELSERVICEVERSION']._serialized_end=1380
  _globals['_INTERNALONDEVICEMODELEXECUTIONINFO']._serialized_start=1383
  _globals['_INTERNALONDEVICEMODELEXECUTIONINFO']._serialized_end=1557
  _globals['_INTERNALONDEVICEREQUEST']._serialized_start=1560
  _globals['_INTERNALONDEVICEREQUEST']._serialized_end=1781
  _globals['_INTERNALONDEVICERESPONSE']._serialized_start=1784
  _globals['_INTERNALONDEVICERESPONSE']._serialized_end=2011
  _globals['_ONDEVICEMODELSERVICEREQUEST']._serialized_start=2014
  _globals['_ONDEVICEMODELSERVICEREQUEST']._serialized_end=2254
  _globals['_ONDEVICEMODELSERVICERESPONSE']._serialized_start=2257
  _globals['_ONDEVICEMODELSERVICERESPONSE']._serialized_end=2483
  _globals['_TEXTSAFETYMODELREQUEST']._serialized_start=2485
  _globals['_TEXTSAFETYMODELREQUEST']._serialized_end=2536
  _globals['_TEXTSAFETYMODELRESPONSE']._serialized_start=2539
  _globals['_TEXTSAFETYMODELRESPONSE']._serialized_end=2680
# @@protoc_insertion_point(module_scope)
