Class Task.Builder (0.49.0)

publicstaticfinalclass Task.BuilderextendsGeneratedMessageV3.Builder<Task.Builder>implementsTaskOrBuilder

Task represents a single run of a container to completion.

Protobuf type google.cloud.run.v2.Task

Implements

TaskOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConditions(Iterable<? extends Condition> values)

publicTask.BuilderaddAllConditions(Iterable<?extendsCondition>values)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.run.v2.Condition>
Returns
Type Description
Task.Builder

addAllContainers(Iterable<? extends Container> values)

publicTask.BuilderaddAllContainers(Iterable<?extendsContainer>values)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
values Iterable<? extends com.google.cloud.run.v2.Container>
Returns
Type Description
Task.Builder

addAllVolumes(Iterable<? extends Volume> values)

publicTask.BuilderaddAllVolumes(Iterable<?extendsVolume>values)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
values Iterable<? extends com.google.cloud.run.v2.Volume>
Returns
Type Description
Task.Builder

addConditions(Condition value)

publicTask.BuilderaddConditions(Conditionvalue)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Condition
Returns
Type Description
Task.Builder

addConditions(Condition.Builder builderForValue)

publicTask.BuilderaddConditions(Condition.BuilderbuilderForValue)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Condition.Builder
Returns
Type Description
Task.Builder

addConditions(int index, Condition value)

publicTask.BuilderaddConditions(intindex,Conditionvalue)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Condition
Returns
Type Description
Task.Builder

addConditions(int index, Condition.Builder builderForValue)

publicTask.BuilderaddConditions(intindex,Condition.BuilderbuilderForValue)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Condition.Builder
Returns
Type Description
Task.Builder

addConditionsBuilder()

publicCondition.BuilderaddConditionsBuilder()

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Condition.Builder

addConditionsBuilder(int index)

publicCondition.BuilderaddConditionsBuilder(intindex)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Condition.Builder

addContainers(Container value)

