# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: ncbi/datasets/options/mongo.proto
"""Generated protocol buffer code."""
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()


from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='ncbi/datasets/options/mongo.proto',
  package='ncbi.datasets.options',
  syntax='proto3',
  serialized_options=b'Z\025ncbi/datasets/options\370\001\001',
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n!ncbi/datasets/options/mongo.proto\x12\x15ncbi.datasets.options\x1a google/protobuf/descriptor.proto\"G\n\x13MongoMessageOptions\x12\x1e\n\ncollection\x18\x01 \x01(\tR\ncollection\x12\x10\n\x03key\x18\x02 \x01(\tR\x03key\"\xc4\x03\n\x11MongoFieldOptions\x12\x1a\n\x08required\x18\x01 \x01(\x08R\x08required\x12\x44\n\x04spec\x18\x02 \x01(\x0b\x32\x30.ncbi.datasets.options.MongoFieldOptions.ObjSpecR\x04spec\x1a\xcc\x02\n\x07ObjSpec\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tbson_type\x18\x02 \x01(\tR\x08\x62sonType\x12R\n\nproperties\x18\x03 \x01(\x0b\x32\x30.ncbi.datasets.options.MongoFieldOptions.ObjSpecH\x00R\nproperties\x12H\n\x05items\x18\x04 \x01(\x0b\x32\x30.ncbi.datasets.options.MongoFieldOptions.ObjSpecH\x00R\x05items\x12g\n\x15\x61\x64\x64itional_properties\x18\x05 \x01(\x0b\x32\x30.ncbi.datasets.options.MongoFieldOptions.ObjSpecH\x00R\x14\x61\x64\x64itionalPropertiesB\t\n\x07\x63ontent:j\n\x0bmongo_field\x12\x1d.google.protobuf.FieldOptions\x18\xa1\x96\x03 \x01(\x0b\x32(.ncbi.datasets.options.MongoFieldOptionsR\nmongoField:x\n\x10mongo_collection\x12\x1f.google.protobuf.MessageOptions\x18\xb8\x8e\x03 \x01(\x0b\x32*.ncbi.datasets.options.MongoMessageOptionsR\x0fmongoCollectionB\x1aZ\x15ncbi/datasets/options\xf8\x01\x01\x62\x06proto3'
  ,
  dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,])


MONGO_FIELD_FIELD_NUMBER = 52001
mongo_field = _descriptor.FieldDescriptor(
  name='mongo_field', full_name='ncbi.datasets.options.mongo_field', index=0,
  number=52001, 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=True, extension_scope=None,
  serialized_options=None, json_name='mongoField', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key)
MONGO_COLLECTION_FIELD_NUMBER = 51000
mongo_collection = _descriptor.FieldDescriptor(
  name='mongo_collection', full_name='ncbi.datasets.options.mongo_collection', index=1,
  number=51000, 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=True, extension_scope=None,
  serialized_options=None, json_name='mongoCollection', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key)


_MONGOMESSAGEOPTIONS = _descriptor.Descriptor(
  name='MongoMessageOptions',
  full_name='ncbi.datasets.options.MongoMessageOptions',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='ncbi.datasets.options.MongoMessageOptions.collection', 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, json_name='collection', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='ncbi.datasets.options.MongoMessageOptions.key', index=1,
      number=2, 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, json_name='key', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=94,
  serialized_end=165,
)


_MONGOFIELDOPTIONS_OBJSPEC = _descriptor.Descriptor(
  name='ObjSpec',
  full_name='ncbi.datasets.options.MongoFieldOptions.ObjSpec',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='ncbi.datasets.options.MongoFieldOptions.ObjSpec.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, json_name='name', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='bson_type', full_name='ncbi.datasets.options.MongoFieldOptions.ObjSpec.bson_type', index=1,
      number=2, 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, json_name='bsonType', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='properties', full_name='ncbi.datasets.options.MongoFieldOptions.ObjSpec.properties', 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, json_name='properties', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='items', full_name='ncbi.datasets.options.MongoFieldOptions.ObjSpec.items', 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, json_name='items', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='additional_properties', full_name='ncbi.datasets.options.MongoFieldOptions.ObjSpec.additional_properties', 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, json_name='additionalProperties', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
    _descriptor.OneofDescriptor(
      name='content', full_name='ncbi.datasets.options.MongoFieldOptions.ObjSpec.content',
      index=0, containing_type=None,
      create_key=_descriptor._internal_create_key,
    fields=[]),
  ],
  serialized_start=288,
  serialized_end=620,
)

_MONGOFIELDOPTIONS = _descriptor.Descriptor(
  name='MongoFieldOptions',
  full_name='ncbi.datasets.options.MongoFieldOptions',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='required', full_name='ncbi.datasets.options.MongoFieldOptions.required', index=0,
      number=1, 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,
      serialized_options=None, json_name='required', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='spec', full_name='ncbi.datasets.options.MongoFieldOptions.spec', 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, json_name='spec', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[_MONGOFIELDOPTIONS_OBJSPEC, ],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=168,
  serialized_end=620,
)

_MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['properties'].message_type = _MONGOFIELDOPTIONS_OBJSPEC
_MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['items'].message_type = _MONGOFIELDOPTIONS_OBJSPEC
_MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['additional_properties'].message_type = _MONGOFIELDOPTIONS_OBJSPEC
_MONGOFIELDOPTIONS_OBJSPEC.containing_type = _MONGOFIELDOPTIONS
_MONGOFIELDOPTIONS_OBJSPEC.oneofs_by_name['content'].fields.append(
  _MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['properties'])
_MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['properties'].containing_oneof = _MONGOFIELDOPTIONS_OBJSPEC.oneofs_by_name['content']
_MONGOFIELDOPTIONS_OBJSPEC.oneofs_by_name['content'].fields.append(
  _MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['items'])
_MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['items'].containing_oneof = _MONGOFIELDOPTIONS_OBJSPEC.oneofs_by_name['content']
_MONGOFIELDOPTIONS_OBJSPEC.oneofs_by_name['content'].fields.append(
  _MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['additional_properties'])
_MONGOFIELDOPTIONS_OBJSPEC.fields_by_name['additional_properties'].containing_oneof = _MONGOFIELDOPTIONS_OBJSPEC.oneofs_by_name['content']
_MONGOFIELDOPTIONS.fields_by_name['spec'].message_type = _MONGOFIELDOPTIONS_OBJSPEC
DESCRIPTOR.message_types_by_name['MongoMessageOptions'] = _MONGOMESSAGEOPTIONS
DESCRIPTOR.message_types_by_name['MongoFieldOptions'] = _MONGOFIELDOPTIONS
DESCRIPTOR.extensions_by_name['mongo_field'] = mongo_field
DESCRIPTOR.extensions_by_name['mongo_collection'] = mongo_collection
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

MongoMessageOptions = _reflection.GeneratedProtocolMessageType('MongoMessageOptions', (_message.Message,), {
  'DESCRIPTOR' : _MONGOMESSAGEOPTIONS,
  '__module__' : 'ncbi.datasets.options.mongo_pb2'
  # @@protoc_insertion_point(class_scope:ncbi.datasets.options.MongoMessageOptions)
  })
_sym_db.RegisterMessage(MongoMessageOptions)

MongoFieldOptions = _reflection.GeneratedProtocolMessageType('MongoFieldOptions', (_message.Message,), {

  'ObjSpec' : _reflection.GeneratedProtocolMessageType('ObjSpec', (_message.Message,), {
    'DESCRIPTOR' : _MONGOFIELDOPTIONS_OBJSPEC,
    '__module__' : 'ncbi.datasets.options.mongo_pb2'
    # @@protoc_insertion_point(class_scope:ncbi.datasets.options.MongoFieldOptions.ObjSpec)
    })
  ,
  'DESCRIPTOR' : _MONGOFIELDOPTIONS,
  '__module__' : 'ncbi.datasets.options.mongo_pb2'
  # @@protoc_insertion_point(class_scope:ncbi.datasets.options.MongoFieldOptions)
  })
_sym_db.RegisterMessage(MongoFieldOptions)
_sym_db.RegisterMessage(MongoFieldOptions.ObjSpec)

mongo_field.message_type = _MONGOFIELDOPTIONS
google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(mongo_field)
mongo_collection.message_type = _MONGOMESSAGEOPTIONS
google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(mongo_collection)

DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
