Class RunJobRequest.Overrides.ContainerOverride.Builder (0.45.0)

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

Per-container override specification.

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

Static Methods

getDescriptor()

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

Methods

addAllArgs(Iterable<String> values)

public RunJobRequest.Overrides.ContainerOverride.Builder addAllArgs(Iterable<String> values)

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The args to add.

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

addAllEnv(Iterable<? extends EnvVar> values)

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

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

addArgs(String value)

public RunJobRequest.Overrides.ContainerOverride.Builder addArgs(String value)

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The args to add.

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

addArgsBytes(ByteString value)

public RunJobRequest.Overrides.ContainerOverride.Builder addArgsBytes(ByteString value)

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the args to add.

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

addEnv(EnvVar value)

public RunJobRequest.Overrides.ContainerOverride.Builder addEnv(EnvVar value)

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

addEnv(EnvVar.Builder builderForValue)

public RunJobRequest.Overrides.ContainerOverride.Builder addEnv(EnvVar.Builder builderForValue)

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

addEnv(int index, EnvVar value)

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

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

addEnv(int index, EnvVar.Builder builderForValue)

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

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

addEnvBuilder()

public EnvVar.Builder addEnvBuilder()

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Returns
Type Description
EnvVar.Builder

addEnvBuilder(int index)

public EnvVar.Builder addEnvBuilder(int index)

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvVar.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearArgs()

public RunJobRequest.Overrides.ContainerOverride.Builder clearArgs()

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

clearClearArgs()

public RunJobRequest.Overrides.ContainerOverride.Builder clearClearArgs()

Optional. True if the intention is to clear out existing args list.

bool clear_args = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

clearEnv()

public RunJobRequest.Overrides.ContainerOverride.Builder clearEnv()

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RunJobRequest.Overrides.ContainerOverride.Builder clearName()

The name of the container specified as a DNS_LABEL.

string name = 1;

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getArgs(int index)

public String getArgs(int index)

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The args at the given index.

getArgsBytes(int index)

public ByteString getArgsBytes(int index)

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the args at the given index.

getArgsCount()

public int getArgsCount()

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the args.

getClearArgs()

public boolean getClearArgs()

Optional. True if the intention is to clear out existing args list.

bool clear_args = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The clearArgs.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEnv(int index)

public EnvVar getEnv(int index)

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvVar

getEnvBuilder(int index)

public EnvVar.Builder getEnvBuilder(int index)

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvVar.Builder

getEnvBuilderList()

public List<EnvVar.Builder> getEnvBuilderList()

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Returns
Type Description
List<Builder>

getEnvCount()

public int getEnvCount()

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Returns
Type Description
int

getEnvList()

public List<EnvVar> getEnvList()

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Returns
Type Description
List<EnvVar>

getEnvOrBuilder(int index)

public EnvVarOrBuilder getEnvOrBuilder(int index)

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Parameter
Name Description
index int
Returns
Type Description
EnvVarOrBuilder

getEnvOrBuilderList()

public List<? extends EnvVarOrBuilder> getEnvOrBuilderList()

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

Returns
Type Description
List<? extends com.google.cloud.run.v2.EnvVarOrBuilder>

getName()

public String getName()

The name of the container specified as a DNS_LABEL.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the container specified as a DNS_LABEL.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RunJobRequest.Overrides.ContainerOverride other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEnv(int index)

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

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

setArgs(int index, String value)

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

Optional. Arguments to the entrypoint. Will replace existing args for override.

repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The args to set.

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

setClearArgs(boolean value)

public RunJobRequest.Overrides.ContainerOverride.Builder setClearArgs(boolean value)

Optional. True if the intention is to clear out existing args list.

bool clear_args = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The clearArgs to set.

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

setEnv(int index, EnvVar value)

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

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

setEnv(int index, EnvVar.Builder builderForValue)

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

List of environment variables to set in the container. Will be merged with existing env for override.

repeated .google.cloud.run.v2.EnvVar env = 3;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RunJobRequest.Overrides.ContainerOverride.Builder setName(String value)

The name of the container specified as a DNS_LABEL.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RunJobRequest.Overrides.ContainerOverride.Builder setNameBytes(ByteString value)

The name of the container specified as a DNS_LABEL.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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