public final class Execution extends GeneratedMessageV3 implements ExecutionOrBuilder
Execution represents the configuration of a single execution. A execution an
immutable resource that references a container image which is run to
completion.
Protobuf type google.cloud.run.v2.Execution
Static Fields
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
COMPLETION_TIME_FIELD_NUMBER
public static final int COMPLETION_TIME_FIELD_NUMBER
Field Value
CONDITIONS_FIELD_NUMBER
public static final int CONDITIONS_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
Field Value
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value
EXPIRE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
FAILED_COUNT_FIELD_NUMBER
public static final int FAILED_COUNT_FIELD_NUMBER
Field Value
GENERATION_FIELD_NUMBER
public static final int GENERATION_FIELD_NUMBER
Field Value
JOB_FIELD_NUMBER
public static final int JOB_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
LAUNCH_STAGE_FIELD_NUMBER
public static final int LAUNCH_STAGE_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
OBSERVED_GENERATION_FIELD_NUMBER
public static final int OBSERVED_GENERATION_FIELD_NUMBER
Field Value
PARALLELISM_FIELD_NUMBER
public static final int PARALLELISM_FIELD_NUMBER
Field Value
RECONCILING_FIELD_NUMBER
public static final int RECONCILING_FIELD_NUMBER
Field Value
RUNNING_COUNT_FIELD_NUMBER
public static final int RUNNING_COUNT_FIELD_NUMBER
Field Value
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
Field Value
SUCCEEDED_COUNT_FIELD_NUMBER
public static final int SUCCEEDED_COUNT_FIELD_NUMBER
Field Value
TASK_COUNT_FIELD_NUMBER
public static final int TASK_COUNT_FIELD_NUMBER
Field Value
TEMPLATE_FIELD_NUMBER
public static final int TEMPLATE_FIELD_NUMBER
Field Value
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Execution getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Execution.Builder newBuilder()
Returns
newBuilder(Execution prototype)
public static Execution.Builder newBuilder(Execution prototype)
Parameter
Returns
public static Execution parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Execution parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Execution parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Execution parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Execution parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Execution parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Execution parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Execution parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Execution parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Execution parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Execution parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Execution parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Execution> parser()
Returns
Methods
containsAnnotations(String key)
public boolean containsAnnotations(String key)
KRM-style annotations for the resource.
map<string, string> annotations = 5;
Parameter
Returns
containsLabels(String key)
public boolean containsLabels(String key)
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAnnotations()
public Map<String,String> getAnnotations()
Returns
getAnnotationsCount()
public int getAnnotationsCount()
KRM-style annotations for the resource.
map<string, string> annotations = 5;
Returns
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
KRM-style annotations for the resource.
map<string, string> annotations = 5;
Returns
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
KRM-style annotations for the resource.
map<string, string> annotations = 5;
Parameters
Returns
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
KRM-style annotations for the resource.
map<string, string> annotations = 5;
Parameter
Returns
getCompletionTime()
public Timestamp getCompletionTime()
Output only. Represents time when the execution was completed. It is not guaranteed to
be set in happens-before order across separate operations.
.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCompletionTimeOrBuilder()
public TimestampOrBuilder getCompletionTimeOrBuilder()
Output only. Represents time when the execution was completed. It is not guaranteed to
be set in happens-before order across separate operations.
.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getConditions(int index)
public Condition getConditions(int index)
Output only. The Condition of this Execution, containing its readiness status, and
detailed error information in case it did not reach the desired state.
repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getConditionsCount()
public int getConditionsCount()
Output only. The Condition of this Execution, containing its readiness status, and
detailed error information in case it did not reach the desired state.
repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getConditionsList()
public List<Condition> getConditionsList()
Output only. The Condition of this Execution, containing its readiness status, and
detailed error information in case it did not reach the desired state.
repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getConditionsOrBuilder(int index)
public ConditionOrBuilder getConditionsOrBuilder(int index)
Output only. The Condition of this Execution, containing its readiness status, and
detailed error information in case it did not reach the desired state.
repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getConditionsOrBuilderList()
public List<? extends ConditionOrBuilder> getConditionsOrBuilderList()
Output only. The Condition of this Execution, containing its readiness status, and
detailed error information in case it did not reach the desired state.
repeated .google.cloud.run.v2.Condition conditions = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.run.v2.ConditionOrBuilder> | |
getCreateTime()
public Timestamp getCreateTime()
Output only. Represents time when the execution was acknowledged by the execution
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];
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Represents time when the execution was acknowledged by the execution
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];
Returns
getDefaultInstanceForType()
public Execution getDefaultInstanceForType()
Returns
getDeleteTime()
public 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];
Returns
getDeleteTimeOrBuilder()
public 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];
Returns
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];
Returns
Type | Description |
String | The etag.
|
getEtagBytes()
public 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];
Returns
getExpireTime()
public 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];
Returns
getExpireTimeOrBuilder()
public 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];
Returns
getFailedCount()
public int getFailedCount()
Output only. The number of tasks which reached phase Failed.
int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The failedCount.
|
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];
Returns
Type | Description |
long | The generation.
|
getJob()
Output only. The name of the parent Job.
string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
getJobBytes()
public ByteString getJobBytes()
Output only. The name of the parent Job.
string job = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Parameter
Returns
getLaunchStage()
public LaunchStage getLaunchStage()
Set the launch stage to a preview stage on write to allow use of preview
features in that stage. On read, describes whether the resource uses
preview features. Launch Stages are defined at Google Cloud Platform
Launch Stages.
.google.api.LaunchStage launch_stage = 11;
Returns
Type | Description |
com.google.api.LaunchStage | The launchStage.
|
getLaunchStageValue()
public int getLaunchStageValue()
Set the launch stage to a preview stage on write to allow use of preview
features in that stage. On read, describes whether the resource uses
preview features. Launch Stages are defined at Google Cloud Platform
Launch Stages.
.google.api.LaunchStage launch_stage = 11;
Returns
Type | Description |
int | The enum numeric value on the wire for launchStage.
|
getName()
Output only. The unique name of this Execution.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. The unique name of this Execution.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getObservedGeneration()
public long getObservedGeneration()
Output only. The generation of this Execution. See comments in reconciling
for
additional information on reconciliation process in Cloud Run.
int64 observed_generation = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
long | The observedGeneration.
|
getParallelism()
public int getParallelism()
Output only. Specifies the maximum desired number of tasks the execution should
run at any given time. Must be <= task_count. The actual number of
tasks running in steady state will be less than this number when
((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
the work left to do is less than max parallelism. More info:
https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The parallelism.
|
getParserForType()
public Parser<Execution> getParserForType()
Returns
Overrides
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 = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | The reconciling.
|
getRunningCount()
public int getRunningCount()
Output only. The number of actively running tasks.
int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The runningCount.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStartTime()
public Timestamp getStartTime()
Output only. Represents time when the execution started to run.
It is not guaranteed to be set in happens-before order across separate
operations.
.google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. Represents time when the execution started to run.
It is not guaranteed to be set in happens-before order across separate
operations.
.google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getSucceededCount()
public int getSucceededCount()
Output only. The number of tasks which reached phase Succeeded.
int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The succeededCount.
|
getTaskCount()
public int getTaskCount()
Returns
Type | Description |
int | The taskCount.
|
getTemplate()
public TaskTemplate getTemplate()
Output only. The template used to create tasks for this execution.
.google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getTemplateOrBuilder()
public TaskTemplateOrBuilder getTemplateOrBuilder()
Output only. The template used to create tasks for this execution.
.google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUid()
Output only. Server assigned unique identifier for the Execution. The value is a UUID4
string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUidBytes()
public ByteString getUidBytes()
Output only. Server assigned unique identifier for the Execution. The value is a UUID4
string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
hasCompletionTime()
public boolean hasCompletionTime()
Output only. Represents time when the execution was completed. It is not guaranteed to
be set in happens-before order across separate operations.
.google.protobuf.Timestamp completion_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the completionTime field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Represents time when the execution was acknowledged by the execution
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];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
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];
Returns
Type | Description |
boolean | Whether the deleteTime field is set.
|
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];
Returns
Type | Description |
boolean | Whether the expireTime field is set.
|
hasStartTime()
public boolean hasStartTime()
Output only. Represents time when the execution started to run.
It is not guaranteed to be set in happens-before order across separate
operations.
.google.protobuf.Timestamp start_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the startTime field is set.
|
hasTemplate()
public boolean hasTemplate()
Output only. The template used to create tasks for this execution.
.google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the template field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Execution.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Execution.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Execution.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions