@@ -4,6 +4,7 @@ isort:skip_file
44"""
55import builtins
66import collections .abc
7+ import common_pb2
78import google .protobuf .descriptor
89import google .protobuf .internal .containers
910import google .protobuf .internal .enum_type_wrapper
@@ -339,6 +340,11 @@ ReshardingStreamRecords: ShardTransferMethod.ValueType # 3
339340global___ShardTransferMethod = ShardTransferMethod
340341
341342class VectorParams (google .protobuf .message .Message ):
343+ """---------------------------------------------
344+ ------------- Collection Config -------------
345+ ---------------------------------------------
346+ """
347+
342348 DESCRIPTOR : google .protobuf .descriptor .Descriptor
343349
344350 SIZE_FIELD_NUMBER : builtins .int
@@ -2779,6 +2785,34 @@ class RestartTransfer(google.protobuf.message.Message):
27792785
27802786global___RestartTransfer = RestartTransfer
27812787
2788+ class ReplicatePoints (google .protobuf .message .Message ):
2789+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
2790+
2791+ FROM_SHARD_KEY_FIELD_NUMBER : builtins .int
2792+ TO_SHARD_KEY_FIELD_NUMBER : builtins .int
2793+ FILTER_FIELD_NUMBER : builtins .int
2794+ @property
2795+ def from_shard_key (self ) -> global___ShardKey :
2796+ """Source shard key"""
2797+ @property
2798+ def to_shard_key (self ) -> global___ShardKey :
2799+ """Target shard key"""
2800+ @property
2801+ def filter (self ) -> common_pb2 .Filter :
2802+ """If set - only points matching the filter will be replicated"""
2803+ def __init__ (
2804+ self ,
2805+ * ,
2806+ from_shard_key : global___ShardKey | None = ...,
2807+ to_shard_key : global___ShardKey | None = ...,
2808+ filter : common_pb2 .Filter | None = ...,
2809+ ) -> None : ...
2810+ def HasField (self , field_name : typing_extensions .Literal ["_filter" , b"_filter" , "filter" , b"filter" , "from_shard_key" , b"from_shard_key" , "to_shard_key" , b"to_shard_key" ]) -> builtins .bool : ...
2811+ def ClearField (self , field_name : typing_extensions .Literal ["_filter" , b"_filter" , "filter" , b"filter" , "from_shard_key" , b"from_shard_key" , "to_shard_key" , b"to_shard_key" ]) -> None : ...
2812+ def WhichOneof (self , oneof_group : typing_extensions .Literal ["_filter" , b"_filter" ]) -> typing_extensions .Literal ["filter" ] | None : ...
2813+
2814+ global___ReplicatePoints = ReplicatePoints
2815+
27822816class Replica (google .protobuf .message .Message ):
27832817 DESCRIPTOR : google .protobuf .descriptor .Descriptor
27842818
@@ -2864,6 +2898,7 @@ class UpdateCollectionClusterSetupRequest(google.protobuf.message.Message):
28642898 CREATE_SHARD_KEY_FIELD_NUMBER : builtins .int
28652899 DELETE_SHARD_KEY_FIELD_NUMBER : builtins .int
28662900 RESTART_TRANSFER_FIELD_NUMBER : builtins .int
2901+ REPLICATE_POINTS_FIELD_NUMBER : builtins .int
28672902 TIMEOUT_FIELD_NUMBER : builtins .int
28682903 collection_name : builtins .str
28692904 """Name of the collection"""
@@ -2881,6 +2916,8 @@ class UpdateCollectionClusterSetupRequest(google.protobuf.message.Message):
28812916 def delete_shard_key (self ) -> global___DeleteShardKey : ...
28822917 @property
28832918 def restart_transfer (self ) -> global___RestartTransfer : ...
2919+ @property
2920+ def replicate_points (self ) -> global___ReplicatePoints : ...
28842921 timeout : builtins .int
28852922 """Wait timeout for operation commit in seconds, if not specified - default value will be supplied"""
28862923 def __init__ (
@@ -2894,14 +2931,15 @@ class UpdateCollectionClusterSetupRequest(google.protobuf.message.Message):
28942931 create_shard_key : global___CreateShardKey | None = ...,
28952932 delete_shard_key : global___DeleteShardKey | None = ...,
28962933 restart_transfer : global___RestartTransfer | None = ...,
2934+ replicate_points : global___ReplicatePoints | None = ...,
28972935 timeout : builtins .int | None = ...,
28982936 ) -> None : ...
2899- def HasField (self , field_name : typing_extensions .Literal ["_timeout" , b"_timeout" , "abort_transfer" , b"abort_transfer" , "create_shard_key" , b"create_shard_key" , "delete_shard_key" , b"delete_shard_key" , "drop_replica" , b"drop_replica" , "move_shard" , b"move_shard" , "operation" , b"operation" , "replicate_shard" , b"replicate_shard" , "restart_transfer" , b"restart_transfer" , "timeout" , b"timeout" ]) -> builtins .bool : ...
2900- def ClearField (self , field_name : typing_extensions .Literal ["_timeout" , b"_timeout" , "abort_transfer" , b"abort_transfer" , "collection_name" , b"collection_name" , "create_shard_key" , b"create_shard_key" , "delete_shard_key" , b"delete_shard_key" , "drop_replica" , b"drop_replica" , "move_shard" , b"move_shard" , "operation" , b"operation" , "replicate_shard" , b"replicate_shard" , "restart_transfer" , b"restart_transfer" , "timeout" , b"timeout" ]) -> None : ...
2937+ def HasField (self , field_name : typing_extensions .Literal ["_timeout" , b"_timeout" , "abort_transfer" , b"abort_transfer" , "create_shard_key" , b"create_shard_key" , "delete_shard_key" , b"delete_shard_key" , "drop_replica" , b"drop_replica" , "move_shard" , b"move_shard" , "operation" , b"operation" , "replicate_points" , b"replicate_points" , " replicate_shard" , b"replicate_shard" , "restart_transfer" , b"restart_transfer" , "timeout" , b"timeout" ]) -> builtins .bool : ...
2938+ def ClearField (self , field_name : typing_extensions .Literal ["_timeout" , b"_timeout" , "abort_transfer" , b"abort_transfer" , "collection_name" , b"collection_name" , "create_shard_key" , b"create_shard_key" , "delete_shard_key" , b"delete_shard_key" , "drop_replica" , b"drop_replica" , "move_shard" , b"move_shard" , "operation" , b"operation" , "replicate_points" , b"replicate_points" , " replicate_shard" , b"replicate_shard" , "restart_transfer" , b"restart_transfer" , "timeout" , b"timeout" ]) -> None : ...
29012939 @typing .overload
29022940 def WhichOneof (self , oneof_group : typing_extensions .Literal ["_timeout" , b"_timeout" ]) -> typing_extensions .Literal ["timeout" ] | None : ...
29032941 @typing .overload
2904- def WhichOneof (self , oneof_group : typing_extensions .Literal ["operation" , b"operation" ]) -> typing_extensions .Literal ["move_shard" , "replicate_shard" , "abort_transfer" , "drop_replica" , "create_shard_key" , "delete_shard_key" , "restart_transfer" ] | None : ...
2942+ def WhichOneof (self , oneof_group : typing_extensions .Literal ["operation" , b"operation" ]) -> typing_extensions .Literal ["move_shard" , "replicate_shard" , "abort_transfer" , "drop_replica" , "create_shard_key" , "delete_shard_key" , "restart_transfer" , "replicate_points" ] | None : ...
29052943
29062944global___UpdateCollectionClusterSetupRequest = UpdateCollectionClusterSetupRequest
29072945
0 commit comments