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,993 +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 google.protobuf.timestamp_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.utils_pb2 import (
|
22
|
-
COSINE as COSINE,
|
23
|
-
DOT as DOT,
|
24
|
-
EXPERIMENTAL as EXPERIMENTAL,
|
25
|
-
ExtractedText as ExtractedText,
|
26
|
-
Relation as Relation,
|
27
|
-
RelationMetadata as RelationMetadata,
|
28
|
-
RelationNode as RelationNode,
|
29
|
-
ReleaseChannel as ReleaseChannel,
|
30
|
-
STABLE as STABLE,
|
31
|
-
Security as Security,
|
32
|
-
UserVector as UserVector,
|
33
|
-
UserVectorSet as UserVectorSet,
|
34
|
-
UserVectors as UserVectors,
|
35
|
-
UserVectorsList as UserVectorsList,
|
36
|
-
Vector as Vector,
|
37
|
-
VectorObject as VectorObject,
|
38
|
-
VectorSimilarity as VectorSimilarity,
|
39
|
-
Vectors as Vectors,
|
40
|
-
)
|
41
|
-
|
42
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
43
|
-
|
44
|
-
@typing.final
|
45
|
-
class TextInformation(google.protobuf.message.Message):
|
46
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
47
|
-
|
48
|
-
TEXT_FIELD_NUMBER: builtins.int
|
49
|
-
LABELS_FIELD_NUMBER: builtins.int
|
50
|
-
text: builtins.str
|
51
|
-
@property
|
52
|
-
def labels(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
53
|
-
def __init__(
|
54
|
-
self,
|
55
|
-
*,
|
56
|
-
text: builtins.str = ...,
|
57
|
-
labels: collections.abc.Iterable[builtins.str] | None = ...,
|
58
|
-
) -> None: ...
|
59
|
-
def ClearField(self, field_name: typing.Literal["labels", b"labels", "text", b"text"]) -> None: ...
|
60
|
-
|
61
|
-
global___TextInformation = TextInformation
|
62
|
-
|
63
|
-
@typing.final
|
64
|
-
class IndexMetadata(google.protobuf.message.Message):
|
65
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
66
|
-
|
67
|
-
MODIFIED_FIELD_NUMBER: builtins.int
|
68
|
-
CREATED_FIELD_NUMBER: builtins.int
|
69
|
-
@property
|
70
|
-
def modified(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
71
|
-
"""Tantivy doc & para"""
|
72
|
-
|
73
|
-
@property
|
74
|
-
def created(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
75
|
-
"""Tantivy doc & para"""
|
76
|
-
|
77
|
-
def __init__(
|
78
|
-
self,
|
79
|
-
*,
|
80
|
-
modified: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
81
|
-
created: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
82
|
-
) -> None: ...
|
83
|
-
def HasField(self, field_name: typing.Literal["created", b"created", "modified", b"modified"]) -> builtins.bool: ...
|
84
|
-
def ClearField(self, field_name: typing.Literal["created", b"created", "modified", b"modified"]) -> None: ...
|
85
|
-
|
86
|
-
global___IndexMetadata = IndexMetadata
|
87
|
-
|
88
|
-
@typing.final
|
89
|
-
class ShardId(google.protobuf.message.Message):
|
90
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
91
|
-
|
92
|
-
ID_FIELD_NUMBER: builtins.int
|
93
|
-
id: builtins.str
|
94
|
-
def __init__(
|
95
|
-
self,
|
96
|
-
*,
|
97
|
-
id: builtins.str = ...,
|
98
|
-
) -> None: ...
|
99
|
-
def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ...
|
100
|
-
|
101
|
-
global___ShardId = ShardId
|
102
|
-
|
103
|
-
@typing.final
|
104
|
-
class ShardIds(google.protobuf.message.Message):
|
105
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
106
|
-
|
107
|
-
IDS_FIELD_NUMBER: builtins.int
|
108
|
-
@property
|
109
|
-
def ids(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardId]: ...
|
110
|
-
def __init__(
|
111
|
-
self,
|
112
|
-
*,
|
113
|
-
ids: collections.abc.Iterable[global___ShardId] | None = ...,
|
114
|
-
) -> None: ...
|
115
|
-
def ClearField(self, field_name: typing.Literal["ids", b"ids"]) -> None: ...
|
116
|
-
|
117
|
-
global___ShardIds = ShardIds
|
118
|
-
|
119
|
-
@typing.final
|
120
|
-
class ShardCreated(google.protobuf.message.Message):
|
121
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
122
|
-
|
123
|
-
class _DocumentService:
|
124
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
125
|
-
V: typing_extensions.TypeAlias = ValueType
|
126
|
-
|
127
|
-
class _DocumentServiceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ShardCreated._DocumentService.ValueType], builtins.type):
|
128
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
129
|
-
DOCUMENT_V0: ShardCreated._DocumentService.ValueType # 0
|
130
|
-
DOCUMENT_V1: ShardCreated._DocumentService.ValueType # 1
|
131
|
-
DOCUMENT_V2: ShardCreated._DocumentService.ValueType # 2
|
132
|
-
DOCUMENT_V3: ShardCreated._DocumentService.ValueType # 3
|
133
|
-
|
134
|
-
class DocumentService(_DocumentService, metaclass=_DocumentServiceEnumTypeWrapper): ...
|
135
|
-
DOCUMENT_V0: ShardCreated.DocumentService.ValueType # 0
|
136
|
-
DOCUMENT_V1: ShardCreated.DocumentService.ValueType # 1
|
137
|
-
DOCUMENT_V2: ShardCreated.DocumentService.ValueType # 2
|
138
|
-
DOCUMENT_V3: ShardCreated.DocumentService.ValueType # 3
|
139
|
-
|
140
|
-
class _ParagraphService:
|
141
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
142
|
-
V: typing_extensions.TypeAlias = ValueType
|
143
|
-
|
144
|
-
class _ParagraphServiceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ShardCreated._ParagraphService.ValueType], builtins.type):
|
145
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
146
|
-
PARAGRAPH_V0: ShardCreated._ParagraphService.ValueType # 0
|
147
|
-
PARAGRAPH_V1: ShardCreated._ParagraphService.ValueType # 1
|
148
|
-
PARAGRAPH_V2: ShardCreated._ParagraphService.ValueType # 2
|
149
|
-
PARAGRAPH_V3: ShardCreated._ParagraphService.ValueType # 3
|
150
|
-
|
151
|
-
class ParagraphService(_ParagraphService, metaclass=_ParagraphServiceEnumTypeWrapper): ...
|
152
|
-
PARAGRAPH_V0: ShardCreated.ParagraphService.ValueType # 0
|
153
|
-
PARAGRAPH_V1: ShardCreated.ParagraphService.ValueType # 1
|
154
|
-
PARAGRAPH_V2: ShardCreated.ParagraphService.ValueType # 2
|
155
|
-
PARAGRAPH_V3: ShardCreated.ParagraphService.ValueType # 3
|
156
|
-
|
157
|
-
class _VectorService:
|
158
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
159
|
-
V: typing_extensions.TypeAlias = ValueType
|
160
|
-
|
161
|
-
class _VectorServiceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ShardCreated._VectorService.ValueType], builtins.type):
|
162
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
163
|
-
VECTOR_V0: ShardCreated._VectorService.ValueType # 0
|
164
|
-
VECTOR_V1: ShardCreated._VectorService.ValueType # 1
|
165
|
-
|
166
|
-
class VectorService(_VectorService, metaclass=_VectorServiceEnumTypeWrapper): ...
|
167
|
-
VECTOR_V0: ShardCreated.VectorService.ValueType # 0
|
168
|
-
VECTOR_V1: ShardCreated.VectorService.ValueType # 1
|
169
|
-
|
170
|
-
class _RelationService:
|
171
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
172
|
-
V: typing_extensions.TypeAlias = ValueType
|
173
|
-
|
174
|
-
class _RelationServiceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ShardCreated._RelationService.ValueType], builtins.type):
|
175
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
176
|
-
RELATION_V0: ShardCreated._RelationService.ValueType # 0
|
177
|
-
RELATION_V1: ShardCreated._RelationService.ValueType # 1
|
178
|
-
RELATION_V2: ShardCreated._RelationService.ValueType # 2
|
179
|
-
|
180
|
-
class RelationService(_RelationService, metaclass=_RelationServiceEnumTypeWrapper): ...
|
181
|
-
RELATION_V0: ShardCreated.RelationService.ValueType # 0
|
182
|
-
RELATION_V1: ShardCreated.RelationService.ValueType # 1
|
183
|
-
RELATION_V2: ShardCreated.RelationService.ValueType # 2
|
184
|
-
|
185
|
-
ID_FIELD_NUMBER: builtins.int
|
186
|
-
DOCUMENT_SERVICE_FIELD_NUMBER: builtins.int
|
187
|
-
PARAGRAPH_SERVICE_FIELD_NUMBER: builtins.int
|
188
|
-
VECTOR_SERVICE_FIELD_NUMBER: builtins.int
|
189
|
-
RELATION_SERVICE_FIELD_NUMBER: builtins.int
|
190
|
-
id: builtins.str
|
191
|
-
document_service: global___ShardCreated.DocumentService.ValueType
|
192
|
-
paragraph_service: global___ShardCreated.ParagraphService.ValueType
|
193
|
-
vector_service: global___ShardCreated.VectorService.ValueType
|
194
|
-
relation_service: global___ShardCreated.RelationService.ValueType
|
195
|
-
def __init__(
|
196
|
-
self,
|
197
|
-
*,
|
198
|
-
id: builtins.str = ...,
|
199
|
-
document_service: global___ShardCreated.DocumentService.ValueType = ...,
|
200
|
-
paragraph_service: global___ShardCreated.ParagraphService.ValueType = ...,
|
201
|
-
vector_service: global___ShardCreated.VectorService.ValueType = ...,
|
202
|
-
relation_service: global___ShardCreated.RelationService.ValueType = ...,
|
203
|
-
) -> None: ...
|
204
|
-
def ClearField(self, field_name: typing.Literal["document_service", b"document_service", "id", b"id", "paragraph_service", b"paragraph_service", "relation_service", b"relation_service", "vector_service", b"vector_service"]) -> None: ...
|
205
|
-
|
206
|
-
global___ShardCreated = ShardCreated
|
207
|
-
|
208
|
-
@typing.final
|
209
|
-
class ResourceID(google.protobuf.message.Message):
|
210
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
211
|
-
|
212
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
213
|
-
UUID_FIELD_NUMBER: builtins.int
|
214
|
-
shard_id: builtins.str
|
215
|
-
uuid: builtins.str
|
216
|
-
def __init__(
|
217
|
-
self,
|
218
|
-
*,
|
219
|
-
shard_id: builtins.str = ...,
|
220
|
-
uuid: builtins.str = ...,
|
221
|
-
) -> None: ...
|
222
|
-
def ClearField(self, field_name: typing.Literal["shard_id", b"shard_id", "uuid", b"uuid"]) -> None: ...
|
223
|
-
|
224
|
-
global___ResourceID = ResourceID
|
225
|
-
|
226
|
-
@typing.final
|
227
|
-
class Shard(google.protobuf.message.Message):
|
228
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
229
|
-
|
230
|
-
METADATA_FIELD_NUMBER: builtins.int
|
231
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
232
|
-
FIELDS_FIELD_NUMBER: builtins.int
|
233
|
-
PARAGRAPHS_FIELD_NUMBER: builtins.int
|
234
|
-
SENTENCES_FIELD_NUMBER: builtins.int
|
235
|
-
SIZE_BYTES_FIELD_NUMBER: builtins.int
|
236
|
-
shard_id: builtins.str
|
237
|
-
fields: builtins.int
|
238
|
-
paragraphs: builtins.int
|
239
|
-
sentences: builtins.int
|
240
|
-
size_bytes: builtins.int
|
241
|
-
@property
|
242
|
-
def metadata(self) -> global___ShardMetadata: ...
|
243
|
-
def __init__(
|
244
|
-
self,
|
245
|
-
*,
|
246
|
-
metadata: global___ShardMetadata | None = ...,
|
247
|
-
shard_id: builtins.str = ...,
|
248
|
-
fields: builtins.int = ...,
|
249
|
-
paragraphs: builtins.int = ...,
|
250
|
-
sentences: builtins.int = ...,
|
251
|
-
size_bytes: builtins.int = ...,
|
252
|
-
) -> None: ...
|
253
|
-
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
254
|
-
def ClearField(self, field_name: typing.Literal["fields", b"fields", "metadata", b"metadata", "paragraphs", b"paragraphs", "sentences", b"sentences", "shard_id", b"shard_id", "size_bytes", b"size_bytes"]) -> None: ...
|
255
|
-
|
256
|
-
global___Shard = Shard
|
257
|
-
|
258
|
-
@typing.final
|
259
|
-
class EmptyResponse(google.protobuf.message.Message):
|
260
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
261
|
-
|
262
|
-
def __init__(
|
263
|
-
self,
|
264
|
-
) -> None: ...
|
265
|
-
|
266
|
-
global___EmptyResponse = EmptyResponse
|
267
|
-
|
268
|
-
@typing.final
|
269
|
-
class EmptyQuery(google.protobuf.message.Message):
|
270
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
271
|
-
|
272
|
-
def __init__(
|
273
|
-
self,
|
274
|
-
) -> None: ...
|
275
|
-
|
276
|
-
global___EmptyQuery = EmptyQuery
|
277
|
-
|
278
|
-
@typing.final
|
279
|
-
class Position(google.protobuf.message.Message):
|
280
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
281
|
-
|
282
|
-
INDEX_FIELD_NUMBER: builtins.int
|
283
|
-
START_FIELD_NUMBER: builtins.int
|
284
|
-
END_FIELD_NUMBER: builtins.int
|
285
|
-
PAGE_NUMBER_FIELD_NUMBER: builtins.int
|
286
|
-
IN_PAGE_FIELD_NUMBER: builtins.int
|
287
|
-
START_SECONDS_FIELD_NUMBER: builtins.int
|
288
|
-
END_SECONDS_FIELD_NUMBER: builtins.int
|
289
|
-
index: builtins.int
|
290
|
-
start: builtins.int
|
291
|
-
end: builtins.int
|
292
|
-
page_number: builtins.int
|
293
|
-
"""For pdfs/documents only"""
|
294
|
-
in_page: builtins.bool
|
295
|
-
@property
|
296
|
-
def start_seconds(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
297
|
-
"""For multimedia only"""
|
298
|
-
|
299
|
-
@property
|
300
|
-
def end_seconds(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
301
|
-
def __init__(
|
302
|
-
self,
|
303
|
-
*,
|
304
|
-
index: builtins.int = ...,
|
305
|
-
start: builtins.int = ...,
|
306
|
-
end: builtins.int = ...,
|
307
|
-
page_number: builtins.int = ...,
|
308
|
-
in_page: builtins.bool = ...,
|
309
|
-
start_seconds: collections.abc.Iterable[builtins.int] | None = ...,
|
310
|
-
end_seconds: collections.abc.Iterable[builtins.int] | None = ...,
|
311
|
-
) -> None: ...
|
312
|
-
def ClearField(self, field_name: typing.Literal["end", b"end", "end_seconds", b"end_seconds", "in_page", b"in_page", "index", b"index", "page_number", b"page_number", "start", b"start", "start_seconds", b"start_seconds"]) -> None: ...
|
313
|
-
|
314
|
-
global___Position = Position
|
315
|
-
|
316
|
-
@typing.final
|
317
|
-
class Representation(google.protobuf.message.Message):
|
318
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
319
|
-
|
320
|
-
IS_A_TABLE_FIELD_NUMBER: builtins.int
|
321
|
-
FILE_FIELD_NUMBER: builtins.int
|
322
|
-
is_a_table: builtins.bool
|
323
|
-
file: builtins.str
|
324
|
-
def __init__(
|
325
|
-
self,
|
326
|
-
*,
|
327
|
-
is_a_table: builtins.bool = ...,
|
328
|
-
file: builtins.str = ...,
|
329
|
-
) -> None: ...
|
330
|
-
def ClearField(self, field_name: typing.Literal["file", b"file", "is_a_table", b"is_a_table"]) -> None: ...
|
331
|
-
|
332
|
-
global___Representation = Representation
|
333
|
-
|
334
|
-
@typing.final
|
335
|
-
class SentenceMetadata(google.protobuf.message.Message):
|
336
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
337
|
-
|
338
|
-
POSITION_FIELD_NUMBER: builtins.int
|
339
|
-
PAGE_WITH_VISUAL_FIELD_NUMBER: builtins.int
|
340
|
-
REPRESENTATION_FIELD_NUMBER: builtins.int
|
341
|
-
page_with_visual: builtins.bool
|
342
|
-
@property
|
343
|
-
def position(self) -> global___Position: ...
|
344
|
-
@property
|
345
|
-
def representation(self) -> global___Representation: ...
|
346
|
-
def __init__(
|
347
|
-
self,
|
348
|
-
*,
|
349
|
-
position: global___Position | None = ...,
|
350
|
-
page_with_visual: builtins.bool = ...,
|
351
|
-
representation: global___Representation | None = ...,
|
352
|
-
) -> None: ...
|
353
|
-
def HasField(self, field_name: typing.Literal["position", b"position", "representation", b"representation"]) -> builtins.bool: ...
|
354
|
-
def ClearField(self, field_name: typing.Literal["page_with_visual", b"page_with_visual", "position", b"position", "representation", b"representation"]) -> None: ...
|
355
|
-
|
356
|
-
global___SentenceMetadata = SentenceMetadata
|
357
|
-
|
358
|
-
@typing.final
|
359
|
-
class VectorSentence(google.protobuf.message.Message):
|
360
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
361
|
-
|
362
|
-
VECTOR_FIELD_NUMBER: builtins.int
|
363
|
-
METADATA_FIELD_NUMBER: builtins.int
|
364
|
-
@property
|
365
|
-
def vector(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
|
366
|
-
@property
|
367
|
-
def metadata(self) -> global___SentenceMetadata: ...
|
368
|
-
def __init__(
|
369
|
-
self,
|
370
|
-
*,
|
371
|
-
vector: collections.abc.Iterable[builtins.float] | None = ...,
|
372
|
-
metadata: global___SentenceMetadata | None = ...,
|
373
|
-
) -> None: ...
|
374
|
-
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
375
|
-
def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "vector", b"vector"]) -> None: ...
|
376
|
-
|
377
|
-
global___VectorSentence = VectorSentence
|
378
|
-
|
379
|
-
@typing.final
|
380
|
-
class VectorsetSentences(google.protobuf.message.Message):
|
381
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
382
|
-
|
383
|
-
@typing.final
|
384
|
-
class SentencesEntry(google.protobuf.message.Message):
|
385
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
386
|
-
|
387
|
-
KEY_FIELD_NUMBER: builtins.int
|
388
|
-
VALUE_FIELD_NUMBER: builtins.int
|
389
|
-
key: builtins.str
|
390
|
-
@property
|
391
|
-
def value(self) -> global___VectorSentence: ...
|
392
|
-
def __init__(
|
393
|
-
self,
|
394
|
-
*,
|
395
|
-
key: builtins.str = ...,
|
396
|
-
value: global___VectorSentence | None = ...,
|
397
|
-
) -> None: ...
|
398
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
399
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
400
|
-
|
401
|
-
SENTENCES_FIELD_NUMBER: builtins.int
|
402
|
-
@property
|
403
|
-
def sentences(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___VectorSentence]:
|
404
|
-
"""key is full id for vectors"""
|
405
|
-
|
406
|
-
def __init__(
|
407
|
-
self,
|
408
|
-
*,
|
409
|
-
sentences: collections.abc.Mapping[builtins.str, global___VectorSentence] | None = ...,
|
410
|
-
) -> None: ...
|
411
|
-
def ClearField(self, field_name: typing.Literal["sentences", b"sentences"]) -> None: ...
|
412
|
-
|
413
|
-
global___VectorsetSentences = VectorsetSentences
|
414
|
-
|
415
|
-
@typing.final
|
416
|
-
class ParagraphMetadata(google.protobuf.message.Message):
|
417
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
418
|
-
|
419
|
-
POSITION_FIELD_NUMBER: builtins.int
|
420
|
-
PAGE_WITH_VISUAL_FIELD_NUMBER: builtins.int
|
421
|
-
REPRESENTATION_FIELD_NUMBER: builtins.int
|
422
|
-
page_with_visual: builtins.bool
|
423
|
-
@property
|
424
|
-
def position(self) -> global___Position: ...
|
425
|
-
@property
|
426
|
-
def representation(self) -> global___Representation: ...
|
427
|
-
def __init__(
|
428
|
-
self,
|
429
|
-
*,
|
430
|
-
position: global___Position | None = ...,
|
431
|
-
page_with_visual: builtins.bool = ...,
|
432
|
-
representation: global___Representation | None = ...,
|
433
|
-
) -> None: ...
|
434
|
-
def HasField(self, field_name: typing.Literal["position", b"position", "representation", b"representation"]) -> builtins.bool: ...
|
435
|
-
def ClearField(self, field_name: typing.Literal["page_with_visual", b"page_with_visual", "position", b"position", "representation", b"representation"]) -> None: ...
|
436
|
-
|
437
|
-
global___ParagraphMetadata = ParagraphMetadata
|
438
|
-
|
439
|
-
@typing.final
|
440
|
-
class IndexParagraph(google.protobuf.message.Message):
|
441
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
442
|
-
|
443
|
-
@typing.final
|
444
|
-
class SentencesEntry(google.protobuf.message.Message):
|
445
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
446
|
-
|
447
|
-
KEY_FIELD_NUMBER: builtins.int
|
448
|
-
VALUE_FIELD_NUMBER: builtins.int
|
449
|
-
key: builtins.str
|
450
|
-
@property
|
451
|
-
def value(self) -> global___VectorSentence: ...
|
452
|
-
def __init__(
|
453
|
-
self,
|
454
|
-
*,
|
455
|
-
key: builtins.str = ...,
|
456
|
-
value: global___VectorSentence | None = ...,
|
457
|
-
) -> None: ...
|
458
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
459
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
460
|
-
|
461
|
-
@typing.final
|
462
|
-
class VectorsetsSentencesEntry(google.protobuf.message.Message):
|
463
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
464
|
-
|
465
|
-
KEY_FIELD_NUMBER: builtins.int
|
466
|
-
VALUE_FIELD_NUMBER: builtins.int
|
467
|
-
key: builtins.str
|
468
|
-
@property
|
469
|
-
def value(self) -> global___VectorsetSentences: ...
|
470
|
-
def __init__(
|
471
|
-
self,
|
472
|
-
*,
|
473
|
-
key: builtins.str = ...,
|
474
|
-
value: global___VectorsetSentences | None = ...,
|
475
|
-
) -> None: ...
|
476
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
477
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
478
|
-
|
479
|
-
START_FIELD_NUMBER: builtins.int
|
480
|
-
END_FIELD_NUMBER: builtins.int
|
481
|
-
LABELS_FIELD_NUMBER: builtins.int
|
482
|
-
SENTENCES_FIELD_NUMBER: builtins.int
|
483
|
-
VECTORSETS_SENTENCES_FIELD_NUMBER: builtins.int
|
484
|
-
FIELD_FIELD_NUMBER: builtins.int
|
485
|
-
SPLIT_FIELD_NUMBER: builtins.int
|
486
|
-
INDEX_FIELD_NUMBER: builtins.int
|
487
|
-
REPEATED_IN_FIELD_FIELD_NUMBER: builtins.int
|
488
|
-
METADATA_FIELD_NUMBER: builtins.int
|
489
|
-
start: builtins.int
|
490
|
-
"""Start end position in field text"""
|
491
|
-
end: builtins.int
|
492
|
-
"""Start end position in field text"""
|
493
|
-
field: builtins.str
|
494
|
-
split: builtins.str
|
495
|
-
"""split were it belongs"""
|
496
|
-
index: builtins.int
|
497
|
-
repeated_in_field: builtins.bool
|
498
|
-
@property
|
499
|
-
def labels(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
500
|
-
"""Paragraph specific labels"""
|
501
|
-
|
502
|
-
@property
|
503
|
-
def sentences(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___VectorSentence]:
|
504
|
-
"""key is full id for vectors"""
|
505
|
-
|
506
|
-
@property
|
507
|
-
def vectorsets_sentences(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___VectorsetSentences]:
|
508
|
-
"""key is vectorset id"""
|
509
|
-
|
510
|
-
@property
|
511
|
-
def metadata(self) -> global___ParagraphMetadata: ...
|
512
|
-
def __init__(
|
513
|
-
self,
|
514
|
-
*,
|
515
|
-
start: builtins.int = ...,
|
516
|
-
end: builtins.int = ...,
|
517
|
-
labels: collections.abc.Iterable[builtins.str] | None = ...,
|
518
|
-
sentences: collections.abc.Mapping[builtins.str, global___VectorSentence] | None = ...,
|
519
|
-
vectorsets_sentences: collections.abc.Mapping[builtins.str, global___VectorsetSentences] | None = ...,
|
520
|
-
field: builtins.str = ...,
|
521
|
-
split: builtins.str = ...,
|
522
|
-
index: builtins.int = ...,
|
523
|
-
repeated_in_field: builtins.bool = ...,
|
524
|
-
metadata: global___ParagraphMetadata | None = ...,
|
525
|
-
) -> None: ...
|
526
|
-
def HasField(self, field_name: typing.Literal["metadata", b"metadata"]) -> builtins.bool: ...
|
527
|
-
def ClearField(self, field_name: typing.Literal["end", b"end", "field", b"field", "index", b"index", "labels", b"labels", "metadata", b"metadata", "repeated_in_field", b"repeated_in_field", "sentences", b"sentences", "split", b"split", "start", b"start", "vectorsets_sentences", b"vectorsets_sentences"]) -> None: ...
|
528
|
-
|
529
|
-
global___IndexParagraph = IndexParagraph
|
530
|
-
|
531
|
-
@typing.final
|
532
|
-
class VectorSetID(google.protobuf.message.Message):
|
533
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
534
|
-
|
535
|
-
SHARD_FIELD_NUMBER: builtins.int
|
536
|
-
VECTORSET_FIELD_NUMBER: builtins.int
|
537
|
-
vectorset: builtins.str
|
538
|
-
@property
|
539
|
-
def shard(self) -> global___ShardId: ...
|
540
|
-
def __init__(
|
541
|
-
self,
|
542
|
-
*,
|
543
|
-
shard: global___ShardId | None = ...,
|
544
|
-
vectorset: builtins.str = ...,
|
545
|
-
) -> None: ...
|
546
|
-
def HasField(self, field_name: typing.Literal["shard", b"shard"]) -> builtins.bool: ...
|
547
|
-
def ClearField(self, field_name: typing.Literal["shard", b"shard", "vectorset", b"vectorset"]) -> None: ...
|
548
|
-
|
549
|
-
global___VectorSetID = VectorSetID
|
550
|
-
|
551
|
-
@typing.final
|
552
|
-
class VectorSetList(google.protobuf.message.Message):
|
553
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
554
|
-
|
555
|
-
SHARD_FIELD_NUMBER: builtins.int
|
556
|
-
VECTORSETS_FIELD_NUMBER: builtins.int
|
557
|
-
@property
|
558
|
-
def shard(self) -> global___ShardId: ...
|
559
|
-
@property
|
560
|
-
def vectorsets(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
561
|
-
def __init__(
|
562
|
-
self,
|
563
|
-
*,
|
564
|
-
shard: global___ShardId | None = ...,
|
565
|
-
vectorsets: collections.abc.Iterable[builtins.str] | None = ...,
|
566
|
-
) -> None: ...
|
567
|
-
def HasField(self, field_name: typing.Literal["shard", b"shard"]) -> builtins.bool: ...
|
568
|
-
def ClearField(self, field_name: typing.Literal["shard", b"shard", "vectorsets", b"vectorsets"]) -> None: ...
|
569
|
-
|
570
|
-
global___VectorSetList = VectorSetList
|
571
|
-
|
572
|
-
@typing.final
|
573
|
-
class IndexParagraphs(google.protobuf.message.Message):
|
574
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
575
|
-
|
576
|
-
@typing.final
|
577
|
-
class ParagraphsEntry(google.protobuf.message.Message):
|
578
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
579
|
-
|
580
|
-
KEY_FIELD_NUMBER: builtins.int
|
581
|
-
VALUE_FIELD_NUMBER: builtins.int
|
582
|
-
key: builtins.str
|
583
|
-
@property
|
584
|
-
def value(self) -> global___IndexParagraph: ...
|
585
|
-
def __init__(
|
586
|
-
self,
|
587
|
-
*,
|
588
|
-
key: builtins.str = ...,
|
589
|
-
value: global___IndexParagraph | None = ...,
|
590
|
-
) -> None: ...
|
591
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
592
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
593
|
-
|
594
|
-
PARAGRAPHS_FIELD_NUMBER: builtins.int
|
595
|
-
@property
|
596
|
-
def paragraphs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___IndexParagraph]:
|
597
|
-
"""id of the paragraph f"{self.rid}/{field_key}/{paragraph.start}-{paragraph.end}" """
|
598
|
-
|
599
|
-
def __init__(
|
600
|
-
self,
|
601
|
-
*,
|
602
|
-
paragraphs: collections.abc.Mapping[builtins.str, global___IndexParagraph] | None = ...,
|
603
|
-
) -> None: ...
|
604
|
-
def ClearField(self, field_name: typing.Literal["paragraphs", b"paragraphs"]) -> None: ...
|
605
|
-
|
606
|
-
global___IndexParagraphs = IndexParagraphs
|
607
|
-
|
608
|
-
@typing.final
|
609
|
-
class Resource(google.protobuf.message.Message):
|
610
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
611
|
-
|
612
|
-
class _ResourceStatus:
|
613
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
614
|
-
V: typing_extensions.TypeAlias = ValueType
|
615
|
-
|
616
|
-
class _ResourceStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Resource._ResourceStatus.ValueType], builtins.type):
|
617
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
618
|
-
PROCESSED: Resource._ResourceStatus.ValueType # 0
|
619
|
-
EMPTY: Resource._ResourceStatus.ValueType # 1
|
620
|
-
ERROR: Resource._ResourceStatus.ValueType # 2
|
621
|
-
DELETE: Resource._ResourceStatus.ValueType # 3
|
622
|
-
PENDING: Resource._ResourceStatus.ValueType # 4
|
623
|
-
BLOCKED: Resource._ResourceStatus.ValueType # 5
|
624
|
-
EXPIRED: Resource._ResourceStatus.ValueType # 6
|
625
|
-
|
626
|
-
class ResourceStatus(_ResourceStatus, metaclass=_ResourceStatusEnumTypeWrapper): ...
|
627
|
-
PROCESSED: Resource.ResourceStatus.ValueType # 0
|
628
|
-
EMPTY: Resource.ResourceStatus.ValueType # 1
|
629
|
-
ERROR: Resource.ResourceStatus.ValueType # 2
|
630
|
-
DELETE: Resource.ResourceStatus.ValueType # 3
|
631
|
-
PENDING: Resource.ResourceStatus.ValueType # 4
|
632
|
-
BLOCKED: Resource.ResourceStatus.ValueType # 5
|
633
|
-
EXPIRED: Resource.ResourceStatus.ValueType # 6
|
634
|
-
|
635
|
-
@typing.final
|
636
|
-
class TextsEntry(google.protobuf.message.Message):
|
637
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
638
|
-
|
639
|
-
KEY_FIELD_NUMBER: builtins.int
|
640
|
-
VALUE_FIELD_NUMBER: builtins.int
|
641
|
-
key: builtins.str
|
642
|
-
@property
|
643
|
-
def value(self) -> global___TextInformation: ...
|
644
|
-
def __init__(
|
645
|
-
self,
|
646
|
-
*,
|
647
|
-
key: builtins.str = ...,
|
648
|
-
value: global___TextInformation | None = ...,
|
649
|
-
) -> None: ...
|
650
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
651
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
652
|
-
|
653
|
-
@typing.final
|
654
|
-
class ParagraphsEntry(google.protobuf.message.Message):
|
655
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
656
|
-
|
657
|
-
KEY_FIELD_NUMBER: builtins.int
|
658
|
-
VALUE_FIELD_NUMBER: builtins.int
|
659
|
-
key: builtins.str
|
660
|
-
@property
|
661
|
-
def value(self) -> global___IndexParagraphs: ...
|
662
|
-
def __init__(
|
663
|
-
self,
|
664
|
-
*,
|
665
|
-
key: builtins.str = ...,
|
666
|
-
value: global___IndexParagraphs | None = ...,
|
667
|
-
) -> None: ...
|
668
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
669
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
670
|
-
|
671
|
-
@typing.final
|
672
|
-
class VectorPrefixesToDeleteEntry(google.protobuf.message.Message):
|
673
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
674
|
-
|
675
|
-
KEY_FIELD_NUMBER: builtins.int
|
676
|
-
VALUE_FIELD_NUMBER: builtins.int
|
677
|
-
key: builtins.str
|
678
|
-
@property
|
679
|
-
def value(self) -> global___StringList: ...
|
680
|
-
def __init__(
|
681
|
-
self,
|
682
|
-
*,
|
683
|
-
key: builtins.str = ...,
|
684
|
-
value: global___StringList | None = ...,
|
685
|
-
) -> None: ...
|
686
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
687
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
688
|
-
|
689
|
-
@typing.final
|
690
|
-
class FieldRelationsEntry(google.protobuf.message.Message):
|
691
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
692
|
-
|
693
|
-
KEY_FIELD_NUMBER: builtins.int
|
694
|
-
VALUE_FIELD_NUMBER: builtins.int
|
695
|
-
key: builtins.str
|
696
|
-
@property
|
697
|
-
def value(self) -> global___IndexRelations: ...
|
698
|
-
def __init__(
|
699
|
-
self,
|
700
|
-
*,
|
701
|
-
key: builtins.str = ...,
|
702
|
-
value: global___IndexRelations | None = ...,
|
703
|
-
) -> None: ...
|
704
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
705
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
706
|
-
|
707
|
-
@typing.final
|
708
|
-
class VectorsEntry(google.protobuf.message.Message):
|
709
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
710
|
-
|
711
|
-
KEY_FIELD_NUMBER: builtins.int
|
712
|
-
VALUE_FIELD_NUMBER: builtins.int
|
713
|
-
key: builtins.str
|
714
|
-
@property
|
715
|
-
def value(self) -> nucliadb_protos.utils_pb2.UserVectors: ...
|
716
|
-
def __init__(
|
717
|
-
self,
|
718
|
-
*,
|
719
|
-
key: builtins.str = ...,
|
720
|
-
value: nucliadb_protos.utils_pb2.UserVectors | None = ...,
|
721
|
-
) -> None: ...
|
722
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
723
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
724
|
-
|
725
|
-
@typing.final
|
726
|
-
class VectorsToDeleteEntry(google.protobuf.message.Message):
|
727
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
728
|
-
|
729
|
-
KEY_FIELD_NUMBER: builtins.int
|
730
|
-
VALUE_FIELD_NUMBER: builtins.int
|
731
|
-
key: builtins.str
|
732
|
-
@property
|
733
|
-
def value(self) -> nucliadb_protos.utils_pb2.UserVectorsList: ...
|
734
|
-
def __init__(
|
735
|
-
self,
|
736
|
-
*,
|
737
|
-
key: builtins.str = ...,
|
738
|
-
value: nucliadb_protos.utils_pb2.UserVectorsList | None = ...,
|
739
|
-
) -> None: ...
|
740
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
741
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
742
|
-
|
743
|
-
RESOURCE_FIELD_NUMBER: builtins.int
|
744
|
-
METADATA_FIELD_NUMBER: builtins.int
|
745
|
-
TEXTS_FIELD_NUMBER: builtins.int
|
746
|
-
LABELS_FIELD_NUMBER: builtins.int
|
747
|
-
STATUS_FIELD_NUMBER: builtins.int
|
748
|
-
PARAGRAPHS_FIELD_NUMBER: builtins.int
|
749
|
-
PARAGRAPHS_TO_DELETE_FIELD_NUMBER: builtins.int
|
750
|
-
SENTENCES_TO_DELETE_FIELD_NUMBER: builtins.int
|
751
|
-
VECTOR_PREFIXES_TO_DELETE_FIELD_NUMBER: builtins.int
|
752
|
-
RELATION_FIELDS_TO_DELETE_FIELD_NUMBER: builtins.int
|
753
|
-
TEXTS_TO_DELETE_FIELD_NUMBER: builtins.int
|
754
|
-
FIELD_RELATIONS_FIELD_NUMBER: builtins.int
|
755
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
756
|
-
VECTORS_FIELD_NUMBER: builtins.int
|
757
|
-
VECTORS_TO_DELETE_FIELD_NUMBER: builtins.int
|
758
|
-
SECURITY_FIELD_NUMBER: builtins.int
|
759
|
-
SKIP_TEXTS_FIELD_NUMBER: builtins.int
|
760
|
-
SKIP_PARAGRAPHS_FIELD_NUMBER: builtins.int
|
761
|
-
status: global___Resource.ResourceStatus.ValueType
|
762
|
-
"""Tantivy doc"""
|
763
|
-
shard_id: builtins.str
|
764
|
-
skip_texts: builtins.bool
|
765
|
-
"""Boleans to indicate if the indexing needs to be done"""
|
766
|
-
skip_paragraphs: builtins.bool
|
767
|
-
@property
|
768
|
-
def resource(self) -> global___ResourceID: ...
|
769
|
-
@property
|
770
|
-
def metadata(self) -> global___IndexMetadata: ...
|
771
|
-
@property
|
772
|
-
def texts(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___TextInformation]:
|
773
|
-
"""Doc index
|
774
|
-
Tantivy doc filled by field allways full
|
775
|
-
"""
|
776
|
-
|
777
|
-
@property
|
778
|
-
def labels(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
779
|
-
"""Key is RID/FIELDID
|
780
|
-
|
781
|
-
Document labels always serialized full
|
782
|
-
"""
|
783
|
-
|
784
|
-
@property
|
785
|
-
def paragraphs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___IndexParagraphs]:
|
786
|
-
"""Paragraph
|
787
|
-
Paragraphs by field
|
788
|
-
"""
|
789
|
-
|
790
|
-
@property
|
791
|
-
def paragraphs_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
792
|
-
@property
|
793
|
-
def sentences_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
794
|
-
"""DEPRECATED: replaced by vector_prefixes_to_delete in order to support
|
795
|
-
updates on a subset of the available vectorsets
|
796
|
-
"""
|
797
|
-
|
798
|
-
@property
|
799
|
-
def vector_prefixes_to_delete(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___StringList]:
|
800
|
-
"""vectorset_id -> [vector_key_prefix, ...]"""
|
801
|
-
|
802
|
-
@property
|
803
|
-
def relation_fields_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
804
|
-
@property
|
805
|
-
def texts_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
806
|
-
@property
|
807
|
-
def field_relations(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___IndexRelations]:
|
808
|
-
"""Relations"""
|
809
|
-
|
810
|
-
@property
|
811
|
-
def vectors(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.utils_pb2.UserVectors]:
|
812
|
-
"""vectorset is the key"""
|
813
|
-
|
814
|
-
@property
|
815
|
-
def vectors_to_delete(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.utils_pb2.UserVectorsList]:
|
816
|
-
"""Vectorset prefix vector id"""
|
817
|
-
|
818
|
-
@property
|
819
|
-
def security(self) -> nucliadb_protos.utils_pb2.Security: ...
|
820
|
-
def __init__(
|
821
|
-
self,
|
822
|
-
*,
|
823
|
-
resource: global___ResourceID | None = ...,
|
824
|
-
metadata: global___IndexMetadata | None = ...,
|
825
|
-
texts: collections.abc.Mapping[builtins.str, global___TextInformation] | None = ...,
|
826
|
-
labels: collections.abc.Iterable[builtins.str] | None = ...,
|
827
|
-
status: global___Resource.ResourceStatus.ValueType = ...,
|
828
|
-
paragraphs: collections.abc.Mapping[builtins.str, global___IndexParagraphs] | None = ...,
|
829
|
-
paragraphs_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
|
830
|
-
sentences_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
|
831
|
-
vector_prefixes_to_delete: collections.abc.Mapping[builtins.str, global___StringList] | None = ...,
|
832
|
-
relation_fields_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
|
833
|
-
texts_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
|
834
|
-
field_relations: collections.abc.Mapping[builtins.str, global___IndexRelations] | None = ...,
|
835
|
-
shard_id: builtins.str = ...,
|
836
|
-
vectors: collections.abc.Mapping[builtins.str, nucliadb_protos.utils_pb2.UserVectors] | None = ...,
|
837
|
-
vectors_to_delete: collections.abc.Mapping[builtins.str, nucliadb_protos.utils_pb2.UserVectorsList] | None = ...,
|
838
|
-
security: nucliadb_protos.utils_pb2.Security | None = ...,
|
839
|
-
skip_texts: builtins.bool = ...,
|
840
|
-
skip_paragraphs: builtins.bool = ...,
|
841
|
-
) -> None: ...
|
842
|
-
def HasField(self, field_name: typing.Literal["_security", b"_security", "metadata", b"metadata", "resource", b"resource", "security", b"security"]) -> builtins.bool: ...
|
843
|
-
def ClearField(self, field_name: typing.Literal["_security", b"_security", "field_relations", b"field_relations", "labels", b"labels", "metadata", b"metadata", "paragraphs", b"paragraphs", "paragraphs_to_delete", b"paragraphs_to_delete", "relation_fields_to_delete", b"relation_fields_to_delete", "resource", b"resource", "security", b"security", "sentences_to_delete", b"sentences_to_delete", "shard_id", b"shard_id", "skip_paragraphs", b"skip_paragraphs", "skip_texts", b"skip_texts", "status", b"status", "texts", b"texts", "texts_to_delete", b"texts_to_delete", "vector_prefixes_to_delete", b"vector_prefixes_to_delete", "vectors", b"vectors", "vectors_to_delete", b"vectors_to_delete"]) -> None: ...
|
844
|
-
def WhichOneof(self, oneof_group: typing.Literal["_security", b"_security"]) -> typing.Literal["security"] | None: ...
|
845
|
-
|
846
|
-
global___Resource = Resource
|
847
|
-
|
848
|
-
@typing.final
|
849
|
-
class ShardMetadata(google.protobuf.message.Message):
|
850
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
851
|
-
|
852
|
-
KBID_FIELD_NUMBER: builtins.int
|
853
|
-
RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
|
854
|
-
kbid: builtins.str
|
855
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
|
856
|
-
def __init__(
|
857
|
-
self,
|
858
|
-
*,
|
859
|
-
kbid: builtins.str = ...,
|
860
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
|
861
|
-
) -> None: ...
|
862
|
-
def ClearField(self, field_name: typing.Literal["kbid", b"kbid", "release_channel", b"release_channel"]) -> None: ...
|
863
|
-
|
864
|
-
global___ShardMetadata = ShardMetadata
|
865
|
-
|
866
|
-
@typing.final
|
867
|
-
class NodeMetadata(google.protobuf.message.Message):
|
868
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
869
|
-
|
870
|
-
@typing.final
|
871
|
-
class ShardMetadata(google.protobuf.message.Message):
|
872
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
873
|
-
|
874
|
-
KBID_FIELD_NUMBER: builtins.int
|
875
|
-
LOAD_SCORE_FIELD_NUMBER: builtins.int
|
876
|
-
kbid: builtins.str
|
877
|
-
load_score: builtins.float
|
878
|
-
def __init__(
|
879
|
-
self,
|
880
|
-
*,
|
881
|
-
kbid: builtins.str = ...,
|
882
|
-
load_score: builtins.float = ...,
|
883
|
-
) -> None: ...
|
884
|
-
def ClearField(self, field_name: typing.Literal["kbid", b"kbid", "load_score", b"load_score"]) -> None: ...
|
885
|
-
|
886
|
-
@typing.final
|
887
|
-
class ShardsEntry(google.protobuf.message.Message):
|
888
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
889
|
-
|
890
|
-
KEY_FIELD_NUMBER: builtins.int
|
891
|
-
VALUE_FIELD_NUMBER: builtins.int
|
892
|
-
key: builtins.str
|
893
|
-
@property
|
894
|
-
def value(self) -> global___NodeMetadata.ShardMetadata: ...
|
895
|
-
def __init__(
|
896
|
-
self,
|
897
|
-
*,
|
898
|
-
key: builtins.str = ...,
|
899
|
-
value: global___NodeMetadata.ShardMetadata | None = ...,
|
900
|
-
) -> None: ...
|
901
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
902
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
903
|
-
|
904
|
-
LOAD_SCORE_FIELD_NUMBER: builtins.int
|
905
|
-
SHARD_COUNT_FIELD_NUMBER: builtins.int
|
906
|
-
SHARDS_FIELD_NUMBER: builtins.int
|
907
|
-
NODE_ID_FIELD_NUMBER: builtins.int
|
908
|
-
PRIMARY_NODE_ID_FIELD_NUMBER: builtins.int
|
909
|
-
AVAILABLE_DISK_FIELD_NUMBER: builtins.int
|
910
|
-
TOTAL_DISK_FIELD_NUMBER: builtins.int
|
911
|
-
load_score: builtins.float
|
912
|
-
shard_count: builtins.int
|
913
|
-
node_id: builtins.str
|
914
|
-
primary_node_id: builtins.str
|
915
|
-
available_disk: builtins.int
|
916
|
-
total_disk: builtins.int
|
917
|
-
@property
|
918
|
-
def shards(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___NodeMetadata.ShardMetadata]: ...
|
919
|
-
def __init__(
|
920
|
-
self,
|
921
|
-
*,
|
922
|
-
load_score: builtins.float = ...,
|
923
|
-
shard_count: builtins.int = ...,
|
924
|
-
shards: collections.abc.Mapping[builtins.str, global___NodeMetadata.ShardMetadata] | None = ...,
|
925
|
-
node_id: builtins.str = ...,
|
926
|
-
primary_node_id: builtins.str | None = ...,
|
927
|
-
available_disk: builtins.int = ...,
|
928
|
-
total_disk: builtins.int = ...,
|
929
|
-
) -> None: ...
|
930
|
-
def HasField(self, field_name: typing.Literal["_primary_node_id", b"_primary_node_id", "primary_node_id", b"primary_node_id"]) -> builtins.bool: ...
|
931
|
-
def ClearField(self, field_name: typing.Literal["_primary_node_id", b"_primary_node_id", "available_disk", b"available_disk", "load_score", b"load_score", "node_id", b"node_id", "primary_node_id", b"primary_node_id", "shard_count", b"shard_count", "shards", b"shards", "total_disk", b"total_disk"]) -> None: ...
|
932
|
-
def WhichOneof(self, oneof_group: typing.Literal["_primary_node_id", b"_primary_node_id"]) -> typing.Literal["primary_node_id"] | None: ...
|
933
|
-
|
934
|
-
global___NodeMetadata = NodeMetadata
|
935
|
-
|
936
|
-
@typing.final
|
937
|
-
class StringList(google.protobuf.message.Message):
|
938
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
939
|
-
|
940
|
-
ITEMS_FIELD_NUMBER: builtins.int
|
941
|
-
@property
|
942
|
-
def items(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
943
|
-
def __init__(
|
944
|
-
self,
|
945
|
-
*,
|
946
|
-
items: collections.abc.Iterable[builtins.str] | None = ...,
|
947
|
-
) -> None: ...
|
948
|
-
def ClearField(self, field_name: typing.Literal["items", b"items"]) -> None: ...
|
949
|
-
|
950
|
-
global___StringList = StringList
|
951
|
-
|
952
|
-
@typing.final
|
953
|
-
class IndexRelation(google.protobuf.message.Message):
|
954
|
-
"""Relations as sent and retrieved from the index, with some additional metadata"""
|
955
|
-
|
956
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
957
|
-
|
958
|
-
RELATION_FIELD_NUMBER: builtins.int
|
959
|
-
RESOURCE_FIELD_ID_FIELD_NUMBER: builtins.int
|
960
|
-
FACETS_FIELD_NUMBER: builtins.int
|
961
|
-
resource_field_id: builtins.str
|
962
|
-
@property
|
963
|
-
def relation(self) -> nucliadb_protos.utils_pb2.Relation: ...
|
964
|
-
@property
|
965
|
-
def facets(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
966
|
-
def __init__(
|
967
|
-
self,
|
968
|
-
*,
|
969
|
-
relation: nucliadb_protos.utils_pb2.Relation | None = ...,
|
970
|
-
resource_field_id: builtins.str | None = ...,
|
971
|
-
facets: collections.abc.Iterable[builtins.str] | None = ...,
|
972
|
-
) -> None: ...
|
973
|
-
def HasField(self, field_name: typing.Literal["_resource_field_id", b"_resource_field_id", "relation", b"relation", "resource_field_id", b"resource_field_id"]) -> builtins.bool: ...
|
974
|
-
def ClearField(self, field_name: typing.Literal["_resource_field_id", b"_resource_field_id", "facets", b"facets", "relation", b"relation", "resource_field_id", b"resource_field_id"]) -> None: ...
|
975
|
-
def WhichOneof(self, oneof_group: typing.Literal["_resource_field_id", b"_resource_field_id"]) -> typing.Literal["resource_field_id"] | None: ...
|
976
|
-
|
977
|
-
global___IndexRelation = IndexRelation
|
978
|
-
|
979
|
-
@typing.final
|
980
|
-
class IndexRelations(google.protobuf.message.Message):
|
981
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
982
|
-
|
983
|
-
RELATIONS_FIELD_NUMBER: builtins.int
|
984
|
-
@property
|
985
|
-
def relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IndexRelation]: ...
|
986
|
-
def __init__(
|
987
|
-
self,
|
988
|
-
*,
|
989
|
-
relations: collections.abc.Iterable[global___IndexRelation] | None = ...,
|
990
|
-
) -> None: ...
|
991
|
-
def ClearField(self, field_name: typing.Literal["relations", b"relations"]) -> None: ...
|
992
|
-
|
993
|
-
global___IndexRelations = IndexRelations
|