# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: v1/documents.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 struct_pb2 as google_dot_protobuf_dot_struct__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='v1/documents.proto',
  package='nitric.v1.documents',
  syntax='proto3',
  serialized_options=b'\n\026io.nitric.v1.documentsB\017NitricDocumentsP\001Z\014nitric/v1;v1',
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x12v1/documents.proto\x12\x13nitric.v1.documents\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1bgoogle/protobuf/empty.proto\"c\n\x15\x43reateDocumentRequest\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12)\n\x08\x64ocument\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"5\n\x12GetDocumentRequest\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\"=\n\x10GetDocumentReply\x12)\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"c\n\x15UpdateDocumentRequest\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12)\n\x08\x64ocument\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"8\n\x15\x44\x65leteDocumentRequest\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t2\xec\x02\n\tDocuments\x12T\n\x0e\x43reateDocument\x12*.nitric.v1.documents.CreateDocumentRequest\x1a\x16.google.protobuf.Empty\x12]\n\x0bGetDocument\x12\'.nitric.v1.documents.GetDocumentRequest\x1a%.nitric.v1.documents.GetDocumentReply\x12T\n\x0eUpdateDocument\x12*.nitric.v1.documents.UpdateDocumentRequest\x1a\x16.google.protobuf.Empty\x12T\n\x0e\x44\x65leteDocument\x12*.nitric.v1.documents.DeleteDocumentRequest\x1a\x16.google.protobuf.EmptyB9\n\x16io.nitric.v1.documentsB\x0fNitricDocumentsP\x01Z\x0cnitric/v1;v1b\x06proto3'
  ,
  dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,])




_CREATEDOCUMENTREQUEST = _descriptor.Descriptor(
  name='CreateDocumentRequest',
  full_name='nitric.v1.documents.CreateDocumentRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='nitric.v1.documents.CreateDocumentRequest.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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='nitric.v1.documents.CreateDocumentRequest.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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='document', full_name='nitric.v1.documents.CreateDocumentRequest.document', 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='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=102,
  serialized_end=201,
)


_GETDOCUMENTREQUEST = _descriptor.Descriptor(
  name='GetDocumentRequest',
  full_name='nitric.v1.documents.GetDocumentRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='nitric.v1.documents.GetDocumentRequest.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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='nitric.v1.documents.GetDocumentRequest.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, 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=203,
  serialized_end=256,
)


_GETDOCUMENTREPLY = _descriptor.Descriptor(
  name='GetDocumentReply',
  full_name='nitric.v1.documents.GetDocumentReply',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='document', full_name='nitric.v1.documents.GetDocumentReply.document', 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=258,
  serialized_end=319,
)


_UPDATEDOCUMENTREQUEST = _descriptor.Descriptor(
  name='UpdateDocumentRequest',
  full_name='nitric.v1.documents.UpdateDocumentRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='nitric.v1.documents.UpdateDocumentRequest.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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='nitric.v1.documents.UpdateDocumentRequest.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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='document', full_name='nitric.v1.documents.UpdateDocumentRequest.document', 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='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=321,
  serialized_end=420,
)


_DELETEDOCUMENTREQUEST = _descriptor.Descriptor(
  name='DeleteDocumentRequest',
  full_name='nitric.v1.documents.DeleteDocumentRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='nitric.v1.documents.DeleteDocumentRequest.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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='nitric.v1.documents.DeleteDocumentRequest.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, 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=422,
  serialized_end=478,
)

_CREATEDOCUMENTREQUEST.fields_by_name['document'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT
_GETDOCUMENTREPLY.fields_by_name['document'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT
_UPDATEDOCUMENTREQUEST.fields_by_name['document'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT
DESCRIPTOR.message_types_by_name['CreateDocumentRequest'] = _CREATEDOCUMENTREQUEST
DESCRIPTOR.message_types_by_name['GetDocumentRequest'] = _GETDOCUMENTREQUEST
DESCRIPTOR.message_types_by_name['GetDocumentReply'] = _GETDOCUMENTREPLY
DESCRIPTOR.message_types_by_name['UpdateDocumentRequest'] = _UPDATEDOCUMENTREQUEST
DESCRIPTOR.message_types_by_name['DeleteDocumentRequest'] = _DELETEDOCUMENTREQUEST
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

CreateDocumentRequest = _reflection.GeneratedProtocolMessageType('CreateDocumentRequest', (_message.Message,), {
  'DESCRIPTOR' : _CREATEDOCUMENTREQUEST,
  '__module__' : 'v1.documents_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.documents.CreateDocumentRequest)
  })
_sym_db.RegisterMessage(CreateDocumentRequest)

GetDocumentRequest = _reflection.GeneratedProtocolMessageType('GetDocumentRequest', (_message.Message,), {
  'DESCRIPTOR' : _GETDOCUMENTREQUEST,
  '__module__' : 'v1.documents_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.documents.GetDocumentRequest)
  })
_sym_db.RegisterMessage(GetDocumentRequest)

GetDocumentReply = _reflection.GeneratedProtocolMessageType('GetDocumentReply', (_message.Message,), {
  'DESCRIPTOR' : _GETDOCUMENTREPLY,
  '__module__' : 'v1.documents_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.documents.GetDocumentReply)
  })
_sym_db.RegisterMessage(GetDocumentReply)

UpdateDocumentRequest = _reflection.GeneratedProtocolMessageType('UpdateDocumentRequest', (_message.Message,), {
  'DESCRIPTOR' : _UPDATEDOCUMENTREQUEST,
  '__module__' : 'v1.documents_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.documents.UpdateDocumentRequest)
  })
_sym_db.RegisterMessage(UpdateDocumentRequest)

DeleteDocumentRequest = _reflection.GeneratedProtocolMessageType('DeleteDocumentRequest', (_message.Message,), {
  'DESCRIPTOR' : _DELETEDOCUMENTREQUEST,
  '__module__' : 'v1.documents_pb2'
  # @@protoc_insertion_point(class_scope:nitric.v1.documents.DeleteDocumentRequest)
  })
_sym_db.RegisterMessage(DeleteDocumentRequest)


DESCRIPTOR._options = None

_DOCUMENTS = _descriptor.ServiceDescriptor(
  name='Documents',
  full_name='nitric.v1.documents.Documents',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=481,
  serialized_end=845,
  methods=[
  _descriptor.MethodDescriptor(
    name='CreateDocument',
    full_name='nitric.v1.documents.Documents.CreateDocument',
    index=0,
    containing_service=None,
    input_type=_CREATEDOCUMENTREQUEST,
    output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='GetDocument',
    full_name='nitric.v1.documents.Documents.GetDocument',
    index=1,
    containing_service=None,
    input_type=_GETDOCUMENTREQUEST,
    output_type=_GETDOCUMENTREPLY,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='UpdateDocument',
    full_name='nitric.v1.documents.Documents.UpdateDocument',
    index=2,
    containing_service=None,
    input_type=_UPDATEDOCUMENTREQUEST,
    output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='DeleteDocument',
    full_name='nitric.v1.documents.Documents.DeleteDocument',
    index=3,
    containing_service=None,
    input_type=_DELETEDOCUMENTREQUEST,
    output_type=google_dot_protobuf_dot_empty__pb2._EMPTY,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_DOCUMENTS)

DESCRIPTOR.services_by_name['Documents'] = _DOCUMENTS

# @@protoc_insertion_point(module_scope)
