public static final class Container.Builder extends com.google.protobuf.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 can be supplied by the system to the container at runtime.Protobuf type
google.cloud.run.v2.Container| Modifier and Type | Method and Description |
|---|---|
Container.Builder |
addAllArgs(Iterable<String> values)
Arguments to the entrypoint.
|
Container.Builder |
addAllCommand(Iterable<String> values)
Entrypoint array.
|
Container.Builder |
addAllDependsOn(Iterable<String> values)
Names of the containers that must start before this container.
|
Container.Builder |
addAllEnv(Iterable<? extends EnvVar> values)
List of environment variables to set in the container.
|
Container.Builder |
addAllPorts(Iterable<? extends ContainerPort> values)
List of ports to expose from the container.
|
Container.Builder |
addAllVolumeMounts(Iterable<? extends VolumeMount> values)
Volume to mount into the container's filesystem.
|
Container.Builder |
addArgs(String value)
Arguments to the entrypoint.
|
Container.Builder |
addArgsBytes(com.google.protobuf.ByteString value)
Arguments to the entrypoint.
|
Container.Builder |
addCommand(String value)
Entrypoint array.
|
Container.Builder |
addCommandBytes(com.google.protobuf.ByteString value)
Entrypoint array.
|
Container.Builder |
addDependsOn(String value)
Names of the containers that must start before this container.
|
Container.Builder |
addDependsOnBytes(com.google.protobuf.ByteString value)
Names of the containers that must start before this container.
|
Container.Builder |
addEnv(EnvVar.Builder builderForValue)
List of environment variables to set in the container.
|
Container.Builder |
addEnv(EnvVar value)
List of environment variables to set in the container.
|
Container.Builder |
addEnv(int index,
EnvVar.Builder builderForValue)
List of environment variables to set in the container.
|
Container.Builder |
addEnv(int index,
EnvVar value)
List of environment variables to set in the container.
|
EnvVar.Builder |
addEnvBuilder()
List of environment variables to set in the container.
|
EnvVar.Builder |
addEnvBuilder(int index)
List of environment variables to set in the container.
|
Container.Builder |
addPorts(ContainerPort.Builder builderForValue)
List of ports to expose from the container.
|
Container.Builder |
addPorts(ContainerPort value)
List of ports to expose from the container.
|
Container.Builder |
addPorts(int index,
ContainerPort.Builder builderForValue)
List of ports to expose from the container.
|
Container.Builder |
addPorts(int index,
ContainerPort value)
List of ports to expose from the container.
|
ContainerPort.Builder |
addPortsBuilder()
List of ports to expose from the container.
|
ContainerPort.Builder |
addPortsBuilder(int index)
List of ports to expose from the container.
|
Container.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Container.Builder |
addVolumeMounts(int index,
VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
|
Container.Builder |
addVolumeMounts(int index,
VolumeMount value)
Volume to mount into the container's filesystem.
|
Container.Builder |
addVolumeMounts(VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
|
Container.Builder |
addVolumeMounts(VolumeMount value)
Volume to mount into the container's filesystem.
|
VolumeMount.Builder |
addVolumeMountsBuilder()
Volume to mount into the container's filesystem.
|
VolumeMount.Builder |
addVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
|
Container |
build() |
Container |
buildPartial() |
Container.Builder |
clear() |
Container.Builder |
clearArgs()
Arguments to the entrypoint.
|
Container.Builder |
clearBaseImageUri()
Base image for this container.
|
Container.Builder |
clearBuildInfo()
Output only.
|
Container.Builder |
clearCommand()
Entrypoint array.
|
Container.Builder |
clearDependsOn()
Names of the containers that must start before this container.
|
Container.Builder |
clearEnv()
List of environment variables to set in the container.
|
Container.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Container.Builder |
clearImage()
Required.
|
Container.Builder |
clearLivenessProbe()
Periodic probe of container liveness.
|
Container.Builder |
clearName()
Name of the container specified as a DNS_LABEL (RFC 1123).
|
Container.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Container.Builder |
clearPorts()
List of ports to expose from the container.
|
Container.Builder |
clearResources()
Compute Resource requirements by this container.
|
Container.Builder |
clearStartupProbe()
Startup probe of application within the container.
|
Container.Builder |
clearVolumeMounts()
Volume to mount into the container's filesystem.
|
Container.Builder |
clearWorkingDir()
Container's working directory.
|
Container.Builder |
clone() |
String |
getArgs(int index)
Arguments to the entrypoint.
|
com.google.protobuf.ByteString |
getArgsBytes(int index)
Arguments to the entrypoint.
|
int |
getArgsCount()
Arguments to the entrypoint.
|
com.google.protobuf.ProtocolStringList |
getArgsList()
Arguments to the entrypoint.
|
String |
getBaseImageUri()
Base image for this container.
|
com.google.protobuf.ByteString |
getBaseImageUriBytes()
Base image for this container.
|
BuildInfo |
getBuildInfo()
Output only.
|
BuildInfo.Builder |
getBuildInfoBuilder()
Output only.
|
BuildInfoOrBuilder |
getBuildInfoOrBuilder()
Output only.
|
String |
getCommand(int index)
Entrypoint array.
|
com.google.protobuf.ByteString |
getCommandBytes(int index)
Entrypoint array.
|
int |
getCommandCount()
Entrypoint array.
|
com.google.protobuf.ProtocolStringList |
getCommandList()
Entrypoint array.
|
Container |
getDefaultInstanceForType() |
String |
getDependsOn(int index)
Names of the containers that must start before this container.
|
com.google.protobuf.ByteString |
getDependsOnBytes(int index)
Names of the containers that must start before this container.
|
int |
getDependsOnCount()
Names of the containers that must start before this container.
|
com.google.protobuf.ProtocolStringList |
getDependsOnList()
Names of the containers that must start before this container.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
EnvVar |
getEnv(int index)
List of environment variables to set in the container.
|
EnvVar.Builder |
getEnvBuilder(int index)
List of environment variables to set in the container.
|
List<EnvVar.Builder> |
getEnvBuilderList()
List of environment variables to set in the container.
|
int |
getEnvCount()
List of environment variables to set in the container.
|
List<EnvVar> |
getEnvList()
List of environment variables to set in the container.
|
EnvVarOrBuilder |
getEnvOrBuilder(int index)
List of environment variables to set in the container.
|
List<? extends EnvVarOrBuilder> |
getEnvOrBuilderList()
List of environment variables to set in the container.
|
String |
getImage()
Required.
|
com.google.protobuf.ByteString |
getImageBytes()
Required.
|
Probe |
getLivenessProbe()
Periodic probe of container liveness.
|
Probe.Builder |
getLivenessProbeBuilder()
Periodic probe of container liveness.
|
ProbeOrBuilder |
getLivenessProbeOrBuilder()
Periodic probe of container liveness.
|
String |
getName()
Name of the container specified as a DNS_LABEL (RFC 1123).
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the container specified as a DNS_LABEL (RFC 1123).
|
ContainerPort |
getPorts(int index)
List of ports to expose from the container.
|
ContainerPort.Builder |
getPortsBuilder(int index)
List of ports to expose from the container.
|
List<ContainerPort.Builder> |
getPortsBuilderList()
List of ports to expose from the container.
|
int |
getPortsCount()
List of ports to expose from the container.
|
List<ContainerPort> |
getPortsList()
List of ports to expose from the container.
|
ContainerPortOrBuilder |
getPortsOrBuilder(int index)
List of ports to expose from the container.
|
List<? extends ContainerPortOrBuilder> |
getPortsOrBuilderList()
List of ports to expose from the container.
|
ResourceRequirements |
getResources()
Compute Resource requirements by this container.
|
ResourceRequirements.Builder |
getResourcesBuilder()
Compute Resource requirements by this container.
|
ResourceRequirementsOrBuilder |
getResourcesOrBuilder()
Compute Resource requirements by this container.
|
Probe |
getStartupProbe()
Startup probe of application within the container.
|
Probe.Builder |
getStartupProbeBuilder()
Startup probe of application within the container.
|
ProbeOrBuilder |
getStartupProbeOrBuilder()
Startup probe of application within the container.
|
VolumeMount |
getVolumeMounts(int index)
Volume to mount into the container's filesystem.
|
VolumeMount.Builder |
getVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
|
List<VolumeMount.Builder> |
getVolumeMountsBuilderList()
Volume to mount into the container's filesystem.
|
int |
getVolumeMountsCount()
Volume to mount into the container's filesystem.
|
List<VolumeMount> |
getVolumeMountsList()
Volume to mount into the container's filesystem.
|
VolumeMountOrBuilder |
getVolumeMountsOrBuilder(int index)
Volume to mount into the container's filesystem.
|
List<? extends VolumeMountOrBuilder> |
getVolumeMountsOrBuilderList()
Volume to mount into the container's filesystem.
|
String |
getWorkingDir()
Container's working directory.
|
com.google.protobuf.ByteString |
getWorkingDirBytes()
Container's working directory.
|
boolean |
hasBuildInfo()
Output only.
|
boolean |
hasLivenessProbe()
Periodic probe of container liveness.
|
boolean |
hasResources()
Compute Resource requirements by this container.
|
boolean |
hasStartupProbe()
Startup probe of application within the container.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Container.Builder |
mergeBuildInfo(BuildInfo value)
Output only.
|
Container.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Container.Builder |
mergeFrom(Container other) |
Container.Builder |
mergeFrom(com.google.protobuf.Message other) |
Container.Builder |
mergeLivenessProbe(Probe value)
Periodic probe of container liveness.
|
Container.Builder |
mergeResources(ResourceRequirements value)
Compute Resource requirements by this container.
|
Container.Builder |
mergeStartupProbe(Probe value)
Startup probe of application within the container.
|
Container.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Container.Builder |
removeEnv(int index)
List of environment variables to set in the container.
|
Container.Builder |
removePorts(int index)
List of ports to expose from the container.
|
Container.Builder |
removeVolumeMounts(int index)
Volume to mount into the container's filesystem.
|
Container.Builder |
setArgs(int index,
String value)
Arguments to the entrypoint.
|
Container.Builder |
setBaseImageUri(String value)
Base image for this container.
|
Container.Builder |
setBaseImageUriBytes(com.google.protobuf.ByteString value)
Base image for this container.
|
Container.Builder |
setBuildInfo(BuildInfo.Builder builderForValue)
Output only.
|
Container.Builder |
setBuildInfo(BuildInfo value)
Output only.
|
Container.Builder |
setCommand(int index,
String value)
Entrypoint array.
|
Container.Builder |
setDependsOn(int index,
String value)
Names of the containers that must start before this container.
|
Container.Builder |
setEnv(int index,
EnvVar.Builder builderForValue)
List of environment variables to set in the container.
|
Container.Builder |
setEnv(int index,
EnvVar value)
List of environment variables to set in the container.
|
Container.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Container.Builder |
setImage(String value)
Required.
|
Container.Builder |
setImageBytes(com.google.protobuf.ByteString value)
Required.
|
Container.Builder |
setLivenessProbe(Probe.Builder builderForValue)
Periodic probe of container liveness.
|
Container.Builder |
setLivenessProbe(Probe value)
Periodic probe of container liveness.
|
Container.Builder |
setName(String value)
Name of the container specified as a DNS_LABEL (RFC 1123).
|
Container.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the container specified as a DNS_LABEL (RFC 1123).
|
Container.Builder |
setPorts(int index,
ContainerPort.Builder builderForValue)
List of ports to expose from the container.
|
Container.Builder |
setPorts(int index,
ContainerPort value)
List of ports to expose from the container.
|
Container.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Container.Builder |
setResources(ResourceRequirements.Builder builderForValue)
Compute Resource requirements by this container.
|
Container.Builder |
setResources(ResourceRequirements value)
Compute Resource requirements by this container.
|
Container.Builder |
setStartupProbe(Probe.Builder builderForValue)
Startup probe of application within the container.
|
Container.Builder |
setStartupProbe(Probe value)
Startup probe of application within the container.
|
Container.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Container.Builder |
setVolumeMounts(int index,
VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
|
Container.Builder |
setVolumeMounts(int index,
VolumeMount value)
Volume to mount into the container's filesystem.
|
Container.Builder |
setWorkingDir(String value)
Container's working directory.
|
Container.Builder |
setWorkingDirBytes(com.google.protobuf.ByteString value)
Container's working directory.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Container build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Container buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Container.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Container.Builder>public Container.Builder mergeFrom(Container other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public Container.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Container.Builder>IOExceptionpublic String getName()
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;getName in interface ContainerOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;getNameBytes in interface ContainerOrBuilderpublic Container.Builder setName(String value)
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;value - The name to set.public Container.Builder clearName()
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;public Container.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;value - The bytes for name to set.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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];getImage in interface ContainerOrBuilderpublic com.google.protobuf.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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];getImageBytes in interface ContainerOrBuilderpublic 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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];value - The image to set.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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];public Container.Builder setImageBytes(com.google.protobuf.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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for image to set.public com.google.protobuf.ProtocolStringList getCommandList()
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3;getCommandList in interface ContainerOrBuilderpublic int getCommandCount()
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3;getCommandCount in interface ContainerOrBuilderpublic String getCommand(int index)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3;getCommand in interface ContainerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getCommandBytes(int index)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3;getCommandBytes in interface ContainerOrBuilderindex - The index of the value to return.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.
repeated string command = 3;index - The index to set the value at.value - The command to set.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.
repeated string command = 3;value - The command to add.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.
repeated string command = 3;values - The command to add.public Container.Builder clearCommand()
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3;public Container.Builder addCommandBytes(com.google.protobuf.ByteString value)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3;value - The bytes of the command to add.public com.google.protobuf.ProtocolStringList getArgsList()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;getArgsList in interface ContainerOrBuilderpublic int getArgsCount()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;getArgsCount in interface ContainerOrBuilderpublic String getArgs(int index)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;getArgs in interface ContainerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getArgsBytes(int index)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;getArgsBytes in interface ContainerOrBuilderindex - The index of the value to return.public Container.Builder setArgs(int index, String value)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;index - The index to set the value at.value - The args to set.public Container.Builder addArgs(String value)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;value - The args to add.public Container.Builder addAllArgs(Iterable<String> values)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;values - The args to add.public Container.Builder clearArgs()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;public Container.Builder addArgsBytes(com.google.protobuf.ByteString value)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;value - The bytes of the args to add.public List<EnvVar> getEnvList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;getEnvList in interface ContainerOrBuilderpublic int getEnvCount()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;getEnvCount in interface ContainerOrBuilderpublic EnvVar getEnv(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;getEnv in interface ContainerOrBuilderpublic Container.Builder setEnv(int index, EnvVar value)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;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;public Container.Builder addEnv(EnvVar value)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;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;public Container.Builder addEnv(EnvVar.Builder builderForValue)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;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;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;public Container.Builder clearEnv()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;public Container.Builder removeEnv(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;public EnvVar.Builder getEnvBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;public EnvVarOrBuilder getEnvOrBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;getEnvOrBuilder in interface ContainerOrBuilderpublic List<? extends EnvVarOrBuilder> getEnvOrBuilderList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;getEnvOrBuilderList in interface ContainerOrBuilderpublic EnvVar.Builder addEnvBuilder()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;public EnvVar.Builder addEnvBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;public List<EnvVar.Builder> getEnvBuilderList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;public boolean hasResources()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;hasResources in interface ContainerOrBuilderpublic ResourceRequirements getResources()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;getResources in interface ContainerOrBuilderpublic Container.Builder setResources(ResourceRequirements value)
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;public Container.Builder setResources(ResourceRequirements.Builder builderForValue)
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;public Container.Builder mergeResources(ResourceRequirements value)
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;public Container.Builder clearResources()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;public ResourceRequirements.Builder getResourcesBuilder()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;public ResourceRequirementsOrBuilder getResourcesOrBuilder()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;getResourcesOrBuilder in interface ContainerOrBuilderpublic 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;getPortsList in interface ContainerOrBuilderpublic 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;getPortsCount in interface ContainerOrBuilderpublic 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;getPorts in interface ContainerOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getPortsOrBuilder in interface ContainerOrBuilderpublic 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;getPortsOrBuilderList in interface ContainerOrBuilderpublic 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;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;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;public List<VolumeMount> getVolumeMountsList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;getVolumeMountsList in interface ContainerOrBuilderpublic int getVolumeMountsCount()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;getVolumeMountsCount in interface ContainerOrBuilderpublic VolumeMount getVolumeMounts(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;getVolumeMounts in interface ContainerOrBuilderpublic Container.Builder setVolumeMounts(int index, VolumeMount value)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;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;public Container.Builder addVolumeMounts(VolumeMount value)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;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;public Container.Builder addVolumeMounts(VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;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;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;public Container.Builder clearVolumeMounts()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;public Container.Builder removeVolumeMounts(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;public VolumeMount.Builder getVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;public VolumeMountOrBuilder getVolumeMountsOrBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;getVolumeMountsOrBuilder in interface ContainerOrBuilderpublic List<? extends VolumeMountOrBuilder> getVolumeMountsOrBuilderList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;getVolumeMountsOrBuilderList in interface ContainerOrBuilderpublic VolumeMount.Builder addVolumeMountsBuilder()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;public VolumeMount.Builder addVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;public List<VolumeMount.Builder> getVolumeMountsBuilderList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;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;getWorkingDir in interface ContainerOrBuilderpublic com.google.protobuf.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;getWorkingDirBytes in interface ContainerOrBuilderpublic 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;value - The workingDir to set.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;public Container.Builder setWorkingDirBytes(com.google.protobuf.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;value - The bytes for workingDir to set.public boolean hasLivenessProbe()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;hasLivenessProbe in interface ContainerOrBuilderpublic Probe getLivenessProbe()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;getLivenessProbe in interface ContainerOrBuilderpublic Container.Builder setLivenessProbe(Probe value)
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;public Container.Builder setLivenessProbe(Probe.Builder builderForValue)
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;public Container.Builder mergeLivenessProbe(Probe value)
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;public Container.Builder clearLivenessProbe()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;public Probe.Builder getLivenessProbeBuilder()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;public ProbeOrBuilder getLivenessProbeOrBuilder()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;getLivenessProbeOrBuilder in interface ContainerOrBuilderpublic 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.
.google.cloud.run.v2.Probe startup_probe = 11;hasStartupProbe in interface ContainerOrBuilderpublic 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.
.google.cloud.run.v2.Probe startup_probe = 11;getStartupProbe in interface ContainerOrBuilderpublic 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.
.google.cloud.run.v2.Probe startup_probe = 11;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.
.google.cloud.run.v2.Probe startup_probe = 11;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.
.google.cloud.run.v2.Probe startup_probe = 11;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.
.google.cloud.run.v2.Probe startup_probe = 11;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.
.google.cloud.run.v2.Probe startup_probe = 11;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.
.google.cloud.run.v2.Probe startup_probe = 11;getStartupProbeOrBuilder in interface ContainerOrBuilderpublic com.google.protobuf.ProtocolStringList getDependsOnList()
Names of the containers that must start before this container.
repeated string depends_on = 12;getDependsOnList in interface ContainerOrBuilderpublic int getDependsOnCount()
Names of the containers that must start before this container.
repeated string depends_on = 12;getDependsOnCount in interface ContainerOrBuilderpublic String getDependsOn(int index)
Names of the containers that must start before this container.
repeated string depends_on = 12;getDependsOn in interface ContainerOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDependsOnBytes(int index)
Names of the containers that must start before this container.
repeated string depends_on = 12;getDependsOnBytes in interface ContainerOrBuilderindex - The index of the value to return.public Container.Builder setDependsOn(int index, String value)
Names of the containers that must start before this container.
repeated string depends_on = 12;index - The index to set the value at.value - The dependsOn to set.public Container.Builder addDependsOn(String value)
Names of the containers that must start before this container.
repeated string depends_on = 12;value - The dependsOn to add.public Container.Builder addAllDependsOn(Iterable<String> values)
Names of the containers that must start before this container.
repeated string depends_on = 12;values - The dependsOn to add.public Container.Builder clearDependsOn()
Names of the containers that must start before this container.
repeated string depends_on = 12;public Container.Builder addDependsOnBytes(com.google.protobuf.ByteString value)
Names of the containers that must start before this container.
repeated string depends_on = 12;value - The bytes of the dependsOn to add.public String getBaseImageUri()
Base image for this container. Only supported for services. If set, it indicates that the service is enrolled into automatic base image update.
string base_image_uri = 13;getBaseImageUri in interface ContainerOrBuilderpublic com.google.protobuf.ByteString getBaseImageUriBytes()
Base image for this container. Only supported for services. If set, it indicates that the service is enrolled into automatic base image update.
string base_image_uri = 13;getBaseImageUriBytes in interface ContainerOrBuilderpublic Container.Builder setBaseImageUri(String value)
Base image for this container. Only supported for services. If set, it indicates that the service is enrolled into automatic base image update.
string base_image_uri = 13;value - The baseImageUri to set.public Container.Builder clearBaseImageUri()
Base image for this container. Only supported for services. If set, it indicates that the service is enrolled into automatic base image update.
string base_image_uri = 13;public Container.Builder setBaseImageUriBytes(com.google.protobuf.ByteString value)
Base image for this container. Only supported for services. If set, it indicates that the service is enrolled into automatic base image update.
string base_image_uri = 13;value - The bytes for baseImageUri to set.public boolean hasBuildInfo()
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasBuildInfo in interface ContainerOrBuilderpublic BuildInfo getBuildInfo()
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
getBuildInfo in interface ContainerOrBuilderpublic Container.Builder setBuildInfo(BuildInfo value)
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Container.Builder setBuildInfo(BuildInfo.Builder builderForValue)
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Container.Builder mergeBuildInfo(BuildInfo value)
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Container.Builder clearBuildInfo()
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BuildInfo.Builder getBuildInfoBuilder()
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
public BuildInfoOrBuilder getBuildInfoOrBuilder()
Output only. The build info of the container image.
.google.cloud.run.v2.BuildInfo build_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
getBuildInfoOrBuilder in interface ContainerOrBuilderpublic final Container.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>public final Container.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>Copyright © 2025 Google LLC. All rights reserved.