public final class PipelineTask
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
PipelineTask() |
Modifier and Type | Method and Description |
---|---|
PipelineTask |
clone() |
String |
getName()
Name of the task.
|
List<Param> |
getParams()
Params is a list of parameter names and values.
|
Integer |
getRetries()
Retries represents how many times this task should be retried in case of task failure.
|
List<String> |
getRunAfter()
RunAfter is the list of PipelineTask names that should be executed before this Task executes.
|
TaskRef |
getTaskRef()
Reference to a specific instance of a task.
|
EmbeddedTask |
getTaskSpec()
Spec to instantiate this TaskRun.
|
String |
getTimeout()
Time after which the TaskRun times out.
|
List<WhenExpression> |
getWhenExpressions()
Conditions that need to be true for the task to run.
|
List<WorkspacePipelineTaskBinding> |
getWorkspaces()
Workspaces maps workspaces from the pipeline spec to the workspaces declared in the Task.
|
PipelineTask |
set(String fieldName,
Object value) |
PipelineTask |
setName(String name)
Name of the task.
|
PipelineTask |
setParams(List<Param> params)
Params is a list of parameter names and values.
|
PipelineTask |
setRetries(Integer retries)
Retries represents how many times this task should be retried in case of task failure.
|
PipelineTask |
setRunAfter(List<String> runAfter)
RunAfter is the list of PipelineTask names that should be executed before this Task executes.
|
PipelineTask |
setTaskRef(TaskRef taskRef)
Reference to a specific instance of a task.
|
PipelineTask |
setTaskSpec(EmbeddedTask taskSpec)
Spec to instantiate this TaskRun.
|
PipelineTask |
setTimeout(String timeout)
Time after which the TaskRun times out.
|
PipelineTask |
setWhenExpressions(List<WhenExpression> whenExpressions)
Conditions that need to be true for the task to run.
|
PipelineTask |
setWorkspaces(List<WorkspacePipelineTaskBinding> workspaces)
Workspaces maps workspaces from the pipeline spec to the workspaces declared in the Task.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getName()
null
for nonepublic PipelineTask setName(String name)
name
- name or null
for nonepublic List<Param> getParams()
null
for nonepublic PipelineTask setParams(List<Param> params)
params
- params or null
for nonepublic Integer getRetries()
null
for nonepublic PipelineTask setRetries(Integer retries)
retries
- retries or null
for nonepublic List<String> getRunAfter()
null
for nonepublic PipelineTask setRunAfter(List<String> runAfter)
runAfter
- runAfter or null
for nonepublic TaskRef getTaskRef()
null
for nonepublic PipelineTask setTaskRef(TaskRef taskRef)
taskRef
- taskRef or null
for nonepublic EmbeddedTask getTaskSpec()
null
for nonepublic PipelineTask setTaskSpec(EmbeddedTask taskSpec)
taskSpec
- taskSpec or null
for nonepublic String getTimeout()
null
for nonepublic PipelineTask setTimeout(String timeout)
timeout
- timeout or null
for nonepublic List<WhenExpression> getWhenExpressions()
null
for nonepublic PipelineTask setWhenExpressions(List<WhenExpression> whenExpressions)
whenExpressions
- whenExpressions or null
for nonepublic List<WorkspacePipelineTaskBinding> getWorkspaces()
null
for nonepublic PipelineTask setWorkspaces(List<WorkspacePipelineTaskBinding> workspaces)
workspaces
- workspaces or null
for nonepublic PipelineTask set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public PipelineTask clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.