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| Modifier and Type | Class and Description |
|---|---|
static class |
Task.Builder
Task represents a single run of a container to completion.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Output only.
|
boolean |
containsLabels(String key)
Output only.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Output only.
|
Map<String,String> |
getAnnotationsMap()
Output only.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Output only.
|
String |
getAnnotationsOrThrow(String key)
Output only.
|
com.google.protobuf.Timestamp |
getCompletionTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCompletionTimeOrBuilder()
Output only.
|
Condition |
getConditions(int index)
Output only.
|
int |
getConditionsCount()
Output only.
|
List<Condition> |
getConditionsList()
Output only.
|
ConditionOrBuilder |
getConditionsOrBuilder(int index)
Output only.
|
List<? extends ConditionOrBuilder> |
getConditionsOrBuilderList()
Output only.
|
Container |
getContainers(int index)
Holds the single container that defines the unit of execution for this
task.
|
int |
getContainersCount()
Holds the single container that defines the unit of execution for this
task.
|
List<Container> |
getContainersList()
Holds the single container that defines the unit of execution for this
task.
|
ContainerOrBuilder |
getContainersOrBuilder(int index)
Holds the single container that defines the unit of execution for this
task.
|
List<? extends ContainerOrBuilder> |
getContainersOrBuilderList()
Holds the single container that defines the unit of execution for this
task.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Task |
getDefaultInstance() |
Task |
getDefaultInstanceForType() |
com.google.protobuf.Timestamp |
getDeleteTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getDeleteTimeOrBuilder()
Output only.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getEncryptionKey()
Output only.
|
com.google.protobuf.ByteString |
getEncryptionKeyBytes()
Output only.
|
String |
getEtag()
Output only.
|
com.google.protobuf.ByteString |
getEtagBytes()
Output only.
|
String |
getExecution()
Output only.
|
com.google.protobuf.ByteString |
getExecutionBytes()
Output only.
|
ExecutionEnvironment |
getExecutionEnvironment()
The execution environment being used to host this Task.
|
int |
getExecutionEnvironmentValue()
The execution environment being used to host this Task.
|
com.google.protobuf.Timestamp |
getExpireTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getExpireTimeOrBuilder()
Output only.
|
long |
getGeneration()
Output only.
|
int |
getIndex()
Output only.
|
String |
getJob()
Output only.
|
com.google.protobuf.ByteString |
getJobBytes()
Output only.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Output only.
|
Map<String,String> |
getLabelsMap()
Output only.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Output only.
|
String |
getLabelsOrThrow(String key)
Output only.
|
TaskAttemptResult |
getLastAttemptResult()
Output only.
|
TaskAttemptResultOrBuilder |
getLastAttemptResultOrBuilder()
Output only.
|
String |
getLogUri()
Output only.
|
com.google.protobuf.ByteString |
getLogUriBytes()
Output only.
|
int |
getMaxRetries()
Number of retries allowed per Task, before marking this Task failed.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
NodeSelector |
getNodeSelector()
Output only.
|
NodeSelectorOrBuilder |
getNodeSelectorOrBuilder()
Output only.
|
long |
getObservedGeneration()
Output only.
|
com.google.protobuf.Parser<Task> |
getParserForType() |
boolean |
getReconciling()
Output only.
|
int |
getRetried()
Output only.
|
boolean |
getSatisfiesPzs()
Output only.
|
com.google.protobuf.Timestamp |
getScheduledTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getScheduledTimeOrBuilder()
Output only.
|
int |
getSerializedSize() |
String |
getServiceAccount()
Email address of the IAM service account associated with the Task of a
Job.
|
com.google.protobuf.ByteString |
getServiceAccountBytes()
Email address of the IAM service account associated with the Task of a
Job.
|
com.google.protobuf.Timestamp |
getStartTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
Output only.
|
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.
|
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.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
Volume |
getVolumes(int index)
A list of Volumes to make available to containers.
|
int |
getVolumesCount()
A list of Volumes to make available to containers.
|
List<Volume> |
getVolumesList()
A list of Volumes to make available to containers.
|
VolumeOrBuilder |
getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.
|
List<? extends VolumeOrBuilder> |
getVolumesOrBuilderList()
A list of Volumes to make available to containers.
|
VpcAccess |
getVpcAccess()
Output only.
|
VpcAccessOrBuilder |
getVpcAccessOrBuilder()
Output only.
|
boolean |
hasCompletionTime()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasDeleteTime()
Output only.
|
boolean |
hasExpireTime()
Output only.
|
int |
hashCode() |
boolean |
hasLastAttemptResult()
Output only.
|
boolean |
hasNodeSelector()
Output only.
|
boolean |
hasScheduledTime()
Output only.
|
boolean |
hasStartTime()
Output only.
|
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.
|
boolean |
hasUpdateTime()
Output only.
|
boolean |
hasVpcAccess()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Task.Builder |
newBuilder() |
static Task.Builder |
newBuilder(Task prototype) |
Task.Builder |
newBuilderForType() |
protected Task.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Task |
parseDelimitedFrom(InputStream input) |
static Task |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(byte[] data) |
static Task |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(ByteBuffer data) |
static Task |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(com.google.protobuf.ByteString data) |
static Task |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Task |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Task |
parseFrom(InputStream input) |
static Task |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Task> |
parser() |
Task.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
public static final int GENERATION_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int SCHEDULED_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int COMPLETION_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
public static final int JOB_FIELD_NUMBER
public static final int EXECUTION_FIELD_NUMBER
public static final int CONTAINERS_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER
public static final int MAX_RETRIES_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER
public static final int RECONCILING_FIELD_NUMBER
public static final int CONDITIONS_FIELD_NUMBER
public static final int OBSERVED_GENERATION_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
public static final int RETRIED_FIELD_NUMBER
public static final int LAST_ATTEMPT_RESULT_FIELD_NUMBER
public static final int ENCRYPTION_KEY_FIELD_NUMBER
public static final int VPC_ACCESS_FIELD_NUMBER
public static final int LOG_URI_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
public static final int NODE_SELECTOR_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Output only. The unique name of this Task.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface TaskOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique name of this Task.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface TaskOrBuilderpublic 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];getUid in interface TaskOrBuilderpublic 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];getUidBytes in interface TaskOrBuilderpublic 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];getGeneration in interface TaskOrBuilderpublic int getLabelsCount()
TaskOrBuilderOutput 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];getLabelsCount in interface TaskOrBuilderpublic 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];containsLabels in interface TaskOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface TaskOrBuilderpublic 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];getLabelsMap in interface TaskOrBuilderpublic 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];getLabelsOrDefault in interface TaskOrBuilderpublic 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];getLabelsOrThrow in interface TaskOrBuilderpublic int getAnnotationsCount()
TaskOrBuilderOutput 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];
getAnnotationsCount in interface TaskOrBuilderpublic 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];
containsAnnotations in interface TaskOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface TaskOrBuilderpublic 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];
getAnnotationsMap in interface TaskOrBuilderpublic 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];
getAnnotationsOrDefault in interface TaskOrBuilderpublic 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];
getAnnotationsOrThrow in interface TaskOrBuilderpublic boolean hasCreateTime()
Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface TaskOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface TaskOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface TaskOrBuilderpublic boolean hasScheduledTime()
Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.
.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasScheduledTime in interface TaskOrBuilderpublic com.google.protobuf.Timestamp getScheduledTime()
Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.
.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
getScheduledTime in interface TaskOrBuilderpublic com.google.protobuf.TimestampOrBuilder getScheduledTimeOrBuilder()
Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.
.google.protobuf.Timestamp scheduled_time = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
getScheduledTimeOrBuilder in interface TaskOrBuilderpublic 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];
hasStartTime in interface TaskOrBuilderpublic 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];
getStartTime in interface TaskOrBuilderpublic 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];
getStartTimeOrBuilder in interface TaskOrBuilderpublic 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];
hasCompletionTime in interface TaskOrBuilderpublic 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];
getCompletionTime in interface TaskOrBuilderpublic 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];
getCompletionTimeOrBuilder in interface TaskOrBuilderpublic boolean hasUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface TaskOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface TaskOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface TaskOrBuilderpublic 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];
hasDeleteTime in interface TaskOrBuilderpublic 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];
getDeleteTime in interface TaskOrBuilderpublic 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];
getDeleteTimeOrBuilder in interface TaskOrBuilderpublic 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];
hasExpireTime in interface TaskOrBuilderpublic 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];
getExpireTime in interface TaskOrBuilderpublic 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];
getExpireTimeOrBuilder in interface TaskOrBuilderpublic String getJob()
Output only. The name of the parent Job.
string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getJob in interface TaskOrBuilderpublic 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) = { ... }
getJobBytes in interface TaskOrBuilderpublic String getExecution()
Output only. The name of the parent Execution.
string execution = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getExecution in interface TaskOrBuilderpublic 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) = { ... }
getExecutionBytes in interface TaskOrBuilderpublic List<Container> getContainersList()
Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 14;getContainersList in interface TaskOrBuilderpublic 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;getContainersOrBuilderList in interface TaskOrBuilderpublic int getContainersCount()
Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 14;getContainersCount in interface TaskOrBuilderpublic 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;getContainers in interface TaskOrBuilderpublic 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;getContainersOrBuilder in interface TaskOrBuilderpublic List<Volume> getVolumesList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;getVolumesList in interface TaskOrBuilderpublic List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;getVolumesOrBuilderList in interface TaskOrBuilderpublic int getVolumesCount()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;getVolumesCount in interface TaskOrBuilderpublic Volume getVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;getVolumes in interface TaskOrBuilderpublic VolumeOrBuilder getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 15;getVolumesOrBuilder in interface TaskOrBuilderpublic int getMaxRetries()
Number of retries allowed per Task, before marking this Task failed.
int32 max_retries = 16;getMaxRetries in interface TaskOrBuilderpublic 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;hasTimeout in interface TaskOrBuilderpublic 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;getTimeout in interface TaskOrBuilderpublic 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;getTimeoutOrBuilder in interface TaskOrBuilderpublic 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;getServiceAccount in interface TaskOrBuilderpublic 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;getServiceAccountBytes in interface TaskOrBuilderpublic int getExecutionEnvironmentValue()
The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;getExecutionEnvironmentValue in interface TaskOrBuilderpublic ExecutionEnvironment getExecutionEnvironment()
The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;getExecutionEnvironment in interface TaskOrBuilderpublic 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];getReconciling in interface TaskOrBuilderpublic 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];
getConditionsList in interface TaskOrBuilderpublic 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];
getConditionsOrBuilderList in interface TaskOrBuilderpublic 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];
getConditionsCount in interface TaskOrBuilderpublic 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];
getConditions in interface TaskOrBuilderpublic 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];
getConditionsOrBuilder in interface TaskOrBuilderpublic 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];getObservedGeneration in interface TaskOrBuilderpublic int getIndex()
Output only. Index of the Task, unique per execution, and beginning at 0.
int32 index = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];getIndex in interface TaskOrBuilderpublic 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];getRetried in interface TaskOrBuilderpublic 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];
hasLastAttemptResult in interface TaskOrBuilderpublic 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];
getLastAttemptResult in interface TaskOrBuilderpublic TaskAttemptResultOrBuilder getLastAttemptResultOrBuilder()
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 in interface TaskOrBuilderpublic 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) = { ... }
getEncryptionKey in interface TaskOrBuilderpublic 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) = { ... }
getEncryptionKeyBytes in interface TaskOrBuilderpublic 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];
hasVpcAccess in interface TaskOrBuilderpublic 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];
getVpcAccess in interface TaskOrBuilderpublic 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];
getVpcAccessOrBuilder in interface TaskOrBuilderpublic 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];getLogUri in interface TaskOrBuilderpublic 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];getLogUriBytes in interface TaskOrBuilderpublic boolean getSatisfiesPzs()
Output only. Reserved for future use.
bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];getSatisfiesPzs in interface TaskOrBuilderpublic boolean hasNodeSelector()
Output only. The node selector for the task.
.google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasNodeSelector in interface TaskOrBuilderpublic NodeSelector getNodeSelector()
Output only. The node selector for the task.
.google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodeSelector in interface TaskOrBuilderpublic NodeSelectorOrBuilder getNodeSelectorOrBuilder()
Output only. The node selector for the task.
.google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodeSelectorOrBuilder in interface TaskOrBuilderpublic 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];getEtag in interface TaskOrBuilderpublic 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];getEtagBytes in interface TaskOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Task parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Task parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Task parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Task parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Task parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Task parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Task parseFrom(InputStream input) throws IOException
IOExceptionpublic static Task parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Task parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Task parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Task parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Task parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Task.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Task.Builder newBuilder()
public static Task.Builder newBuilder(Task prototype)
public Task.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Task.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Task getDefaultInstance()
public static com.google.protobuf.Parser<Task> parser()
public com.google.protobuf.Parser<Task> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Task getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.