publicTask.BuilderaddContainers(Containervalue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
value Container
Returns
Type Description
Task.Builder

addContainers(Container.Builder builderForValue)

publicTask.BuilderaddContainers(Container.BuilderbuilderForValue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
builderForValue Container.Builder
Returns
Type Description
Task.Builder

addContainers(int index, Container value)

publicTask.BuilderaddContainers(intindex,Containervalue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameters
Name Description
index int
value Container
Returns
Type Description
Task.Builder

addContainers(int index, Container.Builder builderForValue)

publicTask.BuilderaddContainers(intindex,Container.BuilderbuilderForValue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameters
Name Description
index int
builderForValue Container.Builder
Returns
Type Description
Task.Builder

addContainersBuilder()

publicContainer.BuilderaddContainersBuilder()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Returns
Type Description
Container.Builder

addContainersBuilder(int index)

publicContainer.BuilderaddContainersBuilder(intindex)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
index int
Returns
Type Description
Container.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicTask.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Task.Builder
Overrides

addVolumes(Volume value)

publicTask.BuilderaddVolumes(Volumevalue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
value Volume
Returns
Type Description
Task.Builder

addVolumes(Volume.Builder builderForValue)

publicTask.BuilderaddVolumes(Volume.BuilderbuilderForValue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
builderForValue Volume.Builder
Returns
Type Description
Task.Builder

addVolumes(int index, Volume value)

publicTask.BuilderaddVolumes(intindex,Volumevalue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameters
Name Description
index int
value Volume
Returns
Type Description
Task.Builder

addVolumes(int index, Volume.Builder builderForValue)

publicTask.BuilderaddVolumes(intindex,Volume.BuilderbuilderForValue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
Task.Builder

addVolumesBuilder()

publicVolume.BuilderaddVolumesBuilder()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Returns
Type Description
Volume.Builder

addVolumesBuilder(int index)

publicVolume.BuilderaddVolumesBuilder(intindex)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

build()

publicTaskbuild()
Returns
Type Description
Task

buildPartial()

publicTaskbuildPartial()
Returns
Type Description
Task

clear()

publicTask.Builderclear()
Returns
Type Description
Task.Builder
Overrides

clearAnnotations()

publicTask.BuilderclearAnnotations()
Returns
Type Description
Task.Builder

clearCompletionTime()

publicTask.BuilderclearCompletionTime()

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearConditions()

publicTask.BuilderclearConditions()

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearContainers()

publicTask.BuilderclearContainers()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Returns
Type Description
Task.Builder

clearCreateTime()

publicTask.BuilderclearCreateTime()

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearDeleteTime()

publicTask.BuilderclearDeleteTime()

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearEncryptionKey()

publicTask.BuilderclearEncryptionKey()

Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Task.Builder

This builder for chaining.

clearEtag()

publicTask.BuilderclearEtag()

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearExecution()

publicTask.BuilderclearExecution()

Output only. The name of the parent Execution.

string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Task.Builder

This builder for chaining.

clearExecutionEnvironment()

publicTask.BuilderclearExecutionEnvironment()

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;

Returns
Type Description
Task.Builder

This builder for chaining.

clearExpireTime()

publicTask.BuilderclearExpireTime()

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearField(Descriptors.FieldDescriptor field)

publicTask.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Task.Builder
Overrides

clearGeneration()

publicTask.BuilderclearGeneration()

Output only. A number that monotonically increases every time the user modifies the desired state.

int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearIndex()

publicTask.BuilderclearIndex()

Output only. Index of the Task, unique per execution, and beginning at 0.

int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearJob()

publicTask.BuilderclearJob()

Output only. The name of the parent Job.

string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Task.Builder

This builder for chaining.

clearLabels()

publicTask.BuilderclearLabels()
Returns
Type Description
Task.Builder

clearLastAttemptResult()

publicTask.BuilderclearLastAttemptResult()

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearLogUri()

publicTask.BuilderclearLogUri()

Output only. URI where logs for this execution can be found in Cloud Console.

string log_uri = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearMaxRetries()

publicTask.BuilderclearMaxRetries()

Number of retries allowed per Task, before marking this Task failed.

int32 max_retries = 16;

Returns
Type Description
Task.Builder

This builder for chaining.

clearName()

publicTask.BuilderclearName()

Output only. The unique name of this Task.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearObservedGeneration()

publicTask.BuilderclearObservedGeneration()

Output only. The generation of this Task. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.

int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicTask.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Task.Builder
Overrides

clearReconciling()

publicTask.BuilderclearReconciling()

Output only. Indicates whether the resource's reconciliation is still in progress. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.

bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearRetried()

publicTask.BuilderclearRetried()

Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit.

int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearSatisfiesPzs()

publicTask.BuilderclearSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearScheduledTime()

publicTask.BuilderclearScheduledTime()

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearServiceAccount()

publicTask.BuilderclearServiceAccount()

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 18;

Returns
Type Description
Task.Builder

This builder for chaining.

clearStartTime()

publicTask.BuilderclearStartTime()

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearTimeout()

publicTask.BuilderclearTimeout()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Returns
Type Description
Task.Builder

clearUid()

publicTask.BuilderclearUid()

Output only. Server assigned unique identifier for the Task. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

This builder for chaining.

clearUpdateTime()

publicTask.BuilderclearUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clearVolumes()

publicTask.BuilderclearVolumes()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Returns
Type Description
Task.Builder

clearVpcAccess()

publicTask.BuilderclearVpcAccess()

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Task.Builder

clone()

publicTask.Builderclone()
Returns
Type Description
Task.Builder
Overrides

containsAnnotations(String key)

publicbooleancontainsAnnotations(Stringkey)

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnnotations() (deprecated)

publicMap<String,String>getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

publicintgetAnnotationsCount()

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAnnotationsMap()

publicMap<String,String>getAnnotationsMap()

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

publicStringgetAnnotationsOrDefault(Stringkey,StringdefaultValue)

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

publicStringgetAnnotationsOrThrow(Stringkey)

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getCompletionTime()

publicTimestampgetCompletionTime()

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The completionTime.

getCompletionTimeBuilder()

publicTimestamp.BuildergetCompletionTimeBuilder()

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCompletionTimeOrBuilder()

publicTimestampOrBuildergetCompletionTimeOrBuilder()

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getConditions(int index)

publicConditiongetConditions(intindex)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Condition

getConditionsBuilder(int index)

publicCondition.BuildergetConditionsBuilder(intindex)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Condition.Builder

getConditionsBuilderList()

publicList<Condition.Builder>getConditionsBuilderList()

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getConditionsCount()

publicintgetConditionsCount()

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getConditionsList()

publicList<Condition>getConditionsList()

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Condition>

getConditionsOrBuilder(int index)

publicConditionOrBuildergetConditionsOrBuilder(intindex)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConditionOrBuilder

getConditionsOrBuilderList()

publicList<?extendsConditionOrBuilder>getConditionsOrBuilderList()

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.run.v2.ConditionOrBuilder>

getContainers(int index)

publicContainergetContainers(intindex)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
index int
Returns
Type Description
Container

getContainersBuilder(int index)

publicContainer.BuildergetContainersBuilder(intindex)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
index int
Returns
Type Description
Container.Builder

getContainersBuilderList()

publicList<Container.Builder>getContainersBuilderList()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Returns
Type Description
List<Builder>

getContainersCount()

publicintgetContainersCount()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Returns
Type Description
int

getContainersList()

publicList<Container>getContainersList()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Returns
Type Description
List<Container>

getContainersOrBuilder(int index)

publicContainerOrBuildergetContainersOrBuilder(intindex)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
index int
Returns
Type Description
ContainerOrBuilder

getContainersOrBuilderList()

publicList<?extendsContainerOrBuilder>getContainersOrBuilderList()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Returns
Type Description
List<? extends com.google.cloud.run.v2.ContainerOrBuilder>

getCreateTime()

publicTimestampgetCreateTime()

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicTaskgetDefaultInstanceForType()
Returns
Type Description
Task

getDeleteTime()

publicTimestampgetDeleteTime()

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeBuilder()

publicTimestamp.BuildergetDeleteTimeBuilder()

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDeleteTimeOrBuilder()

publicTimestampOrBuildergetDeleteTimeOrBuilder()

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEncryptionKey()

publicStringgetEncryptionKey()

Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The encryptionKey.

getEncryptionKeyBytes()

publicByteStringgetEncryptionKeyBytes()

Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for encryptionKey.

getEtag()

publicStringgetEtag()

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

publicByteStringgetEtagBytes()

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getExecution()

publicStringgetExecution()

Output only. The name of the parent Execution.

string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The execution.

getExecutionBytes()

publicByteStringgetExecutionBytes()

Output only. The name of the parent Execution.

string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for execution.

getExecutionEnvironment()

publicExecutionEnvironmentgetExecutionEnvironment()

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;

Returns
Type Description
ExecutionEnvironment

The executionEnvironment.

getExecutionEnvironmentValue()

publicintgetExecutionEnvironmentValue()

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;

Returns
Type Description
int

The enum numeric value on the wire for executionEnvironment.

getExpireTime()

publicTimestampgetExpireTime()

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

publicTimestamp.BuildergetExpireTimeBuilder()

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpireTimeOrBuilder()

publicTimestampOrBuildergetExpireTimeOrBuilder()

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getGeneration()

publiclonggetGeneration()

Output only. A number that monotonically increases every time the user modifies the desired state.

int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The generation.

getIndex()

publicintgetIndex()

Output only. Index of the Task, unique per execution, and beginning at 0.

int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The index.

getJob()

publicStringgetJob()

Output only. The name of the parent Job.

string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The job.

getJobBytes()

publicByteStringgetJobBytes()

Output only. The name of the parent Job.

string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for job.

getLabels() (deprecated)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getLastAttemptResult()

publicTaskAttemptResultgetLastAttemptResult()

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaskAttemptResult

The lastAttemptResult.

getLastAttemptResultBuilder()

publicTaskAttemptResult.BuildergetLastAttemptResultBuilder()

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaskAttemptResult.Builder

getLastAttemptResultOrBuilder()

publicTaskAttemptResultOrBuildergetLastAttemptResultOrBuilder()

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TaskAttemptResultOrBuilder

getLogUri()

publicStringgetLogUri()

Output only. URI where logs for this execution can be found in Cloud Console.

string log_uri = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The logUri.

getLogUriBytes()

publicByteStringgetLogUriBytes()

Output only. URI where logs for this execution can be found in Cloud Console.

string log_uri = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for logUri.

getMaxRetries()

publicintgetMaxRetries()

Number of retries allowed per Task, before marking this Task failed.

int32 max_retries = 16;

Returns
Type Description
int

The maxRetries.

getMutableAnnotations() (deprecated)

publicMap<String,String>getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

publicMap<String,String>getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

publicStringgetName()

Output only. The unique name of this Task.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Output only. The unique name of this Task.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getObservedGeneration()

publiclonggetObservedGeneration()

Output only. The generation of this Task. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.

int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The observedGeneration.

getReconciling()

publicbooleangetReconciling()

Output only. Indicates whether the resource's reconciliation is still in progress. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.

bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The reconciling.

getRetried()

publicintgetRetried()

Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit.

int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The retried.

getSatisfiesPzs()

publicbooleangetSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The satisfiesPzs.

getScheduledTime()

publicTimestampgetScheduledTime()

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The scheduledTime.

getScheduledTimeBuilder()

publicTimestamp.BuildergetScheduledTimeBuilder()

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getScheduledTimeOrBuilder()

publicTimestampOrBuildergetScheduledTimeOrBuilder()

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getServiceAccount()

publicStringgetServiceAccount()

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 18;

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

publicByteStringgetServiceAccountBytes()

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 18;

Returns
Type Description
ByteString

The bytes for serviceAccount.

getStartTime()

publicTimestampgetStartTime()

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

publicTimestamp.BuildergetStartTimeBuilder()

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

publicTimestampOrBuildergetStartTimeOrBuilder()

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getTimeout()

publicDurationgetTimeout()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Returns
Type Description
Duration

The timeout.

getTimeoutBuilder()

publicDuration.BuildergetTimeoutBuilder()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Returns
Type Description
Builder

getTimeoutOrBuilder()

publicDurationOrBuildergetTimeoutOrBuilder()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Returns
Type Description
DurationOrBuilder

getUid()

publicStringgetUid()

Output only. Server assigned unique identifier for the Task. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

publicByteStringgetUidBytes()

Output only. Server assigned unique identifier for the Task. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

publicTimestampgetUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVolumes(int index)

publicVolumegetVolumes(intindex)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
index int
Returns
Type Description
Volume

getVolumesBuilder(int index)

publicVolume.BuildergetVolumesBuilder(intindex)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

getVolumesBuilderList()

publicList<Volume.Builder>getVolumesBuilderList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Returns
Type Description
List<Builder>

getVolumesCount()

publicintgetVolumesCount()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Returns
Type Description
int

getVolumesList()

publicList<Volume>getVolumesList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Returns
Type Description
List<Volume>

getVolumesOrBuilder(int index)

publicVolumeOrBuildergetVolumesOrBuilder(intindex)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
index int
Returns
Type Description
VolumeOrBuilder

getVolumesOrBuilderList()

publicList<?extendsVolumeOrBuilder>getVolumesOrBuilderList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Returns
Type Description
List<? extends com.google.cloud.run.v2.VolumeOrBuilder>

getVpcAccess()

publicVpcAccessgetVpcAccess()

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VpcAccess

The vpcAccess.

getVpcAccessBuilder()

publicVpcAccess.BuildergetVpcAccessBuilder()

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VpcAccess.Builder

getVpcAccessOrBuilder()

publicVpcAccessOrBuildergetVpcAccessOrBuilder()

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VpcAccessOrBuilder

hasCompletionTime()

publicbooleanhasCompletionTime()

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the completionTime field is set.

hasCreateTime()

publicbooleanhasCreateTime()

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

publicbooleanhasDeleteTime()

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasExpireTime()

publicbooleanhasExpireTime()

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expireTime field is set.

hasLastAttemptResult()

publicbooleanhasLastAttemptResult()

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastAttemptResult field is set.

hasScheduledTime()

publicbooleanhasScheduledTime()

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the scheduledTime field is set.

hasStartTime()

publicbooleanhasStartTime()

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

hasTimeout()

publicbooleanhasTimeout()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Returns
Type Description
boolean

Whether the timeout field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasVpcAccess()

publicbooleanhasVpcAccess()

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the vpcAccess field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMutableMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCompletionTime(Timestamp value)

publicTask.BuildermergeCompletionTime(Timestampvalue)

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

mergeCreateTime(Timestamp value)

publicTask.BuildermergeCreateTime(Timestampvalue)

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

mergeDeleteTime(Timestamp value)

publicTask.BuildermergeDeleteTime(Timestampvalue)

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

mergeExpireTime(Timestamp value)

publicTask.BuildermergeExpireTime(Timestampvalue)

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

mergeFrom(Task other)

publicTask.BuildermergeFrom(Taskother)
Parameter
Name Description
other Task
Returns
Type Description
Task.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicTask.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Task.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicTask.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Task.Builder
Overrides

mergeLastAttemptResult(TaskAttemptResult value)

publicTask.BuildermergeLastAttemptResult(TaskAttemptResultvalue)

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TaskAttemptResult
Returns
Type Description
Task.Builder

mergeScheduledTime(Timestamp value)

publicTask.BuildermergeScheduledTime(Timestampvalue)

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

mergeStartTime(Timestamp value)

publicTask.BuildermergeStartTime(Timestampvalue)

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

mergeTimeout(Duration value)

publicTask.BuildermergeTimeout(Durationvalue)

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Parameter
Name Description
value Duration
Returns
Type Description
Task.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalTask.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Task.Builder
Overrides

mergeUpdateTime(Timestamp value)

publicTask.BuildermergeUpdateTime(Timestampvalue)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

mergeVpcAccess(VpcAccess value)

publicTask.BuildermergeVpcAccess(VpcAccessvalue)

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value VpcAccess
Returns
Type Description
Task.Builder

putAllAnnotations(Map<String,String> values)

publicTask.BuilderputAllAnnotations(Map<String,String>values)

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Task.Builder

putAllLabels(Map<String,String> values)

publicTask.BuilderputAllLabels(Map<String,String>values)

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Task.Builder

putAnnotations(String key, String value)

publicTask.BuilderputAnnotations(Stringkey,Stringvalue)

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
Task.Builder

putLabels(String key, String value)

publicTask.BuilderputLabels(Stringkey,Stringvalue)

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
Task.Builder

removeAnnotations(String key)

publicTask.BuilderremoveAnnotations(Stringkey)

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Task.Builder

removeConditions(int index)

publicTask.BuilderremoveConditions(intindex)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Task.Builder

removeContainers(int index)

publicTask.BuilderremoveContainers(intindex)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameter
Name Description
index int
Returns
Type Description
Task.Builder

removeLabels(String key)

publicTask.BuilderremoveLabels(Stringkey)

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels

map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Task.Builder

removeVolumes(int index)

publicTask.BuilderremoveVolumes(intindex)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameter
Name Description
index int
Returns
Type Description
Task.Builder

setCompletionTime(Timestamp value)

publicTask.BuildersetCompletionTime(Timestampvalue)

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

setCompletionTime(Timestamp.Builder builderForValue)

publicTask.BuildersetCompletionTime(Timestamp.BuilderbuilderForValue)

Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setConditions(int index, Condition value)

publicTask.BuildersetConditions(intindex,Conditionvalue)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Condition
Returns
Type Description
Task.Builder

setConditions(int index, Condition.Builder builderForValue)

publicTask.BuildersetConditions(intindex,Condition.BuilderbuilderForValue)

Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.

repeated .google.cloud.run.v2.Condition conditions = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Condition.Builder
Returns
Type Description
Task.Builder

setContainers(int index, Container value)

publicTask.BuildersetContainers(intindex,Containervalue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameters
Name Description
index int
value Container
Returns
Type Description
Task.Builder

setContainers(int index, Container.Builder builderForValue)

publicTask.BuildersetContainers(intindex,Container.BuilderbuilderForValue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 14;

Parameters
Name Description
index int
builderForValue Container.Builder
Returns
Type Description
Task.Builder

setCreateTime(Timestamp value)

publicTask.BuildersetCreateTime(Timestampvalue)

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

setCreateTime(Timestamp.Builder builderForValue)

publicTask.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setDeleteTime(Timestamp value)

publicTask.BuildersetDeleteTime(Timestampvalue)

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

setDeleteTime(Timestamp.Builder builderForValue)

publicTask.BuildersetDeleteTime(Timestamp.BuilderbuilderForValue)

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setEncryptionKey(String value)

publicTask.BuildersetEncryptionKey(Stringvalue)

Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The encryptionKey to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setEncryptionKeyBytes(ByteString value)

publicTask.BuildersetEncryptionKeyBytes(ByteStringvalue)

Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 28 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for encryptionKey to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setEtag(String value)

publicTask.BuildersetEtag(Stringvalue)

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setEtagBytes(ByteString value)

publicTask.BuildersetEtagBytes(ByteStringvalue)

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setExecution(String value)

publicTask.BuildersetExecution(Stringvalue)

Output only. The name of the parent Execution.

string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The execution to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setExecutionBytes(ByteString value)

publicTask.BuildersetExecutionBytes(ByteStringvalue)

Output only. The name of the parent Execution.

string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for execution to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setExecutionEnvironment(ExecutionEnvironment value)

publicTask.BuildersetExecutionEnvironment(ExecutionEnvironmentvalue)

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;

Parameter
Name Description
value ExecutionEnvironment

The executionEnvironment to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setExecutionEnvironmentValue(int value)

publicTask.BuildersetExecutionEnvironmentValue(intvalue)

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;

Parameter
Name Description
value int

The enum numeric value on the wire for executionEnvironment to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setExpireTime(Timestamp value)

publicTask.BuildersetExpireTime(Timestampvalue)

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

setExpireTime(Timestamp.Builder builderForValue)

publicTask.BuildersetExpireTime(Timestamp.BuilderbuilderForValue)

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

.google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicTask.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Task.Builder
Overrides

setGeneration(long value)

publicTask.BuildersetGeneration(longvalue)

Output only. A number that monotonically increases every time the user modifies the desired state.

int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The generation to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setIndex(int value)

publicTask.BuildersetIndex(intvalue)

Output only. Index of the Task, unique per execution, and beginning at 0.

int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The index to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setJob(String value)

publicTask.BuildersetJob(Stringvalue)

Output only. The name of the parent Job.

string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The job to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setJobBytes(ByteString value)

publicTask.BuildersetJobBytes(ByteStringvalue)

Output only. The name of the parent Job.

string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for job to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setLastAttemptResult(TaskAttemptResult value)

publicTask.BuildersetLastAttemptResult(TaskAttemptResultvalue)

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TaskAttemptResult
Returns
Type Description
Task.Builder

setLastAttemptResult(TaskAttemptResult.Builder builderForValue)

publicTask.BuildersetLastAttemptResult(TaskAttemptResult.BuilderbuilderForValue)

Output only. Result of the last attempt of this Task.

.google.cloud.run.v2.TaskAttemptResult last_attempt_result = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue TaskAttemptResult.Builder
Returns
Type Description
Task.Builder

setLogUri(String value)

publicTask.BuildersetLogUri(Stringvalue)

Output only. URI where logs for this execution can be found in Cloud Console.

string log_uri = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The logUri to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setLogUriBytes(ByteString value)

publicTask.BuildersetLogUriBytes(ByteStringvalue)

Output only. URI where logs for this execution can be found in Cloud Console.

string log_uri = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for logUri to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setMaxRetries(int value)

publicTask.BuildersetMaxRetries(intvalue)

Number of retries allowed per Task, before marking this Task failed.

int32 max_retries = 16;

Parameter
Name Description
value int

The maxRetries to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setName(String value)

publicTask.BuildersetName(Stringvalue)

Output only. The unique name of this Task.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicTask.BuildersetNameBytes(ByteStringvalue)

Output only. The unique name of this Task.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setObservedGeneration(long value)

publicTask.BuildersetObservedGeneration(longvalue)

Output only. The generation of this Task. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.

int64 observed_generation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The observedGeneration to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setReconciling(boolean value)

publicTask.BuildersetReconciling(booleanvalue)

Output only. Indicates whether the resource's reconciliation is still in progress. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.

bool reconciling = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The reconciling to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicTask.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Task.Builder
Overrides

setRetried(int value)

publicTask.BuildersetRetried(intvalue)

Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit.

int32 retried = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The retried to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setSatisfiesPzs(boolean value)

publicTask.BuildersetSatisfiesPzs(booleanvalue)

Output only. Reserved for future use.

bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The satisfiesPzs to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setScheduledTime(Timestamp value)

publicTask.BuildersetScheduledTime(Timestampvalue)

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

setScheduledTime(Timestamp.Builder builderForValue)

publicTask.BuildersetScheduledTime(Timestamp.BuilderbuilderForValue)

Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setServiceAccount(String value)

publicTask.BuildersetServiceAccount(Stringvalue)

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 18;

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

publicTask.BuildersetServiceAccountBytes(ByteStringvalue)

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 18;

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setStartTime(Timestamp value)

publicTask.BuildersetStartTime(Timestampvalue)

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

setStartTime(Timestamp.Builder builderForValue)

publicTask.BuildersetStartTime(Timestamp.BuilderbuilderForValue)

Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.

.google.protobuf.Timestamp start_time = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setTimeout(Duration value)

publicTask.BuildersetTimeout(Durationvalue)

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Parameter
Name Description
value Duration
Returns
Type Description
Task.Builder

setTimeout(Duration.Builder builderForValue)

publicTask.BuildersetTimeout(Duration.BuilderbuilderForValue)

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 17;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setUid(String value)

publicTask.BuildersetUid(Stringvalue)

Output only. Server assigned unique identifier for the Task. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setUidBytes(ByteString value)

publicTask.BuildersetUidBytes(ByteStringvalue)

Output only. Server assigned unique identifier for the Task. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Task.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalTask.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Task.Builder
Overrides

setUpdateTime(Timestamp value)

publicTask.BuildersetUpdateTime(Timestampvalue)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Task.Builder

setUpdateTime(Timestamp.Builder builderForValue)

publicTask.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Task.Builder

setVolumes(int index, Volume value)

publicTask.BuildersetVolumes(intindex,Volumevalue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameters
Name Description
index int
value Volume
Returns
Type Description
Task.Builder

setVolumes(int index, Volume.Builder builderForValue)

publicTask.BuildersetVolumes(intindex,Volume.BuilderbuilderForValue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 15;

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
Task.Builder

setVpcAccess(VpcAccess value)

publicTask.BuildersetVpcAccess(VpcAccessvalue)

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value VpcAccess
Returns
Type Description
Task.Builder

setVpcAccess(VpcAccess.Builder builderForValue)

publicTask.BuildersetVpcAccess(VpcAccess.BuilderbuilderForValue)

Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue VpcAccess.Builder
Returns
Type Description
Task.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.