Skip to content

Commit

Permalink
fix: update proto
Browse files Browse the repository at this point in the history
Signed-off-by: chyezh <[email protected]>
  • Loading branch information
chyezh committed Apr 9, 2024
1 parent 54c40b6 commit 5a760ca
Show file tree
Hide file tree
Showing 12 changed files with 506 additions and 500 deletions.
31 changes: 16 additions & 15 deletions pymilvus/grpc_gen/common_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 33 additions & 33 deletions pymilvus/grpc_gen/common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
DESCRIPTOR: _descriptor.FileDescriptor

class ErrorCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
Success: _ClassVar[ErrorCode]
UnexpectedError: _ClassVar[ErrorCode]
ConnectFailed: _ClassVar[ErrorCode]
Expand Down Expand Up @@ -70,7 +70,7 @@ class ErrorCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
DDRequestRace: _ClassVar[ErrorCode]

class IndexState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
IndexStateNone: _ClassVar[IndexState]
Unissued: _ClassVar[IndexState]
InProgress: _ClassVar[IndexState]
Expand All @@ -79,7 +79,7 @@ class IndexState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
Retry: _ClassVar[IndexState]

class SegmentState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
SegmentStateNone: _ClassVar[SegmentState]
NotExist: _ClassVar[SegmentState]
Growing: _ClassVar[SegmentState]
Expand All @@ -90,7 +90,7 @@ class SegmentState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
Importing: _ClassVar[SegmentState]

class PlaceholderType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
None: _ClassVar[PlaceholderType]
BinaryVector: _ClassVar[PlaceholderType]
FloatVector: _ClassVar[PlaceholderType]
Expand All @@ -101,7 +101,7 @@ class PlaceholderType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
VarChar: _ClassVar[PlaceholderType]

class MsgType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
Undefined: _ClassVar[MsgType]
CreateCollection: _ClassVar[MsgType]
DropCollection: _ClassVar[MsgType]
Expand Down Expand Up @@ -206,26 +206,26 @@ class MsgType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
ListDatabases: _ClassVar[MsgType]

class DslType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
Dsl: _ClassVar[DslType]
BoolExprV1: _ClassVar[DslType]

class CompactionState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
UndefiedState: _ClassVar[CompactionState]
Executing: _ClassVar[CompactionState]
Completed: _ClassVar[CompactionState]

class ConsistencyLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
Strong: _ClassVar[ConsistencyLevel]
Session: _ClassVar[ConsistencyLevel]
Bounded: _ClassVar[ConsistencyLevel]
Eventually: _ClassVar[ConsistencyLevel]
Customized: _ClassVar[ConsistencyLevel]

class ImportState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
ImportPending: _ClassVar[ImportState]
ImportFailed: _ClassVar[ImportState]
ImportStarted: _ClassVar[ImportState]
Expand All @@ -235,13 +235,13 @@ class ImportState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
ImportFailedAndCleaned: _ClassVar[ImportState]

class ObjectType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
Collection: _ClassVar[ObjectType]
Global: _ClassVar[ObjectType]
User: _ClassVar[ObjectType]

