denkproto 1.3.0__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.
- denkproto/ImageAnalysis_ProtobufMessages_pb2.py +139 -0
- denkproto/ImageAnalysis_ProtobufMessages_pb2.pyi +598 -0
- denkproto/ImageAnalysis_ProtobufMessages_pb2_grpc.py +24 -0
- denkproto/__about__.py +1 -0
- denkproto/__init__.py +0 -0
- denkproto/annotation_comparer_request_pb2.py +40 -0
- denkproto/annotation_comparer_request_pb2.pyi +38 -0
- denkproto/annotation_comparer_request_pb2_grpc.py +24 -0
- denkproto/denkcache_pb2.py +77 -0
- denkproto/denkcache_pb2.pyi +155 -0
- denkproto/denkcache_pb2_grpc.py +398 -0
- denkproto/geometry_pb2.py +45 -0
- denkproto/geometry_pb2.pyi +54 -0
- denkproto/geometry_pb2_grpc.py +24 -0
- denkproto/inference_graph_pb2.py +185 -0
- denkproto/inference_graph_pb2.pyi +272 -0
- denkproto/inference_graph_pb2_grpc.py +24 -0
- denkproto/json/__init__.py +3 -0
- denkproto/json/classification_markup_schema_.py +28 -0
- denkproto/json/geometry_schema.py +71 -0
- denkproto/json/inference_graph_recipe_schema.py +336 -0
- denkproto/json/instance_segmentation_markup_schema.py +35 -0
- denkproto/json/object_detection_markup_schema.py +43 -0
- denkproto/json/ocr_markup_schema.py +48 -0
- denkproto/json/segmentation_markup_schema.py +242 -0
- denkproto/markup_pb2.py +56 -0
- denkproto/markup_pb2.pyi +155 -0
- denkproto/markup_pb2_grpc.py +24 -0
- denkproto/materialized_markup_pb2.py +46 -0
- denkproto/materialized_markup_pb2.pyi +71 -0
- denkproto/materialized_markup_pb2_grpc.py +24 -0
- denkproto/modelfile_v1_pb2.py +57 -0
- denkproto/modelfile_v1_pb2.pyi +216 -0
- denkproto/modelfile_v1_pb2_grpc.py +24 -0
- denkproto/modelfile_v2_pb2.py +154 -0
- denkproto/modelfile_v2_pb2.pyi +307 -0
- denkproto/modelfile_v2_pb2_grpc.py +24 -0
- denkproto/prediction_pb2.py +48 -0
- denkproto/prediction_pb2.pyi +89 -0
- denkproto/prediction_pb2_grpc.py +24 -0
- denkproto/prediction_request_pb2.py +43 -0
- denkproto/prediction_request_pb2.pyi +56 -0
- denkproto/prediction_request_pb2_grpc.py +24 -0
- denkproto/py.typed +0 -0
- denkproto/request_pb2.py +51 -0
- denkproto/request_pb2.pyi +92 -0
- denkproto/request_pb2_grpc.py +24 -0
- denkproto/results_pb2.py +91 -0
- denkproto/results_pb2.pyi +528 -0
- denkproto/results_pb2_grpc.py +24 -0
- denkproto/validate_pb2.py +86 -0
- denkproto/validate_pb2.pyi +494 -0
- denkproto/validate_pb2_grpc.py +24 -0
- denkproto-1.3.0.dist-info/METADATA +5 -0
- denkproto-1.3.0.dist-info/RECORD +56 -0
- denkproto-1.3.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
import denkproto.denkcache_pb2 as denkcache__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.68.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ f' but the generated code in denkcache_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class DENKcacheStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.ChangeSettings = channel.unary_unary(
|
|
38
|
+
'/denkcache.DENKcache/ChangeSettings',
|
|
39
|
+
request_serializer=denkcache__pb2.ChangeSettingsRequest.SerializeToString,
|
|
40
|
+
response_deserializer=denkcache__pb2.ChangeSettingsResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
self.PingPong = channel.unary_unary(
|
|
43
|
+
'/denkcache.DENKcache/PingPong',
|
|
44
|
+
request_serializer=denkcache__pb2.PingPongRequest.SerializeToString,
|
|
45
|
+
response_deserializer=denkcache__pb2.PingPongResponse.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.InvalidateObject = channel.unary_unary(
|
|
48
|
+
'/denkcache.DENKcache/InvalidateObject',
|
|
49
|
+
request_serializer=denkcache__pb2.InvalidateObjectRequest.SerializeToString,
|
|
50
|
+
response_deserializer=denkcache__pb2.InvalidateObjectResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.HasObjectCached = channel.unary_unary(
|
|
53
|
+
'/denkcache.DENKcache/HasObjectCached',
|
|
54
|
+
request_serializer=denkcache__pb2.HasObjectCachedRequest.SerializeToString,
|
|
55
|
+
response_deserializer=denkcache__pb2.HasObjectCachedResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.ObjectExists = channel.unary_unary(
|
|
58
|
+
'/denkcache.DENKcache/ObjectExists',
|
|
59
|
+
request_serializer=denkcache__pb2.ObjectExistsRequest.SerializeToString,
|
|
60
|
+
response_deserializer=denkcache__pb2.ObjectExistsResponse.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.GetObject = channel.unary_unary(
|
|
63
|
+
'/denkcache.DENKcache/GetObject',
|
|
64
|
+
request_serializer=denkcache__pb2.GetObjectRequest.SerializeToString,
|
|
65
|
+
response_deserializer=denkcache__pb2.GetObjectResponse.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
self.CacheObject = channel.unary_unary(
|
|
68
|
+
'/denkcache.DENKcache/CacheObject',
|
|
69
|
+
request_serializer=denkcache__pb2.CacheObjectRequest.SerializeToString,
|
|
70
|
+
response_deserializer=denkcache__pb2.CacheObjectResponse.FromString,
|
|
71
|
+
_registered_method=True)
|
|
72
|
+
self.GetCachedObject = channel.unary_unary(
|
|
73
|
+
'/denkcache.DENKcache/GetCachedObject',
|
|
74
|
+
request_serializer=denkcache__pb2.GetCachedObjectRequest.SerializeToString,
|
|
75
|
+
response_deserializer=denkcache__pb2.GetCachedObjectResponse.FromString,
|
|
76
|
+
_registered_method=True)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class DENKcacheServicer(object):
|
|
80
|
+
"""Missing associated documentation comment in .proto file."""
|
|
81
|
+
|
|
82
|
+
def ChangeSettings(self, request, context):
|
|
83
|
+
"""Missing associated documentation comment in .proto file."""
|
|
84
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
85
|
+
context.set_details('Method not implemented!')
|
|
86
|
+
raise NotImplementedError('Method not implemented!')
|
|
87
|
+
|
|
88
|
+
def PingPong(self, request, context):
|
|
89
|
+
"""Missing associated documentation comment in .proto file."""
|
|
90
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
91
|
+
context.set_details('Method not implemented!')
|
|
92
|
+
raise NotImplementedError('Method not implemented!')
|
|
93
|
+
|
|
94
|
+
def InvalidateObject(self, request, context):
|
|
95
|
+
"""Missing associated documentation comment in .proto file."""
|
|
96
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
97
|
+
context.set_details('Method not implemented!')
|
|
98
|
+
raise NotImplementedError('Method not implemented!')
|
|
99
|
+
|
|
100
|
+
def HasObjectCached(self, request, context):
|
|
101
|
+
"""Missing associated documentation comment in .proto file."""
|
|
102
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
103
|
+
context.set_details('Method not implemented!')
|
|
104
|
+
raise NotImplementedError('Method not implemented!')
|
|
105
|
+
|
|
106
|
+
def ObjectExists(self, request, context):
|
|
107
|
+
"""Missing associated documentation comment in .proto file."""
|
|
108
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
109
|
+
context.set_details('Method not implemented!')
|
|
110
|
+
raise NotImplementedError('Method not implemented!')
|
|
111
|
+
|
|
112
|
+
def GetObject(self, request, context):
|
|
113
|
+
"""Missing associated documentation comment in .proto file."""
|
|
114
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
115
|
+
context.set_details('Method not implemented!')
|
|
116
|
+
raise NotImplementedError('Method not implemented!')
|
|
117
|
+
|
|
118
|
+
def CacheObject(self, request, context):
|
|
119
|
+
"""Missing associated documentation comment in .proto file."""
|
|
120
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
121
|
+
context.set_details('Method not implemented!')
|
|
122
|
+
raise NotImplementedError('Method not implemented!')
|
|
123
|
+
|
|
124
|
+
def GetCachedObject(self, request, context):
|
|
125
|
+
"""Missing associated documentation comment in .proto file."""
|
|
126
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
127
|
+
context.set_details('Method not implemented!')
|
|
128
|
+
raise NotImplementedError('Method not implemented!')
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def add_DENKcacheServicer_to_server(servicer, server):
|
|
132
|
+
rpc_method_handlers = {
|
|
133
|
+
'ChangeSettings': grpc.unary_unary_rpc_method_handler(
|
|
134
|
+
servicer.ChangeSettings,
|
|
135
|
+
request_deserializer=denkcache__pb2.ChangeSettingsRequest.FromString,
|
|
136
|
+
response_serializer=denkcache__pb2.ChangeSettingsResponse.SerializeToString,
|
|
137
|
+
),
|
|
138
|
+
'PingPong': grpc.unary_unary_rpc_method_handler(
|
|
139
|
+
servicer.PingPong,
|
|
140
|
+
request_deserializer=denkcache__pb2.PingPongRequest.FromString,
|
|
141
|
+
response_serializer=denkcache__pb2.PingPongResponse.SerializeToString,
|
|
142
|
+
),
|
|
143
|
+
'InvalidateObject': grpc.unary_unary_rpc_method_handler(
|
|
144
|
+
servicer.InvalidateObject,
|
|
145
|
+
request_deserializer=denkcache__pb2.InvalidateObjectRequest.FromString,
|
|
146
|
+
response_serializer=denkcache__pb2.InvalidateObjectResponse.SerializeToString,
|
|
147
|
+
),
|
|
148
|
+
'HasObjectCached': grpc.unary_unary_rpc_method_handler(
|
|
149
|
+
servicer.HasObjectCached,
|
|
150
|
+
request_deserializer=denkcache__pb2.HasObjectCachedRequest.FromString,
|
|
151
|
+
response_serializer=denkcache__pb2.HasObjectCachedResponse.SerializeToString,
|
|
152
|
+
),
|
|
153
|
+
'ObjectExists': grpc.unary_unary_rpc_method_handler(
|
|
154
|
+
servicer.ObjectExists,
|
|
155
|
+
request_deserializer=denkcache__pb2.ObjectExistsRequest.FromString,
|
|
156
|
+
response_serializer=denkcache__pb2.ObjectExistsResponse.SerializeToString,
|
|
157
|
+
),
|
|
158
|
+
'GetObject': grpc.unary_unary_rpc_method_handler(
|
|
159
|
+
servicer.GetObject,
|
|
160
|
+
request_deserializer=denkcache__pb2.GetObjectRequest.FromString,
|
|
161
|
+
response_serializer=denkcache__pb2.GetObjectResponse.SerializeToString,
|
|
162
|
+
),
|
|
163
|
+
'CacheObject': grpc.unary_unary_rpc_method_handler(
|
|
164
|
+
servicer.CacheObject,
|
|
165
|
+
request_deserializer=denkcache__pb2.CacheObjectRequest.FromString,
|
|
166
|
+
response_serializer=denkcache__pb2.CacheObjectResponse.SerializeToString,
|
|
167
|
+
),
|
|
168
|
+
'GetCachedObject': grpc.unary_unary_rpc_method_handler(
|
|
169
|
+
servicer.GetCachedObject,
|
|
170
|
+
request_deserializer=denkcache__pb2.GetCachedObjectRequest.FromString,
|
|
171
|
+
response_serializer=denkcache__pb2.GetCachedObjectResponse.SerializeToString,
|
|
172
|
+
),
|
|
173
|
+
}
|
|
174
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
175
|
+
'denkcache.DENKcache', rpc_method_handlers)
|
|
176
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
177
|
+
server.add_registered_method_handlers('denkcache.DENKcache', rpc_method_handlers)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
# This class is part of an EXPERIMENTAL API.
|
|
181
|
+
class DENKcache(object):
|
|
182
|
+
"""Missing associated documentation comment in .proto file."""
|
|
183
|
+
|
|
184
|
+
@staticmethod
|
|
185
|
+
def ChangeSettings(request,
|
|
186
|
+
target,
|
|
187
|
+
options=(),
|
|
188
|
+
channel_credentials=None,
|
|
189
|
+
call_credentials=None,
|
|
190
|
+
insecure=False,
|
|
191
|
+
compression=None,
|
|
192
|
+
wait_for_ready=None,
|
|
193
|
+
timeout=None,
|
|
194
|
+
metadata=None):
|
|
195
|
+
return grpc.experimental.unary_unary(
|
|
196
|
+
request,
|
|
197
|
+
target,
|
|
198
|
+
'/denkcache.DENKcache/ChangeSettings',
|
|
199
|
+
denkcache__pb2.ChangeSettingsRequest.SerializeToString,
|
|
200
|
+
denkcache__pb2.ChangeSettingsResponse.FromString,
|
|
201
|
+
options,
|
|
202
|
+
channel_credentials,
|
|
203
|
+
insecure,
|
|
204
|
+
call_credentials,
|
|
205
|
+
compression,
|
|
206
|
+
wait_for_ready,
|
|
207
|
+
timeout,
|
|
208
|
+
metadata,
|
|
209
|
+
_registered_method=True)
|
|
210
|
+
|
|
211
|
+
@staticmethod
|
|
212
|
+
def PingPong(request,
|
|
213
|
+
target,
|
|
214
|
+
options=(),
|
|
215
|
+
channel_credentials=None,
|
|
216
|
+
call_credentials=None,
|
|
217
|
+
insecure=False,
|
|
218
|
+
compression=None,
|
|
219
|
+
wait_for_ready=None,
|
|
220
|
+
timeout=None,
|
|
221
|
+
metadata=None):
|
|
222
|
+
return grpc.experimental.unary_unary(
|
|
223
|
+
request,
|
|
224
|
+
target,
|
|
225
|
+
'/denkcache.DENKcache/PingPong',
|
|
226
|
+
denkcache__pb2.PingPongRequest.SerializeToString,
|
|
227
|
+
denkcache__pb2.PingPongResponse.FromString,
|
|
228
|
+
options,
|
|
229
|
+
channel_credentials,
|
|
230
|
+
insecure,
|
|
231
|
+
call_credentials,
|
|
232
|
+
compression,
|
|
233
|
+
wait_for_ready,
|
|
234
|
+
timeout,
|
|
235
|
+
metadata,
|
|
236
|
+
_registered_method=True)
|
|
237
|
+
|
|
238
|
+
@staticmethod
|
|
239
|
+
def InvalidateObject(request,
|
|
240
|
+
target,
|
|
241
|
+
options=(),
|
|
242
|
+
channel_credentials=None,
|
|
243
|
+
call_credentials=None,
|
|
244
|
+
insecure=False,
|
|
245
|
+
compression=None,
|
|
246
|
+
wait_for_ready=None,
|
|
247
|
+
timeout=None,
|
|
248
|
+
metadata=None):
|
|
249
|
+
return grpc.experimental.unary_unary(
|
|
250
|
+
request,
|
|
251
|
+
target,
|
|
252
|
+
'/denkcache.DENKcache/InvalidateObject',
|
|
253
|
+
denkcache__pb2.InvalidateObjectRequest.SerializeToString,
|
|
254
|
+
denkcache__pb2.InvalidateObjectResponse.FromString,
|
|
255
|
+
options,
|
|
256
|
+
channel_credentials,
|
|
257
|
+
insecure,
|
|
258
|
+
call_credentials,
|
|
259
|
+
compression,
|
|
260
|
+
wait_for_ready,
|
|
261
|
+
timeout,
|
|
262
|
+
metadata,
|
|
263
|
+
_registered_method=True)
|
|
264
|
+
|
|
265
|
+
@staticmethod
|
|
266
|
+
def HasObjectCached(request,
|
|
267
|
+
target,
|
|
268
|
+
options=(),
|
|
269
|
+
channel_credentials=None,
|
|
270
|
+
call_credentials=None,
|
|
271
|
+
insecure=False,
|
|
272
|
+
compression=None,
|
|
273
|
+
wait_for_ready=None,
|
|
274
|
+
timeout=None,
|
|
275
|
+
metadata=None):
|
|
276
|
+
return grpc.experimental.unary_unary(
|
|
277
|
+
request,
|
|
278
|
+
target,
|
|
279
|
+
'/denkcache.DENKcache/HasObjectCached',
|
|
280
|
+
denkcache__pb2.HasObjectCachedRequest.SerializeToString,
|
|
281
|
+
denkcache__pb2.HasObjectCachedResponse.FromString,
|
|
282
|
+
options,
|
|
283
|
+
channel_credentials,
|
|
284
|
+
insecure,
|
|
285
|
+
call_credentials,
|
|
286
|
+
compression,
|
|
287
|
+
wait_for_ready,
|
|
288
|
+
timeout,
|
|
289
|
+
metadata,
|
|
290
|
+
_registered_method=True)
|
|
291
|
+
|
|
292
|
+
@staticmethod
|
|
293
|
+
def ObjectExists(request,
|
|
294
|
+
target,
|
|
295
|
+
options=(),
|
|
296
|
+
channel_credentials=None,
|
|
297
|
+
call_credentials=None,
|
|
298
|
+
insecure=False,
|
|
299
|
+
compression=None,
|
|
300
|
+
wait_for_ready=None,
|
|
301
|
+
timeout=None,
|
|
302
|
+
metadata=None):
|
|
303
|
+
return grpc.experimental.unary_unary(
|
|
304
|
+
request,
|
|
305
|
+
target,
|
|
306
|
+
'/denkcache.DENKcache/ObjectExists',
|
|
307
|
+
denkcache__pb2.ObjectExistsRequest.SerializeToString,
|
|
308
|
+
denkcache__pb2.ObjectExistsResponse.FromString,
|
|
309
|
+
options,
|
|
310
|
+
channel_credentials,
|
|
311
|
+
insecure,
|
|
312
|
+
call_credentials,
|
|
313
|
+
compression,
|
|
314
|
+
wait_for_ready,
|
|
315
|
+
timeout,
|
|
316
|
+
metadata,
|
|
317
|
+
_registered_method=True)
|
|
318
|
+
|
|
319
|
+
@staticmethod
|
|
320
|
+
def GetObject(request,
|
|
321
|
+
target,
|
|
322
|
+
options=(),
|
|
323
|
+
channel_credentials=None,
|
|
324
|
+
call_credentials=None,
|
|
325
|
+
insecure=False,
|
|
326
|
+
compression=None,
|
|
327
|
+
wait_for_ready=None,
|
|
328
|
+
timeout=None,
|
|
329
|
+
metadata=None):
|
|
330
|
+
return grpc.experimental.unary_unary(
|
|
331
|
+
request,
|
|
332
|
+
target,
|
|
333
|
+
'/denkcache.DENKcache/GetObject',
|
|
334
|
+
denkcache__pb2.GetObjectRequest.SerializeToString,
|
|
335
|
+
denkcache__pb2.GetObjectResponse.FromString,
|
|
336
|
+
options,
|
|
337
|
+
channel_credentials,
|
|
338
|
+
insecure,
|
|
339
|
+
call_credentials,
|
|
340
|
+
compression,
|
|
341
|
+
wait_for_ready,
|
|
342
|
+
timeout,
|
|
343
|
+
metadata,
|
|
344
|
+
_registered_method=True)
|
|
345
|
+
|
|
346
|
+
@staticmethod
|
|
347
|
+
def CacheObject(request,
|
|
348
|
+
target,
|
|
349
|
+
options=(),
|
|
350
|
+
channel_credentials=None,
|
|
351
|
+
call_credentials=None,
|
|
352
|
+
insecure=False,
|
|
353
|
+
compression=None,
|
|
354
|
+
wait_for_ready=None,
|
|
355
|
+
timeout=None,
|
|
356
|
+
metadata=None):
|
|
357
|
+
return grpc.experimental.unary_unary(
|
|
358
|
+
request,
|
|
359
|
+
target,
|
|
360
|
+
'/denkcache.DENKcache/CacheObject',
|
|
361
|
+
denkcache__pb2.CacheObjectRequest.SerializeToString,
|
|
362
|
+
denkcache__pb2.CacheObjectResponse.FromString,
|
|
363
|
+
options,
|
|
364
|
+
channel_credentials,
|
|
365
|
+
insecure,
|
|
366
|
+
call_credentials,
|
|
367
|
+
compression,
|
|
368
|
+
wait_for_ready,
|
|
369
|
+
timeout,
|
|
370
|
+
metadata,
|
|
371
|
+
_registered_method=True)
|
|
372
|
+
|
|
373
|
+
@staticmethod
|
|
374
|
+
def GetCachedObject(request,
|
|
375
|
+
target,
|
|
376
|
+
options=(),
|
|
377
|
+
channel_credentials=None,
|
|
378
|
+
call_credentials=None,
|
|
379
|
+
insecure=False,
|
|
380
|
+
compression=None,
|
|
381
|
+
wait_for_ready=None,
|
|
382
|
+
timeout=None,
|
|
383
|
+
metadata=None):
|
|
384
|
+
return grpc.experimental.unary_unary(
|
|
385
|
+
request,
|
|
386
|
+
target,
|
|
387
|
+
'/denkcache.DENKcache/GetCachedObject',
|
|
388
|
+
denkcache__pb2.GetCachedObjectRequest.SerializeToString,
|
|
389
|
+
denkcache__pb2.GetCachedObjectResponse.FromString,
|
|
390
|
+
options,
|
|
391
|
+
channel_credentials,
|
|
392
|
+
insecure,
|
|
393
|
+
call_credentials,
|
|
394
|
+
compression,
|
|
395
|
+
wait_for_ready,
|
|
396
|
+
timeout,
|
|
397
|
+
metadata,
|
|
398
|
+
_registered_method=True)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: geometry.proto
|
|
5
|
+
# Protobuf Python Version: 5.28.1
|
|
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
|
+
28,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'geometry.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0egeometry.proto\x12\x08geometry\"\x1f\n\x07Point2D\x12\t\n\x01x\x18\x01 \x01(\r\x12\t\n\x01y\x18\x02 \x01(\r\"\x94\x01\n\x0b\x42oundingBox\x12\t\n\x01x\x18\x01 \x01(\r\x12\t\n\x01y\x18\x02 \x01(\r\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\x12\n\x05\x61ngle\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\x1d\n\x10\x66ull_orientation\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x08\n\x06_angleB\x13\n\x11_full_orientation\"C\n\x0bPolygonRing\x12\x11\n\thierarchy\x18\x01 \x01(\x05\x12!\n\x06points\x18\x02 \x03(\x0b\x32\x11.geometry.Point2D\"/\n\x07Polygon\x12$\n\x05rings\x18\x01 \x03(\x0b\x32\x15.geometry.PolygonRing\"O\n\x0e\x42inaryMaskData\x12\x14\n\x0c\x64\x65lta_values\x18\x01 \x03(\r\x12\x12\n\nmask_width\x18\x02 \x01(\r\x12\x13\n\x0bmask_height\x18\x03 \x01(\rBAZ)github.com/DENKweit/denkproto-go/geometry\xaa\x02\x13\x44\x45NK.Proto.Geometryb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'geometry_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z)github.com/DENKweit/denkproto-go/geometry\252\002\023DENK.Proto.Geometry'
|
|
35
|
+
_globals['_POINT2D']._serialized_start=28
|
|
36
|
+
_globals['_POINT2D']._serialized_end=59
|
|
37
|
+
_globals['_BOUNDINGBOX']._serialized_start=62
|
|
38
|
+
_globals['_BOUNDINGBOX']._serialized_end=210
|
|
39
|
+
_globals['_POLYGONRING']._serialized_start=212
|
|
40
|
+
_globals['_POLYGONRING']._serialized_end=279
|
|
41
|
+
_globals['_POLYGON']._serialized_start=281
|
|
42
|
+
_globals['_POLYGON']._serialized_end=328
|
|
43
|
+
_globals['_BINARYMASKDATA']._serialized_start=330
|
|
44
|
+
_globals['_BINARYMASKDATA']._serialized_end=409
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class Point2D(_message.Message):
|
|
9
|
+
__slots__ = ("x", "y")
|
|
10
|
+
X_FIELD_NUMBER: _ClassVar[int]
|
|
11
|
+
Y_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
x: int
|
|
13
|
+
y: int
|
|
14
|
+
def __init__(self, x: _Optional[int] = ..., y: _Optional[int] = ...) -> None: ...
|
|
15
|
+
|
|
16
|
+
class BoundingBox(_message.Message):
|
|
17
|
+
__slots__ = ("x", "y", "width", "height", "angle", "full_orientation")
|
|
18
|
+
X_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
Y_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
ANGLE_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
FULL_ORIENTATION_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
x: int
|
|
25
|
+
y: int
|
|
26
|
+
width: int
|
|
27
|
+
height: int
|
|
28
|
+
angle: float
|
|
29
|
+
full_orientation: bool
|
|
30
|
+
def __init__(self, x: _Optional[int] = ..., y: _Optional[int] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., angle: _Optional[float] = ..., full_orientation: bool = ...) -> None: ...
|
|
31
|
+
|
|
32
|
+
class PolygonRing(_message.Message):
|
|
33
|
+
__slots__ = ("hierarchy", "points")
|
|
34
|
+
HIERARCHY_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
POINTS_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
hierarchy: int
|
|
37
|
+
points: _containers.RepeatedCompositeFieldContainer[Point2D]
|
|
38
|
+
def __init__(self, hierarchy: _Optional[int] = ..., points: _Optional[_Iterable[_Union[Point2D, _Mapping]]] = ...) -> None: ...
|
|
39
|
+
|
|
40
|
+
class Polygon(_message.Message):
|
|
41
|
+
__slots__ = ("rings",)
|
|
42
|
+
RINGS_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
rings: _containers.RepeatedCompositeFieldContainer[PolygonRing]
|
|
44
|
+
def __init__(self, rings: _Optional[_Iterable[_Union[PolygonRing, _Mapping]]] = ...) -> None: ...
|
|
45
|
+
|
|
46
|
+
class BinaryMaskData(_message.Message):
|
|
47
|
+
__slots__ = ("delta_values", "mask_width", "mask_height")
|
|
48
|
+
DELTA_VALUES_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
MASK_WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
MASK_HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
delta_values: _containers.RepeatedScalarFieldContainer[int]
|
|
52
|
+
mask_width: int
|
|
53
|
+
mask_height: int
|
|
54
|
+
def __init__(self, delta_values: _Optional[_Iterable[int]] = ..., mask_width: _Optional[int] = ..., mask_height: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.68.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in geometry_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|