Skip to content

Commit

Permalink
Update milvus-proto version (#2217)
Browse files Browse the repository at this point in the history
Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn authored Aug 6, 2024
1 parent 69d0e65 commit a441516
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 248 deletions.
44 changes: 23 additions & 21 deletions pymilvus/grpc_gen/common_pb2.py

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions pymilvus/grpc_gen/common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ class SegmentState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
Dropped: _ClassVar[SegmentState]
Importing: _ClassVar[SegmentState]

class SegmentLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
Legacy: _ClassVar[SegmentLevel]
L0: _ClassVar[SegmentLevel]
L1: _ClassVar[SegmentLevel]
L2: _ClassVar[SegmentLevel]

class PlaceholderType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
None: _ClassVar[PlaceholderType]
Expand Down Expand Up @@ -383,6 +390,10 @@ Flushed: SegmentState
Flushing: SegmentState
Dropped: SegmentState
Importing: SegmentState
Legacy: SegmentLevel
L0: SegmentLevel
L1: SegmentLevel
L2: SegmentLevel
None: PlaceholderType
BinaryVector: PlaceholderType
FloatVector: PlaceholderType
Expand Down
2 changes: 1 addition & 1 deletion pymilvus/grpc_gen/milvus-proto
442 changes: 222 additions & 220 deletions pymilvus/grpc_gen/milvus_pb2.py

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions pymilvus/grpc_gen/milvus_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -982,18 +982,20 @@ class FlushAllResponse(_message.Message):
def __init__(self, status: _Optional[_Union[_common_pb2.Status, _Mapping]] = ..., flush_all_ts: _Optional[int] = ...) -> None: ...

class PersistentSegmentInfo(_message.Message):
__slots__ = ("segmentID", "collectionID", "partitionID", "num_rows", "state")
__slots__ = ("segmentID", "collectionID", "partitionID", "num_rows", "state", "level")
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
COLLECTIONID_FIELD_NUMBER: _ClassVar[int]
PARTITIONID_FIELD_NUMBER: _ClassVar[int]
NUM_ROWS_FIELD_NUMBER: _ClassVar[int]
STATE_FIELD_NUMBER: _ClassVar[int]
LEVEL_FIELD_NUMBER: _ClassVar[int]
segmentID: int
collectionID: int
partitionID: int
num_rows: int
state: _common_pb2.SegmentState
def __init__(self, segmentID: _Optional[int] = ..., collectionID: _Optional[int] = ..., partitionID: _Optional[int] = ..., num_rows: _Optional[int] = ..., state: _Optional[_Union[_common_pb2.SegmentState, str]] = ...) -> None: ...
level: _common_pb2.SegmentLevel
def __init__(self, segmentID: _Optional[int] = ..., collectionID: _Optional[int] = ..., partitionID: _Optional[int] = ..., num_rows: _Optional[int] = ..., state: _Optional[_Union[_common_pb2.SegmentState, str]] = ..., level: _Optional[_Union[_common_pb2.SegmentLevel, str]] = ...) -> None: ...

class GetPersistentSegmentInfoRequest(_message.Message):
__slots__ = ("base", "dbName", "collectionName")
Expand All @@ -1014,7 +1016,7 @@ class GetPersistentSegmentInfoResponse(_message.Message):
def __init__(self, status: _Optional[_Union[_common_pb2.Status, _Mapping]] = ..., infos: _Optional[_Iterable[_Union[PersistentSegmentInfo, _Mapping]]] = ...) -> None: ...

class QuerySegmentInfo(_message.Message):
__slots__ = ("segmentID", "collectionID", "partitionID", "mem_size", "num_rows", "index_name", "indexID", "nodeID", "state", "nodeIds")
__slots__ = ("segmentID", "collectionID", "partitionID", "mem_size", "num_rows", "index_name", "indexID", "nodeID", "state", "nodeIds", "level")
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
COLLECTIONID_FIELD_NUMBER: _ClassVar[int]
PARTITIONID_FIELD_NUMBER: _ClassVar[int]
Expand All @@ -1025,6 +1027,7 @@ class QuerySegmentInfo(_message.Message):
NODEID_FIELD_NUMBER: _ClassVar[int]
STATE_FIELD_NUMBER: _ClassVar[int]
NODEIDS_FIELD_NUMBER: _ClassVar[int]
LEVEL_FIELD_NUMBER: _ClassVar[int]
segmentID: int
collectionID: int
partitionID: int
Expand All @@ -1035,7 +1038,8 @@ class QuerySegmentInfo(_message.Message):
nodeID: int
state: _common_pb2.SegmentState
nodeIds: _containers.RepeatedScalarFieldContainer[int]
def __init__(self, segmentID: _Optional[int] = ..., collectionID: _Optional[int] = ..., partitionID: _Optional[int] = ..., mem_size: _Optional[int] = ..., num_rows: _Optional[int] = ..., index_name: _Optional[str] = ..., indexID: _Optional[int] = ..., nodeID: _Optional[int] = ..., state: _Optional[_Union[_common_pb2.SegmentState, str]] = ..., nodeIds: _Optional[_Iterable[int]] = ...) -> None: ...
level: _common_pb2.SegmentLevel
def __init__(self, segmentID: _Optional[int] = ..., collectionID: _Optional[int] = ..., partitionID: _Optional[int] = ..., mem_size: _Optional[int] = ..., num_rows: _Optional[int] = ..., index_name: _Optional[str] = ..., indexID: _Optional[int] = ..., nodeID: _Optional[int] = ..., state: _Optional[_Union[_common_pb2.SegmentState, str]] = ..., nodeIds: _Optional[_Iterable[int]] = ..., level: _Optional[_Union[_common_pb2.SegmentLevel, str]] = ...) -> None: ...

class GetQuerySegmentInfoRequest(_message.Message):
__slots__ = ("base", "dbName", "collectionName")
Expand Down Expand Up @@ -1863,12 +1867,14 @@ class AllocTimestampResponse(_message.Message):
def __init__(self, status: _Optional[_Union[_common_pb2.Status, _Mapping]] = ..., timestamp: _Optional[int] = ...) -> None: ...

class CreateDatabaseRequest(_message.Message):
__slots__ = ("base", "db_name")
__slots__ = ("base", "db_name", "properties")
BASE_FIELD_NUMBER: _ClassVar[int]
DB_NAME_FIELD_NUMBER: _ClassVar[int]
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
base: _common_pb2.MsgBase
db_name: str
def __init__(self, base: _Optional[_Union[_common_pb2.MsgBase, _Mapping]] = ..., db_name: _Optional[str] = ...) -> None: ...
properties: _containers.RepeatedCompositeFieldContainer[_common_pb2.KeyValuePair]
def __init__(self, base: _Optional[_Union[_common_pb2.MsgBase, _Mapping]] = ..., db_name: _Optional[str] = ..., properties: _Optional[_Iterable[_Union[_common_pb2.KeyValuePair, _Mapping]]] = ...) -> None: ...

class DropDatabaseRequest(_message.Message):
__slots__ = ("base", "db_name")
Expand Down

0 comments on commit a441516

Please sign in to comment.