nucliadb-protos 6.3.7.post4116__py3-none-any.whl → 6.3.7.post4119__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.post4119.dist-info}/METADATA +1 -1
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4119.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.post4119.dist-info}/WHEEL +0 -0
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4119.dist-info}/entry_points.txt +0 -0
@@ -1,256 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
3
|
-
isort:skip_file
|
4
|
-
"""
|
5
|
-
|
6
|
-
import abc
|
7
|
-
import collections.abc
|
8
|
-
import grpc
|
9
|
-
import grpc.aio
|
10
|
-
import nucliadb_protos.noderesources_pb2
|
11
|
-
import nucliadb_protos.nodewriter_pb2
|
12
|
-
import typing
|
13
|
-
from nucliadb_protos.noderesources_pb2 import (
|
14
|
-
EmptyQuery as EmptyQuery,
|
15
|
-
EmptyResponse as EmptyResponse,
|
16
|
-
IndexMetadata as IndexMetadata,
|
17
|
-
IndexParagraph as IndexParagraph,
|
18
|
-
IndexParagraphs as IndexParagraphs,
|
19
|
-
IndexRelation as IndexRelation,
|
20
|
-
IndexRelations as IndexRelations,
|
21
|
-
NodeMetadata as NodeMetadata,
|
22
|
-
ParagraphMetadata as ParagraphMetadata,
|
23
|
-
Position as Position,
|
24
|
-
Representation as Representation,
|
25
|
-
Resource as Resource,
|
26
|
-
ResourceID as ResourceID,
|
27
|
-
SentenceMetadata as SentenceMetadata,
|
28
|
-
Shard as Shard,
|
29
|
-
ShardCreated as ShardCreated,
|
30
|
-
ShardId as ShardId,
|
31
|
-
ShardIds as ShardIds,
|
32
|
-
ShardMetadata as ShardMetadata,
|
33
|
-
StringList as StringList,
|
34
|
-
TextInformation as TextInformation,
|
35
|
-
VectorSentence as VectorSentence,
|
36
|
-
VectorSetID as VectorSetID,
|
37
|
-
VectorSetList as VectorSetList,
|
38
|
-
VectorsetSentences as VectorsetSentences,
|
39
|
-
)
|
40
|
-
|
41
|
-
_T = typing.TypeVar("_T")
|
42
|
-
|
43
|
-
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
44
|
-
|
45
|
-
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
46
|
-
...
|
47
|
-
|
48
|
-
class NodeWriterStub:
|
49
|
-
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
50
|
-
NewShard: grpc.UnaryUnaryMultiCallable[
|
51
|
-
nucliadb_protos.nodewriter_pb2.NewShardRequest,
|
52
|
-
nucliadb_protos.noderesources_pb2.ShardCreated,
|
53
|
-
]
|
54
|
-
|
55
|
-
DeleteShard: grpc.UnaryUnaryMultiCallable[
|
56
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
57
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
58
|
-
]
|
59
|
-
|
60
|
-
ListShards: grpc.UnaryUnaryMultiCallable[
|
61
|
-
nucliadb_protos.noderesources_pb2.EmptyQuery,
|
62
|
-
nucliadb_protos.noderesources_pb2.ShardIds,
|
63
|
-
]
|
64
|
-
|
65
|
-
GC: grpc.UnaryUnaryMultiCallable[
|
66
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
67
|
-
nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse,
|
68
|
-
]
|
69
|
-
|
70
|
-
Merge: grpc.UnaryUnaryMultiCallable[
|
71
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
72
|
-
nucliadb_protos.nodewriter_pb2.MergeResponse,
|
73
|
-
]
|
74
|
-
|
75
|
-
SetResource: grpc.UnaryUnaryMultiCallable[
|
76
|
-
nucliadb_protos.noderesources_pb2.Resource,
|
77
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
78
|
-
]
|
79
|
-
|
80
|
-
SetResourceFromStorage: grpc.UnaryUnaryMultiCallable[
|
81
|
-
nucliadb_protos.nodewriter_pb2.IndexMessage,
|
82
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
83
|
-
]
|
84
|
-
|
85
|
-
RemoveResource: grpc.UnaryUnaryMultiCallable[
|
86
|
-
nucliadb_protos.noderesources_pb2.ResourceID,
|
87
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
88
|
-
]
|
89
|
-
|
90
|
-
AddVectorSet: grpc.UnaryUnaryMultiCallable[
|
91
|
-
nucliadb_protos.nodewriter_pb2.NewVectorSetRequest,
|
92
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
93
|
-
]
|
94
|
-
|
95
|
-
RemoveVectorSet: grpc.UnaryUnaryMultiCallable[
|
96
|
-
nucliadb_protos.noderesources_pb2.VectorSetID,
|
97
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
98
|
-
]
|
99
|
-
|
100
|
-
ListVectorSets: grpc.UnaryUnaryMultiCallable[
|
101
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
102
|
-
nucliadb_protos.noderesources_pb2.VectorSetList,
|
103
|
-
]
|
104
|
-
|
105
|
-
GetMetadata: grpc.UnaryUnaryMultiCallable[
|
106
|
-
nucliadb_protos.noderesources_pb2.EmptyQuery,
|
107
|
-
nucliadb_protos.noderesources_pb2.NodeMetadata,
|
108
|
-
]
|
109
|
-
|
110
|
-
class NodeWriterAsyncStub:
|
111
|
-
NewShard: grpc.aio.UnaryUnaryMultiCallable[
|
112
|
-
nucliadb_protos.nodewriter_pb2.NewShardRequest,
|
113
|
-
nucliadb_protos.noderesources_pb2.ShardCreated,
|
114
|
-
]
|
115
|
-
|
116
|
-
DeleteShard: grpc.aio.UnaryUnaryMultiCallable[
|
117
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
118
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
119
|
-
]
|
120
|
-
|
121
|
-
ListShards: grpc.aio.UnaryUnaryMultiCallable[
|
122
|
-
nucliadb_protos.noderesources_pb2.EmptyQuery,
|
123
|
-
nucliadb_protos.noderesources_pb2.ShardIds,
|
124
|
-
]
|
125
|
-
|
126
|
-
GC: grpc.aio.UnaryUnaryMultiCallable[
|
127
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
128
|
-
nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse,
|
129
|
-
]
|
130
|
-
|
131
|
-
Merge: grpc.aio.UnaryUnaryMultiCallable[
|
132
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
133
|
-
nucliadb_protos.nodewriter_pb2.MergeResponse,
|
134
|
-
]
|
135
|
-
|
136
|
-
SetResource: grpc.aio.UnaryUnaryMultiCallable[
|
137
|
-
nucliadb_protos.noderesources_pb2.Resource,
|
138
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
139
|
-
]
|
140
|
-
|
141
|
-
SetResourceFromStorage: grpc.aio.UnaryUnaryMultiCallable[
|
142
|
-
nucliadb_protos.nodewriter_pb2.IndexMessage,
|
143
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
144
|
-
]
|
145
|
-
|
146
|
-
RemoveResource: grpc.aio.UnaryUnaryMultiCallable[
|
147
|
-
nucliadb_protos.noderesources_pb2.ResourceID,
|
148
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
149
|
-
]
|
150
|
-
|
151
|
-
AddVectorSet: grpc.aio.UnaryUnaryMultiCallable[
|
152
|
-
nucliadb_protos.nodewriter_pb2.NewVectorSetRequest,
|
153
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
154
|
-
]
|
155
|
-
|
156
|
-
RemoveVectorSet: grpc.aio.UnaryUnaryMultiCallable[
|
157
|
-
nucliadb_protos.noderesources_pb2.VectorSetID,
|
158
|
-
nucliadb_protos.nodewriter_pb2.OpStatus,
|
159
|
-
]
|
160
|
-
|
161
|
-
ListVectorSets: grpc.aio.UnaryUnaryMultiCallable[
|
162
|
-
nucliadb_protos.noderesources_pb2.ShardId,
|
163
|
-
nucliadb_protos.noderesources_pb2.VectorSetList,
|
164
|
-
]
|
165
|
-
|
166
|
-
GetMetadata: grpc.aio.UnaryUnaryMultiCallable[
|
167
|
-
nucliadb_protos.noderesources_pb2.EmptyQuery,
|
168
|
-
nucliadb_protos.noderesources_pb2.NodeMetadata,
|
169
|
-
]
|
170
|
-
|
171
|
-
class NodeWriterServicer(metaclass=abc.ABCMeta):
|
172
|
-
@abc.abstractmethod
|
173
|
-
def NewShard(
|
174
|
-
self,
|
175
|
-
request: nucliadb_protos.nodewriter_pb2.NewShardRequest,
|
176
|
-
context: _ServicerContext,
|
177
|
-
) -> typing.Union[nucliadb_protos.noderesources_pb2.ShardCreated, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.ShardCreated]]: ...
|
178
|
-
|
179
|
-
@abc.abstractmethod
|
180
|
-
def DeleteShard(
|
181
|
-
self,
|
182
|
-
request: nucliadb_protos.noderesources_pb2.ShardId,
|
183
|
-
context: _ServicerContext,
|
184
|
-
) -> typing.Union[nucliadb_protos.noderesources_pb2.ShardId, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.ShardId]]: ...
|
185
|
-
|
186
|
-
@abc.abstractmethod
|
187
|
-
def ListShards(
|
188
|
-
self,
|
189
|
-
request: nucliadb_protos.noderesources_pb2.EmptyQuery,
|
190
|
-
context: _ServicerContext,
|
191
|
-
) -> typing.Union[nucliadb_protos.noderesources_pb2.ShardIds, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.ShardIds]]: ...
|
192
|
-
|
193
|
-
@abc.abstractmethod
|
194
|
-
def GC(
|
195
|
-
self,
|
196
|
-
request: nucliadb_protos.noderesources_pb2.ShardId,
|
197
|
-
context: _ServicerContext,
|
198
|
-
) -> typing.Union[nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse]]: ...
|
199
|
-
|
200
|
-
@abc.abstractmethod
|
201
|
-
def Merge(
|
202
|
-
self,
|
203
|
-
request: nucliadb_protos.noderesources_pb2.ShardId,
|
204
|
-
context: _ServicerContext,
|
205
|
-
) -> typing.Union[nucliadb_protos.nodewriter_pb2.MergeResponse, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.MergeResponse]]: ...
|
206
|
-
|
207
|
-
@abc.abstractmethod
|
208
|
-
def SetResource(
|
209
|
-
self,
|
210
|
-
request: nucliadb_protos.noderesources_pb2.Resource,
|
211
|
-
context: _ServicerContext,
|
212
|
-
) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
|
213
|
-
|
214
|
-
@abc.abstractmethod
|
215
|
-
def SetResourceFromStorage(
|
216
|
-
self,
|
217
|
-
request: nucliadb_protos.nodewriter_pb2.IndexMessage,
|
218
|
-
context: _ServicerContext,
|
219
|
-
) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
|
220
|
-
|
221
|
-
@abc.abstractmethod
|
222
|
-
def RemoveResource(
|
223
|
-
self,
|
224
|
-
request: nucliadb_protos.noderesources_pb2.ResourceID,
|
225
|
-
context: _ServicerContext,
|
226
|
-
) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
|
227
|
-
|
228
|
-
@abc.abstractmethod
|
229
|
-
def AddVectorSet(
|
230
|
-
self,
|
231
|
-
request: nucliadb_protos.nodewriter_pb2.NewVectorSetRequest,
|
232
|
-
context: _ServicerContext,
|
233
|
-
) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
|
234
|
-
|
235
|
-
@abc.abstractmethod
|
236
|
-
def RemoveVectorSet(
|
237
|
-
self,
|
238
|
-
request: nucliadb_protos.noderesources_pb2.VectorSetID,
|
239
|
-
context: _ServicerContext,
|
240
|
-
) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
|
241
|
-
|
242
|
-
@abc.abstractmethod
|
243
|
-
def ListVectorSets(
|
244
|
-
self,
|
245
|
-
request: nucliadb_protos.noderesources_pb2.ShardId,
|
246
|
-
context: _ServicerContext,
|
247
|
-
) -> typing.Union[nucliadb_protos.noderesources_pb2.VectorSetList, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.VectorSetList]]: ...
|
248
|
-
|
249
|
-
@abc.abstractmethod
|
250
|
-
def GetMetadata(
|
251
|
-
self,
|
252
|
-
request: nucliadb_protos.noderesources_pb2.EmptyQuery,
|
253
|
-
context: _ServicerContext,
|
254
|
-
) -> typing.Union[nucliadb_protos.noderesources_pb2.NodeMetadata, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.NodeMetadata]]: ...
|
255
|
-
|
256
|
-
def add_NodeWriterServicer_to_server(servicer: NodeWriterServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
File without changes
|
File without changes
|