public final class TaskSpec
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| TaskSpec() | 
| Modifier and Type | Method and Description | 
|---|---|
| TaskSpec | clone() | 
| String | getDescription()Description of the task. | 
| List<String> | getManagedSidecars()Sidecars that run alongside the Task’s step containers that should be added to this Task. | 
| List<ParamSpec> | getParams()List of parameters. | 
| List<TaskResult> | getResults()Values that this Task can output. | 
| List<Sidecar> | getSidecars()Sidecars that run alongside the Task's step containers. | 
| List<Step> | getSteps()Steps of the task. | 
| StepTemplate | getStepTemplate()Optional. | 
| List<VolumeSource> | getVolumes()A collection of volumes that are available to mount into steps. | 
| List<WorkspaceDeclaration> | getWorkspaces()The volumes that this Task requires. | 
| TaskSpec | set(String fieldName,
   Object value) | 
| TaskSpec | setDescription(String description)Description of the task. | 
| TaskSpec | setManagedSidecars(List<String> managedSidecars)Sidecars that run alongside the Task’s step containers that should be added to this Task. | 
| TaskSpec | setParams(List<ParamSpec> params)List of parameters. | 
| TaskSpec | setResults(List<TaskResult> results)Values that this Task can output. | 
| TaskSpec | setSidecars(List<Sidecar> sidecars)Sidecars that run alongside the Task's step containers. | 
| TaskSpec | setSteps(List<Step> steps)Steps of the task. | 
| TaskSpec | setStepTemplate(StepTemplate stepTemplate)Optional. | 
| TaskSpec | setVolumes(List<VolumeSource> volumes)A collection of volumes that are available to mount into steps. | 
| TaskSpec | setWorkspaces(List<WorkspaceDeclaration> workspaces)The volumes that this Task requires. | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getDescription()
null for nonepublic TaskSpec setDescription(String description)
description - description or null for nonepublic List<String> getManagedSidecars()
null for nonepublic TaskSpec setManagedSidecars(List<String> managedSidecars)
managedSidecars - managedSidecars or null for nonepublic TaskSpec setParams(List<ParamSpec> params)
params - params or null for nonepublic List<TaskResult> getResults()
null for nonepublic TaskSpec setResults(List<TaskResult> results)
results - results or null for nonepublic List<Sidecar> getSidecars()
null for nonepublic TaskSpec setSidecars(List<Sidecar> sidecars)
sidecars - sidecars or null for nonepublic StepTemplate getStepTemplate()
null for nonepublic TaskSpec setStepTemplate(StepTemplate stepTemplate)
stepTemplate - stepTemplate or null for nonepublic TaskSpec setSteps(List<Step> steps)
steps - steps or null for nonepublic List<VolumeSource> getVolumes()
null for nonepublic TaskSpec setVolumes(List<VolumeSource> volumes)
volumes - volumes or null for nonepublic List<WorkspaceDeclaration> getWorkspaces()
null for nonepublic TaskSpec setWorkspaces(List<WorkspaceDeclaration> workspaces)
workspaces - workspaces or null for nonepublic TaskSpec set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TaskSpec clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.