Skip to content

Commit 5a760ca

Browse files
committed
fix: update proto
Signed-off-by: chyezh <[email protected]>
1 parent 54c40b6 commit 5a760ca

File tree

12 files changed

+506
-500
lines changed

12 files changed

+506
-500
lines changed

pymilvus/grpc_gen/common_pb2.py

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pymilvus/grpc_gen/common_pb2.pyi

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
88
DESCRIPTOR: _descriptor.FileDescriptor
99

1010
class ErrorCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
11-
__slots__ = ()
11+
__slots__ = []
1212
Success: _ClassVar[ErrorCode]
1313
UnexpectedError: _ClassVar[ErrorCode]
1414
ConnectFailed: _ClassVar[ErrorCode]
@@ -70,7 +70,7 @@ class ErrorCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
7070
DDRequestRace: _ClassVar[ErrorCode]
7171

7272
class IndexState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
73-
__slots__ = ()
73+
__slots__ = []
7474
IndexStateNone: _ClassVar[IndexState]
7575
Unissued: _ClassVar[IndexState]
7676
InProgress: _ClassVar[IndexState]
@@ -79,7 +79,7 @@ class IndexState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
7979
Retry: _ClassVar[IndexState]
8080

8181
class SegmentState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
82-
__slots__ = ()
82+
__slots__ = []
8383
SegmentStateNone: _ClassVar[SegmentState]
8484
NotExist: _ClassVar[SegmentState]
8585
Growing: _ClassVar[SegmentState]
@@ -90,7 +90,7 @@ class SegmentState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
9090
Importing: _ClassVar[SegmentState]
9191

9292
class PlaceholderType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
93-
__slots__ = ()
93+
__slots__ = []
9494
None: _ClassVar[PlaceholderType]
9595
BinaryVector: _ClassVar[PlaceholderType]
9696
FloatVector: _ClassVar[PlaceholderType]
@@ -101,7 +101,7 @@ class PlaceholderType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
101101
VarChar: _ClassVar[PlaceholderType]
102102

103103
class MsgType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
104-
__slots__ = ()
104+
__slots__ = []
105105
Undefined: _ClassVar[MsgType]
106106
CreateCollection: _ClassVar[MsgType]
107107
DropCollection: _ClassVar[MsgType]
@@ -206,26 +206,26 @@ class MsgType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
206206
ListDatabases: _ClassVar[MsgType]
207207

208208
class DslType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
209-
__slots__ = ()
209+
__slots__ = []
210210
Dsl: _ClassVar[DslType]
211211
BoolExprV1: _ClassVar[DslType]
212212

213213
class CompactionState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
214-
__slots__ = ()
214+
__slots__ = []
215215
UndefiedState: _ClassVar[CompactionState]
216216
Executing: _ClassVar[CompactionState]
217217
Completed: _ClassVar[CompactionState]
218218

219219
class ConsistencyLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
220-
__slots__ = ()
220+
__slots__ = []
221221
Strong: _ClassVar[ConsistencyLevel]
222222
Session: _ClassVar[ConsistencyLevel]
223223
Bounded: _ClassVar[ConsistencyLevel]
224224
Eventually: _ClassVar[ConsistencyLevel]
225225
Customized: _ClassVar[ConsistencyLevel]
226226

227227
class ImportState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
228-
__slots__ = ()
228+
__slots__ = []
229229
ImportPending: _ClassVar[ImportState]
230230
ImportFailed: _ClassVar[ImportState]
231231
ImportStarted: _ClassVar[ImportState]
@@ -235,13 +235,13 @@ class ImportState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
235235
ImportFailedAndCleaned: _ClassVar[ImportState]
236236

237237
class ObjectType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
238-
__slots__ = ()
238+
__slots__ = []
239239
Collection: _ClassVar[ObjectType]
240240
Global: _ClassVar[ObjectType]
241241
User: _ClassVar[ObjectType]
242242

