CollectionClusterInfoResponse constructor
CollectionClusterInfoResponse({
- Int64? peerId,
- Int64? shardCount,
- Iterable<
LocalShardInfo> ? localShards, - Iterable<
RemoteShardInfo> ? remoteShards, - Iterable<
ShardTransferInfo> ? shardTransfers, - Iterable<
ReshardingInfo> ? reshardingOperations,
Implementation
factory CollectionClusterInfoResponse({
$fixnum.Int64? peerId,
$fixnum.Int64? shardCount,
$core.Iterable<LocalShardInfo>? localShards,
$core.Iterable<RemoteShardInfo>? remoteShards,
$core.Iterable<ShardTransferInfo>? shardTransfers,
$core.Iterable<ReshardingInfo>? reshardingOperations,
}) {
final $result = create();
if (peerId != null) {
$result.peerId = peerId;
}
if (shardCount != null) {
$result.shardCount = shardCount;
}
if (localShards != null) {
$result.localShards.addAll(localShards);
}
if (remoteShards != null) {
$result.remoteShards.addAll(remoteShards);
}
if (shardTransfers != null) {
$result.shardTransfers.addAll(shardTransfers);
}
if (reshardingOperations != null) {
$result.reshardingOperations.addAll(reshardingOperations);
}
return $result;
}