Class Container.Builder (0.16.0)

public static final class Container.Builder extends GeneratedMessageV3.Builder<Container.Builder> implements ContainerOrBuilder

A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.

Protobuf type google.cloud.run.v2.Container

Implements

ContainerOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllArgs(Iterable<String> values)

public Container.Builder addAllArgs(Iterable<String> values)

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

Parameter
NameDescription
valuesIterable<String>

The args to add.

Returns
TypeDescription
Container.Builder

This builder for chaining.

addAllCommand(Iterable<String> values)

public Container.Builder addAllCommand(Iterable<String> values)

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Parameter
NameDescription
valuesIterable<String>

The command to add.

Returns
TypeDescription
Container.Builder

This builder for chaining.

addAllEnv(Iterable<? extends EnvVar> values)

public Container.Builder addAllEnv(Iterable<? extends EnvVar> values)

List of environment variables to set in the container.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.EnvVar>
Returns
TypeDescription
Container.Builder

addAllPorts(Iterable<? extends ContainerPort> values)

public Container.Builder addAllPorts(Iterable<? extends ContainerPort> values)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.ContainerPort>
Returns
TypeDescription
Container.Builder

addAllVolumeMounts(Iterable<? extends VolumeMount> values)

public Container.Builder addAllVolumeMounts(Iterable<? extends VolumeMount> values)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.VolumeMount>
Returns
TypeDescription
Container.Builder

addArgs(String value)

public Container.Builder addArgs(String value)

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

Parameter
NameDescription
valueString

The args to add.

Returns
TypeDescription
Container.Builder

This builder for chaining.

addArgsBytes(ByteString value)

public Container.Builder addArgsBytes(ByteString value)

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

Parameter
NameDescription
valueByteString

The bytes of the args to add.

Returns
TypeDescription
Container.Builder

This builder for chaining.

addCommand(String value)

public Container.Builder addCommand(String value)

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Parameter
NameDescription
valueString

The command to add.

Returns
TypeDescription
Container.Builder

This builder for chaining.

addCommandBytes(ByteString value)

public Container.Builder addCommandBytes(ByteString value)

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Parameter
NameDescription
valueByteString

The bytes of the command to add.

Returns
TypeDescription
Container.Builder

This builder for chaining.

addEnv(EnvVar value)

public Container.Builder addEnv(EnvVar value)

List of environment variables to set in the container.

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

Parameter
NameDescription
valueEnvVar
Returns
TypeDescription
Container.Builder

addEnv(EnvVar.Builder builderForValue)

public Container.Builder addEnv(EnvVar.Builder builderForValue)

List of environment variables to set in the container.

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

Parameter
NameDescription
builderForValueEnvVar.Builder
Returns
TypeDescription
Container.Builder

addEnv(int index, EnvVar value)

public Container.Builder addEnv(int index, EnvVar value)

List of environment variables to set in the container.

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

Parameters
NameDescription
indexint
valueEnvVar
Returns
TypeDescription
Container.Builder

addEnv(int index, EnvVar.Builder builderForValue)

public Container.Builder addEnv(int index, EnvVar.Builder builderForValue)

List of environment variables to set in the container.

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

Parameters
NameDescription
indexint
builderForValueEnvVar.Builder
Returns
TypeDescription
Container.Builder

addEnvBuilder()

public EnvVar.Builder addEnvBuilder()

List of environment variables to set in the container.

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

Returns
TypeDescription
EnvVar.Builder

addEnvBuilder(int index)

public EnvVar.Builder addEnvBuilder(int index)

List of environment variables to set in the container.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvVar.Builder

addPorts(ContainerPort value)

public Container.Builder addPorts(ContainerPort value)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
valueContainerPort
Returns
TypeDescription
Container.Builder

addPorts(ContainerPort.Builder builderForValue)

public Container.Builder addPorts(ContainerPort.Builder builderForValue)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
builderForValueContainerPort.Builder
Returns
TypeDescription
Container.Builder

addPorts(int index, ContainerPort value)

public Container.Builder addPorts(int index, ContainerPort value)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameters
NameDescription
indexint
valueContainerPort
Returns
TypeDescription
Container.Builder

addPorts(int index, ContainerPort.Builder builderForValue)

public Container.Builder addPorts(int index, ContainerPort.Builder builderForValue)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameters
NameDescription
indexint
builderForValueContainerPort.Builder
Returns
TypeDescription
Container.Builder

addPortsBuilder()

public ContainerPort.Builder addPortsBuilder()

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Returns
TypeDescription
ContainerPort.Builder

addPortsBuilder(int index)

