Class RunJobRequest.Overrides.Builder (0.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride>
Returns
TypeDescription
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
NameDescription
valueRunJobRequest.Overrides.ContainerOverride
Returns
TypeDescription
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
NameDescription
builderForValueRunJobRequest.Overrides.ContainerOverride.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRunJobRequest.Overrides.ContainerOverride
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRunJobRequest.Overrides.ContainerOverride.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RunJobRequest.Overrides.ContainerOverride.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunJobRequest.Overrides build()
Returns
TypeDescription
RunJobRequest.Overrides

buildPartial()

public RunJobRequest.Overrides buildPartial()
Returns
TypeDescription
RunJobRequest.Overrides

clear()

public RunJobRequest.Overrides.Builder clear()
Returns
TypeDescription
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
TypeDescription
RunJobRequest.Overrides.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RunJobRequest.Overrides.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RunJobRequest.Overrides.Builder

clone()

public RunJobRequest.Overrides.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getContainerOverridesCount()

public int getContainerOverridesCount()

Per container override specification.

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

Returns
TypeDescription
int

getContainerOverridesList()

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

Per container override specification.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverrideOrBuilder>

getDefaultInstanceForType()

public RunJobRequest.Overrides getDefaultInstanceForType()
Returns
TypeDescription
RunJobRequest.Overrides

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RunJobRequest.Overrides other)

public RunJobRequest.Overrides.Builder mergeFrom(RunJobRequest.Overrides other)
Parameter
NameDescription
otherRunJobRequest.Overrides
Returns
TypeDescription
RunJobRequest.Overrides.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RunJobRequest.Overrides.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
RunJobRequest.Overrides.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunJobRequest.Overrides.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueRunJobRequest.Overrides.ContainerOverride
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRunJobRequest.Overrides.ContainerOverride.Builder
Returns
TypeDescription
RunJobRequest.Overrides.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RunJobRequest.Overrides.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The taskCount to set.

Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
RunJobRequest.Overrides.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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