denkproto 1.0.26__py3-none-any.whl → 1.0.29__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.

Potentially problematic release.


This version of denkproto might be problematic. Click here for more details.

denkproto/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.0.26"
1
+ __version__ = "1.0.29"
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
 
26
26
 
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x64\x65nkcache.proto\x12\tdenkcache\"@\n\x13ObjectExistsRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"&\n\x14ObjectExistsResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"f\n\x10GetObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\x12\'\n\x06source\x18\x03 \x01(\x0e\x32\x17.denkcache.ObjectSource\"#\n\x11GetObjectResponse\x12\x0e\n\x06object\x18\x01 \x01(\x0c\"O\n\x12\x43\x61\x63heObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\x12\x0e\n\x06object\x18\x03 \x01(\x0c\"\x15\n\x13\x43\x61\x63heObjectResponse\"C\n\x16GetCachedObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"9\n\x17GetCachedObjectResponse\x12\x13\n\x06object\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_object\"C\n\x16HasObjectCachedRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\")\n\x17HasObjectCachedResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"\x11\n\x0fPingPongRequest\"\x12\n\x10PingPongResponse*v\n\x0cObjectSource\x12\x18\n\x14OBJECT_SOURCE_MEMORY\x10\x00\x12\x16\n\x12OBJECT_SOURCE_DISK\x10\x01\x12\x1b\n\x17OBJECT_SOURCE_DENKCACHE\x10\x02\x12\x17\n\x13OBJECT_SOURCE_AZURE\x10\x03\x32\xeb\x03\n\tDENKcache\x12\x43\n\x08PingPong\x12\x1a.denkcache.PingPongRequest\x1a\x1b.denkcache.PingPongResponse\x12X\n\x0fHasObjectCached\x12!.denkcache.HasObjectCachedRequest\x1a\".denkcache.HasObjectCachedResponse\x12O\n\x0cObjectExists\x12\x1e.denkcache.ObjectExistsRequest\x1a\x1f.denkcache.ObjectExistsResponse\x12\x46\n\tGetObject\x12\x1b.denkcache.GetObjectRequest\x1a\x1c.denkcache.GetObjectResponse\x12L\n\x0b\x43\x61\x63heObject\x12\x1d.denkcache.CacheObjectRequest\x1a\x1e.denkcache.CacheObjectResponse\x12X\n\x0fGetCachedObject\x12!.denkcache.GetCachedObjectRequest\x1a\".denkcache.GetCachedObjectResponseB/Z\x16\x64\x65nkproto-go/denkcache\xaa\x02\x14\x44\x45NK.Proto.DENKcacheb\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x64\x65nkcache.proto\x12\tdenkcache\"@\n\x13ObjectExistsRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"&\n\x14ObjectExistsResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"h\n\x13ObjectSourceMessage\x12\'\n\x06source\x18\x01 \x01(\x0e\x32\x17.denkcache.ObjectSource\x12\x18\n\x0bsource_info\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_source_info\"=\n\x10GetObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"S\n\x11GetObjectResponse\x12\x0e\n\x06object\x18\x01 \x01(\x0c\x12.\n\x06source\x18\x02 \x01(\x0b\x32\x1e.denkcache.ObjectSourceMessage\"\x99\x01\n\x12\x43\x61\x63heObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\x12\x0e\n\x06object\x18\x03 \x01(\x0c\x12\x37\n\x0c\x63\x61\x63he_policy\x18\x04 \x01(\x0e\x32\x1c.denkcache.CacheObjectPolicyH\x00\x88\x01\x01\x42\x0f\n\r_cache_policy\"\x15\n\x13\x43\x61\x63heObjectResponse\"C\n\x16GetCachedObjectRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\"9\n\x17GetCachedObjectResponse\x12\x13\n\x06object\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\t\n\x07_object\"C\n\x16HasObjectCachedRequest\x12\x16\n\x0e\x63ontainer_name\x18\x01 \x01(\t\x12\x11\n\tblob_name\x18\x02 \x01(\t\")\n\x17HasObjectCachedResponse\x12\x0e\n\x06\x65xists\x18\x01 \x01(\x08\"\x11\n\x0fPingPongRequest\"\x12\n\x10PingPongResponse*v\n\x0cObjectSource\x12\x18\n\x14OBJECT_SOURCE_MEMORY\x10\x00\x12\x16\n\x12OBJECT_SOURCE_DISK\x10\x01\x12\x1b\n\x17OBJECT_SOURCE_DENKCACHE\x10\x02\x12\x17\n\x13OBJECT_SOURCE_AZURE\x10\x03*H\n\x11\x43\x61\x63heObjectPolicy\x12\x0f\n\x0bMEMORY_ONLY\x10\x00\x12\r\n\tDISK_ONLY\x10\x01\x12\x13\n\x0fMEMORY_AND_DISK\x10\x02\x32\xeb\x03\n\tDENKcache\x12\x43\n\x08PingPong\x12\x1a.denkcache.PingPongRequest\x1a\x1b.denkcache.PingPongResponse\x12X\n\x0fHasObjectCached\x12!.denkcache.HasObjectCachedRequest\x1a\".denkcache.HasObjectCachedResponse\x12O\n\x0cObjectExists\x12\x1e.denkcache.ObjectExistsRequest\x1a\x1f.denkcache.ObjectExistsResponse\x12\x46\n\tGetObject\x12\x1b.denkcache.GetObjectRequest\x1a\x1c.denkcache.GetObjectResponse\x12L\n\x0b\x43\x61\x63heObject\x12\x1d.denkcache.CacheObjectRequest\x1a\x1e.denkcache.CacheObjectResponse\x12X\n\x0fGetCachedObject\x12!.denkcache.GetCachedObjectRequest\x1a\".denkcache.GetCachedObjectResponseB/Z\x16\x64\x65nkproto-go/denkcache\xaa\x02\x14\x44\x45NK.Proto.DENKcacheb\x06proto3')
28
28
 
29
29
  _globals = globals()
30
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -32,32 +32,36 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'denkcache_pb2', _globals)
32
32
  if not _descriptor._USE_C_DESCRIPTORS:
33
33
  _globals['DESCRIPTOR']._loaded_options = None
34
34
  _globals['DESCRIPTOR']._serialized_options = b'Z\026denkproto-go/denkcache\252\002\024DENK.Proto.DENKcache'
35
- _globals['_OBJECTSOURCE']._serialized_start=660
36
- _globals['_OBJECTSOURCE']._serialized_end=778
35
+ _globals['_OBJECTSOURCE']._serialized_start=848
36
+ _globals['_OBJECTSOURCE']._serialized_end=966
37
+ _globals['_CACHEOBJECTPOLICY']._serialized_start=968
38
+ _globals['_CACHEOBJECTPOLICY']._serialized_end=1040
37
39
  _globals['_OBJECTEXISTSREQUEST']._serialized_start=30
38
40
  _globals['_OBJECTEXISTSREQUEST']._serialized_end=94
39
41
  _globals['_OBJECTEXISTSRESPONSE']._serialized_start=96
40
42
  _globals['_OBJECTEXISTSRESPONSE']._serialized_end=134
41
- _globals['_GETOBJECTREQUEST']._serialized_start=136
42
- _globals['_GETOBJECTREQUEST']._serialized_end=238
43
- _globals['_GETOBJECTRESPONSE']._serialized_start=240
44
- _globals['_GETOBJECTRESPONSE']._serialized_end=275
45
- _globals['_CACHEOBJECTREQUEST']._serialized_start=277
46
- _globals['_CACHEOBJECTREQUEST']._serialized_end=356
47
- _globals['_CACHEOBJECTRESPONSE']._serialized_start=358
48
- _globals['_CACHEOBJECTRESPONSE']._serialized_end=379
49
- _globals['_GETCACHEDOBJECTREQUEST']._serialized_start=381
50
- _globals['_GETCACHEDOBJECTREQUEST']._serialized_end=448
51
- _globals['_GETCACHEDOBJECTRESPONSE']._serialized_start=450
52
- _globals['_GETCACHEDOBJECTRESPONSE']._serialized_end=507
53
- _globals['_HASOBJECTCACHEDREQUEST']._serialized_start=509
54
- _globals['_HASOBJECTCACHEDREQUEST']._serialized_end=576
55
- _globals['_HASOBJECTCACHEDRESPONSE']._serialized_start=578
56
- _globals['_HASOBJECTCACHEDRESPONSE']._serialized_end=619
57
- _globals['_PINGPONGREQUEST']._serialized_start=621
58
- _globals['_PINGPONGREQUEST']._serialized_end=638
59
- _globals['_PINGPONGRESPONSE']._serialized_start=640
60
- _globals['_PINGPONGRESPONSE']._serialized_end=658
61
- _globals['_DENKCACHE']._serialized_start=781
62
- _globals['_DENKCACHE']._serialized_end=1272
43
+ _globals['_OBJECTSOURCEMESSAGE']._serialized_start=136
44
+ _globals['_OBJECTSOURCEMESSAGE']._serialized_end=240
45
+ _globals['_GETOBJECTREQUEST']._serialized_start=242
46
+ _globals['_GETOBJECTREQUEST']._serialized_end=303
47
+ _globals['_GETOBJECTRESPONSE']._serialized_start=305
48
+ _globals['_GETOBJECTRESPONSE']._serialized_end=388
49
+ _globals['_CACHEOBJECTREQUEST']._serialized_start=391
50
+ _globals['_CACHEOBJECTREQUEST']._serialized_end=544
51
+ _globals['_CACHEOBJECTRESPONSE']._serialized_start=546
52
+ _globals['_CACHEOBJECTRESPONSE']._serialized_end=567
53
+ _globals['_GETCACHEDOBJECTREQUEST']._serialized_start=569
54
+ _globals['_GETCACHEDOBJECTREQUEST']._serialized_end=636
55
+ _globals['_GETCACHEDOBJECTRESPONSE']._serialized_start=638
56
+ _globals['_GETCACHEDOBJECTRESPONSE']._serialized_end=695
57
+ _globals['_HASOBJECTCACHEDREQUEST']._serialized_start=697
58
+ _globals['_HASOBJECTCACHEDREQUEST']._serialized_end=764
59
+ _globals['_HASOBJECTCACHEDRESPONSE']._serialized_start=766
60
+ _globals['_HASOBJECTCACHEDRESPONSE']._serialized_end=807
61
+ _globals['_PINGPONGREQUEST']._serialized_start=809
62
+ _globals['_PINGPONGREQUEST']._serialized_end=826
63
+ _globals['_PINGPONGRESPONSE']._serialized_start=828
64
+ _globals['_PINGPONGRESPONSE']._serialized_end=846
65
+ _globals['_DENKCACHE']._serialized_start=1043
66
+ _globals['_DENKCACHE']._serialized_end=1534
63
67
  # @@protoc_insertion_point(module_scope)
@@ -1,7 +1,7 @@
1
1
  from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
2
2
  from google.protobuf import descriptor as _descriptor
3
3
  from google.protobuf import message as _message
4
- from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
4
+ from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
5
5
 
6
6
  DESCRIPTOR: _descriptor.FileDescriptor
7
7
 
@@ -11,10 +11,19 @@ class ObjectSource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
11
11
  OBJECT_SOURCE_DISK: _ClassVar[ObjectSource]
12
12
  OBJECT_SOURCE_DENKCACHE: _ClassVar[ObjectSource]
13
13
  OBJECT_SOURCE_AZURE: _ClassVar[ObjectSource]
14
+
15
+ class CacheObjectPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
16
+ __slots__ = ()
17
+ MEMORY_ONLY: _ClassVar[CacheObjectPolicy]
18
+ DISK_ONLY: _ClassVar[CacheObjectPolicy]
19
+ MEMORY_AND_DISK: _ClassVar[CacheObjectPolicy]
14
20
  OBJECT_SOURCE_MEMORY: ObjectSource
15
21
  OBJECT_SOURCE_DISK: ObjectSource
16
22
  OBJECT_SOURCE_DENKCACHE: ObjectSource
17
23
  OBJECT_SOURCE_AZURE: ObjectSource
24
+ MEMORY_ONLY: CacheObjectPolicy
25
+ DISK_ONLY: CacheObjectPolicy
26
+ MEMORY_AND_DISK: CacheObjectPolicy
18
27
 
19
28
  class ObjectExistsRequest(_message.Message):
20
29
  __slots__ = ("container_name", "blob_name")
@@ -30,31 +39,41 @@ class ObjectExistsResponse(_message.Message):
30
39
  exists: bool
31
40
  def __init__(self, exists: bool = ...) -> None: ...
32
41
 
42
+ class ObjectSourceMessage(_message.Message):
43
+ __slots__ = ("source", "source_info")
44
+ SOURCE_FIELD_NUMBER: _ClassVar[int]
45
+ SOURCE_INFO_FIELD_NUMBER: _ClassVar[int]
46
+ source: ObjectSource
47
+ source_info: str
48
+ def __init__(self, source: _Optional[_Union[ObjectSource, str]] = ..., source_info: _Optional[str] = ...) -> None: ...
49
+
33
50
  class GetObjectRequest(_message.Message):
34
- __slots__ = ("container_name", "blob_name", "source")
51
+ __slots__ = ("container_name", "blob_name")
35
52
  CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
36
53
  BLOB_NAME_FIELD_NUMBER: _ClassVar[int]
37
- SOURCE_FIELD_NUMBER: _ClassVar[int]
38
54
  container_name: str
39
55
  blob_name: str
40
- source: ObjectSource
41
- def __init__(self, container_name: _Optional[str] = ..., blob_name: _Optional[str] = ..., source: _Optional[_Union[ObjectSource, str]] = ...) -> None: ...
56
+ def __init__(self, container_name: _Optional[str] = ..., blob_name: _Optional[str] = ...) -> None: ...
42
57
 
43
58
  class GetObjectResponse(_message.Message):
44
- __slots__ = ("object",)
59
+ __slots__ = ("object", "source")
45
60
  OBJECT_FIELD_NUMBER: _ClassVar[int]
61
+ SOURCE_FIELD_NUMBER: _ClassVar[int]
46
62
  object: bytes
47
- def __init__(self, object: _Optional[bytes] = ...) -> None: ...
63
+ source: ObjectSourceMessage
64
+ def __init__(self, object: _Optional[bytes] = ..., source: _Optional[_Union[ObjectSourceMessage, _Mapping]] = ...) -> None: ...
48
65
 
49
66
  class CacheObjectRequest(_message.Message):
50
- __slots__ = ("container_name", "blob_name", "object")
67
+ __slots__ = ("container_name", "blob_name", "object", "cache_policy")
51
68
  CONTAINER_NAME_FIELD_NUMBER: _ClassVar[int]
52
69
  BLOB_NAME_FIELD_NUMBER: _ClassVar[int]
53
70
  OBJECT_FIELD_NUMBER: _ClassVar[int]
71
+ CACHE_POLICY_FIELD_NUMBER: _ClassVar[int]
54
72
  container_name: str
55
73
  blob_name: str
56
74
  object: bytes
57
- def __init__(self, container_name: _Optional[str] = ..., blob_name: _Optional[str] = ..., object: _Optional[bytes] = ...) -> None: ...
75
+ cache_policy: CacheObjectPolicy
76
+ def __init__(self, container_name: _Optional[str] = ..., blob_name: _Optional[str] = ..., object: _Optional[bytes] = ..., cache_policy: _Optional[_Union[CacheObjectPolicy, str]] = ...) -> None: ...
58
77
 
59
78
  class CacheObjectResponse(_message.Message):
60
79
  __slots__ = ()
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: denkproto
3
- Version: 1.0.26
3
+ Version: 1.0.29
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: protobuf>=3.20.3
@@ -4,10 +4,10 @@ denkproto/DENKbuffer_pb2_grpc.py,sha256=-CPJPM4FOqwvwV8-f1iJlD18UD9juVIIHfdWUecu
4
4
  denkproto/ImageAnalysis_ProtobufMessages_pb2.py,sha256=koos4D2pZUVtuVazJrTjg8zTg17emlFvksRpFgbZ5y8,20050
5
5
  denkproto/ImageAnalysis_ProtobufMessages_pb2.pyi,sha256=FQlBvJ-QEhEoHE7DpXBDpLZqg7vhd2EGpiuYUSa5QME,34698
6
6
  denkproto/ImageAnalysis_ProtobufMessages_pb2_grpc.py,sha256=l3agtDjgu4jay6P9TRnHhyhJ-7UdoII27ywhw3k84oo,911
7
- denkproto/__about__.py,sha256=qsWFNiLm8PRshbacOTrlIH_bB-tODfzJKwdZTTLVp20,23
7
+ denkproto/__about__.py,sha256=BBmi5TxVi3pzemafZwdH6Fv0y3TGRe8rQn6QWN0sJDw,23
8
8
  denkproto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- denkproto/denkcache_pb2.py,sha256=BfXefagvJBXvYGOi4im-SY9NY920xSsqArvvM5pNe3M,4754
10
- denkproto/denkcache_pb2.pyi,sha256=llNfBhwRwpE6dp2lKzmLwAccVyVIxE6XeoVk9Q9PZ00,3712
9
+ denkproto/denkcache_pb2.py,sha256=FnW2liynS3YMj2zbMCXRr-r3Ick4YvxYhxqSERgTBu0,5430
10
+ denkproto/denkcache_pb2.pyi,sha256=8JvlFUGomV78gLY6isCHgOkWFwFDWgXD2_JCOijGn7g,4585
11
11
  denkproto/denkcache_pb2_grpc.py,sha256=ZZPbjQqaOjBb9N3f7P1saOccmEVQLgR0k-nQsvZA9KA,12070
12
12
  denkproto/modelfile_v1_pb2.py,sha256=1vrVofquDm9UCxxHDMtB8icTsNQUaGQJx6J7oa19a4w,6545
13
13
  denkproto/modelfile_v1_pb2.pyi,sha256=gjTbWvg48wqGhyJb5CT0pw3yUZGhO_lSZgL7Ia2aPbY,10685
@@ -19,6 +19,6 @@ denkproto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  denkproto/results_pb2.py,sha256=-a_oQKyJo5rbtBsl94MTF0AmvLamSYrujHg0KFNHHvk,13622
20
20
  denkproto/results_pb2.pyi,sha256=xzZPmty65qEz9FzeoGwQlWMpuYxrP-cRFP97Ew8-FFI,25821
21
21
  denkproto/results_pb2_grpc.py,sha256=z-4qcDMjjuPRy7lDtECTtReByVEyz3fjIPES9dMlO58,888
22
- denkproto-1.0.26.dist-info/METADATA,sha256=lP7hYYiejqoCA1niBj-Cn5Jc866TpPYsW6XYIi3IZ-o,110
23
- denkproto-1.0.26.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
24
- denkproto-1.0.26.dist-info/RECORD,,
22
+ denkproto-1.0.29.dist-info/METADATA,sha256=vFC5rRZGKpT2w7N9PgiNKgHMVq86i6eLdB7txVVX6eI,110
23
+ denkproto-1.0.29.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
24
+ denkproto-1.0.29.dist-info/RECORD,,