public ContainerPort.Builder addPortsBuilder(int index)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerPort.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVolumeMounts(VolumeMount value)

public Container.Builder addVolumeMounts(VolumeMount value)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
valueVolumeMount
Returns
TypeDescription
Container.Builder

addVolumeMounts(VolumeMount.Builder builderForValue)

public Container.Builder addVolumeMounts(VolumeMount.Builder builderForValue)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
builderForValueVolumeMount.Builder
Returns
TypeDescription
Container.Builder

addVolumeMounts(int index, VolumeMount value)

public Container.Builder addVolumeMounts(int index, VolumeMount value)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameters
NameDescription
indexint
valueVolumeMount
Returns
TypeDescription
Container.Builder

addVolumeMounts(int index, VolumeMount.Builder builderForValue)

public Container.Builder addVolumeMounts(int index, VolumeMount.Builder builderForValue)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameters
NameDescription
indexint
builderForValueVolumeMount.Builder
Returns
TypeDescription
Container.Builder

addVolumeMountsBuilder()

public VolumeMount.Builder addVolumeMountsBuilder()

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Returns
TypeDescription
VolumeMount.Builder

addVolumeMountsBuilder(int index)

public VolumeMount.Builder addVolumeMountsBuilder(int index)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeMount.Builder

build()

public Container build()
Returns
TypeDescription
Container

buildPartial()

public Container buildPartial()
Returns
TypeDescription
Container

clear()

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

clearArgs()

public Container.Builder clearArgs()

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

Returns
TypeDescription
Container.Builder

This builder for chaining.

clearCommand()

public Container.Builder clearCommand()

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Returns
TypeDescription
Container.Builder

This builder for chaining.

clearEnv()

public Container.Builder clearEnv()

List of environment variables to set in the container.

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

Returns
TypeDescription
Container.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearImage()

public Container.Builder clearImage()

Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images

string image = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Container.Builder

This builder for chaining.

clearLivenessProbe()

public Container.Builder clearLivenessProbe()

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Returns
TypeDescription
Container.Builder

clearName()

public Container.Builder clearName()

Name of the container specified as a DNS_LABEL (RFC 1123).

string name = 1;

Returns
TypeDescription
Container.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPorts()

public Container.Builder clearPorts()

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Returns
TypeDescription
Container.Builder

clearResources()

public Container.Builder clearResources()

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Returns
TypeDescription
Container.Builder

clearStartupProbe()

public Container.Builder clearStartupProbe()

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Returns
TypeDescription
Container.Builder

clearVolumeMounts()

public Container.Builder clearVolumeMounts()

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Returns
TypeDescription
Container.Builder

clearWorkingDir()

public Container.Builder clearWorkingDir()

Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.

string working_dir = 9;

Returns
TypeDescription
Container.Builder

This builder for chaining.

clone()

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

getArgs(int index)

public String getArgs(int index)

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

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)

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

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()

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

Returns
TypeDescription
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the args.

getCommand(int index)

public String getCommand(int index)

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The command at the given index.

getCommandBytes(int index)

public ByteString getCommandBytes(int index)

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the command at the given index.

getCommandCount()

public int getCommandCount()

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Returns
TypeDescription
int

The count of command.

getCommandList()

public ProtocolStringList getCommandList()

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the command.

getDefaultInstanceForType()

public Container getDefaultInstanceForType()
Returns
TypeDescription
Container

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.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvVar

getEnvBuilder(int index)

public EnvVar.Builder getEnvBuilder(int index)

List of environment variables to set in the container.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvVar.Builder

getEnvBuilderList()

public List<EnvVar.Builder> getEnvBuilderList()

List of environment variables to set in the container.

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

Returns
TypeDescription
List<Builder>

getEnvCount()

public int getEnvCount()

List of environment variables to set in the container.

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

Returns
TypeDescription
int

getEnvList()

public List<EnvVar> getEnvList()

List of environment variables to set in the container.

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

Returns
TypeDescription
List<EnvVar>

getEnvOrBuilder(int index)

public EnvVarOrBuilder getEnvOrBuilder(int index)

List of environment variables to set in the container.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EnvVarOrBuilder

getEnvOrBuilderList()

public List<? extends EnvVarOrBuilder> getEnvOrBuilderList()

List of environment variables to set in the container.

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

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

getImage()

public String getImage()

Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images

string image = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The image.

getImageBytes()

public ByteString getImageBytes()

Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images

string image = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for image.

getLivenessProbe()

public Probe getLivenessProbe()

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Returns
TypeDescription
Probe

The livenessProbe.

