Spaces:
Sleeping
Sleeping
# -*- coding: utf-8 -*- | |
# Generated by the protocol buffer compiler. DO NOT EDIT! | |
# source: page_topics_model_metadata.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() | |
DESCRIPTOR = _descriptor.FileDescriptor( | |
name='page_topics_model_metadata.proto', | |
package='optimization_guide.proto', | |
syntax='proto2', | |
serialized_options=b'\n0org.chromium.components.optimization_guide.protoB\034PageTopicsModelMetadataProtoH\003', | |
create_key=_descriptor._internal_create_key, | |
serialized_pb=b'\n page_topics_model_metadata.proto\x12\x18optimization_guide.proto\"D\n+PageTopicsFlocProtectedPostprocessingParams\x12\x15\n\rcategory_name\x18\x01 \x01(\t\"\xa2\x01\n&PageTopicsCategoryPostprocessingParams\x12\x16\n\x0emax_categories\x18\x01 \x01(\x05\x12\x1b\n\x13min_category_weight\x18\x02 \x01(\x02\x12*\n\"min_normalized_weight_within_top_n\x18\x03 \x01(\x02\x12\x17\n\x0fmin_none_weight\x18\x04 \x01(\x02\"\xe7\x01\n$PageTopicsOutputPostprocessingParams\x12\x64\n\x15\x66loc_protected_params\x18\x01 \x01(\x0b\x32\x45.optimization_guide.proto.PageTopicsFlocProtectedPostprocessingParams\x12Y\n\x0f\x63\x61tegory_params\x18\x02 \x01(\x0b\x32@.optimization_guide.proto.PageTopicsCategoryPostprocessingParams\"\xdf\x01\n\x17PageTopicsModelMetadata\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12M\n\x10supported_output\x18\x02 \x03(\x0e\x32\x33.optimization_guide.proto.PageTopicsSupportedOutput\x12\x64\n\x1coutput_postprocessing_params\x18\x03 \x01(\x0b\x32>.optimization_guide.proto.PageTopicsOutputPostprocessingParams*\xa3\x01\n\x19PageTopicsSupportedOutput\x12(\n$PAGE_TOPICS_SUPPORTED_OUTPUT_UNKNOWN\x10\x00\x12/\n+PAGE_TOPICS_SUPPORTED_OUTPUT_FLOC_PROTECTED\x10\x01\x12+\n\'PAGE_TOPICS_SUPPORTED_OUTPUT_CATEGORIES\x10\x02\x42R\n0org.chromium.components.optimization_guide.protoB\x1cPageTopicsModelMetadataProtoH\x03' | |
) | |
_PAGETOPICSSUPPORTEDOUTPUT = _descriptor.EnumDescriptor( | |
name='PageTopicsSupportedOutput', | |
full_name='optimization_guide.proto.PageTopicsSupportedOutput', | |
filename=None, | |
file=DESCRIPTOR, | |
create_key=_descriptor._internal_create_key, | |
values=[ | |
_descriptor.EnumValueDescriptor( | |
name='PAGE_TOPICS_SUPPORTED_OUTPUT_UNKNOWN', index=0, number=0, | |
serialized_options=None, | |
type=None, | |
create_key=_descriptor._internal_create_key), | |
_descriptor.EnumValueDescriptor( | |
name='PAGE_TOPICS_SUPPORTED_OUTPUT_FLOC_PROTECTED', index=1, number=1, | |
serialized_options=None, | |
type=None, | |
create_key=_descriptor._internal_create_key), | |
_descriptor.EnumValueDescriptor( | |
name='PAGE_TOPICS_SUPPORTED_OUTPUT_CATEGORIES', index=2, number=2, | |
serialized_options=None, | |
type=None, | |
create_key=_descriptor._internal_create_key), | |
], | |
containing_type=None, | |
serialized_options=None, | |
serialized_start=758, | |
serialized_end=921, | |
) | |
_sym_db.RegisterEnumDescriptor(_PAGETOPICSSUPPORTEDOUTPUT) | |
PageTopicsSupportedOutput = enum_type_wrapper.EnumTypeWrapper(_PAGETOPICSSUPPORTEDOUTPUT) | |
PAGE_TOPICS_SUPPORTED_OUTPUT_UNKNOWN = 0 | |
PAGE_TOPICS_SUPPORTED_OUTPUT_FLOC_PROTECTED = 1 | |
PAGE_TOPICS_SUPPORTED_OUTPUT_CATEGORIES = 2 | |
_PAGETOPICSFLOCPROTECTEDPOSTPROCESSINGPARAMS = _descriptor.Descriptor( | |
name='PageTopicsFlocProtectedPostprocessingParams', | |
full_name='optimization_guide.proto.PageTopicsFlocProtectedPostprocessingParams', | |
filename=None, | |
file=DESCRIPTOR, | |
containing_type=None, | |
create_key=_descriptor._internal_create_key, | |
fields=[ | |
_descriptor.FieldDescriptor( | |
name='category_name', full_name='optimization_guide.proto.PageTopicsFlocProtectedPostprocessingParams.category_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), | |
], | |
extensions=[ | |
], | |
nested_types=[], | |
enum_types=[ | |
], | |
serialized_options=None, | |
is_extendable=False, | |
syntax='proto2', | |
extension_ranges=[], | |
oneofs=[ | |
], | |
serialized_start=62, | |
serialized_end=130, | |
) | |
_PAGETOPICSCATEGORYPOSTPROCESSINGPARAMS = _descriptor.Descriptor( | |
name='PageTopicsCategoryPostprocessingParams', | |
full_name='optimization_guide.proto.PageTopicsCategoryPostprocessingParams', | |
filename=None, | |
file=DESCRIPTOR, | |
containing_type=None, | |
create_key=_descriptor._internal_create_key, | |
fields=[ | |
_descriptor.FieldDescriptor( | |
name='max_categories', full_name='optimization_guide.proto.PageTopicsCategoryPostprocessingParams.max_categories', 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), | |
_descriptor.FieldDescriptor( | |
name='min_category_weight', full_name='optimization_guide.proto.PageTopicsCategoryPostprocessingParams.min_category_weight', index=1, | |
number=2, 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='min_normalized_weight_within_top_n', full_name='optimization_guide.proto.PageTopicsCategoryPostprocessingParams.min_normalized_weight_within_top_n', index=2, | |
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), | |
_descriptor.FieldDescriptor( | |
name='min_none_weight', full_name='optimization_guide.proto.PageTopicsCategoryPostprocessingParams.min_none_weight', index=3, | |
number=4, 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=133, | |
serialized_end=295, | |
) | |
_PAGETOPICSOUTPUTPOSTPROCESSINGPARAMS = _descriptor.Descriptor( | |
name='PageTopicsOutputPostprocessingParams', | |
full_name='optimization_guide.proto.PageTopicsOutputPostprocessingParams', | |
filename=None, | |
file=DESCRIPTOR, | |
containing_type=None, | |
create_key=_descriptor._internal_create_key, | |
fields=[ | |
_descriptor.FieldDescriptor( | |
name='floc_protected_params', full_name='optimization_guide.proto.PageTopicsOutputPostprocessingParams.floc_protected_params', 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='category_params', full_name='optimization_guide.proto.PageTopicsOutputPostprocessingParams.category_params', 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=298, | |
serialized_end=529, | |
) | |
_PAGETOPICSMODELMETADATA = _descriptor.Descriptor( | |
name='PageTopicsModelMetadata', | |
full_name='optimization_guide.proto.PageTopicsModelMetadata', | |
filename=None, | |
file=DESCRIPTOR, | |
containing_type=None, | |
create_key=_descriptor._internal_create_key, | |
fields=[ | |
_descriptor.FieldDescriptor( | |
name='version', full_name='optimization_guide.proto.PageTopicsModelMetadata.version', index=0, | |
number=1, 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_output', full_name='optimization_guide.proto.PageTopicsModelMetadata.supported_output', index=1, | |
number=2, 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='output_postprocessing_params', full_name='optimization_guide.proto.PageTopicsModelMetadata.output_postprocessing_params', 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=[ | |
], | |
serialized_options=None, | |
is_extendable=False, | |
syntax='proto2', | |
extension_ranges=[], | |
oneofs=[ | |
], | |
serialized_start=532, | |
serialized_end=755, | |
) | |
_PAGETOPICSOUTPUTPOSTPROCESSINGPARAMS.fields_by_name['floc_protected_params'].message_type = _PAGETOPICSFLOCPROTECTEDPOSTPROCESSINGPARAMS | |
_PAGETOPICSOUTPUTPOSTPROCESSINGPARAMS.fields_by_name['category_params'].message_type = _PAGETOPICSCATEGORYPOSTPROCESSINGPARAMS | |
_PAGETOPICSMODELMETADATA.fields_by_name['supported_output'].enum_type = _PAGETOPICSSUPPORTEDOUTPUT | |
_PAGETOPICSMODELMETADATA.fields_by_name['output_postprocessing_params'].message_type = _PAGETOPICSOUTPUTPOSTPROCESSINGPARAMS | |
DESCRIPTOR.message_types_by_name['PageTopicsFlocProtectedPostprocessingParams'] = _PAGETOPICSFLOCPROTECTEDPOSTPROCESSINGPARAMS | |
DESCRIPTOR.message_types_by_name['PageTopicsCategoryPostprocessingParams'] = _PAGETOPICSCATEGORYPOSTPROCESSINGPARAMS | |
DESCRIPTOR.message_types_by_name['PageTopicsOutputPostprocessingParams'] = _PAGETOPICSOUTPUTPOSTPROCESSINGPARAMS | |
DESCRIPTOR.message_types_by_name['PageTopicsModelMetadata'] = _PAGETOPICSMODELMETADATA | |
DESCRIPTOR.enum_types_by_name['PageTopicsSupportedOutput'] = _PAGETOPICSSUPPORTEDOUTPUT | |
_sym_db.RegisterFileDescriptor(DESCRIPTOR) | |
PageTopicsFlocProtectedPostprocessingParams = _reflection.GeneratedProtocolMessageType('PageTopicsFlocProtectedPostprocessingParams', (_message.Message,), { | |
'DESCRIPTOR' : _PAGETOPICSFLOCPROTECTEDPOSTPROCESSINGPARAMS, | |
'__module__' : 'page_topics_model_metadata_pb2' | |
# @@protoc_insertion_point(class_scope:optimization_guide.proto.PageTopicsFlocProtectedPostprocessingParams) | |
}) | |
_sym_db.RegisterMessage(PageTopicsFlocProtectedPostprocessingParams) | |
PageTopicsCategoryPostprocessingParams = _reflection.GeneratedProtocolMessageType('PageTopicsCategoryPostprocessingParams', (_message.Message,), { | |
'DESCRIPTOR' : _PAGETOPICSCATEGORYPOSTPROCESSINGPARAMS, | |
'__module__' : 'page_topics_model_metadata_pb2' | |
# @@protoc_insertion_point(class_scope:optimization_guide.proto.PageTopicsCategoryPostprocessingParams) | |
}) | |
_sym_db.RegisterMessage(PageTopicsCategoryPostprocessingParams) | |
PageTopicsOutputPostprocessingParams = _reflection.GeneratedProtocolMessageType('PageTopicsOutputPostprocessingParams', (_message.Message,), { | |
'DESCRIPTOR' : _PAGETOPICSOUTPUTPOSTPROCESSINGPARAMS, | |
'__module__' : 'page_topics_model_metadata_pb2' | |
# @@protoc_insertion_point(class_scope:optimization_guide.proto.PageTopicsOutputPostprocessingParams) | |
}) | |
_sym_db.RegisterMessage(PageTopicsOutputPostprocessingParams) | |
PageTopicsModelMetadata = _reflection.GeneratedProtocolMessageType('PageTopicsModelMetadata', (_message.Message,), { | |
'DESCRIPTOR' : _PAGETOPICSMODELMETADATA, | |
'__module__' : 'page_topics_model_metadata_pb2' | |
# @@protoc_insertion_point(class_scope:optimization_guide.proto.PageTopicsModelMetadata) | |
}) | |
_sym_db.RegisterMessage(PageTopicsModelMetadata) | |
DESCRIPTOR._options = None | |
# @@protoc_insertion_point(module_scope) | |