# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: metadata_database.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='metadata_database.proto',
  package='sync_file_system.drive_backend',
  serialized_pb='\n\x17metadata_database.proto\x12\x1esync_file_system.drive_backend\"c\n\x0fServiceMetadata\x12\x19\n\x11largest_change_id\x18\x01 \x01(\x03\x12\x1c\n\x14sync_root_tracker_id\x18\x02 \x01(\x03\x12\x17\n\x0fnext_tracker_id\x18\x03 \x01(\x03\"\xe5\x01\n\x0b\x46ileDetails\x12\x19\n\x11parent_folder_ids\x18\x01 \x03(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12;\n\tfile_kind\x18\x03 \x01(\x0e\x32(.sync_file_system.drive_backend.FileKind\x12\x0b\n\x03md5\x18\x04 \x01(\t\x12\x0c\n\x04\x65tag\x18\x05 \x01(\t\x12\x15\n\rcreation_time\x18\x06 \x01(\x03\x12\x19\n\x11modification_time\x18\x07 \x01(\x03\x12\x0f\n\x07missing\x18\x08 \x01(\x08\x12\x11\n\tchange_id\x18\t \x01(\x03\"]\n\x0c\x46ileMetadata\x12\x0f\n\x07\x66ile_id\x18\x01 \x02(\t\x12<\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32+.sync_file_system.drive_backend.FileDetails\"\xa2\x02\n\x0b\x46ileTracker\x12\x12\n\ntracker_id\x18\x01 \x02(\x03\x12\x19\n\x11parent_tracker_id\x18\x02 \x02(\x03\x12\x0f\n\x07\x66ile_id\x18\x03 \x02(\t\x12\x0e\n\x06\x61pp_id\x18\x04 \x01(\t\x12\x41\n\x0ctracker_kind\x18\x05 \x01(\x0e\x32+.sync_file_system.drive_backend.TrackerKind\x12\x43\n\x0esynced_details\x18\x06 \x01(\x0b\x32+.sync_file_system.drive_backend.FileDetails\x12\r\n\x05\x64irty\x18\x07 \x01(\x08\x12\x0e\n\x06\x61\x63tive\x18\x08 \x01(\x08\x12\x1c\n\x14needs_folder_listing\x18\t \x01(\x08*O\n\x08\x46ileKind\x12\x19\n\x15\x46ILE_KIND_UNSUPPORTED\x10\x00\x12\x12\n\x0e\x46ILE_KIND_FILE\x10\x01\x12\x14\n\x10\x46ILE_KIND_FOLDER\x10\x02*f\n\x0bTrackerKind\x12\x18\n\x14TRACKER_KIND_REGULAR\x10\x00\x12\x19\n\x15TRACKER_KIND_APP_ROOT\x10\x01\x12\"\n\x1eTRACKER_KIND_DISABLED_APP_ROOT\x10\x02\x42\x02H\x03')

_FILEKIND = _descriptor.EnumDescriptor(
  name='FileKind',
  full_name='sync_file_system.drive_backend.FileKind',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='FILE_KIND_UNSUPPORTED', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='FILE_KIND_FILE', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='FILE_KIND_FOLDER', index=2, number=2,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=780,
  serialized_end=859,
)

FileKind = enum_type_wrapper.EnumTypeWrapper(_FILEKIND)
_TRACKERKIND = _descriptor.EnumDescriptor(
  name='TrackerKind',
  full_name='sync_file_system.drive_backend.TrackerKind',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='TRACKER_KIND_REGULAR', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='TRACKER_KIND_APP_ROOT', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='TRACKER_KIND_DISABLED_APP_ROOT', index=2, number=2,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=861,
  serialized_end=963,
)

TrackerKind = enum_type_wrapper.EnumTypeWrapper(_TRACKERKIND)
FILE_KIND_UNSUPPORTED = 0
FILE_KIND_FILE = 1
FILE_KIND_FOLDER = 2
TRACKER_KIND_REGULAR = 0
TRACKER_KIND_APP_ROOT = 1
TRACKER_KIND_DISABLED_APP_ROOT = 2



_SERVICEMETADATA = _descriptor.Descriptor(
  name='ServiceMetadata',
  full_name='sync_file_system.drive_backend.ServiceMetadata',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='largest_change_id', full_name='sync_file_system.drive_backend.ServiceMetadata.largest_change_id', 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='sync_root_tracker_id', full_name='sync_file_system.drive_backend.ServiceMetadata.sync_root_tracker_id', 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='next_tracker_id', full_name='sync_file_system.drive_backend.ServiceMetadata.next_tracker_id', 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,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=59,
  serialized_end=158,
)