getLivenessProbeBuilder()

public Probe.Builder getLivenessProbeBuilder()

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Returns
TypeDescription
Probe.Builder

getLivenessProbeOrBuilder()

public ProbeOrBuilder getLivenessProbeOrBuilder()

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Returns
TypeDescription
ProbeOrBuilder

getName()

public String getName()

Name of the container specified as a DNS_LABEL (RFC 1123).

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the container specified as a DNS_LABEL (RFC 1123).

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPorts(int index)

public ContainerPort getPorts(int index)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerPort

getPortsBuilder(int index)

public ContainerPort.Builder getPortsBuilder(int index)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerPort.Builder

getPortsBuilderList()

public List<ContainerPort.Builder> getPortsBuilderList()

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Returns
TypeDescription
List<Builder>

getPortsCount()

public int getPortsCount()

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Returns
TypeDescription
int

getPortsList()

public List<ContainerPort> getPortsList()

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Returns
TypeDescription
List<ContainerPort>

getPortsOrBuilder(int index)

public ContainerPortOrBuilder getPortsOrBuilder(int index)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerPortOrBuilder

getPortsOrBuilderList()

public List<? extends ContainerPortOrBuilder> getPortsOrBuilderList()

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Returns
TypeDescription
List<? extends com.google.cloud.run.v2.ContainerPortOrBuilder>

getResources()

public ResourceRequirements getResources()

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Returns
TypeDescription
ResourceRequirements

The resources.

getResourcesBuilder()

public ResourceRequirements.Builder getResourcesBuilder()

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Returns
TypeDescription
ResourceRequirements.Builder

getResourcesOrBuilder()

public ResourceRequirementsOrBuilder getResourcesOrBuilder()

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Returns
TypeDescription
ResourceRequirementsOrBuilder

getStartupProbe()

public Probe getStartupProbe()

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Returns
TypeDescription
Probe

The startupProbe.

getStartupProbeBuilder()

public Probe.Builder getStartupProbeBuilder()

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Returns
TypeDescription
Probe.Builder

getStartupProbeOrBuilder()

public ProbeOrBuilder getStartupProbeOrBuilder()

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Returns
TypeDescription
ProbeOrBuilder

getVolumeMounts(int index)

public VolumeMount getVolumeMounts(int index)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeMount

getVolumeMountsBuilder(int index)

public VolumeMount.Builder getVolumeMountsBuilder(int index)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeMount.Builder

getVolumeMountsBuilderList()

public List<VolumeMount.Builder> getVolumeMountsBuilderList()

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Returns
TypeDescription
List<Builder>

getVolumeMountsCount()

public int getVolumeMountsCount()

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Returns
TypeDescription
int

getVolumeMountsList()

public List<VolumeMount> getVolumeMountsList()

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Returns
TypeDescription
List<VolumeMount>

getVolumeMountsOrBuilder(int index)

public VolumeMountOrBuilder getVolumeMountsOrBuilder(int index)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeMountOrBuilder

getVolumeMountsOrBuilderList()

public List<? extends VolumeMountOrBuilder> getVolumeMountsOrBuilderList()

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Returns
TypeDescription
List<? extends com.google.cloud.run.v2.VolumeMountOrBuilder>

getWorkingDir()

public String getWorkingDir()

Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.

string working_dir = 9;

Returns
TypeDescription
String

The workingDir.

getWorkingDirBytes()

public ByteString getWorkingDirBytes()

Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.

string working_dir = 9;

Returns
TypeDescription
ByteString

The bytes for workingDir.

hasLivenessProbe()

public boolean hasLivenessProbe()

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Returns
TypeDescription
boolean

Whether the livenessProbe field is set.

hasResources()

public boolean hasResources()

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Returns
TypeDescription
boolean

Whether the resources field is set.

hasStartupProbe()

public boolean hasStartupProbe()

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Returns
TypeDescription
boolean

Whether the startupProbe field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Container other)

public Container.Builder mergeFrom(Container other)
Parameter
NameDescription
otherContainer
Returns
TypeDescription
Container.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLivenessProbe(Probe value)

public Container.Builder mergeLivenessProbe(Probe value)

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Parameter
NameDescription
valueProbe
Returns
TypeDescription
Container.Builder

mergeResources(ResourceRequirements value)

public Container.Builder mergeResources(ResourceRequirements value)

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Parameter
NameDescription
valueResourceRequirements
Returns
TypeDescription
Container.Builder

mergeStartupProbe(Probe value)

public Container.Builder mergeStartupProbe(Probe value)

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Parameter
NameDescription
valueProbe
Returns
TypeDescription
Container.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEnv(int index)

