Class RunJobRequest.Overrides.ContainerOverride.Builder (0.41.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
TypeDescription
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
NameDescription
valuesIterable<String>

The args to add.

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

The args to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the args to add.

Returns
TypeDescription
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
NameDescription
valueEnvVar
Returns
TypeDescription
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
NameDescription
builderForValueEnvVar.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueEnvVar
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEnvVar.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
EnvVar.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RunJobRequest.Overrides.ContainerOverride.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RunJobRequest.Overrides.ContainerOverride.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The index of the element to return.

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

The index of the value to return.

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

The clearArgs.

getDefaultInstanceForType()

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

getDescriptorForType()

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

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the container specified as a DNS_LABEL.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RunJobRequest.Overrides.ContainerOverride other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The args to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The clearArgs to set.

Returns
TypeDescription
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
NameDescription
indexint
valueEnvVar
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEnvVar.Builder
Returns
TypeDescription
RunJobRequest.Overrides.ContainerOverride.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RunJobRequest.Overrides.ContainerOverride.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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