browsing-topics / common_types_pb2.py
dejanseo's picture
Upload 18 files
f4a0f22 verified
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common_types.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='common_types.proto',
package='optimization_guide.proto',
syntax='proto2',
serialized_options=b'\n0org.chromium.components.optimization_guide.protoB\020CommonTypesProtoH\003',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x12\x63ommon_types.proto\x12\x18optimization_guide.proto\"3\n\nFieldTrial\x12\x11\n\tname_hash\x18\x01 \x01(\r\x12\x12\n\ngroup_hash\x18\x02 \x01(\r\"*\n\x08\x44uration\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\x12\r\n\x05nanos\x18\x02 \x01(\x05\"+\n\tTimestamp\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\x12\r\n\x05nanos\x18\x02 \x01(\x05\"&\n\x03\x41ny\x12\x10\n\x08type_url\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\"B\n\nOriginInfo\x12\x34\n\x08platform\x18\x01 \x01(\x0e\x32\".optimization_guide.proto.Platform*\xf0\x02\n\x0eRequestContext\x12\x17\n\x13\x43ONTEXT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x43ONTEXT_PAGE_NAVIGATION\x10\x02\x12#\n\x1f\x43ONTEXT_BATCH_UPDATE_GOOGLE_SRP\x10\x04\x12$\n CONTEXT_BATCH_UPDATE_ACTIVE_TABS\x10\x05\x12\x1f\n\x1b\x43ONTEXT_BATCH_UPDATE_MODELS\x10\x06\x12\x15\n\x11\x43ONTEXT_BOOKMARKS\x10\x07\x12\x14\n\x10\x43ONTEXT_JOURNEYS\x10\x08\x12\x18\n\x14\x43ONTEXT_NEW_TAB_PAGE\x10\t\x12\x1d\n\x19\x43ONTEXT_PAGE_INSIGHTS_HUB\x10\x0b\x12.\n*CONTEXT_NON_PERSONALIZED_PAGE_INSIGHTS_HUB\x10\x0c\x12\x14\n\x10\x43ONTEXT_SHOPPING\x10\r\"\x04\x08\x01\x10\x01\"\x04\x08\x03\x10\x03\"\x04\x08\n\x10\n*\xa3\x01\n\x08Platform\x12\x16\n\x12PLATFORM_UNDEFINED\x10\x00\x12\x14\n\x10PLATFORM_ANDROID\x10\x01\x12\x15\n\x11PLATFORM_CHROMEOS\x10\x02\x12\x10\n\x0cPLATFORM_IOS\x10\x03\x12\x12\n\x0ePLATFORM_LINUX\x10\x04\x12\x10\n\x0cPLATFORM_MAC\x10\x05\x12\x14\n\x10PLATFORM_WINDOWS\x10\x06\"\x04\x08\x07\x10\x07\x42\x46\n0org.chromium.components.optimization_guide.protoB\x10\x43ommonTypesProtoH\x03'
)
_REQUESTCONTEXT = _descriptor.EnumDescriptor(
name='RequestContext',
full_name='optimization_guide.proto.RequestContext',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='CONTEXT_UNSPECIFIED', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_PAGE_NAVIGATION', index=1, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_BATCH_UPDATE_GOOGLE_SRP', index=2, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_BATCH_UPDATE_ACTIVE_TABS', index=3, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_BATCH_UPDATE_MODELS', index=4, number=6,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_BOOKMARKS', index=5, number=7,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_JOURNEYS', index=6, number=8,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_NEW_TAB_PAGE', index=7, number=9,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_PAGE_INSIGHTS_HUB', index=8, number=11,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_NON_PERSONALIZED_PAGE_INSIGHTS_HUB', index=9, number=12,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CONTEXT_SHOPPING', index=10, number=13,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=299,
serialized_end=667,
)
_sym_db.RegisterEnumDescriptor(_REQUESTCONTEXT)
RequestContext = enum_type_wrapper.EnumTypeWrapper(_REQUESTCONTEXT)
_PLATFORM = _descriptor.EnumDescriptor(
name='Platform',
full_name='optimization_guide.proto.Platform',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='PLATFORM_UNDEFINED', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PLATFORM_ANDROID', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PLATFORM_CHROMEOS', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PLATFORM_IOS', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PLATFORM_LINUX', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PLATFORM_MAC', index=5, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PLATFORM_WINDOWS', index=6, number=6,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=670,
serialized_end=833,
)
_sym_db.RegisterEnumDescriptor(_PLATFORM)
Platform = enum_type_wrapper.EnumTypeWrapper(_PLATFORM)
CONTEXT_UNSPECIFIED = 0
CONTEXT_PAGE_NAVIGATION = 2
CONTEXT_BATCH_UPDATE_GOOGLE_SRP = 4
CONTEXT_BATCH_UPDATE_ACTIVE_TABS = 5
CONTEXT_BATCH_UPDATE_MODELS = 6
CONTEXT_BOOKMARKS = 7
CONTEXT_JOURNEYS = 8
CONTEXT_NEW_TAB_PAGE = 9
CONTEXT_PAGE_INSIGHTS_HUB = 11
CONTEXT_NON_PERSONALIZED_PAGE_INSIGHTS_HUB = 12
CONTEXT_SHOPPING = 13
PLATFORM_UNDEFINED = 0
PLATFORM_ANDROID = 1
PLATFORM_CHROMEOS = 2
PLATFORM_IOS = 3
PLATFORM_LINUX = 4
PLATFORM_MAC = 5
PLATFORM_WINDOWS = 6
_FIELDTRIAL = _descriptor.Descriptor(
name='FieldTrial',
full_name='optimization_guide.proto.FieldTrial',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name_hash', full_name='optimization_guide.proto.FieldTrial.name_hash', index=0,
number=1, type=13, cpp_type=3, 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='group_hash', full_name='optimization_guide.proto.FieldTrial.group_hash', index=1,
number=2, type=13, cpp_type=3, 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=48,
serialized_end=99,
)
_DURATION = _descriptor.Descriptor(
name='Duration',
full_name='optimization_guide.proto.Duration',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='seconds', full_name='optimization_guide.proto.Duration.seconds', 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='nanos', full_name='optimization_guide.proto.Duration.nanos', index=1,
number=2, 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=101,
serialized_end=143,
)
_TIMESTAMP = _descriptor.Descriptor(
name='Timestamp',
full_name='optimization_guide.proto.Timestamp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='seconds', full_name='optimization_guide.proto.Timestamp.seconds', 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='nanos', full_name='optimization_guide.proto.Timestamp.nanos', index=1,
number=2, 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=145,
serialized_end=188,
)
_ANY = _descriptor.Descriptor(
name='Any',
full_name='optimization_guide.proto.Any',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='type_url', full_name='optimization_guide.proto.Any.type_url', 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='value', full_name='optimization_guide.proto.Any.value', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=b"",
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=190,
serialized_end=228,
)
_ORIGININFO = _descriptor.Descriptor(
name='OriginInfo',
full_name='optimization_guide.proto.OriginInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='platform', full_name='optimization_guide.proto.OriginInfo.platform', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=230,
serialized_end=296,
)
_ORIGININFO.fields_by_name['platform'].enum_type = _PLATFORM
DESCRIPTOR.message_types_by_name['FieldTrial'] = _FIELDTRIAL
DESCRIPTOR.message_types_by_name['Duration'] = _DURATION
DESCRIPTOR.message_types_by_name['Timestamp'] = _TIMESTAMP
DESCRIPTOR.message_types_by_name['Any'] = _ANY
DESCRIPTOR.message_types_by_name['OriginInfo'] = _ORIGININFO
DESCRIPTOR.enum_types_by_name['RequestContext'] = _REQUESTCONTEXT
DESCRIPTOR.enum_types_by_name['Platform'] = _PLATFORM
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
FieldTrial = _reflection.GeneratedProtocolMessageType('FieldTrial', (_message.Message,), {
'DESCRIPTOR' : _FIELDTRIAL,
'__module__' : 'common_types_pb2'
# @@protoc_insertion_point(class_scope:optimization_guide.proto.FieldTrial)
})
_sym_db.RegisterMessage(FieldTrial)
Duration = _reflection.GeneratedProtocolMessageType('Duration', (_message.Message,), {
'DESCRIPTOR' : _DURATION,
'__module__' : 'common_types_pb2'
# @@protoc_insertion_point(class_scope:optimization_guide.proto.Duration)
})
_sym_db.RegisterMessage(Duration)
Timestamp = _reflection.GeneratedProtocolMessageType('Timestamp', (_message.Message,), {
'DESCRIPTOR' : _TIMESTAMP,
'__module__' : 'common_types_pb2'
# @@protoc_insertion_point(class_scope:optimization_guide.proto.Timestamp)
})
_sym_db.RegisterMessage(Timestamp)
Any = _reflection.GeneratedProtocolMessageType('Any', (_message.Message,), {
'DESCRIPTOR' : _ANY,
'__module__' : 'common_types_pb2'
# @@protoc_insertion_point(class_scope:optimization_guide.proto.Any)
})
_sym_db.RegisterMessage(Any)
OriginInfo = _reflection.GeneratedProtocolMessageType('OriginInfo', (_message.Message,), {
'DESCRIPTOR' : _ORIGININFO,
'__module__' : 'common_types_pb2'
# @@protoc_insertion_point(class_scope:optimization_guide.proto.OriginInfo)
})
_sym_db.RegisterMessage(OriginInfo)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)