public Container.Builder removeEnv(int index)

List of environment variables to set in the container.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Container.Builder

removePorts(int index)

public Container.Builder removePorts(int index)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
Container.Builder

removeVolumeMounts(int index)

public Container.Builder removeVolumeMounts(int index)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Container.Builder

setArgs(int index, String value)

public Container.Builder setArgs(int index, String value)

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string args = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The args to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setCommand(int index, String value)

public Container.Builder setCommand(int index, String value)

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

repeated string command = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The command to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setEnv(int index, EnvVar value)

public Container.Builder setEnv(int index, EnvVar value)

List of environment variables to set in the container.

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

Parameters
NameDescription
indexint
valueEnvVar
Returns
TypeDescription
Container.Builder

setEnv(int index, EnvVar.Builder builderForValue)

public Container.Builder setEnv(int index, EnvVar.Builder builderForValue)

List of environment variables to set in the container.

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

Parameters
NameDescription
indexint
builderForValueEnvVar.Builder
Returns
TypeDescription
Container.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setImage(String value)

public Container.Builder setImage(String value)

Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images

string image = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The image to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setImageBytes(ByteString value)

public Container.Builder setImageBytes(ByteString value)

Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info: https://kubernetes.io/docs/concepts/containers/images

string image = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for image to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setLivenessProbe(Probe value)

public Container.Builder setLivenessProbe(Probe value)

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Parameter
NameDescription
valueProbe
Returns
TypeDescription
Container.Builder

setLivenessProbe(Probe.Builder builderForValue)

public Container.Builder setLivenessProbe(Probe.Builder builderForValue)

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe liveness_probe = 10;

Parameter
NameDescription
builderForValueProbe.Builder
Returns
TypeDescription
Container.Builder

setName(String value)

public Container.Builder setName(String value)

Name of the container specified as a DNS_LABEL (RFC 1123).

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Container.Builder setNameBytes(ByteString value)

Name of the container specified as a DNS_LABEL (RFC 1123).

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setPorts(int index, ContainerPort value)

public Container.Builder setPorts(int index, ContainerPort value)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameters
NameDescription
indexint
valueContainerPort
Returns
TypeDescription
Container.Builder

setPorts(int index, ContainerPort.Builder builderForValue)

public Container.Builder setPorts(int index, ContainerPort.Builder builderForValue)

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

repeated .google.cloud.run.v2.ContainerPort ports = 7;

Parameters
NameDescription
indexint
builderForValueContainerPort.Builder
Returns
TypeDescription
Container.Builder

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

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

setResources(ResourceRequirements value)

public Container.Builder setResources(ResourceRequirements value)

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Parameter
NameDescription
valueResourceRequirements
Returns
TypeDescription
Container.Builder

setResources(ResourceRequirements.Builder builderForValue)

public Container.Builder setResources(ResourceRequirements.Builder builderForValue)

Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

.google.cloud.run.v2.ResourceRequirements resources = 6;

Parameter
NameDescription
builderForValueResourceRequirements.Builder
Returns
TypeDescription
Container.Builder

setStartupProbe(Probe value)

public Container.Builder setStartupProbe(Probe value)

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Parameter
NameDescription
valueProbe
Returns
TypeDescription
Container.Builder

setStartupProbe(Probe.Builder builderForValue)

public Container.Builder setStartupProbe(Probe.Builder builderForValue)

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.google.cloud.run.v2.Probe startup_probe = 11;

Parameter
NameDescription
builderForValueProbe.Builder
Returns
TypeDescription
Container.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolumeMounts(int index, VolumeMount value)

public Container.Builder setVolumeMounts(int index, VolumeMount value)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameters
NameDescription
indexint
valueVolumeMount
Returns
TypeDescription
Container.Builder

setVolumeMounts(int index, VolumeMount.Builder builderForValue)

public Container.Builder setVolumeMounts(int index, VolumeMount.Builder builderForValue)

Volume to mount into the container's filesystem.

repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;

Parameters
NameDescription
indexint
builderForValueVolumeMount.Builder
Returns
TypeDescription
Container.Builder

setWorkingDir(String value)

public Container.Builder setWorkingDir(String value)

Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.

string working_dir = 9;

Parameter
NameDescription
valueString

The workingDir to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.

setWorkingDirBytes(ByteString value)

public Container.Builder setWorkingDirBytes(ByteString value)

Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.

string working_dir = 9;

Parameter
NameDescription
valueByteString

The bytes for workingDir to set.

Returns
TypeDescription
Container.Builder

This builder for chaining.