public final class BuildOptions
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Build API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
BuildOptions() |
Modifier and Type | Method and Description |
---|---|
BuildOptions |
clone() |
java.lang.Long |
getDiskSizeGb()
Requested disk size for the VM that runs the build.
|
java.util.List<java.lang.String> |
getEnv()
A list of global environment variable definitions that will exist for all build steps in this
build.
|
java.lang.String |
getLogging()
Option to specify the logging mode, which determines where the logs are stored.
|
java.lang.String |
getLogStreamingOption()
Option to define build log streaming behavior to Google Cloud Storage.
|
java.lang.String |
getMachineType()
Compute Engine machine type on which to run the build.
|
java.lang.String |
getRequestedVerifyOption()
Requested verifiability options.
|
java.util.List<java.lang.String> |
getSecretEnv()
A list of global environment variables, which are encrypted using a Cloud Key Management
Service crypto key.
|
java.util.List<java.lang.String> |
getSourceProvenanceHash()
Requested hash for SourceProvenance.
|
java.lang.String |
getSubstitutionOption()
Option to specify behavior when there is an error in the substitution checks.
|
java.util.List<Volume> |
getVolumes()
Global list of volumes to mount for ALL build steps
Each volume is created as an empty volume prior to starting the build process.
|
java.lang.String |
getWorkerPool()
Option to specify a `WorkerPool` for the build.
|
BuildOptions |
set(java.lang.String fieldName,
java.lang.Object value) |
BuildOptions |
setDiskSizeGb(java.lang.Long diskSizeGb)
Requested disk size for the VM that runs the build.
|
BuildOptions |
setEnv(java.util.List<java.lang.String> env)
A list of global environment variable definitions that will exist for all build steps in this
build.
|
BuildOptions |
setLogging(java.lang.String logging)
Option to specify the logging mode, which determines where the logs are stored.
|
BuildOptions |
setLogStreamingOption(java.lang.String logStreamingOption)
Option to define build log streaming behavior to Google Cloud Storage.
|
BuildOptions |
setMachineType(java.lang.String machineType)
Compute Engine machine type on which to run the build.
|
BuildOptions |
setRequestedVerifyOption(java.lang.String requestedVerifyOption)
Requested verifiability options.
|
BuildOptions |
setSecretEnv(java.util.List<java.lang.String> secretEnv)
A list of global environment variables, which are encrypted using a Cloud Key Management
Service crypto key.
|
BuildOptions |
setSourceProvenanceHash(java.util.List<java.lang.String> sourceProvenanceHash)
Requested hash for SourceProvenance.
|
BuildOptions |
setSubstitutionOption(java.lang.String substitutionOption)
Option to specify behavior when there is an error in the substitution checks.
|
BuildOptions |
setVolumes(java.util.List<Volume> volumes)
Global list of volumes to mount for ALL build steps
Each volume is created as an empty volume prior to starting the build process.
|
BuildOptions |
setWorkerPool(java.lang.String workerPool)
Option to specify a `WorkerPool` for the build.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Long getDiskSizeGb()
null
for nonepublic BuildOptions setDiskSizeGb(java.lang.Long diskSizeGb)
diskSizeGb
- diskSizeGb or null
for nonepublic java.util.List<java.lang.String> getEnv()
null
for nonepublic BuildOptions setEnv(java.util.List<java.lang.String> env)
env
- env or null
for nonepublic java.lang.String getLogStreamingOption()
null
for nonepublic BuildOptions setLogStreamingOption(java.lang.String logStreamingOption)
logStreamingOption
- logStreamingOption or null
for nonepublic java.lang.String getLogging()
null
for nonepublic BuildOptions setLogging(java.lang.String logging)
logging
- logging or null
for nonepublic java.lang.String getMachineType()
null
for nonepublic BuildOptions setMachineType(java.lang.String machineType)
machineType
- machineType or null
for nonepublic java.lang.String getRequestedVerifyOption()
null
for nonepublic BuildOptions setRequestedVerifyOption(java.lang.String requestedVerifyOption)
requestedVerifyOption
- requestedVerifyOption or null
for nonepublic java.util.List<java.lang.String> getSecretEnv()
null
for nonepublic BuildOptions setSecretEnv(java.util.List<java.lang.String> secretEnv)
secretEnv
- secretEnv or null
for nonepublic java.util.List<java.lang.String> getSourceProvenanceHash()
null
for nonepublic BuildOptions setSourceProvenanceHash(java.util.List<java.lang.String> sourceProvenanceHash)
sourceProvenanceHash
- sourceProvenanceHash or null
for nonepublic java.lang.String getSubstitutionOption()
null
for nonepublic BuildOptions setSubstitutionOption(java.lang.String substitutionOption)
substitutionOption
- substitutionOption or null
for nonepublic java.util.List<Volume> getVolumes()
null
for nonepublic BuildOptions setVolumes(java.util.List<Volume> volumes)
volumes
- volumes or null
for nonepublic java.lang.String getWorkerPool()
null
for nonepublic BuildOptions setWorkerPool(java.lang.String workerPool)
workerPool
- workerPool or null
for nonepublic BuildOptions set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public BuildOptions clone()
clone
in class com.google.api.client.json.GenericJson