CollectionClusterInfoResponse constructor

CollectionClusterInfoResponse({
  1. Int64? peerId,
  2. Int64? shardCount,
  3. Iterable<LocalShardInfo>? localShards,
  4. Iterable<RemoteShardInfo>? remoteShards,
  5. Iterable<ShardTransferInfo>? shardTransfers,
  6. 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;
}