2021-01-04 09:35:31 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
# source: nexus/models/proto/operation.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 nexus.models.proto import \
|
|
|
|
typed_document_pb2 as nexus_dot_models_dot_proto_dot_typed__document__pb2
|
|
|
|
|
|
|
|
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
|
|
name='nexus/models/proto/operation.proto',
|
|
|
|
package='nexus.models.proto',
|
|
|
|
syntax='proto3',
|
|
|
|
serialized_options=None,
|
|
|
|
create_key=_descriptor._internal_create_key,
|
2021-04-09 10:17:38 +02:00
|
|
|
serialized_pb=b'\n\"nexus/models/proto/operation.proto\x12\x12nexus.models.proto\x1a\'nexus/models/proto/typed_document.proto\"k\n\x17\x43rossReferenceOperation\x12\x0e\n\x06source\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\x12\x1b\n\x13last_retry_unixtime\x18\x03 \x01(\r\x12\x13\n\x0bretry_count\x18\x04 \x01(\r\"\x89\x01\n\x11\x44ocumentOperation\x12(\n\x04vote\x18\x01 \x01(\x0b\x32\x18.nexus.models.proto.VoteH\x00\x12=\n\x0fupdate_document\x18\x03 \x01(\x0b\x32\".nexus.models.proto.UpdateDocumentH\x00\x42\x0b\n\toperation\"b\n\x04Vote\x12\x10\n\x08voter_id\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x05\x12\x39\n\x0etyped_document\x18\x03 \x01(\x0b\x32!.nexus.models.proto.TypedDocument\"\xa6\x01\n\x0eUpdateDocument\x12\x0e\n\x06\x66ields\x18\x01 \x03(\t\x12(\n should_fill_from_external_source\x18\x02 \x01(\x08\x12\x0e\n\x06\x63ommit\x18\x03 \x01(\x08\x12\x0f\n\x07reindex\x18\x04 \x01(\x08\x12\x39\n\x0etyped_document\x18\x05 \x01(\x0b\x32!.nexus.models.proto.TypedDocumentb\x06proto3'
|
2021-01-04 09:35:31 +01:00
|
|
|
,
|
|
|
|
dependencies=[nexus_dot_models_dot_proto_dot_typed__document__pb2.DESCRIPTOR,])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_CROSSREFERENCEOPERATION = _descriptor.Descriptor(
|
|
|
|
name='CrossReferenceOperation',
|
|
|
|
full_name='nexus.models.proto.CrossReferenceOperation',
|
|
|
|
filename=None,
|
|
|
|
file=DESCRIPTOR,
|
|
|
|
containing_type=None,
|
|
|
|
create_key=_descriptor._internal_create_key,
|
|
|
|
fields=[
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='source', full_name='nexus.models.proto.CrossReferenceOperation.source', 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='target', full_name='nexus.models.proto.CrossReferenceOperation.target', 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='last_retry_unixtime', full_name='nexus.models.proto.CrossReferenceOperation.last_retry_unixtime', index=2,
|
|
|
|
number=3, 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='retry_count', full_name='nexus.models.proto.CrossReferenceOperation.retry_count', index=3,
|
|
|
|
number=4, 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='proto3',
|
|
|
|
extension_ranges=[],
|
|
|
|
oneofs=[
|
|
|
|
],
|
|
|
|
serialized_start=99,
|
|
|
|
serialized_end=206,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
_DOCUMENTOPERATION = _descriptor.Descriptor(
|
|
|
|
name='DocumentOperation',
|
|
|
|
full_name='nexus.models.proto.DocumentOperation',
|
|
|
|
filename=None,
|
|
|
|
file=DESCRIPTOR,
|
|
|
|
containing_type=None,
|
|
|
|
create_key=_descriptor._internal_create_key,
|
|
|
|
fields=[
|
|
|
|
_descriptor.FieldDescriptor(
|
2021-04-09 10:17:38 +02:00
|
|
|
name='vote', full_name='nexus.models.proto.DocumentOperation.vote', 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),
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='update_document', full_name='nexus.models.proto.DocumentOperation.update_document', index=1,
|
2021-01-04 09:35:31 +01:00
|
|
|
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=[
|
|
|
|
_descriptor.OneofDescriptor(
|
|
|
|
name='operation', full_name='nexus.models.proto.DocumentOperation.operation',
|
|
|
|
index=0, containing_type=None,
|
|
|
|
create_key=_descriptor._internal_create_key,
|
|
|
|
fields=[]),
|
|
|
|
],
|
2021-04-09 10:17:38 +02:00
|
|
|
serialized_start=209,
|
|
|
|
serialized_end=346,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
_VOTE = _descriptor.Descriptor(
|
|
|
|
name='Vote',
|
|
|
|
full_name='nexus.models.proto.Vote',
|
|
|
|
filename=None,
|
|
|
|
file=DESCRIPTOR,
|
|
|
|
containing_type=None,
|
|
|
|
create_key=_descriptor._internal_create_key,
|
|
|
|
fields=[
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='voter_id', full_name='nexus.models.proto.Vote.voter_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,
|
|
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='value', full_name='nexus.models.proto.Vote.value', 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),
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='typed_document', full_name='nexus.models.proto.Vote.typed_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=348,
|
|
|
|
serialized_end=446,
|
2021-01-04 09:35:31 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
_UPDATEDOCUMENT = _descriptor.Descriptor(
|
|
|
|
name='UpdateDocument',
|
|
|
|
full_name='nexus.models.proto.UpdateDocument',
|
|
|
|
filename=None,
|
|
|
|
file=DESCRIPTOR,
|
|
|
|
containing_type=None,
|
|
|
|
create_key=_descriptor._internal_create_key,
|
|
|
|
fields=[
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='fields', full_name='nexus.models.proto.UpdateDocument.fields', 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,
|
|
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='should_fill_from_external_source', full_name='nexus.models.proto.UpdateDocument.should_fill_from_external_source', index=1,
|
|
|
|
number=2, 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, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='commit', full_name='nexus.models.proto.UpdateDocument.commit', index=2,
|
|
|
|
number=3, 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, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='reindex', full_name='nexus.models.proto.UpdateDocument.reindex', index=3,
|
|
|
|
number=4, 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, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
|
|
_descriptor.FieldDescriptor(
|
|
|
|
name='typed_document', full_name='nexus.models.proto.UpdateDocument.typed_document', 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, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
|
|
],
|
|
|
|
extensions=[
|
|
|
|
],
|
|
|
|
nested_types=[],
|
|
|
|
enum_types=[
|
|
|
|
],
|
|
|
|
serialized_options=None,
|
|
|
|
is_extendable=False,
|
|
|
|
syntax='proto3',
|
|
|
|
extension_ranges=[],
|
|
|
|
oneofs=[
|
|
|
|
],
|
2021-04-09 10:17:38 +02:00
|
|
|
serialized_start=449,
|
|
|
|
serialized_end=615,
|
2021-01-04 09:35:31 +01:00
|
|
|
)
|
|
|
|
|
2021-04-09 10:17:38 +02:00
|
|
|
_DOCUMENTOPERATION.fields_by_name['vote'].message_type = _VOTE
|
2021-01-04 09:35:31 +01:00
|
|
|
_DOCUMENTOPERATION.fields_by_name['update_document'].message_type = _UPDATEDOCUMENT
|
2021-04-09 10:17:38 +02:00
|
|
|
_DOCUMENTOPERATION.oneofs_by_name['operation'].fields.append(
|
|
|
|
_DOCUMENTOPERATION.fields_by_name['vote'])
|
|
|
|
_DOCUMENTOPERATION.fields_by_name['vote'].containing_oneof = _DOCUMENTOPERATION.oneofs_by_name['operation']
|
2021-01-04 09:35:31 +01:00
|
|
|
_DOCUMENTOPERATION.oneofs_by_name['operation'].fields.append(
|
|
|
|
_DOCUMENTOPERATION.fields_by_name['update_document'])
|
|
|
|
_DOCUMENTOPERATION.fields_by_name['update_document'].containing_oneof = _DOCUMENTOPERATION.oneofs_by_name['operation']
|
2021-04-09 10:17:38 +02:00
|
|
|
_VOTE.fields_by_name['typed_document'].message_type = nexus_dot_models_dot_proto_dot_typed__document__pb2._TYPEDDOCUMENT
|
2021-01-04 09:35:31 +01:00
|
|
|
_UPDATEDOCUMENT.fields_by_name['typed_document'].message_type = nexus_dot_models_dot_proto_dot_typed__document__pb2._TYPEDDOCUMENT
|
|
|
|
DESCRIPTOR.message_types_by_name['CrossReferenceOperation'] = _CROSSREFERENCEOPERATION
|
|
|
|
DESCRIPTOR.message_types_by_name['DocumentOperation'] = _DOCUMENTOPERATION
|
2021-04-09 10:17:38 +02:00
|
|
|
DESCRIPTOR.message_types_by_name['Vote'] = _VOTE
|
2021-01-04 09:35:31 +01:00
|
|
|
DESCRIPTOR.message_types_by_name['UpdateDocument'] = _UPDATEDOCUMENT
|
|
|
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
|
|
|
|
|
|
CrossReferenceOperation = _reflection.GeneratedProtocolMessageType('CrossReferenceOperation', (_message.Message,), {
|
|
|
|
'DESCRIPTOR' : _CROSSREFERENCEOPERATION,
|
|
|
|
'__module__' : 'nexus.models.proto.operation_pb2'
|
|
|
|
# @@protoc_insertion_point(class_scope:nexus.models.proto.CrossReferenceOperation)
|
|
|
|
})
|
|
|
|
_sym_db.RegisterMessage(CrossReferenceOperation)
|
|
|
|
|
|
|
|
DocumentOperation = _reflection.GeneratedProtocolMessageType('DocumentOperation', (_message.Message,), {
|
|
|
|
'DESCRIPTOR' : _DOCUMENTOPERATION,
|
|
|
|
'__module__' : 'nexus.models.proto.operation_pb2'
|
|
|
|
# @@protoc_insertion_point(class_scope:nexus.models.proto.DocumentOperation)
|
|
|
|
})
|
|
|
|
_sym_db.RegisterMessage(DocumentOperation)
|
|
|
|
|
2021-04-09 10:17:38 +02:00
|
|
|
Vote = _reflection.GeneratedProtocolMessageType('Vote', (_message.Message,), {
|
|
|
|
'DESCRIPTOR' : _VOTE,
|
|
|
|
'__module__' : 'nexus.models.proto.operation_pb2'
|
|
|
|
# @@protoc_insertion_point(class_scope:nexus.models.proto.Vote)
|
|
|
|
})
|
|
|
|
_sym_db.RegisterMessage(Vote)
|
|
|
|
|
2021-01-04 09:35:31 +01:00
|
|
|
UpdateDocument = _reflection.GeneratedProtocolMessageType('UpdateDocument', (_message.Message,), {
|
|
|
|
'DESCRIPTOR' : _UPDATEDOCUMENT,
|
|
|
|
'__module__' : 'nexus.models.proto.operation_pb2'
|
|
|
|
# @@protoc_insertion_point(class_scope:nexus.models.proto.UpdateDocument)
|
|
|
|
})
|
|
|
|
_sym_db.RegisterMessage(UpdateDocument)
|
|
|
|
|
|
|
|
|
|
|
|
# @@protoc_insertion_point(module_scope)
|