# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: models.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import common_types_pb2 as common__types__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='models.proto', package='optimization_guide.proto', syntax='proto2', serialized_options=b'\n0org.chromium.components.optimization_guide.protoB\013ModelsProtoH\003', create_key=_descriptor._internal_create_key, serialized_pb=b'\n\x0cmodels.proto\x12\x18optimization_guide.proto\x1a\x12\x63ommon_types.proto\"\xe7\x01\n\x05Model\x12?\n\rdecision_tree\x18\x01 \x01(\x0b\x32&.optimization_guide.proto.DecisionTreeH\x00\x12\x36\n\x08\x65nsemble\x18\x02 \x01(\x0b\x32\".optimization_guide.proto.EnsembleH\x00\x12\x16\n\x0c\x64ownload_url\x18\x05 \x01(\tH\x00\x12\x38\n\tthreshold\x18{ \x01(\x0b\x32%.optimization_guide.proto.DoubleValueB\x07\n\x05modelJ\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05\"\x95\x01\n\x08\x45nsemble\x12:\n\x07members\x18\x64 \x03(\x0b\x32).optimization_guide.proto.Ensemble.Member\x1a;\n\x06Member\x12\x31\n\x08submodel\x18\x01 \x01(\x0b\x32\x1f.optimization_guide.proto.ModelJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04J\x04\x08\x04\x10\x05\"W\n\x0c\x44\x65\x63isionTree\x12\x31\n\x05nodes\x18\x01 \x03(\x0b\x32\".optimization_guide.proto.TreeNode\x12\x0e\n\x06weight\x18\x03 \x01(\x02J\x04\x08\x02\x10\x03\"\xb8\x02\n\x08TreeNode\x12\x35\n\x07node_id\x18\x01 \x01(\x0b\x32$.optimization_guide.proto.Int32Value\x12\x33\n\x05\x64\x65pth\x18\x02 \x01(\x0b\x32$.optimization_guide.proto.Int32Value\x12:\n\x0csubtree_size\x18\x03 \x01(\x0b\x32$.optimization_guide.proto.Int32Value\x12;\n\x0b\x62inary_node\x18\x04 \x01(\x0b\x32$.optimization_guide.proto.BinaryNodeH\x00\x12.\n\x04leaf\x18\x05 \x01(\x0b\x32\x1e.optimization_guide.proto.LeafH\x00\x42\x0b\n\tnode_typeJ\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08\"\x83\x02\n\nBinaryNode\x12;\n\rleft_child_id\x18\x01 \x01(\x0b\x32$.optimization_guide.proto.Int32Value\x12<\n\x0eright_child_id\x18\x02 \x01(\x0b\x32$.optimization_guide.proto.Int32Value\x12L\n\x1ainequality_left_child_test\x18\x04 \x01(\x0b\x32(.optimization_guide.proto.InequalityTest\" \n\tDirection\x12\x08\n\x04LEFT\x10\x00\x12\t\n\x05RIGHT\x10\x01J\x04\x08\x03\x10\x04J\x04\x08\x05\x10\x06\"8\n\x06Vector\x12.\n\x05value\x18\x01 \x03(\x0b\x32\x1f.optimization_guide.proto.Value\"D\n\x04Leaf\x12\x30\n\x06vector\x18\x01 \x01(\x0b\x32 .optimization_guide.proto.VectorJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04\"D\n\tFeatureId\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32%.optimization_guide.proto.StringValueJ\x04\x08\x02\x10\x03\"\x92\x02\n\x0eInequalityTest\x12\x37\n\nfeature_id\x18\x01 \x01(\x0b\x32#.optimization_guide.proto.FeatureId\x12;\n\x04type\x18\x02 \x01(\x0e\x32-.optimization_guide.proto.InequalityTest.Type\x12\x32\n\tthreshold\x18\x03 \x01(\x0b\x32\x1f.optimization_guide.proto.Value\"P\n\x04Type\x12\x11\n\rLESS_OR_EQUAL\x10\x00\x12\r\n\tLESS_THAN\x10\x01\x12\x14\n\x10GREATER_OR_EQUAL\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03J\x04\x08\x04\x10\x05\"s\n\x05Value\x12\x15\n\x0b\x66loat_value\x18\x01 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x12\x15\n\x0bint32_value\x18\x03 \x01(\x05H\x00\x12\x15\n\x0bint64_value\x18\x04 \x01(\x03H\x00\x42\x07\n\x05valueJ\x04\x08\x05\x10\x06\"\x1b\n\nInt32Value\x12\r\n\x05value\x18\x01 \x01(\x05\"\x1c\n\x0bStringValue\x12\r\n\x05value\x18\x01 \x01(\t\"\x1c\n\x0b\x44oubleValue\x12\r\n\x05value\x18\x01 \x01(\x01\"\xed\x01\n\x10GetModelsRequest\x12=\n\x10requested_models\x18\x01 \x03(\x0b\x32#.optimization_guide.proto.ModelInfo\x12\x41\n\x0frequest_context\x18\x03 \x01(\x0e\x32(.optimization_guide.proto.RequestContext\x12\x41\n\x13\x61\x63tive_field_trials\x18\x04 \x03(\x0b\x32$.optimization_guide.proto.FieldTrial\x12\x0e\n\x06locale\x18\x05 \x01(\tJ\x04\x08\x02\x10\x03\"\x98\x01\n\x11GetModelsResponse\x12\x39\n\x06models\x18\x01 \x03(\x0b\x32).optimization_guide.proto.PredictionModel\x12H\n\x13host_model_features\x18\x02 \x03(\x0b\x32+.optimization_guide.proto.HostModelFeatures\"z\n\x0fPredictionModel\x12\x37\n\nmodel_info\x18\x01 \x01(\x0b\x32#.optimization_guide.proto.ModelInfo\x12.\n\x05model\x18\x02 \x01(\x0b\x32\x1f.optimization_guide.proto.Model\"(\n\x13\x41\x64\x64itionalModelFile\x12\x11\n\tfile_path\x18\x01 \x01(\t\"\xd8\x02\n\tModelInfo\x12I\n\x13optimization_target\x18\x01 \x01(\x0e\x32,.optimization_guide.proto.OptimizationTarget\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x42\n\x15supported_model_types\x18\x04 \x03(\x0e\x32#.optimization_guide.proto.ModelType\x12%\n\x1dsupported_host_model_features\x18\x05 \x03(\t\x12G\n\x10\x61\x64\x64itional_files\x18\x07 \x03(\x0b\x32-.optimization_guide.proto.AdditionalModelFile\x12\x35\n\x0emodel_metadata\x18\x06 \x01(\x0b\x32\x1d.optimization_guide.proto.AnyJ\x04\x08\x03\x10\x04\"a\n\x11HostModelFeatures\x12\x0c\n\x04host\x18\x01 \x01(\t\x12>\n\x0emodel_features\x18\x02 \x03(\x0b\x32&.optimization_guide.proto.ModelFeature\"d\n\x0cModelFeature\x12\x14\n\x0c\x66\x65\x61ture_name\x18\x01 \x01(\t\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x12\x15\n\x0bint64_value\x18\x03 \x01(\x03H\x00\x42\x0f\n\rfeature_value*\x88\x03\n\x12OptimizationTarget\x12\x1f\n\x1bOPTIMIZATION_TARGET_UNKNOWN\x10\x00\x12)\n%OPTIMIZATION_TARGET_PAINFUL_PAGE_LOAD\x10\x01\x12*\n&OPTIMIZATION_TARGET_LANGUAGE_DETECTION\x10\x02\x12#\n\x1fOPTIMIZATION_TARGET_PAGE_TOPICS\x10\x03\x12,\n(OPTIMIZATION_TARGET_SEGMENTATION_NEW_TAB\x10\x04\x12*\n&OPTIMIZATION_TARGET_SEGMENTATION_SHARE\x10\x05\x12*\n&OPTIMIZATION_TARGET_SEGMENTATION_VOICE\x10\x06\x12(\n$OPTIMIZATION_TARGET_MODEL_VALIDATION\x10\x07\x12%\n!OPTIMIZATION_TARGET_PAGE_ENTITIES\x10\x08*}\n\tModelType\x12\x16\n\x12MODEL_TYPE_UNKNOWN\x10\x00\x12\x1c\n\x18MODEL_TYPE_DECISION_TREE\x10\x01\x12\x1b\n\x17MODEL_TYPE_TFLITE_2_3_0\x10\x02\x12\x1d\n\x19MODEL_TYPE_TFLITE_2_3_0_1\x10\x03\x42\x41\n0org.chromium.components.optimization_guide.protoB\x0bModelsProtoH\x03' , dependencies=[common__types__pb2.DESCRIPTOR,]) _OPTIMIZATIONTARGET = _descriptor.EnumDescriptor( name='OptimizationTarget', full_name='optimization_guide.proto.OptimizationTarget', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_UNKNOWN', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_PAINFUL_PAGE_LOAD', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_LANGUAGE_DETECTION', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_PAGE_TOPICS', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_SEGMENTATION_NEW_TAB', index=4, number=4, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_SEGMENTATION_SHARE', index=5, number=5, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_SEGMENTATION_VOICE', index=6, number=6, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_MODEL_VALIDATION', index=7, number=7, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='OPTIMIZATION_TARGET_PAGE_ENTITIES', index=8, number=8, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=2905, serialized_end=3297, ) _sym_db.RegisterEnumDescriptor(_OPTIMIZATIONTARGET) OptimizationTarget = enum_type_wrapper.EnumTypeWrapper(_OPTIMIZATIONTARGET) _MODELTYPE = _descriptor.EnumDescriptor( name='ModelType', full_name='optimization_guide.proto.ModelType', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='MODEL_TYPE_UNKNOWN', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='MODEL_TYPE_DECISION_TREE', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='MODEL_TYPE_TFLITE_2_3_0', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='MODEL_TYPE_TFLITE_2_3_0_1', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=3299, serialized_end=3424, ) _sym_db.RegisterEnumDescriptor(_MODELTYPE) ModelType = enum_type_wrapper.EnumTypeWrapper(_MODELTYPE) OPTIMIZATION_TARGET_UNKNOWN = 0 OPTIMIZATION_TARGET_PAINFUL_PAGE_LOAD = 1 OPTIMIZATION_TARGET_LANGUAGE_DETECTION = 2 OPTIMIZATION_TARGET_PAGE_TOPICS = 3 OPTIMIZATION_TARGET_SEGMENTATION_NEW_TAB = 4 OPTIMIZATION_TARGET_SEGMENTATION_SHARE = 5 OPTIMIZATION_TARGET_SEGMENTATION_VOICE = 6 OPTIMIZATION_TARGET_MODEL_VALIDATION = 7 OPTIMIZATION_TARGET_PAGE_ENTITIES = 8 MODEL_TYPE_UNKNOWN = 0 MODEL_TYPE_DECISION_TREE = 1 MODEL_TYPE_TFLITE_2_3_0 = 2 MODEL_TYPE_TFLITE_2_3_0_1 = 3 _BINARYNODE_DIRECTION = _descriptor.EnumDescriptor( name='Direction', full_name='optimization_guide.proto.BinaryNode.Direction', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='LEFT', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='RIGHT', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=1068, serialized_end=1100, ) _sym_db.RegisterEnumDescriptor(_BINARYNODE_DIRECTION) _INEQUALITYTEST_TYPE = _descriptor.EnumDescriptor( name='Type', full_name='optimization_guide.proto.InequalityTest.Type', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='LESS_OR_EQUAL', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='LESS_THAN', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='GREATER_OR_EQUAL', index=2, number=2, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='GREATER_THAN', index=3, number=3, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=1501, serialized_end=1581, ) _sym_db.RegisterEnumDescriptor(_INEQUALITYTEST_TYPE) _MODEL = _descriptor.Descriptor( name='Model', full_name='optimization_guide.proto.Model', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='decision_tree', full_name='optimization_guide.proto.Model.decision_tree', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='ensemble', full_name='optimization_guide.proto.Model.ensemble', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='download_url', full_name='optimization_guide.proto.Model.download_url', index=2, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='threshold', full_name='optimization_guide.proto.Model.threshold', index=3, number=123, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='model', full_name='optimization_guide.proto.Model.model', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=63, serialized_end=294, ) _ENSEMBLE_MEMBER = _descriptor.Descriptor( name='Member', full_name='optimization_guide.proto.Ensemble.Member', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='submodel', full_name='optimization_guide.proto.Ensemble.Member.submodel', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=369, serialized_end=428, ) _ENSEMBLE = _descriptor.Descriptor( name='Ensemble', full_name='optimization_guide.proto.Ensemble', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='members', full_name='optimization_guide.proto.Ensemble.members', index=0, number=100, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_ENSEMBLE_MEMBER, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=297, serialized_end=446, ) _DECISIONTREE = _descriptor.Descriptor( name='DecisionTree', full_name='optimization_guide.proto.DecisionTree', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='nodes', full_name='optimization_guide.proto.DecisionTree.nodes', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='weight', full_name='optimization_guide.proto.DecisionTree.weight', index=1, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=448, serialized_end=535, ) _TREENODE = _descriptor.Descriptor( name='TreeNode', full_name='optimization_guide.proto.TreeNode', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='node_id', full_name='optimization_guide.proto.TreeNode.node_id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='depth', full_name='optimization_guide.proto.TreeNode.depth', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='subtree_size', full_name='optimization_guide.proto.TreeNode.subtree_size', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='binary_node', full_name='optimization_guide.proto.TreeNode.binary_node', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='leaf', full_name='optimization_guide.proto.TreeNode.leaf', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='node_type', full_name='optimization_guide.proto.TreeNode.node_type', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=538, serialized_end=850, ) _BINARYNODE = _descriptor.Descriptor( name='BinaryNode', full_name='optimization_guide.proto.BinaryNode', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='left_child_id', full_name='optimization_guide.proto.BinaryNode.left_child_id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='right_child_id', full_name='optimization_guide.proto.BinaryNode.right_child_id', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='inequality_left_child_test', full_name='optimization_guide.proto.BinaryNode.inequality_left_child_test', index=2, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ _BINARYNODE_DIRECTION, ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=853, serialized_end=1112, ) _VECTOR = _descriptor.Descriptor( name='Vector', full_name='optimization_guide.proto.Vector', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='value', full_name='optimization_guide.proto.Vector.value', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1114, serialized_end=1170, ) _LEAF = _descriptor.Descriptor( name='Leaf', full_name='optimization_guide.proto.Leaf', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='vector', full_name='optimization_guide.proto.Leaf.vector', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1172, serialized_end=1240, ) _FEATUREID = _descriptor.Descriptor( name='FeatureId', full_name='optimization_guide.proto.FeatureId', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='id', full_name='optimization_guide.proto.FeatureId.id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1242, serialized_end=1310, ) _INEQUALITYTEST = _descriptor.Descriptor( name='InequalityTest', full_name='optimization_guide.proto.InequalityTest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='feature_id', full_name='optimization_guide.proto.InequalityTest.feature_id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='type', full_name='optimization_guide.proto.InequalityTest.type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='threshold', full_name='optimization_guide.proto.InequalityTest.threshold', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ _INEQUALITYTEST_TYPE, ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1313, serialized_end=1587, ) _VALUE = _descriptor.Descriptor( name='Value', full_name='optimization_guide.proto.Value', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='float_value', full_name='optimization_guide.proto.Value.float_value', index=0, number=1, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='double_value', full_name='optimization_guide.proto.Value.double_value', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='int32_value', full_name='optimization_guide.proto.Value.int32_value', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='int64_value', full_name='optimization_guide.proto.Value.int64_value', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='value', full_name='optimization_guide.proto.Value.value', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=1589, serialized_end=1704, ) _INT32VALUE = _descriptor.Descriptor( name='Int32Value', full_name='optimization_guide.proto.Int32Value', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='value', full_name='optimization_guide.proto.Int32Value.value', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1706, serialized_end=1733, ) _STRINGVALUE = _descriptor.Descriptor( name='StringValue', full_name='optimization_guide.proto.StringValue', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='value', full_name='optimization_guide.proto.StringValue.value', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1735, serialized_end=1763, ) _DOUBLEVALUE = _descriptor.Descriptor( name='DoubleValue', full_name='optimization_guide.proto.DoubleValue', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='value', full_name='optimization_guide.proto.DoubleValue.value', index=0, number=1, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1765, serialized_end=1793, ) _GETMODELSREQUEST = _descriptor.Descriptor( name='GetModelsRequest', full_name='optimization_guide.proto.GetModelsRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='requested_models', full_name='optimization_guide.proto.GetModelsRequest.requested_models', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='request_context', full_name='optimization_guide.proto.GetModelsRequest.request_context', index=1, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='active_field_trials', full_name='optimization_guide.proto.GetModelsRequest.active_field_trials', index=2, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='locale', full_name='optimization_guide.proto.GetModelsRequest.locale', index=3, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=1796, serialized_end=2033, ) _GETMODELSRESPONSE = _descriptor.Descriptor( name='GetModelsResponse', full_name='optimization_guide.proto.GetModelsResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='models', full_name='optimization_guide.proto.GetModelsResponse.models', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='host_model_features', full_name='optimization_guide.proto.GetModelsResponse.host_model_features', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=2036, serialized_end=2188, ) _PREDICTIONMODEL = _descriptor.Descriptor( name='PredictionModel', full_name='optimization_guide.proto.PredictionModel', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='model_info', full_name='optimization_guide.proto.PredictionModel.model_info', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='model', full_name='optimization_guide.proto.PredictionModel.model', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=2190, serialized_end=2312, ) _ADDITIONALMODELFILE = _descriptor.Descriptor( name='AdditionalModelFile', full_name='optimization_guide.proto.AdditionalModelFile', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='file_path', full_name='optimization_guide.proto.AdditionalModelFile.file_path', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=2314, serialized_end=2354, ) _MODELINFO = _descriptor.Descriptor( name='ModelInfo', full_name='optimization_guide.proto.ModelInfo', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='optimization_target', full_name='optimization_guide.proto.ModelInfo.optimization_target', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='version', full_name='optimization_guide.proto.ModelInfo.version', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='supported_model_types', full_name='optimization_guide.proto.ModelInfo.supported_model_types', index=2, number=4, type=14, cpp_type=8, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='supported_host_model_features', full_name='optimization_guide.proto.ModelInfo.supported_host_model_features', index=3, number=5, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='additional_files', full_name='optimization_guide.proto.ModelInfo.additional_files', index=4, number=7, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='model_metadata', full_name='optimization_guide.proto.ModelInfo.model_metadata', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=2357, serialized_end=2701, ) _HOSTMODELFEATURES = _descriptor.Descriptor( name='HostModelFeatures', full_name='optimization_guide.proto.HostModelFeatures', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='host', full_name='optimization_guide.proto.HostModelFeatures.host', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='model_features', full_name='optimization_guide.proto.HostModelFeatures.model_features', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=2703, serialized_end=2800, ) _MODELFEATURE = _descriptor.Descriptor( name='ModelFeature', full_name='optimization_guide.proto.ModelFeature', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='feature_name', full_name='optimization_guide.proto.ModelFeature.feature_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='double_value', full_name='optimization_guide.proto.ModelFeature.double_value', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='int64_value', full_name='optimization_guide.proto.ModelFeature.int64_value', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='feature_value', full_name='optimization_guide.proto.ModelFeature.feature_value', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=2802, serialized_end=2902, ) _MODEL.fields_by_name['decision_tree'].message_type = _DECISIONTREE _MODEL.fields_by_name['ensemble'].message_type = _ENSEMBLE _MODEL.fields_by_name['threshold'].message_type = _DOUBLEVALUE _MODEL.oneofs_by_name['model'].fields.append( _MODEL.fields_by_name['decision_tree']) _MODEL.fields_by_name['decision_tree'].containing_oneof = _MODEL.oneofs_by_name['model'] _MODEL.oneofs_by_name['model'].fields.append( _MODEL.fields_by_name['ensemble']) _MODEL.fields_by_name['ensemble'].containing_oneof = _MODEL.oneofs_by_name['model'] _MODEL.oneofs_by_name['model'].fields.append( _MODEL.fields_by_name['download_url']) _MODEL.fields_by_name['download_url'].containing_oneof = _MODEL.oneofs_by_name['model'] _ENSEMBLE_MEMBER.fields_by_name['submodel'].message_type = _MODEL _ENSEMBLE_MEMBER.containing_type = _ENSEMBLE _ENSEMBLE.fields_by_name['members'].message_type = _ENSEMBLE_MEMBER _DECISIONTREE.fields_by_name['nodes'].message_type = _TREENODE _TREENODE.fields_by_name['node_id'].message_type = _INT32VALUE _TREENODE.fields_by_name['depth'].message_type = _INT32VALUE _TREENODE.fields_by_name['subtree_size'].message_type = _INT32VALUE _TREENODE.fields_by_name['binary_node'].message_type = _BINARYNODE _TREENODE.fields_by_name['leaf'].message_type = _LEAF _TREENODE.oneofs_by_name['node_type'].fields.append( _TREENODE.fields_by_name['binary_node']) _TREENODE.fields_by_name['binary_node'].containing_oneof = _TREENODE.oneofs_by_name['node_type'] _TREENODE.oneofs_by_name['node_type'].fields.append( _TREENODE.fields_by_name['leaf']) _TREENODE.fields_by_name['leaf'].containing_oneof = _TREENODE.oneofs_by_name['node_type'] _BINARYNODE.fields_by_name['left_child_id'].message_type = _INT32VALUE _BINARYNODE.fields_by_name['right_child_id'].message_type = _INT32VALUE _BINARYNODE.fields_by_name['inequality_left_child_test'].message_type = _INEQUALITYTEST _BINARYNODE_DIRECTION.containing_type = _BINARYNODE _VECTOR.fields_by_name['value'].message_type = _VALUE _LEAF.fields_by_name['vector'].message_type = _VECTOR _FEATUREID.fields_by_name['id'].message_type = _STRINGVALUE _INEQUALITYTEST.fields_by_name['feature_id'].message_type = _FEATUREID _INEQUALITYTEST.fields_by_name['type'].enum_type = _INEQUALITYTEST_TYPE _INEQUALITYTEST.fields_by_name['threshold'].message_type = _VALUE _INEQUALITYTEST_TYPE.containing_type = _INEQUALITYTEST _VALUE.oneofs_by_name['value'].fields.append( _VALUE.fields_by_name['float_value']) _VALUE.fields_by_name['float_value'].containing_oneof = _VALUE.oneofs_by_name['value'] _VALUE.oneofs_by_name['value'].fields.append( _VALUE.fields_by_name['double_value']) _VALUE.fields_by_name['double_value'].containing_oneof = _VALUE.oneofs_by_name['value'] _VALUE.oneofs_by_name['value'].fields.append( _VALUE.fields_by_name['int32_value']) _VALUE.fields_by_name['int32_value'].containing_oneof = _VALUE.oneofs_by_name['value'] _VALUE.oneofs_by_name['value'].fields.append( _VALUE.fields_by_name['int64_value']) _VALUE.fields_by_name['int64_value'].containing_oneof = _VALUE.oneofs_by_name['value'] _GETMODELSREQUEST.fields_by_name['requested_models'].message_type = _MODELINFO _GETMODELSREQUEST.fields_by_name['request_context'].enum_type = common__types__pb2._REQUESTCONTEXT _GETMODELSREQUEST.fields_by_name['active_field_trials'].message_type = common__types__pb2._FIELDTRIAL _GETMODELSRESPONSE.fields_by_name['models'].message_type = _PREDICTIONMODEL _GETMODELSRESPONSE.fields_by_name['host_model_features'].message_type = _HOSTMODELFEATURES _PREDICTIONMODEL.fields_by_name['model_info'].message_type = _MODELINFO _PREDICTIONMODEL.fields_by_name['model'].message_type = _MODEL _MODELINFO.fields_by_name['optimization_target'].enum_type = _OPTIMIZATIONTARGET _MODELINFO.fields_by_name['supported_model_types'].enum_type = _MODELTYPE _MODELINFO.fields_by_name['additional_files'].message_type = _ADDITIONALMODELFILE _MODELINFO.fields_by_name['model_metadata'].message_type = common__types__pb2._ANY _HOSTMODELFEATURES.fields_by_name['model_features'].message_type = _MODELFEATURE _MODELFEATURE.oneofs_by_name['feature_value'].fields.append( _MODELFEATURE.fields_by_name['double_value']) _MODELFEATURE.fields_by_name['double_value'].containing_oneof = _MODELFEATURE.oneofs_by_name['feature_value'] _MODELFEATURE.oneofs_by_name['feature_value'].fields.append( _MODELFEATURE.fields_by_name['int64_value']) _MODELFEATURE.fields_by_name['int64_value'].containing_oneof = _MODELFEATURE.oneofs_by_name['feature_value'] DESCRIPTOR.message_types_by_name['Model'] = _MODEL DESCRIPTOR.message_types_by_name['Ensemble'] = _ENSEMBLE DESCRIPTOR.message_types_by_name['DecisionTree'] = _DECISIONTREE DESCRIPTOR.message_types_by_name['TreeNode'] = _TREENODE DESCRIPTOR.message_types_by_name['BinaryNode'] = _BINARYNODE DESCRIPTOR.message_types_by_name['Vector'] = _VECTOR DESCRIPTOR.message_types_by_name['Leaf'] = _LEAF DESCRIPTOR.message_types_by_name['FeatureId'] = _FEATUREID DESCRIPTOR.message_types_by_name['InequalityTest'] = _INEQUALITYTEST DESCRIPTOR.message_types_by_name['Value'] = _VALUE DESCRIPTOR.message_types_by_name['Int32Value'] = _INT32VALUE DESCRIPTOR.message_types_by_name['StringValue'] = _STRINGVALUE DESCRIPTOR.message_types_by_name['DoubleValue'] = _DOUBLEVALUE DESCRIPTOR.message_types_by_name['GetModelsRequest'] = _GETMODELSREQUEST DESCRIPTOR.message_types_by_name['GetModelsResponse'] = _GETMODELSRESPONSE DESCRIPTOR.message_types_by_name['PredictionModel'] = _PREDICTIONMODEL DESCRIPTOR.message_types_by_name['AdditionalModelFile'] = _ADDITIONALMODELFILE DESCRIPTOR.message_types_by_name['ModelInfo'] = _MODELINFO DESCRIPTOR.message_types_by_name['HostModelFeatures'] = _HOSTMODELFEATURES DESCRIPTOR.message_types_by_name['ModelFeature'] = _MODELFEATURE DESCRIPTOR.enum_types_by_name['OptimizationTarget'] = _OPTIMIZATIONTARGET DESCRIPTOR.enum_types_by_name['ModelType'] = _MODELTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) Model = _reflection.GeneratedProtocolMessageType('Model', (_message.Message,), { 'DESCRIPTOR' : _MODEL, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.Model) }) _sym_db.RegisterMessage(Model) Ensemble = _reflection.GeneratedProtocolMessageType('Ensemble', (_message.Message,), { 'Member' : _reflection.GeneratedProtocolMessageType('Member', (_message.Message,), { 'DESCRIPTOR' : _ENSEMBLE_MEMBER, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.Ensemble.Member) }) , 'DESCRIPTOR' : _ENSEMBLE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.Ensemble) }) _sym_db.RegisterMessage(Ensemble) _sym_db.RegisterMessage(Ensemble.Member) DecisionTree = _reflection.GeneratedProtocolMessageType('DecisionTree', (_message.Message,), { 'DESCRIPTOR' : _DECISIONTREE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.DecisionTree) }) _sym_db.RegisterMessage(DecisionTree) TreeNode = _reflection.GeneratedProtocolMessageType('TreeNode', (_message.Message,), { 'DESCRIPTOR' : _TREENODE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.TreeNode) }) _sym_db.RegisterMessage(TreeNode) BinaryNode = _reflection.GeneratedProtocolMessageType('BinaryNode', (_message.Message,), { 'DESCRIPTOR' : _BINARYNODE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.BinaryNode) }) _sym_db.RegisterMessage(BinaryNode) Vector = _reflection.GeneratedProtocolMessageType('Vector', (_message.Message,), { 'DESCRIPTOR' : _VECTOR, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.Vector) }) _sym_db.RegisterMessage(Vector) Leaf = _reflection.GeneratedProtocolMessageType('Leaf', (_message.Message,), { 'DESCRIPTOR' : _LEAF, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.Leaf) }) _sym_db.RegisterMessage(Leaf) FeatureId = _reflection.GeneratedProtocolMessageType('FeatureId', (_message.Message,), { 'DESCRIPTOR' : _FEATUREID, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.FeatureId) }) _sym_db.RegisterMessage(FeatureId) InequalityTest = _reflection.GeneratedProtocolMessageType('InequalityTest', (_message.Message,), { 'DESCRIPTOR' : _INEQUALITYTEST, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.InequalityTest) }) _sym_db.RegisterMessage(InequalityTest) Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), { 'DESCRIPTOR' : _VALUE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.Value) }) _sym_db.RegisterMessage(Value) Int32Value = _reflection.GeneratedProtocolMessageType('Int32Value', (_message.Message,), { 'DESCRIPTOR' : _INT32VALUE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.Int32Value) }) _sym_db.RegisterMessage(Int32Value) StringValue = _reflection.GeneratedProtocolMessageType('StringValue', (_message.Message,), { 'DESCRIPTOR' : _STRINGVALUE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.StringValue) }) _sym_db.RegisterMessage(StringValue) DoubleValue = _reflection.GeneratedProtocolMessageType('DoubleValue', (_message.Message,), { 'DESCRIPTOR' : _DOUBLEVALUE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.DoubleValue) }) _sym_db.RegisterMessage(DoubleValue) GetModelsRequest = _reflection.GeneratedProtocolMessageType('GetModelsRequest', (_message.Message,), { 'DESCRIPTOR' : _GETMODELSREQUEST, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.GetModelsRequest) }) _sym_db.RegisterMessage(GetModelsRequest) GetModelsResponse = _reflection.GeneratedProtocolMessageType('GetModelsResponse', (_message.Message,), { 'DESCRIPTOR' : _GETMODELSRESPONSE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.GetModelsResponse) }) _sym_db.RegisterMessage(GetModelsResponse) PredictionModel = _reflection.GeneratedProtocolMessageType('PredictionModel', (_message.Message,), { 'DESCRIPTOR' : _PREDICTIONMODEL, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.PredictionModel) }) _sym_db.RegisterMessage(PredictionModel) AdditionalModelFile = _reflection.GeneratedProtocolMessageType('AdditionalModelFile', (_message.Message,), { 'DESCRIPTOR' : _ADDITIONALMODELFILE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.AdditionalModelFile) }) _sym_db.RegisterMessage(AdditionalModelFile) ModelInfo = _reflection.GeneratedProtocolMessageType('ModelInfo', (_message.Message,), { 'DESCRIPTOR' : _MODELINFO, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.ModelInfo) }) _sym_db.RegisterMessage(ModelInfo) HostModelFeatures = _reflection.GeneratedProtocolMessageType('HostModelFeatures', (_message.Message,), { 'DESCRIPTOR' : _HOSTMODELFEATURES, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.HostModelFeatures) }) _sym_db.RegisterMessage(HostModelFeatures) ModelFeature = _reflection.GeneratedProtocolMessageType('ModelFeature', (_message.Message,), { 'DESCRIPTOR' : _MODELFEATURE, '__module__' : 'models_pb2' # @@protoc_insertion_point(class_scope:optimization_guide.proto.ModelFeature) }) _sym_db.RegisterMessage(ModelFeature) DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope)