Class Execution.Builder (0.27.0)

public static final class Execution.Builder extends GeneratedMessageV3.Builder<Execution.Builder> 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

Implements

ExecutionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllConditions(Iterable<? extends Condition> values)

public Execution.Builder addAllConditions(Iterable<? extends Condition> values)

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
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.Condition>
Returns
TypeDescription
Execution.Builder

addConditions(Condition value)

public Execution.Builder addConditions(Condition value)

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
NameDescription
valueCondition
Returns
TypeDescription
Execution.Builder

addConditions(Condition.Builder builderForValue)

public Execution.Builder addConditions(Condition.Builder builderForValue)

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
NameDescription
builderForValueCondition.Builder
Returns
TypeDescription
Execution.Builder

addConditions(int index, Condition value)

public Execution.Builder addConditions(int index, Condition value)

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];

Parameters
NameDescription
indexint
valueCondition
Returns
TypeDescription
Execution.Builder

addConditions(int index, Condition.Builder builderForValue)

public Execution.Builder addConditions(int index, Condition.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueCondition.Builder
Returns
TypeDescription
Execution.Builder

addConditionsBuilder()

public Condition.Builder addConditionsBuilder()

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
TypeDescription
Condition.Builder

addConditionsBuilder(int index)

public Condition.Builder addConditionsBuilder(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
NameDescription
indexint
Returns
TypeDescription
Condition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Execution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Execution.Builder
Overrides

build()

public Execution build()
Returns
TypeDescription
Execution

buildPartial()

public Execution buildPartial()
Returns
TypeDescription
Execution

clear()

public Execution.Builder clear()
Returns
TypeDescription
Execution.Builder
Overrides

clearAnnotations()

public Execution.Builder clearAnnotations()
Returns
TypeDescription
Execution.Builder

clearCancelledCount()

public Execution.Builder clearCancelledCount()

Output only. The number of tasks which reached phase Cancelled.

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearCompletionTime()

public Execution.Builder clearCompletionTime()

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
TypeDescription
Execution.Builder

clearConditions()

public Execution.Builder clearConditions()

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
TypeDescription
Execution.Builder

clearCreateTime()

public Execution.Builder clearCreateTime()

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
TypeDescription
Execution.Builder

clearDeleteTime()

public Execution.Builder clearDeleteTime()

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
TypeDescription
Execution.Builder

clearEtag()

public Execution.Builder clearEtag()

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
TypeDescription
Execution.Builder

This builder for chaining.

clearExpireTime()

public Execution.Builder clearExpireTime()

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
TypeDescription
Execution.Builder

clearFailedCount()

public Execution.Builder clearFailedCount()

Output only. The number of tasks which reached phase Failed.

int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Execution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Execution.Builder
Overrides

clearGeneration()

public Execution.Builder clearGeneration()

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
TypeDescription
Execution.Builder

This builder for chaining.

clearJob()

public Execution.Builder clearJob()

Output only. The name of the parent Job.

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearLabels()

public Execution.Builder clearLabels()
Returns
TypeDescription
Execution.Builder

clearLaunchStage()

public Execution.Builder clearLaunchStage()

The least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. <p>Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.

.google.api.LaunchStage launch_stage = 11;

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearLogUri()

public Execution.Builder clearLogUri()

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

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearName()

public Execution.Builder clearName()

Output only. The unique name of this Execution.

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearObservedGeneration()

public Execution.Builder clearObservedGeneration()

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
TypeDescription
Execution.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Execution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Execution.Builder
Overrides

clearParallelism()

public Execution.Builder clearParallelism()

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.

int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearReconciling()

public Execution.Builder clearReconciling()

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
TypeDescription
Execution.Builder

This builder for chaining.

clearRetriedCount()

public Execution.Builder clearRetriedCount()

Output only. The number of tasks which have retried at least once.

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearRunningCount()

public Execution.Builder clearRunningCount()

Output only. The number of actively running tasks.

int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearSatisfiesPzs()

public Execution.Builder clearSatisfiesPzs()

Output only. Reserved for future use.

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearStartTime()

public Execution.Builder clearStartTime()

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
TypeDescription
Execution.Builder

clearSucceededCount()

public Execution.Builder clearSucceededCount()

Output only. The number of tasks which reached phase Succeeded.

int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearTaskCount()

public Execution.Builder clearTaskCount()

Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.

int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Execution.Builder

This builder for chaining.

clearTemplate()

public Execution.Builder clearTemplate()

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
TypeDescription
Execution.Builder

clearUid()

public Execution.Builder clearUid()

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
TypeDescription
Execution.Builder

This builder for chaining.

clearUpdateTime()

public Execution.Builder clearUpdateTime()

Output only. The last-modified time.

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

Returns
TypeDescription
Execution.Builder

clone()

public Execution.Builder clone()
Returns
TypeDescription
Execution.Builder
Overrides

containsAnnotations(String key)

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];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

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];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

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

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

Returns
TypeDescription
int

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];

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

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];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

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];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getCancelledCount()

public int getCancelledCount()

Output only. The number of tasks which reached phase Cancelled.

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

Returns
TypeDescription
int

The cancelledCount.

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
TypeDescription
Timestamp

The completionTime.

getCompletionTimeBuilder()

public Timestamp.Builder getCompletionTimeBuilder()

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
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

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
NameDescription
indexint
Returns
TypeDescription
Condition

getConditionsBuilder(int index)

public Condition.Builder getConditionsBuilder(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
NameDescription
indexint
Returns
TypeDescription
Condition.Builder

getConditionsBuilderList()

public List<Condition.Builder> getConditionsBuilderList()

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
TypeDescription
List<Builder>

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
TypeDescription
int

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
TypeDescription
List<Condition>

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
NameDescription
indexint
Returns
TypeDescription
ConditionOrBuilder

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
TypeDescription
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
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Execution getDefaultInstanceForType()
Returns
TypeDescription
Execution

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
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

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
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

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
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

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
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

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
TypeDescription
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
TypeDescription
long

The generation.

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) = { ... }

Returns
TypeDescription
String

The job.

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
TypeDescription
ByteString

The bytes for job.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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

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

Returns
TypeDescription
int

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];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

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];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

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];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLaunchStage()

public LaunchStage getLaunchStage()

The least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. <p>Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.

.google.api.LaunchStage launch_stage = 11;

Returns
TypeDescription
com.google.api.LaunchStage

The launchStage.

getLaunchStageValue()

public int getLaunchStageValue()

The least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. <p>Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.

.google.api.LaunchStage launch_stage = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for launchStage.

getLogUri()

public String getLogUri()

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

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

Returns
TypeDescription
String

The logUri.

getLogUriBytes()

public ByteString getLogUriBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for logUri.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The unique name of this Execution.

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

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

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
TypeDescription
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.

int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The parallelism.

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
TypeDescription
boolean

The reconciling.

getRetriedCount()

public int getRetriedCount()

Output only. The number of tasks which have retried at least once.

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

Returns
TypeDescription
int

The retriedCount.

getRunningCount()

public int getRunningCount()

Output only. The number of actively running tasks.

int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The runningCount.

getSatisfiesPzs()

public boolean getSatisfiesPzs()

Output only. Reserved for future use.

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

Returns
TypeDescription
boolean

The satisfiesPzs.

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
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

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
TypeDescription
Builder

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
TypeDescription
TimestampOrBuilder

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
TypeDescription
int

The succeededCount.

getTaskCount()

public int getTaskCount()

Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.

int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
TaskTemplate

The template.

getTemplateBuilder()

public TaskTemplate.Builder getTemplateBuilder()

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
TypeDescription
TaskTemplate.Builder

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
TypeDescription
TaskTemplateOrBuilder

getUid()

public String 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
TypeDescription
String

The uid.

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
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last-modified time.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last-modified time.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last-modified time.

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

Returns
TypeDescription
TimestampOrBuilder

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCompletionTime(Timestamp value)

public Execution.Builder mergeCompletionTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

mergeCreateTime(Timestamp value)

public Execution.Builder mergeCreateTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

mergeDeleteTime(Timestamp value)

public Execution.Builder mergeDeleteTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

mergeExpireTime(Timestamp value)

public Execution.Builder mergeExpireTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

mergeFrom(Execution other)

public Execution.Builder mergeFrom(Execution other)
Parameter
NameDescription
otherExecution
Returns
TypeDescription
Execution.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Execution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Execution.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Execution.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Execution.Builder
Overrides

mergeStartTime(Timestamp value)

public Execution.Builder mergeStartTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

mergeTemplate(TaskTemplate value)

public Execution.Builder mergeTemplate(TaskTemplate value)

Output only. The template used to create tasks for this execution.

.google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTaskTemplate
Returns
TypeDescription
Execution.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Execution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Execution.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Execution.Builder mergeUpdateTime(Timestamp value)

Output only. The last-modified time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

putAllAnnotations(Map<String,String> values)

public Execution.Builder putAllAnnotations(Map<String,String> values)

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

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

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Execution.Builder

putAllLabels(Map<String,String> values)

public Execution.Builder putAllLabels(Map<String,String> values)

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

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

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Execution.Builder

putAnnotations(String key, String value)

public Execution.Builder putAnnotations(String key, String value)

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

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

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Execution.Builder

putLabels(String key, String value)

public Execution.Builder putLabels(String key, String value)

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

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

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Execution.Builder

removeAnnotations(String key)

public Execution.Builder removeAnnotations(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];

Parameter
NameDescription
keyString
Returns
TypeDescription
Execution.Builder

removeConditions(int index)

public Execution.Builder removeConditions(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
NameDescription
indexint
Returns
TypeDescription
Execution.Builder

removeLabels(String key)

public Execution.Builder removeLabels(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];

Parameter
NameDescription
keyString
Returns
TypeDescription
Execution.Builder

setCancelledCount(int value)

public Execution.Builder setCancelledCount(int value)

Output only. The number of tasks which reached phase Cancelled.

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

Parameter
NameDescription
valueint

The cancelledCount to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setCompletionTime(Timestamp value)

public Execution.Builder setCompletionTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setCompletionTime(Timestamp.Builder builderForValue)

public Execution.Builder setCompletionTime(Timestamp.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder

setConditions(int index, Condition value)

public Execution.Builder setConditions(int index, Condition value)

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];

Parameters
NameDescription
indexint
valueCondition
Returns
TypeDescription
Execution.Builder

setConditions(int index, Condition.Builder builderForValue)

public Execution.Builder setConditions(int index, Condition.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueCondition.Builder
Returns
TypeDescription
Execution.Builder

setCreateTime(Timestamp value)

public Execution.Builder setCreateTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Execution.Builder setCreateTime(Timestamp.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder

setDeleteTime(Timestamp value)

public Execution.Builder setDeleteTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Execution.Builder setDeleteTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder

setEtag(String value)

public Execution.Builder setEtag(String value)

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

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

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Execution.Builder setEtagBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public Execution.Builder setExpireTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setExpireTime(Timestamp.Builder builderForValue)

public Execution.Builder setExpireTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder

setFailedCount(int value)

public Execution.Builder setFailedCount(int value)

Output only. The number of tasks which reached phase Failed.

int32 failed_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The failedCount to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Execution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Execution.Builder
Overrides

setGeneration(long value)

public Execution.Builder setGeneration(long value)

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

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

Parameter
NameDescription
valuelong

The generation to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setJob(String value)

public Execution.Builder setJob(String value)

Output only. The name of the parent Job.

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

Parameter
NameDescription
valueString

The job to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setJobBytes(ByteString value)

public Execution.Builder setJobBytes(ByteString value)

Output only. The name of the parent Job.

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

Parameter
NameDescription
valueByteString

The bytes for job to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setLaunchStage(LaunchStage value)

public Execution.Builder setLaunchStage(LaunchStage value)

The least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. <p>Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.

.google.api.LaunchStage launch_stage = 11;

Parameter
NameDescription
valuecom.google.api.LaunchStage

The launchStage to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setLaunchStageValue(int value)

public Execution.Builder setLaunchStageValue(int value)

The least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. <p>Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are were, this field will be BETA.

.google.api.LaunchStage launch_stage = 11;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setLogUri(String value)

public Execution.Builder setLogUri(String value)

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

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

Parameter
NameDescription
valueString

The logUri to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setLogUriBytes(ByteString value)

public Execution.Builder setLogUriBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for logUri to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setName(String value)

public Execution.Builder setName(String value)

Output only. The unique name of this Execution.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Execution.Builder setNameBytes(ByteString value)

Output only. The unique name of this Execution.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setObservedGeneration(long value)

public Execution.Builder setObservedGeneration(long value)

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];

Parameter
NameDescription
valuelong

The observedGeneration to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setParallelism(int value)

public Execution.Builder setParallelism(int value)

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.

int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The parallelism to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setReconciling(boolean value)

public Execution.Builder setReconciling(boolean value)

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];

Parameter
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

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

public Execution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Execution.Builder
Overrides

setRetriedCount(int value)

public Execution.Builder setRetriedCount(int value)

Output only. The number of tasks which have retried at least once.

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

Parameter
NameDescription
valueint

The retriedCount to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setRunningCount(int value)

public Execution.Builder setRunningCount(int value)

Output only. The number of actively running tasks.

int32 running_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The runningCount to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setSatisfiesPzs(boolean value)

public Execution.Builder setSatisfiesPzs(boolean value)

Output only. Reserved for future use.

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

Parameter
NameDescription
valueboolean

The satisfiesPzs to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setStartTime(Timestamp value)

public Execution.Builder setStartTime(Timestamp value)

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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setStartTime(Timestamp.Builder builderForValue)

public Execution.Builder setStartTime(Timestamp.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder

setSucceededCount(int value)

public Execution.Builder setSucceededCount(int value)

Output only. The number of tasks which reached phase Succeeded.

int32 succeeded_count = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The succeededCount to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setTaskCount(int value)

public Execution.Builder setTaskCount(int value)

Output only. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution.

int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The taskCount to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setTemplate(TaskTemplate value)

public Execution.Builder setTemplate(TaskTemplate value)

Output only. The template used to create tasks for this execution.

.google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTaskTemplate
Returns
TypeDescription
Execution.Builder

setTemplate(TaskTemplate.Builder builderForValue)

public Execution.Builder setTemplate(TaskTemplate.Builder builderForValue)

Output only. The template used to create tasks for this execution.

.google.cloud.run.v2.TaskTemplate template = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueTaskTemplate.Builder
Returns
TypeDescription
Execution.Builder

setUid(String value)

public Execution.Builder setUid(String value)

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];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Execution.Builder setUidBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Execution.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Execution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Execution.Builder
Overrides

setUpdateTime(Timestamp value)

public Execution.Builder setUpdateTime(Timestamp value)

Output only. The last-modified time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Execution.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Execution.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last-modified time.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Execution.Builder