243243
class ObjectPrivilege(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
244-
__slots__ = ()
244+
__slots__ = []
245245
PrivilegeAll: _ClassVar[ObjectPrivilege]
246246
PrivilegeCreateCollection: _ClassVar[ObjectPrivilege]
247247
PrivilegeDropCollection: _ClassVar[ObjectPrivilege]
@@ -293,15 +293,15 @@ class ObjectPrivilege(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
293293
PrivilegeUpdateResourceGroups: _ClassVar[ObjectPrivilege]
294294

295295
class StateCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
296-
__slots__ = ()
296+
__slots__ = []
297297
Initializing: _ClassVar[StateCode]
298298
Healthy: _ClassVar[StateCode]
299299
Abnormal: _ClassVar[StateCode]
300300
StandBy: _ClassVar[StateCode]
301301
Stopping: _ClassVar[StateCode]
302302

303303
class LoadState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
304-
__slots__ = ()
304+
__slots__ = []
305305
LoadStateNotExist: _ClassVar[LoadState]
306306
LoadStateNotLoad: _ClassVar[LoadState]
307307
LoadStateLoading: _ClassVar[LoadState]
@@ -571,9 +571,9 @@ PRIVILEGE_EXT_OBJ_FIELD_NUMBER: _ClassVar[int]
571571
privilege_ext_obj: _descriptor.FieldDescriptor
572572

573573
class Status(_message.Message):
574-
__slots__ = ("error_code", "reason", "code", "retriable", "detail", "extra_info")
574+
__slots__ = ["error_code", "reason", "code", "retriable", "detail", "extra_info"]
575575
class ExtraInfoEntry(_message.Message):
576-
__slots__ = ("key", "value")
576+
__slots__ = ["key", "value"]
577577
KEY_FIELD_NUMBER: _ClassVar[int]
578578
VALUE_FIELD_NUMBER: _ClassVar[int]
579579
key: str
@@ -594,29 +594,29 @@ class Status(_message.Message):
594594
def __init__(self, error_code: _Optional[_Union[ErrorCode, str]] = ..., reason: _Optional[str] = ..., code: _Optional[int] = ..., retriable: bool = ..., detail: _Optional[str] = ..., extra_info: _Optional[_Mapping[str, str]] = ...) -> None: ...
595595

596596
class KeyValuePair(_message.Message):
597-
__slots__ = ("key", "value")
597+
__slots__ = ["key", "value"]
598598
KEY_FIELD_NUMBER: _ClassVar[int]
599599
VALUE_FIELD_NUMBER: _ClassVar[int]
600600
key: str
601601
value: str
602602
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
603603

604604
class KeyDataPair(_message.Message):
605-
__slots__ = ("key", "data")
605+
__slots__ = ["key", "data"]
606606
KEY_FIELD_NUMBER: _ClassVar[int]
607607
DATA_FIELD_NUMBER: _ClassVar[int]
608608
key: str
609609
data: bytes
610610
def __init__(self, key: _Optional[str] = ..., data: _Optional[bytes] = ...) -> None: ...
611611

612612
class Blob(_message.Message):
613-
__slots__ = ("value",)
613+
__slots__ = ["value"]
614614
VALUE_FIELD_NUMBER: _ClassVar[int]
615615
value: bytes
616616
def __init__(self, value: _Optional[bytes] = ...) -> None: ...
617617

618618
class PlaceholderValue(_message.Message):
619-
__slots__ = ("tag", "type", "values")
619+
__slots__ = ["tag", "type", "values"]
620620
TAG_FIELD_NUMBER: _ClassVar[int]
621621
TYPE_FIELD_NUMBER: _ClassVar[int]
622622
VALUES_FIELD_NUMBER: _ClassVar[int]
@@ -626,23 +626,23 @@ class PlaceholderValue(_message.Message):
626626
def __init__(self, tag: _Optional[str] = ..., type: _Optional[_Union[PlaceholderType, str]] = ..., values: _Optional[_Iterable[bytes]] = ...) -> None: ...
627627

628628
class PlaceholderGroup(_message.Message):
629-
__slots__ = ("placeholders",)
629+
__slots__ = ["placeholders"]
630630
PLACEHOLDERS_FIELD_NUMBER: _ClassVar[int]
631631
placeholders: _containers.RepeatedCompositeFieldContainer[PlaceholderValue]
632632
def __init__(self, placeholders: _Optional[_Iterable[_Union[PlaceholderValue, _Mapping]]] = ...) -> None: ...
633633

634634
class Address(_message.Message):
635-
__slots__ = ("ip", "port")
635+
__slots__ = ["ip", "port"]
636636
IP_FIELD_NUMBER: _ClassVar[int]
637637
PORT_FIELD_NUMBER: _ClassVar[int]
638638
ip: str
639639
port: int
640640
def __init__(self, ip: _Optional[str] = ..., port: _Optional[int] = ...) -> None: ...
641641

642642
class MsgBase(_message.Message):
643-
__slots__ = ("msg_type", "msgID", "timestamp", "sourceID", "targetID", "properties", "replicateInfo")
643+
__slots__ = ["msg_type", "msgID", "timestamp", "sourceID", "targetID", "properties", "replicateInfo"]
644644
class PropertiesEntry(_message.Message):
645-
__slots__ = ("key", "value")
645+
__slots__ = ["key", "value"]
646646
KEY_FIELD_NUMBER: _ClassVar[int]
647647
VALUE_FIELD_NUMBER: _ClassVar[int]
648648
key: str
@@ -665,29 +665,29 @@ class MsgBase(_message.Message):
665665
def __init__(self, msg_type: _Optional[_Union[MsgType, str]] = ..., msgID: _Optional[int] = ..., timestamp: _Optional[int] = ..., sourceID: _Optional[int] = ..., targetID: _Optional[int] = ..., properties: _Optional[_Mapping[str, str]] = ..., replicateInfo: _Optional[_Union[ReplicateInfo, _Mapping]] = ...) -> None: ...
666666

667667
class ReplicateInfo(_message.Message):
668-
__slots__ = ("isReplicate", "msgTimestamp")
668+
__slots__ = ["isReplicate", "msgTimestamp"]
669669
ISREPLICATE_FIELD_NUMBER: _ClassVar[int]
670670
MSGTIMESTAMP_FIELD_NUMBER: _ClassVar[int]
671671
isReplicate: bool
672672
msgTimestamp: int
673673
def __init__(self, isReplicate: bool = ..., msgTimestamp: _Optional[int] = ...) -> None: ...
674674

675675
class MsgHeader(_message.Message):
676-
__slots__ = ("base",)
676+
__slots__ = ["base"]
677677
BASE_FIELD_NUMBER: _ClassVar[int]
678678
base: MsgBase
679679
def __init__(self, base: _Optional[_Union[MsgBase, _Mapping]] = ...) -> None: ...
680680

681681
class DMLMsgHeader(_message.Message):
682-
__slots__ = ("base", "shardName")
682+
__slots__ = ["base", "shardName"]
683683
BASE_FIELD_NUMBER: _ClassVar[int]
684684
SHARDNAME_FIELD_NUMBER: _ClassVar[int]
685685
base: MsgBase
686686
shardName: str
687687
def __init__(self, base: _Optional[_Union[MsgBase, _Mapping]] = ..., shardName: _Optional[str] = ...) -> None: ...
688688

689689
class PrivilegeExt(_message.Message):
690-
__slots__ = ("object_type", "object_privilege", "object_name_index", "object_name_indexs")
690+
__slots__ = ["object_type", "object_privilege", "object_name_index", "object_name_indexs"]
691691
OBJECT_TYPE_FIELD_NUMBER: _ClassVar[int]
692692
OBJECT_PRIVILEGE_FIELD_NUMBER: _ClassVar[int]
693693
OBJECT_NAME_INDEX_FIELD_NUMBER: _ClassVar[int]
@@ -699,17 +699,17 @@ class PrivilegeExt(_message.Message):
699699
def __init__(self, object_type: _Optional[_Union[ObjectType, str]] = ..., object_privilege: _Optional[_Union[ObjectPrivilege, str]] = ..., object_name_index: _Optional[int] = ..., object_name_indexs: _Optional[int] = ...) -> None: ...
700700

701701
class SegmentStats(_message.Message):
702-
__slots__ = ("SegmentID", "NumRows")
702+
__slots__ = ["SegmentID", "NumRows"]
703703
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
704704
NUMROWS_FIELD_NUMBER: _ClassVar[int]
705705
SegmentID: int
706706
NumRows: int
707707
def __init__(self, SegmentID: _Optional[int] = ..., NumRows: _Optional[int] = ...) -> None: ...
708708

709709
class ClientInfo(_message.Message):
710-
__slots__ = ("sdk_type", "sdk_version", "local_time", "user", "host", "reserved")
710+
__slots__ = ["sdk_type", "sdk_version", "local_time", "user", "host", "reserved"]
711711
class ReservedEntry(_message.Message):
712-
__slots__ = ("key", "value")
712+
__slots__ = ["key", "value"]
713713
KEY_FIELD_NUMBER: _ClassVar[int]
714714
VALUE_FIELD_NUMBER: _ClassVar[int]
715715
key: str
@@ -730,9 +730,9 @@ class ClientInfo(_message.Message):
730730
def __init__(self, sdk_type: _Optional[str] = ..., sdk_version: _Optional[str] = ..., local_time: _Optional[str] = ..., user: _Optional[str] = ..., host: _Optional[str] = ..., reserved: _Optional[_Mapping[str, str]] = ...) -> None: ...
731731

732732
class ServerInfo(_message.Message):
733-
__slots__ = ("build_tags", "build_time", "git_commit", "go_version", "deploy_mode", "reserved")
733+
__slots__ = ["build_tags", "build_time", "git_commit", "go_version", "deploy_mode", "reserved"]
734734
class ReservedEntry(_message.Message):
735-
__slots__ = ("key", "value")
735+
__slots__ = ["key", "value"]
736736
KEY_FIELD_NUMBER: _ClassVar[int]
737737
VALUE_FIELD_NUMBER: _ClassVar[int]
738738
key: str
@@ -753,7 +753,7 @@ class ServerInfo(_message.Message):
753753
def __init__(self, build_tags: _Optional[str] = ..., build_time: _Optional[str] = ..., git_commit: _Optional[str] = ..., go_version: _Optional[str] = ..., deploy_mode: _Optional[str] = ..., reserved: _Optional[_Mapping[str, str]] = ...) -> None: ...
754754

755755
class NodeInfo(_message.Message):
756-
__slots__ = ("node_id", "address", "hostname")
756+
__slots__ = ["node_id", "address", "hostname"]
757757
NODE_ID_FIELD_NUMBER: _ClassVar[int]
758758
ADDRESS_FIELD_NUMBER: _ClassVar[int]
759759
HOSTNAME_FIELD_NUMBER: _ClassVar[int]

pymilvus/grpc_gen/feder_pb2.py

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pymilvus/grpc_gen/feder_pb2.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
77
DESCRIPTOR: _descriptor.FileDescriptor
88

99
class SegmentIndexData(_message.Message):
10-
__slots__ = ("segmentID", "index_data")
10+
__slots__ = ["segmentID", "index_data"]
1111
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
1212
INDEX_DATA_FIELD_NUMBER: _ClassVar[int]
1313
segmentID: int
1414
index_data: str
1515
def __init__(self, segmentID: _Optional[int] = ..., index_data: _Optional[str] = ...) -> None: ...
1616

1717
class FederSegmentSearchResult(_message.Message):
18-
__slots__ = ("segmentID", "visit_info")
18+
__slots__ = ["segmentID", "visit_info"]
1919
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
2020
VISIT_INFO_FIELD_NUMBER: _ClassVar[int]
2121
segmentID: int
2222
visit_info: str
2323
def __init__(self, segmentID: _Optional[int] = ..., visit_info: _Optional[str] = ...) -> None: ...
2424

2525
class ListIndexedSegmentRequest(_message.Message):
26-
__slots__ = ("base", "collection_name", "index_name")
26+
__slots__ = ["base", "collection_name", "index_name"]
2727
BASE_FIELD_NUMBER: _ClassVar[int]
2828
COLLECTION_NAME_FIELD_NUMBER: _ClassVar[int]
2929
INDEX_NAME_FIELD_NUMBER: _ClassVar[int]
@@ -33,15 +33,15 @@ class ListIndexedSegmentRequest(_message.Message):
3333
def __init__(self, base: _Optional[_Union[_common_pb2.MsgBase, _Mapping]] = ..., collection_name: _Optional[str] = ..., index_name: _Optional[str] = ...) -> None: ...
3434

3535
class ListIndexedSegmentResponse(_message.Message):
36-
__slots__ = ("status", "segmentIDs")
36+
__slots__ = ["status", "segmentIDs"]
3737
STATUS_FIELD_NUMBER: _ClassVar[int]
3838
SEGMENTIDS_FIELD_NUMBER: _ClassVar[int]
3939
status: _common_pb2.Status
4040
segmentIDs: _containers.RepeatedScalarFieldContainer[int]
4141
def __init__(self, status: _Optional[_Union[_common_pb2.Status, _Mapping]] = ..., segmentIDs: _Optional[_Iterable[int]] = ...) -> None: ...
4242

4343
class DescribeSegmentIndexDataRequest(_message.Message):
44-
__slots__ = ("base", "collection_name", "index_name", "segmentsIDs")
44+
__slots__ = ["base", "collection_name", "index_name", "segmentsIDs"]
4545
BASE_FIELD_NUMBER: _ClassVar[int]
4646
COLLECTION_NAME_FIELD_NUMBER: _ClassVar[int]
4747
INDEX_NAME_FIELD_NUMBER: _ClassVar[int]
@@ -53,9 +53,9 @@ class DescribeSegmentIndexDataRequest(_message.Message):
5353
def __init__(self, base: _Optional[_Union[_common_pb2.MsgBase, _Mapping]] = ..., collection_name: _Optional[str] = ..., index_name: _Optional[str] = ..., segmentsIDs: _Optional[_Iterable[int]] = ...) -> None: ...
5454

5555
class DescribeSegmentIndexDataResponse(_message.Message):
56-
__slots__ = ("status", "index_data", "index_params")
56+
__slots__ = ["status", "index_data", "index_params"]
5757
class IndexDataEntry(_message.Message):
58-
__slots__ = ("key", "value")
58+
__slots__ = ["key", "value"]
5959
KEY_FIELD_NUMBER: _ClassVar[int]
6060
VALUE_FIELD_NUMBER: _ClassVar[int]
6161
key: int

0 commit comments

Comments
 (0)