_FILEDETAILS = _descriptor.Descriptor(
  name='FileDetails',
  full_name='sync_file_system.drive_backend.FileDetails',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='parent_folder_ids', full_name='sync_file_system.drive_backend.FileDetails.parent_folder_ids', index=0,
      number=1, 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='title', full_name='sync_file_system.drive_backend.FileDetails.title', index=1,
      number=2, type=9, cpp_type=9, label=1,
      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='file_kind', full_name='sync_file_system.drive_backend.FileDetails.file_kind', index=2,
      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,
      options=None),
    _descriptor.FieldDescriptor(
      name='md5', full_name='sync_file_system.drive_backend.FileDetails.md5', index=3,
      number=4, type=9, cpp_type=9, label=1,
      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='etag', full_name='sync_file_system.drive_backend.FileDetails.etag', index=4,
      number=5, type=9, cpp_type=9, label=1,
      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='creation_time', full_name='sync_file_system.drive_backend.FileDetails.creation_time', index=5,
      number=6, 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='modification_time', full_name='sync_file_system.drive_backend.FileDetails.modification_time', index=6,
      number=7, 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='missing', full_name='sync_file_system.drive_backend.FileDetails.missing', index=7,
      number=8, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='change_id', full_name='sync_file_system.drive_backend.FileDetails.change_id', index=8,
      number=9, 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,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=161,
  serialized_end=390,
)


_FILEMETADATA = _descriptor.Descriptor(
  name='FileMetadata',
  full_name='sync_file_system.drive_backend.FileMetadata',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='file_id', full_name='sync_file_system.drive_backend.FileMetadata.file_id', index=0,
      number=1, 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='details', full_name='sync_file_system.drive_backend.FileMetadata.details', 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,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=392,
  serialized_end=485,
)


_FILETRACKER = _descriptor.Descriptor(
  name='FileTracker',
  full_name='sync_file_system.drive_backend.FileTracker',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='tracker_id', full_name='sync_file_system.drive_backend.FileTracker.tracker_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='parent_tracker_id', full_name='sync_file_system.drive_backend.FileTracker.parent_tracker_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='file_id', full_name='sync_file_system.drive_backend.FileTracker.file_id', 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),
    _descriptor.FieldDescriptor(
      name='app_id', full_name='sync_file_system.drive_backend.FileTracker.app_id', index=3,
      number=4, type=9, cpp_type=9, label=1,
      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='tracker_kind', full_name='sync_file_system.drive_backend.FileTracker.tracker_kind', index=4,
      number=5, 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='synced_details', full_name='sync_file_system.drive_backend.FileTracker.synced_details', 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,
      options=None),
    _descriptor.FieldDescriptor(
      name='dirty', full_name='sync_file_system.drive_backend.FileTracker.dirty', index=6,
      number=7, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='active', full_name='sync_file_system.drive_backend.FileTracker.active', index=7,
      number=8, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='needs_folder_listing', full_name='sync_file_system.drive_backend.FileTracker.needs_folder_listing', index=8,
      number=9, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      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=488,
  serialized_end=778,
)

_FILEDETAILS.fields_by_name['file_kind'].enum_type = _FILEKIND
_FILEMETADATA.fields_by_name['details'].message_type = _FILEDETAILS
_FILETRACKER.fields_by_name['tracker_kind'].enum_type = _TRACKERKIND
_FILETRACKER.fields_by_name['synced_details'].message_type = _FILEDETAILS
DESCRIPTOR.message_types_by_name['ServiceMetadata'] = _SERVICEMETADATA
DESCRIPTOR.message_types_by_name['FileDetails'] = _FILEDETAILS
DESCRIPTOR.message_types_by_name['FileMetadata'] = _FILEMETADATA
DESCRIPTOR.message_types_by_name['FileTracker'] = _FILETRACKER

class ServiceMetadata(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _SERVICEMETADATA

  # @@protoc_insertion_point(class_scope:sync_file_system.drive_backend.ServiceMetadata)

class FileDetails(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _FILEDETAILS

  # @@protoc_insertion_point(class_scope:sync_file_system.drive_backend.FileDetails)

class FileMetadata(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _FILEMETADATA

  # @@protoc_insertion_point(class_scope:sync_file_system.drive_backend.FileMetadata)

class FileTracker(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _FILETRACKER

  # @@protoc_insertion_point(class_scope:sync_file_system.drive_backend.FileTracker)


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