Class Task

  • All Implemented Interfaces:
    TaskOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Task
    extends com.google.protobuf.GeneratedMessageV3
    implements TaskOrBuilder
     Task represents a single run of a container to completion.
     
    Protobuf type google.cloud.run.v2.Task
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Output only. The unique name of this Task.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface TaskOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The unique name of this Task.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface TaskOrBuilder
        Returns:
        The bytes for name.
      • getUid

        public String getUid()
         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];
        Specified by:
        getUid in interface TaskOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         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];
        Specified by:
        getUidBytes in interface TaskOrBuilder
        Returns:
        The bytes for uid.
      • getGeneration

        public long getGeneration()
         Output only. A number that monotonically increases every time the user
         modifies the desired state.
         
        int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGeneration in interface TaskOrBuilder
        Returns:
        The generation.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: TaskOrBuilder
         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];
        Specified by:
        getLabelsCount in interface TaskOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         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];
        Specified by:
        containsLabels in interface TaskOrBuilder
      • getLabelsMap

        public Map<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];
        Specified by:
        getLabelsMap in interface TaskOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         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];
        Specified by:
        getLabelsOrDefault in interface TaskOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         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];
        Specified by:
        getLabelsOrThrow in interface TaskOrBuilder
      • getAnnotationsCount

        public int getAnnotationsCount()
        Description copied from interface: TaskOrBuilder
         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];
        Specified by:
        getAnnotationsCount in interface TaskOrBuilder
      • containsAnnotations

        public boolean containsAnnotations​(String key)
         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];
        Specified by:
        containsAnnotations in interface TaskOrBuilder
      • getAnnotationsMap

        public Map<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];
        Specified by:
        getAnnotationsMap in interface TaskOrBuilder
      • getAnnotationsOrDefault

        public String getAnnotationsOrDefault​(String key,
                                              String defaultValue)
         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];
        Specified by:
        getAnnotationsOrDefault in interface TaskOrBuilder
      • getAnnotationsOrThrow

        public String getAnnotationsOrThrow​(String key)
         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];
        Specified by:
        getAnnotationsOrThrow in interface TaskOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         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];
        Specified by:
        hasCreateTime in interface TaskOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         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];
        Specified by:
        getCreateTime in interface TaskOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         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];
        Specified by:
        getCreateTimeOrBuilder in interface TaskOrBuilder
      • hasStartTime

        public boolean hasStartTime()
         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];
        Specified by:
        hasStartTime in interface TaskOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         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];
        Specified by:
        getStartTime in interface TaskOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         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];
        Specified by:
        getStartTimeOrBuilder in interface TaskOrBuilder
      • hasCompletionTime

        public boolean hasCompletionTime()
         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];
        Specified by:
        hasCompletionTime in interface TaskOrBuilder
        Returns:
        Whether the completionTime field is set.
      • getCompletionTime

        public com.google.protobuf.Timestamp getCompletionTime()
         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];
        Specified by:
        getCompletionTime in interface TaskOrBuilder
        Returns:
        The completionTime.
      • getCompletionTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCompletionTimeOrBuilder()
         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];
        Specified by:
        getCompletionTimeOrBuilder in interface TaskOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last-modified time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface TaskOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last-modified time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface TaskOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last-modified time.
         
        .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface TaskOrBuilder
      • hasDeleteTime

        public boolean hasDeleteTime()
         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];
        Specified by:
        hasDeleteTime in interface TaskOrBuilder
        Returns:
        Whether the deleteTime field is set.
      • getDeleteTime

        public com.google.protobuf.Timestamp getDeleteTime()
         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];
        Specified by:
        getDeleteTime in interface TaskOrBuilder
        Returns:
        The deleteTime.
      • getDeleteTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
         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];
        Specified by:
        getDeleteTimeOrBuilder in interface TaskOrBuilder
      • hasExpireTime

        public boolean hasExpireTime()
         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];
        Specified by:
        hasExpireTime in interface TaskOrBuilder
        Returns:
        Whether the expireTime field is set.
      • getExpireTime

        public com.google.protobuf.Timestamp getExpireTime()
         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];
        Specified by:
        getExpireTime in interface TaskOrBuilder
        Returns:
        The expireTime.
      • getExpireTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
         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];
        Specified by:
        getExpireTimeOrBuilder in interface TaskOrBuilder
      • getJob

        public String getJob()
         Output only. The name of the parent Job.
         
        string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getJob in interface TaskOrBuilder
        Returns:
        The job.
      • getJobBytes

        public com.google.protobuf.ByteString getJobBytes()
         Output only. The name of the parent Job.
         
        string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getJobBytes in interface TaskOrBuilder
        Returns:
        The bytes for job.
      • getExecution

        public String getExecution()
         Output only. The name of the parent Execution.
         
        string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getExecution in interface TaskOrBuilder
        Returns:
        The execution.
      • getExecutionBytes

        public com.google.protobuf.ByteString getExecutionBytes()
         Output only. The name of the parent Execution.
         
        string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getExecutionBytes in interface TaskOrBuilder
        Returns:
        The bytes for execution.
      • getContainersList

        public List<Container> getContainersList()
         Holds the single container that defines the unit of execution for this
         task.
         
        repeated .google.cloud.run.v2.Container containers = 14;
        Specified by:
        getContainersList in interface TaskOrBuilder
      • getContainersOrBuilderList

        public List<? extends ContainerOrBuilder> getContainersOrBuilderList()
         Holds the single container that defines the unit of execution for this
         task.
         
        repeated .google.cloud.run.v2.Container containers = 14;
        Specified by:
        getContainersOrBuilderList in interface TaskOrBuilder
      • getContainersCount

        public int getContainersCount()
         Holds the single container that defines the unit of execution for this
         task.
         
        repeated .google.cloud.run.v2.Container containers = 14;
        Specified by:
        getContainersCount in interface TaskOrBuilder
      • getContainers

        public Container getContainers​(int index)
         Holds the single container that defines the unit of execution for this
         task.
         
        repeated .google.cloud.run.v2.Container containers = 14;
        Specified by:
        getContainers in interface TaskOrBuilder
      • getContainersOrBuilder

        public ContainerOrBuilder getContainersOrBuilder​(int index)
         Holds the single container that defines the unit of execution for this
         task.
         
        repeated .google.cloud.run.v2.Container containers = 14;
        Specified by:
        getContainersOrBuilder in interface TaskOrBuilder
      • getVolumesList

        public List<Volume> getVolumesList()
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 15;
        Specified by:
        getVolumesList in interface TaskOrBuilder
      • getVolumesCount

        public int getVolumesCount()
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 15;
        Specified by:
        getVolumesCount in interface TaskOrBuilder
      • getVolumes

        public Volume getVolumes​(int index)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 15;
        Specified by:
        getVolumes in interface TaskOrBuilder
      • getVolumesOrBuilder

        public VolumeOrBuilder getVolumesOrBuilder​(int index)
         A list of Volumes to make available to containers.
         
        repeated .google.cloud.run.v2.Volume volumes = 15;
        Specified by:
        getVolumesOrBuilder in interface TaskOrBuilder
      • getMaxRetries

        public int getMaxRetries()
         Number of retries allowed per Task, before marking this Task failed.
         
        int32 max_retries = 16;
        Specified by:
        getMaxRetries in interface TaskOrBuilder
        Returns:
        The maxRetries.
      • hasTimeout

        public boolean hasTimeout()
         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;
        Specified by:
        hasTimeout in interface TaskOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         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;
        Specified by:
        getTimeout in interface TaskOrBuilder
        Returns:
        The timeout.
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         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;
        Specified by:
        getTimeoutOrBuilder in interface TaskOrBuilder
      • getServiceAccount

        public String getServiceAccount()
         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;
        Specified by:
        getServiceAccount in interface TaskOrBuilder
        Returns:
        The serviceAccount.
      • getServiceAccountBytes

        public com.google.protobuf.ByteString getServiceAccountBytes()
         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;
        Specified by:
        getServiceAccountBytes in interface TaskOrBuilder
        Returns:
        The bytes for serviceAccount.
      • getExecutionEnvironmentValue

        public int getExecutionEnvironmentValue()
         The execution environment being used to host this Task.
         
        .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;
        Specified by:
        getExecutionEnvironmentValue in interface TaskOrBuilder
        Returns:
        The enum numeric value on the wire for executionEnvironment.
      • getExecutionEnvironment

        public ExecutionEnvironment getExecutionEnvironment()
         The execution environment being used to host this Task.
         
        .google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;
        Specified by:
        getExecutionEnvironment in interface TaskOrBuilder
        Returns:
        The executionEnvironment.
      • getReconciling

        public boolean getReconciling()
         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];
        Specified by:
        getReconciling in interface TaskOrBuilder
        Returns:
        The reconciling.
      • getConditionsList

        public List<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];
        Specified by:
        getConditionsList in interface TaskOrBuilder
      • getConditionsOrBuilderList

        public List<? extends ConditionOrBuilder> 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];
        Specified by:
        getConditionsOrBuilderList in interface TaskOrBuilder
      • getConditionsCount

        public int getConditionsCount()
         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];
        Specified by:
        getConditionsCount in interface TaskOrBuilder
      • getConditions

        public Condition getConditions​(int index)
         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];
        Specified by:
        getConditions in interface TaskOrBuilder
      • getConditionsOrBuilder

        public ConditionOrBuilder getConditionsOrBuilder​(int index)
         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];
        Specified by:
        getConditionsOrBuilder in interface TaskOrBuilder
      • getObservedGeneration

        public long getObservedGeneration()
         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];
        Specified by:
        getObservedGeneration in interface TaskOrBuilder
        Returns:
        The observedGeneration.
      • getIndex

        public int getIndex()
         Output only. Index of the Task, unique per execution, and beginning at 0.
         
        int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIndex in interface TaskOrBuilder
        Returns:
        The index.
      • getRetried

        public int getRetried()
         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];
        Specified by:
        getRetried in interface TaskOrBuilder
        Returns:
        The retried.
      • hasLastAttemptResult

        public boolean hasLastAttemptResult()
         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];
        Specified by:
        hasLastAttemptResult in interface TaskOrBuilder
        Returns:
        Whether the lastAttemptResult field is set.
      • getLastAttemptResult

        public TaskAttemptResult getLastAttemptResult()
         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];
        Specified by:
        getLastAttemptResult in interface TaskOrBuilder
        Returns:
        The lastAttemptResult.
      • getEncryptionKey

        public String getEncryptionKey()
         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) = { ... }
        Specified by:
        getEncryptionKey in interface TaskOrBuilder
        Returns:
        The encryptionKey.
      • getEncryptionKeyBytes

        public com.google.protobuf.ByteString getEncryptionKeyBytes()
         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) = { ... }
        Specified by:
        getEncryptionKeyBytes in interface TaskOrBuilder
        Returns:
        The bytes for encryptionKey.
      • hasVpcAccess

        public boolean hasVpcAccess()
         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];
        Specified by:
        hasVpcAccess in interface TaskOrBuilder
        Returns:
        Whether the vpcAccess field is set.
      • getVpcAccess

        public VpcAccess getVpcAccess()
         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];
        Specified by:
        getVpcAccess in interface TaskOrBuilder
        Returns:
        The vpcAccess.
      • getVpcAccessOrBuilder

        public VpcAccessOrBuilder getVpcAccessOrBuilder()
         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];
        Specified by:
        getVpcAccessOrBuilder in interface TaskOrBuilder
      • getLogUri

        public String getLogUri()
         Output only. URI where logs for this execution can be found in Cloud
         Console.
         
        string log_uri = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLogUri in interface TaskOrBuilder
        Returns:
        The logUri.
      • getLogUriBytes

        public com.google.protobuf.ByteString getLogUriBytes()
         Output only. URI where logs for this execution can be found in Cloud
         Console.
         
        string log_uri = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLogUriBytes in interface TaskOrBuilder
        Returns:
        The bytes for logUri.
      • getSatisfiesPzs

        public boolean getSatisfiesPzs()
         Output only. Reserved for future use.
         
        bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSatisfiesPzs in interface TaskOrBuilder
        Returns:
        The satisfiesPzs.
      • getEtag

        public String getEtag()
         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];
        Specified by:
        getEtag in interface TaskOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         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];
        Specified by:
        getEtagBytes in interface TaskOrBuilder
        Returns:
        The bytes for etag.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Task parseFrom​(ByteBuffer data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Task parseFrom​(ByteBuffer data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Task parseFrom​(com.google.protobuf.ByteString data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Task parseFrom​(com.google.protobuf.ByteString data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Task parseFrom​(byte[] data)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Task parseFrom​(byte[] data,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Task parseFrom​(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                              throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Task.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Task.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Task.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Task getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Task> parser()
      • getParserForType

        public com.google.protobuf.Parser<Task> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Task getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder