Class RunJobRequest.Overrides.Builder (0.55.0)

public static final class RunJobRequest.Overrides.Builder extends GeneratedMessageV3.Builder<RunJobRequest.Overrides.Builder> implements RunJobRequest.OverridesOrBuilder

RunJob Overrides that contains Execution fields to be overridden.

Protobuf type google.cloud.run.v2.RunJobRequest.Overrides

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllContainerOverrides(Iterable<? extends RunJobRequest.Overrides.ContainerOverride> values)

public RunJobRequest.Overrides.Builder addAllContainerOverrides(Iterable<? extends RunJobRequest.Overrides.ContainerOverride> values)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride>
Returns
Type Description
RunJobRequest.Overrides.Builder

addContainerOverrides(RunJobRequest.Overrides.ContainerOverride value)

public RunJobRequest.Overrides.Builder addContainerOverrides(RunJobRequest.Overrides.ContainerOverride value)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
value RunJobRequest.Overrides.ContainerOverride
Returns
Type Description
RunJobRequest.Overrides.Builder

addContainerOverrides(RunJobRequest.Overrides.ContainerOverride.Builder builderForValue)

public RunJobRequest.Overrides.Builder addContainerOverrides(RunJobRequest.Overrides.ContainerOverride.Builder builderForValue)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
builderForValue RunJobRequest.Overrides.ContainerOverride.Builder
Returns
Type Description
RunJobRequest.Overrides.Builder

addContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride value)

public RunJobRequest.Overrides.Builder addContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride value)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameters
Name Description
index int
value RunJobRequest.Overrides.ContainerOverride
Returns
Type Description
RunJobRequest.Overrides.Builder

addContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride.Builder builderForValue)

public RunJobRequest.Overrides.Builder addContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride.Builder builderForValue)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameters
Name Description
index int
builderForValue RunJobRequest.Overrides.ContainerOverride.Builder
Returns
Type Description
RunJobRequest.Overrides.Builder

addContainerOverridesBuilder()

public RunJobRequest.Overrides.ContainerOverride.Builder addContainerOverridesBuilder()

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

addContainerOverridesBuilder(int index)

public RunJobRequest.Overrides.ContainerOverride.Builder addContainerOverridesBuilder(int index)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
index int
Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RunJobRequest.Overrides.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

build()

public RunJobRequest.Overrides build()
Returns
Type Description
RunJobRequest.Overrides

buildPartial()

public RunJobRequest.Overrides buildPartial()
Returns
Type Description
RunJobRequest.Overrides

clear()

public RunJobRequest.Overrides.Builder clear()
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

clearContainerOverrides()

public RunJobRequest.Overrides.Builder clearContainerOverrides()

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Returns
Type Description
RunJobRequest.Overrides.Builder

clearField(Descriptors.FieldDescriptor field)

public RunJobRequest.Overrides.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RunJobRequest.Overrides.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

clearTaskCount()

public RunJobRequest.Overrides.Builder clearTaskCount()

Optional. The desired number of tasks the execution should run. Will replace existing task_count value.

int32 task_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RunJobRequest.Overrides.Builder

This builder for chaining.

clearTimeout()

public RunJobRequest.Overrides.Builder clearTimeout()

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Returns
Type Description
RunJobRequest.Overrides.Builder

clone()

public RunJobRequest.Overrides.Builder clone()
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

getContainerOverrides(int index)

public RunJobRequest.Overrides.ContainerOverride getContainerOverrides(int index)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
index int
Returns
Type Description
RunJobRequest.Overrides.ContainerOverride

getContainerOverridesBuilder(int index)

public RunJobRequest.Overrides.ContainerOverride.Builder getContainerOverridesBuilder(int index)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
index int
Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

getContainerOverridesBuilderList()

public List<RunJobRequest.Overrides.ContainerOverride.Builder> getContainerOverridesBuilderList()

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Returns
Type Description
List<Builder>

getContainerOverridesCount()

public int getContainerOverridesCount()

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Returns
Type Description
int

getContainerOverridesList()

public List<RunJobRequest.Overrides.ContainerOverride> getContainerOverridesList()

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Returns
Type Description
List<ContainerOverride>

getContainerOverridesOrBuilder(int index)

public RunJobRequest.Overrides.ContainerOverrideOrBuilder getContainerOverridesOrBuilder(int index)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
index int
Returns
Type Description
RunJobRequest.Overrides.ContainerOverrideOrBuilder

getContainerOverridesOrBuilderList()

public List<? extends RunJobRequest.Overrides.ContainerOverrideOrBuilder> getContainerOverridesOrBuilderList()

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Returns
Type Description
List<? extends com.google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverrideOrBuilder>

getDefaultInstanceForType()

public RunJobRequest.Overrides getDefaultInstanceForType()
Returns
Type Description
RunJobRequest.Overrides

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTaskCount()

public int getTaskCount()

Optional. The desired number of tasks the execution should run. Will replace existing task_count value.

int32 task_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The taskCount.

getTimeout()

public Duration getTimeout()

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Returns
Type Description
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Returns
Type Description
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Returns
Type Description
DurationOrBuilder

hasTimeout()

public boolean hasTimeout()

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Returns
Type Description
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RunJobRequest.Overrides other)

public RunJobRequest.Overrides.Builder mergeFrom(RunJobRequest.Overrides other)
Parameter
Name Description
other RunJobRequest.Overrides
Returns
Type Description
RunJobRequest.Overrides.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RunJobRequest.Overrides.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RunJobRequest.Overrides.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

mergeTimeout(Duration value)

public RunJobRequest.Overrides.Builder mergeTimeout(Duration value)

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Parameter
Name Description
value Duration
Returns
Type Description
RunJobRequest.Overrides.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunJobRequest.Overrides.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

removeContainerOverrides(int index)

public RunJobRequest.Overrides.Builder removeContainerOverrides(int index)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameter
Name Description
index int
Returns
Type Description
RunJobRequest.Overrides.Builder

setContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride value)

public RunJobRequest.Overrides.Builder setContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride value)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameters
Name Description
index int
value RunJobRequest.Overrides.ContainerOverride
Returns
Type Description
RunJobRequest.Overrides.Builder

setContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride.Builder builderForValue)

public RunJobRequest.Overrides.Builder setContainerOverrides(int index, RunJobRequest.Overrides.ContainerOverride.Builder builderForValue)

Per container override specification.

repeated .google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride container_overrides = 1;

Parameters
Name Description
index int
builderForValue RunJobRequest.Overrides.ContainerOverride.Builder
Returns
Type Description
RunJobRequest.Overrides.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RunJobRequest.Overrides.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

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

public RunJobRequest.Overrides.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides

setTaskCount(int value)

public RunJobRequest.Overrides.Builder setTaskCount(int value)

Optional. The desired number of tasks the execution should run. Will replace existing task_count value.

int32 task_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The taskCount to set.

Returns
Type Description
RunJobRequest.Overrides.Builder

This builder for chaining.

setTimeout(Duration value)

public RunJobRequest.Overrides.Builder setTimeout(Duration value)

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Parameter
Name Description
value Duration
Returns
Type Description
RunJobRequest.Overrides.Builder

setTimeout(Duration.Builder builderForValue)

public RunJobRequest.Overrides.Builder setTimeout(Duration.Builder builderForValue)

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.

.google.protobuf.Duration timeout = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RunJobRequest.Overrides.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RunJobRequest.Overrides.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunJobRequest.Overrides.Builder
Overrides