Class Task.Builder (0.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 0.78.0 (latest)
- 0.76.0
- 0.75.0
- 0.74.0
- 0.73.0
- 0.72.0
- 0.70.0
- 0.68.0
- 0.67.0
- 0.64.0
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.5
- 0.2.1
- 0.1.2
publicstaticfinalclass Task.BuilderextendsGeneratedMessageV3.Builder<Task.Builder>implementsTaskOrBuilderTask represents a single run of a container to completion.
Protobuf type google.cloud.run.v2.Task
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Task.BuilderImplements
TaskOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()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];
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;
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;
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];
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];
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];
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];
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];
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];
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;
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;
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;
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;
addContainersBuilder()
publicContainer.BuilderaddContainersBuilder()Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 14;
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;
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicTask.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)addVolumes(Volume value)
publicTask.BuilderaddVolumes(Volumevalue)A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
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;
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;
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;
addVolumesBuilder()
publicVolume.BuilderaddVolumesBuilder()A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
addVolumesBuilder(int index)
publicVolume.BuilderaddVolumesBuilder(intindex)A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
build()
publicTaskbuild()buildPartial()
publicTaskbuildPartial()clear()
publicTask.Builderclear()clearAnnotations()
publicTask.BuilderclearAnnotations()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];
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];
clearContainers()
publicTask.BuilderclearContainers()Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 14;
clearCreateTime()
publicTask.BuilderclearCreateTime()Output only. Represents time when the task was created by the job controller. 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];
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];
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) = { ... }
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];
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) = { ... }
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;
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];
clearField(Descriptors.FieldDescriptor field)
publicTask.BuilderclearField(Descriptors.FieldDescriptorfield)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];
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];
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) = { ... }
Task.Builder
This builder for chaining.
clearLabels()
publicTask.BuilderclearLabels()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];
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];
Task.Builder
This builder for chaining.
clearMaxRetries()
publicTask.BuilderclearMaxRetries()Number of retries allowed per Task, before marking this Task failed.
int32 max_retries = 16;
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];
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];
Task.Builder
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicTask.BuilderclearOneof(Descriptors.OneofDescriptoroneof)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];
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];
Task.Builder
This builder for chaining.
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;
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];
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;
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];
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];
clearVolumes()
publicTask.BuilderclearVolumes()A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
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];
clone()
publicTask.Builderclone()containsAnnotations(String key)
publicbooleancontainsAnnotations(Stringkey)KRM-style annotations for the resource.
map<string, string> annotations = 5;
containsLabels(String key)
publicbooleancontainsLabels(Stringkey)KRM-style labels for the resource. 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;
getAnnotations()
publicMap<String,String>getAnnotations()Use #getAnnotationsMap() instead.
getAnnotationsCount()
publicintgetAnnotationsCount()KRM-style annotations for the resource.
map<string, string> annotations = 5;
getAnnotationsMap()
publicMap<String,String>getAnnotationsMap()KRM-style annotations for the resource.
map<string, string> annotations = 5;
getAnnotationsOrDefault(String key, String defaultValue)
publicStringgetAnnotationsOrDefault(Stringkey,StringdefaultValue)KRM-style annotations for the resource.
map<string, string> annotations = 5;
getAnnotationsOrThrow(String key)
publicStringgetAnnotationsOrThrow(Stringkey)KRM-style annotations for the resource.
map<string, string> annotations = 5;
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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;
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;
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;
getContainersCount()
publicintgetContainersCount()Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 14;
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;
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;
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;
List<? extends com.google.cloud.run.v2.ContainerOrBuilder>
getCreateTime()
publicTimestampgetCreateTime()Output only. Represents time when the task was created by the job controller. 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];
Timestamp
The createTime.
getCreateTimeBuilder()
publicTimestamp.BuildergetCreateTimeBuilder()Output only. Represents time when the task was created by the job controller. 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];
getCreateTimeOrBuilder()
publicTimestampOrBuildergetCreateTimeOrBuilder()Output only. Represents time when the task was created by the job controller. 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];
getDefaultInstanceForType()
publicTaskgetDefaultInstanceForType()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];
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];
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];
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()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) = { ... }
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) = { ... }
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];
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];
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) = { ... }
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) = { ... }
ByteString
The bytes for execution.
getExecutionEnvironment()
publicExecutionEnvironmentgetExecutionEnvironment()The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;
ExecutionEnvironment
The executionEnvironment.
getExecutionEnvironmentValue()
publicintgetExecutionEnvironmentValue()The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;
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];
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];
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];
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];
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];
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) = { ... }
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) = { ... }
ByteString
The bytes for job.
getLabels()
publicMap<String,String>getLabels()Use #getLabelsMap() instead.
getLabelsCount()
publicintgetLabelsCount()KRM-style labels for the resource. 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;
getLabelsMap()
publicMap<String,String>getLabelsMap()KRM-style labels for the resource. 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;
getLabelsOrDefault(String key, String defaultValue)
publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)KRM-style labels for the resource. 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;
getLabelsOrThrow(String key)
publicStringgetLabelsOrThrow(Stringkey)KRM-style labels for the resource. 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;
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];
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];
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];
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];
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];
ByteString
The bytes for logUri.
getMaxRetries()
publicintgetMaxRetries()Number of retries allowed per Task, before marking this Task failed.
int32 max_retries = 16;
int
The maxRetries.
getMutableAnnotations()
publicMap<String,String>getMutableAnnotations()Use alternate mutation accessors instead.
getMutableLabels()
publicMap<String,String>getMutableLabels()Use alternate mutation accessors instead.
getName()
publicStringgetName()Output only. The unique name of this Task.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
String
The name.
getNameBytes()
publicByteStringgetNameBytes()Output only. The unique name of this Task.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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];
int
The retried.
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;
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;
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];
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];
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];
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;
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;
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;
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];
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];
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];
Timestamp
The updateTime.
getUpdateTimeBuilder()
publicTimestamp.BuildergetUpdateTimeBuilder()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder()
publicTimestampOrBuildergetUpdateTimeOrBuilder()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVolumes(int index)
publicVolumegetVolumes(intindex)A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
getVolumesBuilder(int index)
publicVolume.BuildergetVolumesBuilder(intindex)A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
getVolumesBuilderList()
publicList<Volume.Builder>getVolumesBuilderList()A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
getVolumesCount()
publicintgetVolumesCount()A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
getVolumesList()
publicList<Volume>getVolumesList()A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
getVolumesOrBuilder(int index)
publicVolumeOrBuildergetVolumesOrBuilder(intindex)A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
getVolumesOrBuilderList()
publicList<?extendsVolumeOrBuilder>getVolumesOrBuilderList()A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
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];
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];
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];
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];
boolean
Whether the completionTime field is set.
hasCreateTime()
publicbooleanhasCreateTime()Output only. Represents time when the task was created by the job controller. 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];
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];
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];
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];
boolean
Whether the lastAttemptResult 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];
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;
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];
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];
boolean
Whether the vpcAccess field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)internalGetMutableMapField(int number)
protectedMapFieldinternalGetMutableMapField(intnumber)isInitialized()
publicfinalbooleanisInitialized()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];
mergeCreateTime(Timestamp value)
publicTask.BuildermergeCreateTime(Timestampvalue)Output only. Represents time when the task was created by the job controller. 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];
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];
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];
mergeFrom(Task other)
publicTask.BuildermergeFrom(Taskother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicTask.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicTask.BuildermergeFrom(Messageother)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];
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];
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalTask.BuildermergeUnknownFields(UnknownFieldSetunknownFields)mergeUpdateTime(Timestamp value)
publicTask.BuildermergeUpdateTime(Timestampvalue)Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
putAllAnnotations(Map<String,String> values)
publicTask.BuilderputAllAnnotations(Map<String,String>values)KRM-style annotations for the resource.
map<string, string> annotations = 5;
putAllLabels(Map<String,String> values)
publicTask.BuilderputAllLabels(Map<String,String>values)KRM-style labels for the resource. 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;
putAnnotations(String key, String value)
publicTask.BuilderputAnnotations(Stringkey,Stringvalue)KRM-style annotations for the resource.
map<string, string> annotations = 5;
putLabels(String key, String value)
publicTask.BuilderputLabels(Stringkey,Stringvalue)KRM-style labels for the resource. 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;
removeAnnotations(String key)
publicTask.BuilderremoveAnnotations(Stringkey)KRM-style annotations for the resource.
map<string, string> annotations = 5;
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];
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;
removeLabels(String key)
publicTask.BuilderremoveLabels(Stringkey)KRM-style labels for the resource. 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;
removeVolumes(int index)
publicTask.BuilderremoveVolumes(intindex)A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;
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];
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];
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];
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];
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;
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;
setCreateTime(Timestamp value)
publicTask.BuildersetCreateTime(Timestampvalue)Output only. Represents time when the task was created by the job controller. 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];
setCreateTime(Timestamp.Builder builderForValue)
publicTask.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)Output only. Represents time when the task was created by the job controller. 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];
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];
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];
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) = { ... }
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) = { ... }
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];
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];
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) = { ... }
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) = { ... }
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;
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;
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
publicTask.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)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];
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];
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) = { ... }
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) = { ... }
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];
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];
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];
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];
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;
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];
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];
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];
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];
Task.Builder
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicTask.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)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];
Task.Builder
This builder for chaining.
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;
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;
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];
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];
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;
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;
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];
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];
Task.Builder
This builder for chaining.
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalTask.BuildersetUnknownFields(UnknownFieldSetunknownFields)setUpdateTime(Timestamp value)
publicTask.BuildersetUpdateTime(Timestampvalue)Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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;
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;
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];
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];