BuildOptions constructor
BuildOptions({
- Iterable<
Hash_HashType> ? sourceProvenanceHash, - BuildOptions_VerifyOption? requestedVerifyOption,
- BuildOptions_MachineType? machineType,
- BuildOptions_SubstitutionOption? substitutionOption,
- BuildOptions_LogStreamingOption? logStreamingOption,
- Int64? diskSizeGb,
- String? workerPool,
- BuildOptions_LoggingMode? logging,
- Iterable<
String> ? env, - Iterable<
String> ? secretEnv, - Iterable<
Volume> ? volumes,
Implementation
factory BuildOptions({
$core.Iterable<Hash_HashType>? sourceProvenanceHash,
BuildOptions_VerifyOption? requestedVerifyOption,
BuildOptions_MachineType? machineType,
BuildOptions_SubstitutionOption? substitutionOption,
BuildOptions_LogStreamingOption? logStreamingOption,
$fixnum.Int64? diskSizeGb,
$core.String? workerPool,
BuildOptions_LoggingMode? logging,
$core.Iterable<$core.String>? env,
$core.Iterable<$core.String>? secretEnv,
$core.Iterable<Volume>? volumes,
}) {
final $result = create();
if (sourceProvenanceHash != null) {
$result.sourceProvenanceHash.addAll(sourceProvenanceHash);
}
if (requestedVerifyOption != null) {
$result.requestedVerifyOption = requestedVerifyOption;
}
if (machineType != null) {
$result.machineType = machineType;
}
if (substitutionOption != null) {
$result.substitutionOption = substitutionOption;
}
if (logStreamingOption != null) {
$result.logStreamingOption = logStreamingOption;
}
if (diskSizeGb != null) {
$result.diskSizeGb = diskSizeGb;
}
if (workerPool != null) {
$result.workerPool = workerPool;
}
if (logging != null) {
$result.logging = logging;
}
if (env != null) {
$result.env.addAll(env);
}
if (secretEnv != null) {
$result.secretEnv.addAll(secretEnv);
}
if (volumes != null) {
$result.volumes.addAll(volumes);
}
return $result;
}