# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: background_sync.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 descriptor_pb2
# @@protoc_insertion_point(imports)




DESCRIPTOR = _descriptor.FileDescriptor(
  name='background_sync.proto',
  package='content',
  serialized_pb='\n\x15\x62\x61\x63kground_sync.proto\x12\x07\x63ontent\"\xdd\x01\n\x1f\x42\x61\x63kgroundSyncRegistrationProto\x12\n\n\x02id\x18\x01 \x02(\x03\x12\x0b\n\x03tag\x18\x02 \x02(\t\x12-\n\x0bperiodicity\x18\x03 \x02(\x0e\x32\x18.content.SyncPeriodicity\x12\x12\n\nmin_period\x18\x04 \x02(\x03\x12\x30\n\rnetwork_state\x18\x05 \x02(\x0e\x32\x19.content.SyncNetworkState\x12,\n\x0bpower_state\x18\x06 \x02(\x0e\x32\x17.content.SyncPowerState\"\x90\x01\n BackgroundSyncRegistrationsProto\x12>\n\x0cregistration\x18\x01 \x03(\x0b\x32(.content.BackgroundSyncRegistrationProto\x12\x1c\n\x14next_registration_id\x18\x02 \x02(\x03\x12\x0e\n\x06origin\x18\x03 \x02(\t*e\n\x10SyncNetworkState\x12\x15\n\x11NETWORK_STATE_ANY\x10\x00\x12 \n\x1cNETWORK_STATE_AVOID_CELLULAR\x10\x01\x12\x18\n\x14NETWORK_STATE_ONLINE\x10\x02*F\n\x0eSyncPowerState\x12\x14\n\x10POWER_STATE_AUTO\x10\x00\x12\x1e\n\x1aPOWER_STATE_AVOID_DRAINING\x10\x01*7\n\x0fSyncPeriodicity\x12\x11\n\rSYNC_PERIODIC\x10\x00\x12\x11\n\rSYNC_ONE_SHOT\x10\x01\x42\x02H\x03')

_SYNCNETWORKSTATE = _descriptor.EnumDescriptor(
  name='SyncNetworkState',
  full_name='content.SyncNetworkState',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='NETWORK_STATE_ANY', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='NETWORK_STATE_AVOID_CELLULAR', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='NETWORK_STATE_ONLINE', index=2, number=2,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=405,
  serialized_end=506,
)

SyncNetworkState = enum_type_wrapper.EnumTypeWrapper(_SYNCNETWORKSTATE)
_SYNCPOWERSTATE = _descriptor.EnumDescriptor(
  name='SyncPowerState',
  full_name='content.SyncPowerState',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='POWER_STATE_AUTO', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='POWER_STATE_AVOID_DRAINING', index=1, number=1,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=508,
  serialized_end=578,
)

SyncPowerState = enum_type_wrapper.EnumTypeWrapper(_SYNCPOWERSTATE)
_SYNCPERIODICITY = _descriptor.EnumDescriptor(
  name='SyncPeriodicity',
  full_name='content.SyncPeriodicity',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='SYNC_PERIODIC', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='SYNC_ONE_SHOT', index=1, number=1,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=580,
  serialized_end=635,
)

SyncPeriodicity = enum_type_wrapper.EnumTypeWrapper(_SYNCPERIODICITY)
NETWORK_STATE_ANY = 0
NETWORK_STATE_AVOID_CELLULAR = 1
NETWORK_STATE_ONLINE = 2
POWER_STATE_AUTO = 0
POWER_STATE_AVOID_DRAINING = 1
SYNC_PERIODIC = 0
SYNC_ONE_SHOT = 1



_BACKGROUNDSYNCREGISTRATIONPROTO = _descriptor.Descriptor(
  name='BackgroundSyncRegistrationProto',
  full_name='content.BackgroundSyncRegistrationProto',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='id', full_name='content.BackgroundSyncRegistrationProto.id', index=0,
      number=1, type=3, cpp_type=2, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='tag', full_name='content.BackgroundSyncRegistrationProto.tag', index=1,
      number=2, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='periodicity', full_name='content.BackgroundSyncRegistrationProto.periodicity', index=2,
      number=3, type=14, cpp_type=8, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='min_period', full_name='content.BackgroundSyncRegistrationProto.min_period', index=3,
      number=4, type=3, cpp_type=2, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='network_state', full_name='content.BackgroundSyncRegistrationProto.network_state', index=4,
      number=5, type=14, cpp_type=8, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='power_state', full_name='content.BackgroundSyncRegistrationProto.power_state', index=5,
      number=6, type=14, cpp_type=8, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=35,
  serialized_end=256,
)


_BACKGROUNDSYNCREGISTRATIONSPROTO = _descriptor.Descriptor(
  name='BackgroundSyncRegistrationsProto',
  full_name='content.BackgroundSyncRegistrationsProto',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='registration', full_name='content.BackgroundSyncRegistrationsProto.registration', 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='next_registration_id', full_name='content.BackgroundSyncRegistrationsProto.next_registration_id', index=1,
      number=2, type=3, cpp_type=2, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='origin', full_name='content.BackgroundSyncRegistrationsProto.origin', index=2,
      number=3, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=259,
  serialized_end=403,
)

_BACKGROUNDSYNCREGISTRATIONPROTO.fields_by_name['periodicity'].enum_type = _SYNCPERIODICITY
_BACKGROUNDSYNCREGISTRATIONPROTO.fields_by_name['network_state'].enum_type = _SYNCNETWORKSTATE
_BACKGROUNDSYNCREGISTRATIONPROTO.fields_by_name['power_state'].enum_type = _SYNCPOWERSTATE
_BACKGROUNDSYNCREGISTRATIONSPROTO.fields_by_name['registration'].message_type = _BACKGROUNDSYNCREGISTRATIONPROTO
DESCRIPTOR.message_types_by_name['BackgroundSyncRegistrationProto'] = _BACKGROUNDSYNCREGISTRATIONPROTO
DESCRIPTOR.message_types_by_name['BackgroundSyncRegistrationsProto'] = _BACKGROUNDSYNCREGISTRATIONSPROTO

class BackgroundSyncRegistrationProto(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _BACKGROUNDSYNCREGISTRATIONPROTO

  # @@protoc_insertion_point(class_scope:content.BackgroundSyncRegistrationProto)

class BackgroundSyncRegistrationsProto(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _BACKGROUNDSYNCREGISTRATIONSPROTO

  # @@protoc_insertion_point(class_scope:content.BackgroundSyncRegistrationsProto)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), 'H\003')
# @@protoc_insertion_point(module_scope)
