MachineSpec constructor

MachineSpec({
  1. String? machineType,
  2. AcceleratorType? acceleratorType,
  3. int? acceleratorCount,
})

Implementation

factory MachineSpec({
  $core.String? machineType,
  AcceleratorType? acceleratorType,
  $core.int? acceleratorCount,
}) {
  final $result = create();
  if (machineType != null) {
    $result.machineType = machineType;
  }
  if (acceleratorType != null) {
    $result.acceleratorType = acceleratorType;
  }
  if (acceleratorCount != null) {
    $result.acceleratorCount = acceleratorCount;
  }
  return $result;
}