nucliadb-protos 6.3.7.post4116__py3-none-any.whl → 6.3.7.post4120__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- build.py +0 -3
- nucliadb_protos/audit_pb2.py +25 -38
- nucliadb_protos/knowledgebox_pb2.py +91 -97
- nucliadb_protos/knowledgebox_pb2.pyi +41 -20
- nucliadb_protos/train_pb2.py +0 -32
- nucliadb_protos/train_pb2.pyi +3 -1
- nucliadb_protos/train_pb2_grpc.pyi +3 -1
- nucliadb_protos/writer_pb2.py +135 -155
- nucliadb_protos/writer_pb2.pyi +4 -53
- nucliadb_protos/writer_pb2_grpc.pyi +3 -27
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4120.dist-info}/METADATA +1 -1
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4120.dist-info}/RECORD +14 -24
- nucliadb_protos/nodereader_pb2.py +0 -179
- nucliadb_protos/nodereader_pb2.pyi +0 -1523
- nucliadb_protos/nodereader_pb2_grpc.py +0 -579
- nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
- nucliadb_protos/noderesources_pb2.py +0 -155
- nucliadb_protos/noderesources_pb2.pyi +0 -993
- nucliadb_protos/nodewriter_pb2.py +0 -90
- nucliadb_protos/nodewriter_pb2.pyi +0 -348
- nucliadb_protos/nodewriter_pb2_grpc.py +0 -571
- nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4120.dist-info}/WHEEL +0 -0
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4120.dist-info}/entry_points.txt +0 -0
@@ -1,90 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
4
|
-
# source: nucliadb_protos/nodewriter.proto
|
5
|
-
# Protobuf Python Version: 5.29.0
|
6
|
-
"""Generated protocol buffer code."""
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
11
|
-
from google.protobuf.internal import builder as _builder
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
14
|
-
5,
|
15
|
-
29,
|
16
|
-
0,
|
17
|
-
'',
|
18
|
-
'nucliadb_protos/nodewriter.proto'
|
19
|
-
)
|
20
|
-
# @@protoc_insertion_point(imports)
|
21
|
-
|
22
|
-
_sym_db = _symbol_database.Default()
|
23
|
-
|
24
|
-
|
25
|
-
from nucliadb_protos import noderesources_pb2 as nucliadb__protos_dot_noderesources__pb2
|
26
|
-
try:
|
27
|
-
nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_noderesources__pb2.nucliadb__protos_dot_utils__pb2
|
28
|
-
except AttributeError:
|
29
|
-
nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_noderesources__pb2.nucliadb_protos.utils_pb2
|
30
|
-
|
31
|
-
from nucliadb_protos.noderesources_pb2 import *
|
32
|
-
|
33
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/nodewriter.proto\x12\nnodewriter\x1a#nucliadb_protos/noderesources.proto\"\xd9\x01\n\x08OpStatus\x12+\n\x06status\x18\x01 \x01(\x0e\x32\x1b.nodewriter.OpStatus.Status\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\x17\n\x0b\x66ield_count\x18\x03 \x01(\x04\x42\x02\x18\x01\x12\x1b\n\x0fparagraph_count\x18\x05 \x01(\x04\x42\x02\x18\x01\x12\x1a\n\x0esentence_count\x18\x06 \x01(\x04\x42\x02\x18\x01\x12\x14\n\x08shard_id\x18\x04 \x01(\tB\x02\x18\x01\"(\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"\x86\x02\n\x0cIndexMessage\x12\x0c\n\x04node\x18\x01 \x01(\t\x12\r\n\x05shard\x18\x02 \x01(\t\x12\x0c\n\x04txid\x18\x03 \x01(\x04\x12\x10\n\x08resource\x18\x04 \x01(\t\x12,\n\x0btypemessage\x18\x05 \x01(\x0e\x32\x17.nodewriter.TypeMessage\x12\x12\n\nreindex_id\x18\x06 \x01(\t\x12\x16\n\tpartition\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x0bstorage_key\x18\x08 \x01(\t\x12\x0c\n\x04kbid\x18\t \x01(\t\x12.\n\x06source\x18\n \x01(\x0e\x32\x1e.nodewriter.IndexMessageSourceB\x0c\n\n_partition\"x\n\x18GarbageCollectorResponse\x12;\n\x06status\x18\x01 \x01(\x0e\x32+.nodewriter.GarbageCollectorResponse.Status\"\x1f\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\r\n\tTRY_LATER\x10\x01\"\xbc\x01\n\x11VectorIndexConfig\x12+\n\nsimilarity\x18\x01 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x19\n\x11normalize_vectors\x18\x02 \x01(\x08\x12+\n\x0bvector_type\x18\x03 \x01(\x0e\x32\x16.nodewriter.VectorType\x12\x1d\n\x10vector_dimension\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x13\n\x11_vector_dimension\"\xfb\x02\n\x0fNewShardRequest\x12/\n\nsimilarity\x18\x01 \x01(\x0e\x32\x17.utils.VectorSimilarityB\x02\x18\x01\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12.\n\x0frelease_channel\x18\x03 \x01(\x0e\x32\x15.utils.ReleaseChannel\x12\x1d\n\x11normalize_vectors\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\x31\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfigB\x02\x18\x01\x12N\n\x12vectorsets_configs\x18\x06 \x03(\x0b\x32\x32.nodewriter.NewShardRequest.VectorsetsConfigsEntry\x1aW\n\x16VectorsetsConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfig:\x02\x38\x01\"\xbc\x01\n\x13NewVectorSetRequest\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.noderesources.VectorSetID\x12/\n\nsimilarity\x18\x02 \x01(\x0e\x32\x17.utils.VectorSimilarityB\x02\x18\x01\x12\x1d\n\x11normalize_vectors\x18\x03 \x01(\x08\x42\x02\x18\x01\x12-\n\x06\x63onfig\x18\x04 \x01(\x0b\x32\x1d.nodewriter.VectorIndexConfig\"\x92\x01\n\rMergeResponse\x12\x35\n\x06status\x18\x01 \x01(\x0e\x32%.nodewriter.MergeResponse.MergeStatus\x12\x17\n\x0fmerged_segments\x18\x02 \x01(\r\x12\x1a\n\x12remaining_segments\x18\x03 \x01(\r\"\x15\n\x0bMergeStatus\x12\x06\n\x02OK\x10\x00*)\n\x0bTypeMessage\x12\x0c\n\x08\x43REATION\x10\x00\x12\x0c\n\x08\x44\x45LETION\x10\x01*/\n\x12IndexMessageSource\x12\r\n\tPROCESSOR\x10\x00\x12\n\n\x06WRITER\x10\x01*\x1b\n\nVectorType\x12\r\n\tDENSE_F32\x10\x00\x32\xd1\x06\n\nNodeWriter\x12\x46\n\x08NewShard\x12\x1b.nodewriter.NewShardRequest\x1a\x1b.noderesources.ShardCreated\"\x00\x12?\n\x0b\x44\x65leteShard\x12\x16.noderesources.ShardId\x1a\x16.noderesources.ShardId\"\x00\x12\x42\n\nListShards\x12\x19.noderesources.EmptyQuery\x1a\x17.noderesources.ShardIds\"\x00\x12\x44\n\x02GC\x12\x16.noderesources.ShardId\x1a$.nodewriter.GarbageCollectorResponse\"\x00\x12<\n\x05Merge\x12\x16.noderesources.ShardId\x1a\x19.nodewriter.MergeResponse\"\x00\x12>\n\x0bSetResource\x12\x17.noderesources.Resource\x1a\x14.nodewriter.OpStatus\"\x00\x12J\n\x16SetResourceFromStorage\x12\x18.nodewriter.IndexMessage\x1a\x14.nodewriter.OpStatus\"\x00\x12\x43\n\x0eRemoveResource\x12\x19.noderesources.ResourceID\x1a\x14.nodewriter.OpStatus\"\x00\x12G\n\x0c\x41\x64\x64VectorSet\x12\x1f.nodewriter.NewVectorSetRequest\x1a\x14.nodewriter.OpStatus\"\x00\x12\x45\n\x0fRemoveVectorSet\x12\x1a.noderesources.VectorSetID\x1a\x14.nodewriter.OpStatus\"\x00\x12H\n\x0eListVectorSets\x12\x16.noderesources.ShardId\x1a\x1c.noderesources.VectorSetList\"\x00\x12G\n\x0bGetMetadata\x12\x19.noderesources.EmptyQuery\x1a\x1b.noderesources.NodeMetadata\"\x00P\x00\x62\x06proto3')
|
34
|
-
|
35
|
-
_globals = globals()
|
36
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
37
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.nodewriter_pb2', _globals)
|
38
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
39
|
-
DESCRIPTOR._loaded_options = None
|
40
|
-
_globals['_OPSTATUS'].fields_by_name['field_count']._loaded_options = None
|
41
|
-
_globals['_OPSTATUS'].fields_by_name['field_count']._serialized_options = b'\030\001'
|
42
|
-
_globals['_OPSTATUS'].fields_by_name['paragraph_count']._loaded_options = None
|
43
|
-
_globals['_OPSTATUS'].fields_by_name['paragraph_count']._serialized_options = b'\030\001'
|
44
|
-
_globals['_OPSTATUS'].fields_by_name['sentence_count']._loaded_options = None
|
45
|
-
_globals['_OPSTATUS'].fields_by_name['sentence_count']._serialized_options = b'\030\001'
|
46
|
-
_globals['_OPSTATUS'].fields_by_name['shard_id']._loaded_options = None
|
47
|
-
_globals['_OPSTATUS'].fields_by_name['shard_id']._serialized_options = b'\030\001'
|
48
|
-
_globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._loaded_options = None
|
49
|
-
_globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_options = b'8\001'
|
50
|
-
_globals['_NEWSHARDREQUEST'].fields_by_name['similarity']._loaded_options = None
|
51
|
-
_globals['_NEWSHARDREQUEST'].fields_by_name['similarity']._serialized_options = b'\030\001'
|
52
|
-
_globals['_NEWSHARDREQUEST'].fields_by_name['normalize_vectors']._loaded_options = None
|
53
|
-
_globals['_NEWSHARDREQUEST'].fields_by_name['normalize_vectors']._serialized_options = b'\030\001'
|
54
|
-
_globals['_NEWSHARDREQUEST'].fields_by_name['config']._loaded_options = None
|
55
|
-
_globals['_NEWSHARDREQUEST'].fields_by_name['config']._serialized_options = b'\030\001'
|
56
|
-
_globals['_NEWVECTORSETREQUEST'].fields_by_name['similarity']._loaded_options = None
|
57
|
-
_globals['_NEWVECTORSETREQUEST'].fields_by_name['similarity']._serialized_options = b'\030\001'
|
58
|
-
_globals['_NEWVECTORSETREQUEST'].fields_by_name['normalize_vectors']._loaded_options = None
|
59
|
-
_globals['_NEWVECTORSETREQUEST'].fields_by_name['normalize_vectors']._serialized_options = b'\030\001'
|
60
|
-
_globals['_TYPEMESSAGE']._serialized_start=1605
|
61
|
-
_globals['_TYPEMESSAGE']._serialized_end=1646
|
62
|
-
_globals['_INDEXMESSAGESOURCE']._serialized_start=1648
|
63
|
-
_globals['_INDEXMESSAGESOURCE']._serialized_end=1695
|
64
|
-
_globals['_VECTORTYPE']._serialized_start=1697
|
65
|
-
_globals['_VECTORTYPE']._serialized_end=1724
|
66
|
-
_globals['_OPSTATUS']._serialized_start=86
|
67
|
-
_globals['_OPSTATUS']._serialized_end=303
|
68
|
-
_globals['_OPSTATUS_STATUS']._serialized_start=263
|
69
|
-
_globals['_OPSTATUS_STATUS']._serialized_end=303
|
70
|
-
_globals['_INDEXMESSAGE']._serialized_start=306
|
71
|
-
_globals['_INDEXMESSAGE']._serialized_end=568
|
72
|
-
_globals['_GARBAGECOLLECTORRESPONSE']._serialized_start=570
|
73
|
-
_globals['_GARBAGECOLLECTORRESPONSE']._serialized_end=690
|
74
|
-
_globals['_GARBAGECOLLECTORRESPONSE_STATUS']._serialized_start=659
|
75
|
-
_globals['_GARBAGECOLLECTORRESPONSE_STATUS']._serialized_end=690
|
76
|
-
_globals['_VECTORINDEXCONFIG']._serialized_start=693
|
77
|
-
_globals['_VECTORINDEXCONFIG']._serialized_end=881
|
78
|
-
_globals['_NEWSHARDREQUEST']._serialized_start=884
|
79
|
-
_globals['_NEWSHARDREQUEST']._serialized_end=1263
|
80
|
-
_globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_start=1176
|
81
|
-
_globals['_NEWSHARDREQUEST_VECTORSETSCONFIGSENTRY']._serialized_end=1263
|
82
|
-
_globals['_NEWVECTORSETREQUEST']._serialized_start=1266
|
83
|
-
_globals['_NEWVECTORSETREQUEST']._serialized_end=1454
|
84
|
-
_globals['_MERGERESPONSE']._serialized_start=1457
|
85
|
-
_globals['_MERGERESPONSE']._serialized_end=1603
|
86
|
-
_globals['_MERGERESPONSE_MERGESTATUS']._serialized_start=1582
|
87
|
-
_globals['_MERGERESPONSE_MERGESTATUS']._serialized_end=1603
|
88
|
-
_globals['_NODEWRITER']._serialized_start=1727
|
89
|
-
_globals['_NODEWRITER']._serialized_end=2576
|
90
|
-
# @@protoc_insertion_point(module_scope)
|
@@ -1,348 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
3
|
-
isort:skip_file
|
4
|
-
"""
|
5
|
-
|
6
|
-
import builtins
|
7
|
-
import collections.abc
|
8
|
-
import google.protobuf.descriptor
|
9
|
-
import google.protobuf.internal.containers
|
10
|
-
import google.protobuf.internal.enum_type_wrapper
|
11
|
-
import google.protobuf.message
|
12
|
-
import nucliadb_protos.noderesources_pb2
|
13
|
-
import nucliadb_protos.utils_pb2
|
14
|
-
import sys
|
15
|
-
import typing
|
16
|
-
|
17
|
-
if sys.version_info >= (3, 10):
|
18
|
-
import typing as typing_extensions
|
19
|
-
else:
|
20
|
-
import typing_extensions
|
21
|
-
from nucliadb_protos.noderesources_pb2 import (
|
22
|
-
EmptyQuery as EmptyQuery,
|
23
|
-
EmptyResponse as EmptyResponse,
|
24
|
-
IndexMetadata as IndexMetadata,
|
25
|
-
IndexParagraph as IndexParagraph,
|
26
|
-
IndexParagraphs as IndexParagraphs,
|
27
|
-
IndexRelation as IndexRelation,
|
28
|
-
IndexRelations as IndexRelations,
|
29
|
-
NodeMetadata as NodeMetadata,
|
30
|
-
ParagraphMetadata as ParagraphMetadata,
|
31
|
-
Position as Position,
|
32
|
-
Representation as Representation,
|
33
|
-
Resource as Resource,
|
34
|
-
ResourceID as ResourceID,
|
35
|
-
SentenceMetadata as SentenceMetadata,
|
36
|
-
Shard as Shard,
|
37
|
-
ShardCreated as ShardCreated,
|
38
|
-
ShardId as ShardId,
|
39
|
-
ShardIds as ShardIds,
|
40
|
-
ShardMetadata as ShardMetadata,
|
41
|
-
StringList as StringList,
|
42
|
-
TextInformation as TextInformation,
|
43
|
-
VectorSentence as VectorSentence,
|
44
|
-
VectorSetID as VectorSetID,
|
45
|
-
VectorSetList as VectorSetList,
|
46
|
-
VectorsetSentences as VectorsetSentences,
|
47
|
-
)
|
48
|
-
|
49
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
50
|
-
|
51
|
-
class _TypeMessage:
|
52
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
53
|
-
V: typing_extensions.TypeAlias = ValueType
|
54
|
-
|
55
|
-
class _TypeMessageEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TypeMessage.ValueType], builtins.type):
|
56
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
57
|
-
CREATION: _TypeMessage.ValueType # 0
|
58
|
-
DELETION: _TypeMessage.ValueType # 1
|
59
|
-
|
60
|
-
class TypeMessage(_TypeMessage, metaclass=_TypeMessageEnumTypeWrapper):
|
61
|
-
"""Implemented at nucliadb_object_storage"""
|
62
|
-
|
63
|
-
CREATION: TypeMessage.ValueType # 0
|
64
|
-
DELETION: TypeMessage.ValueType # 1
|
65
|
-
global___TypeMessage = TypeMessage
|
66
|
-
|
67
|
-
class _IndexMessageSource:
|
68
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
69
|
-
V: typing_extensions.TypeAlias = ValueType
|
70
|
-
|
71
|
-
class _IndexMessageSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IndexMessageSource.ValueType], builtins.type):
|
72
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
73
|
-
PROCESSOR: _IndexMessageSource.ValueType # 0
|
74
|
-
WRITER: _IndexMessageSource.ValueType # 1
|
75
|
-
|
76
|
-
class IndexMessageSource(_IndexMessageSource, metaclass=_IndexMessageSourceEnumTypeWrapper): ...
|
77
|
-
|
78
|
-
PROCESSOR: IndexMessageSource.ValueType # 0
|
79
|
-
WRITER: IndexMessageSource.ValueType # 1
|
80
|
-
global___IndexMessageSource = IndexMessageSource
|
81
|
-
|
82
|
-
class _VectorType:
|
83
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
84
|
-
V: typing_extensions.TypeAlias = ValueType
|
85
|
-
|
86
|
-
class _VectorTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VectorType.ValueType], builtins.type):
|
87
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
88
|
-
DENSE_F32: _VectorType.ValueType # 0
|
89
|
-
|
90
|
-
class VectorType(_VectorType, metaclass=_VectorTypeEnumTypeWrapper): ...
|
91
|
-
|
92
|
-
DENSE_F32: VectorType.ValueType # 0
|
93
|
-
global___VectorType = VectorType
|
94
|
-
|
95
|
-
@typing.final
|
96
|
-
class OpStatus(google.protobuf.message.Message):
|
97
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
98
|
-
|
99
|
-
class _Status:
|
100
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
101
|
-
V: typing_extensions.TypeAlias = ValueType
|
102
|
-
|
103
|
-
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OpStatus._Status.ValueType], builtins.type):
|
104
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
105
|
-
OK: OpStatus._Status.ValueType # 0
|
106
|
-
WARNING: OpStatus._Status.ValueType # 1
|
107
|
-
ERROR: OpStatus._Status.ValueType # 2
|
108
|
-
|
109
|
-
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
110
|
-
OK: OpStatus.Status.ValueType # 0
|
111
|
-
WARNING: OpStatus.Status.ValueType # 1
|
112
|
-
ERROR: OpStatus.Status.ValueType # 2
|
113
|
-
|
114
|
-
STATUS_FIELD_NUMBER: builtins.int
|
115
|
-
DETAIL_FIELD_NUMBER: builtins.int
|
116
|
-
FIELD_COUNT_FIELD_NUMBER: builtins.int
|
117
|
-
PARAGRAPH_COUNT_FIELD_NUMBER: builtins.int
|
118
|
-
SENTENCE_COUNT_FIELD_NUMBER: builtins.int
|
119
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
120
|
-
status: global___OpStatus.Status.ValueType
|
121
|
-
detail: builtins.str
|
122
|
-
field_count: builtins.int
|
123
|
-
paragraph_count: builtins.int
|
124
|
-
sentence_count: builtins.int
|
125
|
-
shard_id: builtins.str
|
126
|
-
def __init__(
|
127
|
-
self,
|
128
|
-
*,
|
129
|
-
status: global___OpStatus.Status.ValueType = ...,
|
130
|
-
detail: builtins.str = ...,
|
131
|
-
field_count: builtins.int = ...,
|
132
|
-
paragraph_count: builtins.int = ...,
|
133
|
-
sentence_count: builtins.int = ...,
|
134
|
-
shard_id: builtins.str = ...,
|
135
|
-
) -> None: ...
|
136
|
-
def ClearField(self, field_name: typing.Literal["detail", b"detail", "field_count", b"field_count", "paragraph_count", b"paragraph_count", "sentence_count", b"sentence_count", "shard_id", b"shard_id", "status", b"status"]) -> None: ...
|
137
|
-
|
138
|
-
global___OpStatus = OpStatus
|
139
|
-
|
140
|
-
@typing.final
|
141
|
-
class IndexMessage(google.protobuf.message.Message):
|
142
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
143
|
-
|
144
|
-
NODE_FIELD_NUMBER: builtins.int
|
145
|
-
SHARD_FIELD_NUMBER: builtins.int
|
146
|
-
TXID_FIELD_NUMBER: builtins.int
|
147
|
-
RESOURCE_FIELD_NUMBER: builtins.int
|
148
|
-
TYPEMESSAGE_FIELD_NUMBER: builtins.int
|
149
|
-
REINDEX_ID_FIELD_NUMBER: builtins.int
|
150
|
-
PARTITION_FIELD_NUMBER: builtins.int
|
151
|
-
STORAGE_KEY_FIELD_NUMBER: builtins.int
|
152
|
-
KBID_FIELD_NUMBER: builtins.int
|
153
|
-
SOURCE_FIELD_NUMBER: builtins.int
|
154
|
-
node: builtins.str
|
155
|
-
shard: builtins.str
|
156
|
-
"""physical shard message is for"""
|
157
|
-
txid: builtins.int
|
158
|
-
resource: builtins.str
|
159
|
-
typemessage: global___TypeMessage.ValueType
|
160
|
-
reindex_id: builtins.str
|
161
|
-
partition: builtins.str
|
162
|
-
storage_key: builtins.str
|
163
|
-
kbid: builtins.str
|
164
|
-
source: global___IndexMessageSource.ValueType
|
165
|
-
def __init__(
|
166
|
-
self,
|
167
|
-
*,
|
168
|
-
node: builtins.str = ...,
|
169
|
-
shard: builtins.str = ...,
|
170
|
-
txid: builtins.int = ...,
|
171
|
-
resource: builtins.str = ...,
|
172
|
-
typemessage: global___TypeMessage.ValueType = ...,
|
173
|
-
reindex_id: builtins.str = ...,
|
174
|
-
partition: builtins.str | None = ...,
|
175
|
-
storage_key: builtins.str = ...,
|
176
|
-
kbid: builtins.str = ...,
|
177
|
-
source: global___IndexMessageSource.ValueType = ...,
|
178
|
-
) -> None: ...
|
179
|
-
def HasField(self, field_name: typing.Literal["_partition", b"_partition", "partition", b"partition"]) -> builtins.bool: ...
|
180
|
-
def ClearField(self, field_name: typing.Literal["_partition", b"_partition", "kbid", b"kbid", "node", b"node", "partition", b"partition", "reindex_id", b"reindex_id", "resource", b"resource", "shard", b"shard", "source", b"source", "storage_key", b"storage_key", "txid", b"txid", "typemessage", b"typemessage"]) -> None: ...
|
181
|
-
def WhichOneof(self, oneof_group: typing.Literal["_partition", b"_partition"]) -> typing.Literal["partition"] | None: ...
|
182
|
-
|
183
|
-
global___IndexMessage = IndexMessage
|
184
|
-
|
185
|
-
@typing.final
|
186
|
-
class GarbageCollectorResponse(google.protobuf.message.Message):
|
187
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
188
|
-
|
189
|
-
class _Status:
|
190
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
191
|
-
V: typing_extensions.TypeAlias = ValueType
|
192
|
-
|
193
|
-
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GarbageCollectorResponse._Status.ValueType], builtins.type):
|
194
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
195
|
-
OK: GarbageCollectorResponse._Status.ValueType # 0
|
196
|
-
TRY_LATER: GarbageCollectorResponse._Status.ValueType # 1
|
197
|
-
|
198
|
-
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
199
|
-
OK: GarbageCollectorResponse.Status.ValueType # 0
|
200
|
-
TRY_LATER: GarbageCollectorResponse.Status.ValueType # 1
|
201
|
-
|
202
|
-
STATUS_FIELD_NUMBER: builtins.int
|
203
|
-
status: global___GarbageCollectorResponse.Status.ValueType
|
204
|
-
def __init__(
|
205
|
-
self,
|
206
|
-
*,
|
207
|
-
status: global___GarbageCollectorResponse.Status.ValueType = ...,
|
208
|
-
) -> None: ...
|
209
|
-
def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
|
210
|
-
|
211
|
-
global___GarbageCollectorResponse = GarbageCollectorResponse
|
212
|
-
|
213
|
-
@typing.final
|
214
|
-
class VectorIndexConfig(google.protobuf.message.Message):
|
215
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
216
|
-
|
217
|
-
SIMILARITY_FIELD_NUMBER: builtins.int
|
218
|
-
NORMALIZE_VECTORS_FIELD_NUMBER: builtins.int
|
219
|
-
VECTOR_TYPE_FIELD_NUMBER: builtins.int
|
220
|
-
VECTOR_DIMENSION_FIELD_NUMBER: builtins.int
|
221
|
-
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
|
222
|
-
normalize_vectors: builtins.bool
|
223
|
-
vector_type: global___VectorType.ValueType
|
224
|
-
vector_dimension: builtins.int
|
225
|
-
def __init__(
|
226
|
-
self,
|
227
|
-
*,
|
228
|
-
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
|
229
|
-
normalize_vectors: builtins.bool = ...,
|
230
|
-
vector_type: global___VectorType.ValueType = ...,
|
231
|
-
vector_dimension: builtins.int | None = ...,
|
232
|
-
) -> None: ...
|
233
|
-
def HasField(self, field_name: typing.Literal["_vector_dimension", b"_vector_dimension", "vector_dimension", b"vector_dimension"]) -> builtins.bool: ...
|
234
|
-
def ClearField(self, field_name: typing.Literal["_vector_dimension", b"_vector_dimension", "normalize_vectors", b"normalize_vectors", "similarity", b"similarity", "vector_dimension", b"vector_dimension", "vector_type", b"vector_type"]) -> None: ...
|
235
|
-
def WhichOneof(self, oneof_group: typing.Literal["_vector_dimension", b"_vector_dimension"]) -> typing.Literal["vector_dimension"] | None: ...
|
236
|
-
|
237
|
-
global___VectorIndexConfig = VectorIndexConfig
|
238
|
-
|
239
|
-
@typing.final
|
240
|
-
class NewShardRequest(google.protobuf.message.Message):
|
241
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
242
|
-
|
243
|
-
@typing.final
|
244
|
-
class VectorsetsConfigsEntry(google.protobuf.message.Message):
|
245
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
246
|
-
|
247
|
-
KEY_FIELD_NUMBER: builtins.int
|
248
|
-
VALUE_FIELD_NUMBER: builtins.int
|
249
|
-
key: builtins.str
|
250
|
-
@property
|
251
|
-
def value(self) -> global___VectorIndexConfig: ...
|
252
|
-
def __init__(
|
253
|
-
self,
|
254
|
-
*,
|
255
|
-
key: builtins.str = ...,
|
256
|
-
value: global___VectorIndexConfig | None = ...,
|
257
|
-
) -> None: ...
|
258
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
259
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
260
|
-
|
261
|
-
SIMILARITY_FIELD_NUMBER: builtins.int
|
262
|
-
KBID_FIELD_NUMBER: builtins.int
|
263
|
-
RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
|
264
|
-
NORMALIZE_VECTORS_FIELD_NUMBER: builtins.int
|
265
|
-
CONFIG_FIELD_NUMBER: builtins.int
|
266
|
-
VECTORSETS_CONFIGS_FIELD_NUMBER: builtins.int
|
267
|
-
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
|
268
|
-
kbid: builtins.str
|
269
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
|
270
|
-
normalize_vectors: builtins.bool
|
271
|
-
"""indicates whether the shard should normalize vectors on indexing or not"""
|
272
|
-
@property
|
273
|
-
def config(self) -> global___VectorIndexConfig: ...
|
274
|
-
@property
|
275
|
-
def vectorsets_configs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___VectorIndexConfig]: ...
|
276
|
-
def __init__(
|
277
|
-
self,
|
278
|
-
*,
|
279
|
-
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
|
280
|
-
kbid: builtins.str = ...,
|
281
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
|
282
|
-
normalize_vectors: builtins.bool = ...,
|
283
|
-
config: global___VectorIndexConfig | None = ...,
|
284
|
-
vectorsets_configs: collections.abc.Mapping[builtins.str, global___VectorIndexConfig] | None = ...,
|
285
|
-
) -> None: ...
|
286
|
-
def HasField(self, field_name: typing.Literal["config", b"config"]) -> builtins.bool: ...
|
287
|
-
def ClearField(self, field_name: typing.Literal["config", b"config", "kbid", b"kbid", "normalize_vectors", b"normalize_vectors", "release_channel", b"release_channel", "similarity", b"similarity", "vectorsets_configs", b"vectorsets_configs"]) -> None: ...
|
288
|
-
|
289
|
-
global___NewShardRequest = NewShardRequest
|
290
|
-
|
291
|
-
@typing.final
|
292
|
-
class NewVectorSetRequest(google.protobuf.message.Message):
|
293
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
294
|
-
|
295
|
-
ID_FIELD_NUMBER: builtins.int
|
296
|
-
SIMILARITY_FIELD_NUMBER: builtins.int
|
297
|
-
NORMALIZE_VECTORS_FIELD_NUMBER: builtins.int
|
298
|
-
CONFIG_FIELD_NUMBER: builtins.int
|
299
|
-
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
|
300
|
-
normalize_vectors: builtins.bool
|
301
|
-
@property
|
302
|
-
def id(self) -> nucliadb_protos.noderesources_pb2.VectorSetID: ...
|
303
|
-
@property
|
304
|
-
def config(self) -> global___VectorIndexConfig: ...
|
305
|
-
def __init__(
|
306
|
-
self,
|
307
|
-
*,
|
308
|
-
id: nucliadb_protos.noderesources_pb2.VectorSetID | None = ...,
|
309
|
-
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
|
310
|
-
normalize_vectors: builtins.bool = ...,
|
311
|
-
config: global___VectorIndexConfig | None = ...,
|
312
|
-
) -> None: ...
|
313
|
-
def HasField(self, field_name: typing.Literal["config", b"config", "id", b"id"]) -> builtins.bool: ...
|
314
|
-
def ClearField(self, field_name: typing.Literal["config", b"config", "id", b"id", "normalize_vectors", b"normalize_vectors", "similarity", b"similarity"]) -> None: ...
|
315
|
-
|
316
|
-
global___NewVectorSetRequest = NewVectorSetRequest
|
317
|
-
|
318
|
-
@typing.final
|
319
|
-
class MergeResponse(google.protobuf.message.Message):
|
320
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
321
|
-
|
322
|
-
class _MergeStatus:
|
323
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
324
|
-
V: typing_extensions.TypeAlias = ValueType
|
325
|
-
|
326
|
-
class _MergeStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MergeResponse._MergeStatus.ValueType], builtins.type):
|
327
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
328
|
-
OK: MergeResponse._MergeStatus.ValueType # 0
|
329
|
-
|
330
|
-
class MergeStatus(_MergeStatus, metaclass=_MergeStatusEnumTypeWrapper): ...
|
331
|
-
OK: MergeResponse.MergeStatus.ValueType # 0
|
332
|
-
|
333
|
-
STATUS_FIELD_NUMBER: builtins.int
|
334
|
-
MERGED_SEGMENTS_FIELD_NUMBER: builtins.int
|
335
|
-
REMAINING_SEGMENTS_FIELD_NUMBER: builtins.int
|
336
|
-
status: global___MergeResponse.MergeStatus.ValueType
|
337
|
-
merged_segments: builtins.int
|
338
|
-
remaining_segments: builtins.int
|
339
|
-
def __init__(
|
340
|
-
self,
|
341
|
-
*,
|
342
|
-
status: global___MergeResponse.MergeStatus.ValueType = ...,
|
343
|
-
merged_segments: builtins.int = ...,
|
344
|
-
remaining_segments: builtins.int = ...,
|
345
|
-
) -> None: ...
|
346
|
-
def ClearField(self, field_name: typing.Literal["merged_segments", b"merged_segments", "remaining_segments", b"remaining_segments", "status", b"status"]) -> None: ...
|
347
|
-
|
348
|
-
global___MergeResponse = MergeResponse
|