class ObjectPrivilege(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
PrivilegeAll: _ClassVar[ObjectPrivilege]
PrivilegeCreateCollection: _ClassVar[ObjectPrivilege]
PrivilegeDropCollection: _ClassVar[ObjectPrivilege]
Expand Down Expand Up @@ -293,15 +293,15 @@ class ObjectPrivilege(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
PrivilegeUpdateResourceGroups: _ClassVar[ObjectPrivilege]

class StateCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
Initializing: _ClassVar[StateCode]
Healthy: _ClassVar[StateCode]
Abnormal: _ClassVar[StateCode]
StandBy: _ClassVar[StateCode]
Stopping: _ClassVar[StateCode]

class LoadState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
__slots__ = []
LoadStateNotExist: _ClassVar[LoadState]
LoadStateNotLoad: _ClassVar[LoadState]
LoadStateLoading: _ClassVar[LoadState]
Expand Down Expand Up @@ -571,9 +571,9 @@ PRIVILEGE_EXT_OBJ_FIELD_NUMBER: _ClassVar[int]
privilege_ext_obj: _descriptor.FieldDescriptor

class Status(_message.Message):
__slots__ = ("error_code", "reason", "code", "retriable", "detail", "extra_info")
__slots__ = ["error_code", "reason", "code", "retriable", "detail", "extra_info"]
class ExtraInfoEntry(_message.Message):
__slots__ = ("key", "value")
__slots__ = ["key", "value"]
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
Expand All @@ -594,29 +594,29 @@ class Status(_message.Message):
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: ...

class KeyValuePair(_message.Message):
__slots__ = ("key", "value")
__slots__ = ["key", "value"]
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
value: str
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...

class KeyDataPair(_message.Message):
__slots__ = ("key", "data")
__slots__ = ["key", "data"]
KEY_FIELD_NUMBER: _ClassVar[int]
DATA_FIELD_NUMBER: _ClassVar[int]
key: str
data: bytes
def __init__(self, key: _Optional[str] = ..., data: _Optional[bytes] = ...) -> None: ...

class Blob(_message.Message):
__slots__ = ("value",)
__slots__ = ["value"]
VALUE_FIELD_NUMBER: _ClassVar[int]
value: bytes
def __init__(self, value: _Optional[bytes] = ...) -> None: ...

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

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

class Address(_message.Message):
__slots__ = ("ip", "port")
__slots__ = ["ip", "port"]
IP_FIELD_NUMBER: _ClassVar[int]
PORT_FIELD_NUMBER: _ClassVar[int]
ip: str
port: int
def __init__(self, ip: _Optional[str] = ..., port: _Optional[int] = ...) -> None: ...

class MsgBase(_message.Message):
__slots__ = ("msg_type", "msgID", "timestamp", "sourceID", "targetID", "properties", "replicateInfo")
__slots__ = ["msg_type", "msgID", "timestamp", "sourceID", "targetID", "properties", "replicateInfo"]
class PropertiesEntry(_message.Message):
__slots__ = ("key", "value")
__slots__ = ["key", "value"]
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
Expand All @@ -665,29 +665,29 @@ class MsgBase(_message.Message):
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: ...

class ReplicateInfo(_message.Message):
__slots__ = ("isReplicate", "msgTimestamp")
__slots__ = ["isReplicate", "msgTimestamp"]
ISREPLICATE_FIELD_NUMBER: _ClassVar[int]
MSGTIMESTAMP_FIELD_NUMBER: _ClassVar[int]
isReplicate: bool
msgTimestamp: int
def __init__(self, isReplicate: bool = ..., msgTimestamp: _Optional[int] = ...) -> None: ...

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

class DMLMsgHeader(_message.Message):
__slots__ = ("base", "shardName")
__slots__ = ["base", "shardName"]
BASE_FIELD_NUMBER: _ClassVar[int]
SHARDNAME_FIELD_NUMBER: _ClassVar[int]
base: MsgBase
shardName: str
def __init__(self, base: _Optional[_Union[MsgBase, _Mapping]] = ..., shardName: _Optional[str] = ...) -> None: ...

class PrivilegeExt(_message.Message):
__slots__ = ("object_type", "object_privilege", "object_name_index", "object_name_indexs")
__slots__ = ["object_type", "object_privilege", "object_name_index", "object_name_indexs"]
OBJECT_TYPE_FIELD_NUMBER: _ClassVar[int]
OBJECT_PRIVILEGE_FIELD_NUMBER: _ClassVar[int]
OBJECT_NAME_INDEX_FIELD_NUMBER: _ClassVar[int]
Expand All @@ -699,17 +699,17 @@ class PrivilegeExt(_message.Message):
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: ...

class SegmentStats(_message.Message):
__slots__ = ("SegmentID", "NumRows")
__slots__ = ["SegmentID", "NumRows"]
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
NUMROWS_FIELD_NUMBER: _ClassVar[int]
SegmentID: int
NumRows: int
def __init__(self, SegmentID: _Optional[int] = ..., NumRows: _Optional[int] = ...) -> None: ...

class ClientInfo(_message.Message):
__slots__ = ("sdk_type", "sdk_version", "local_time", "user", "host", "reserved")
__slots__ = ["sdk_type", "sdk_version", "local_time", "user", "host", "reserved"]
class ReservedEntry(_message.Message):
__slots__ = ("key", "value")
__slots__ = ["key", "value"]
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
Expand All @@ -730,9 +730,9 @@ class ClientInfo(_message.Message):
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: ...

class ServerInfo(_message.Message):
__slots__ = ("build_tags", "build_time", "git_commit", "go_version", "deploy_mode", "reserved")
__slots__ = ["build_tags", "build_time", "git_commit", "go_version", "deploy_mode", "reserved"]
class ReservedEntry(_message.Message):
__slots__ = ("key", "value")
__slots__ = ["key", "value"]
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
Expand All @@ -753,7 +753,7 @@ class ServerInfo(_message.Message):
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: ...

class NodeInfo(_message.Message):
__slots__ = ("node_id", "address", "hostname")
__slots__ = ["node_id", "address", "hostname"]
NODE_ID_FIELD_NUMBER: _ClassVar[int]
ADDRESS_FIELD_NUMBER: _ClassVar[int]
HOSTNAME_FIELD_NUMBER: _ClassVar[int]
Expand Down
10 changes: 5 additions & 5 deletions pymilvus/grpc_gen/feder_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions pymilvus/grpc_gen/feder_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
DESCRIPTOR: _descriptor.FileDescriptor

class SegmentIndexData(_message.Message):
__slots__ = ("segmentID", "index_data")
__slots__ = ["segmentID", "index_data"]
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
INDEX_DATA_FIELD_NUMBER: _ClassVar[int]
segmentID: int
index_data: str
def __init__(self, segmentID: _Optional[int] = ..., index_data: _Optional[str] = ...) -> None: ...

class FederSegmentSearchResult(_message.Message):
__slots__ = ("segmentID", "visit_info")
__slots__ = ["segmentID", "visit_info"]
SEGMENTID_FIELD_NUMBER: _ClassVar[int]
VISIT_INFO_FIELD_NUMBER: _ClassVar[int]
segmentID: int
visit_info: str
def __init__(self, segmentID: _Optional[int] = ..., visit_info: _Optional[str] = ...) -> None: ...

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

class ListIndexedSegmentResponse(_message.Message):
__slots__ = ("status", "segmentIDs")
__slots__ = ["status", "segmentIDs"]
STATUS_FIELD_NUMBER: _ClassVar[int]
SEGMENTIDS_FIELD_NUMBER: _ClassVar[int]
status: _common_pb2.Status
segmentIDs: _containers.RepeatedScalarFieldContainer[int]
def __init__(self, status: _Optional[_Union[_common_pb2.Status, _Mapping]] = ..., segmentIDs: _Optional[_Iterable[int]] = ...) -> None: ...

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

class DescribeSegmentIndexDataResponse(_message.Message):
__slots__ = ("status", "index_data", "index_params")
__slots__ = ["status", "index_data", "index_params"]
class IndexDataEntry(_message.Message):
__slots__ = ("key", "value")
__slots__ = ["key", "value"]
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: int
Expand Down
Loading

0 comments on commit 5a760ca

Please sign in to comment.