Package com.google.cloud.run.v2
Class Container.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
- com.google.cloud.run.v2.Container.Builder
-
- All Implemented Interfaces:
ContainerOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Container
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 may be supplied by the system to the container at runtime.
Protobuf typegoogle.cloud.run.v2.Container
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Container.Builder
addAllArgs(Iterable<String> values)
Arguments to the entrypoint.Container.Builder
addAllCommand(Iterable<String> values)
Entrypoint array.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
addEnv(int index, 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(EnvVar value)
List of environment variables to set in the container.Container.Builder
addEnv(EnvVar.Builder builderForValue)
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(int index, 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(ContainerPort value)
List of ports to expose from the container.Container.Builder
addPorts(ContainerPort.Builder builderForValue)
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 value)
Volume to mount into the container's filesystem.Container.Builder
addVolumeMounts(int index, VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.Container.Builder
addVolumeMounts(VolumeMount value)
Volume to mount into the container's filesystem.Container.Builder
addVolumeMounts(VolumeMount.Builder builderForValue)
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
clearCommand()
Entrypoint array.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
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()
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
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
mergeFrom(Container other)
Container.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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
setCommand(int index, String value)
Entrypoint array.Container.Builder
setEnv(int index, EnvVar value)
List of environment variables to set in the container.Container.Builder
setEnv(int index, EnvVar.Builder builderForValue)
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 value)
Periodic probe of container liveness.Container.Builder
setLivenessProbe(Probe.Builder builderForValue)
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 value)
List of ports to expose from the container.Container.Builder
setPorts(int index, ContainerPort.Builder builderForValue)
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 value)
Compute Resource requirements by this container.Container.Builder
setResources(ResourceRequirements.Builder builderForValue)
Compute Resource requirements by this container.Container.Builder
setStartupProbe(Probe value)
Startup probe of application within the container.Container.Builder
setStartupProbe(Probe.Builder builderForValue)
Startup probe of application within the container.Container.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Container.Builder
setVolumeMounts(int index, VolumeMount value)
Volume to mount into the container's filesystem.Container.Builder
setVolumeMounts(int index, VolumeMount.Builder builderForValue)
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.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clear
public Container.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDefaultInstanceForType
public Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Container build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Container buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Container.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setField
public Container.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearField
public Container.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearOneof
public Container.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setRepeatedField
public Container.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
addRepeatedField
public Container.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(Container other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Container.Builder>
- Throws:
IOException
-
getName
public String getName()
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;
- Specified by:
getName
in interfaceContainerOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;
- Specified by:
getNameBytes
in interfaceContainerOrBuilder
- Returns:
- The bytes for name.
-
setName
public Container.Builder setName(String value)
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Container.Builder clearName()
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public Container.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the container specified as a DNS_LABEL (RFC 1123).
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getImage
in interfaceContainerOrBuilder
- Returns:
- The image.
-
getImageBytes
public 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];
- Specified by:
getImageBytes
in interfaceContainerOrBuilder
- Returns:
- The bytes for image.
-
setImage
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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The image to set.- Returns:
- This builder for chaining.
-
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.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setImageBytes
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];
- Parameters:
value
- The bytes for image to set.- Returns:
- This builder for chaining.
-
getCommandList
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;
- Specified by:
getCommandList
in interfaceContainerOrBuilder
- Returns:
- A list containing the command.
-
getCommandCount
public 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;
- Specified by:
getCommandCount
in interfaceContainerOrBuilder
- Returns:
- The count of command.
-
getCommand
public 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;
- Specified by:
getCommand
in interfaceContainerOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The command at the given index.
-
getCommandBytes
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;
- Specified by:
getCommandBytes
in interfaceContainerOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the command at the given index.
-
setCommand
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;
- Parameters:
index
- The index to set the value at.value
- The command to set.- Returns:
- This builder for chaining.
-
addCommand
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;
- Parameters:
value
- The command to add.- Returns:
- This builder for chaining.
-
addAllCommand
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;
- Parameters:
values
- The command to add.- Returns:
- 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.
repeated string command = 3;
- Returns:
- This builder for chaining.
-
addCommandBytes
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;
- Parameters:
value
- The bytes of the command to add.- Returns:
- This builder for chaining.
-
getArgsList
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;
- Specified by:
getArgsList
in interfaceContainerOrBuilder
- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;
- Specified by:
getArgsCount
in interfaceContainerOrBuilder
- Returns:
- The count of args.
-
getArgs
public String getArgs(int index)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;
- Specified by:
getArgs
in interfaceContainerOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
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;
- Specified by:
getArgsBytes
in interfaceContainerOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
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;
- Parameters:
index
- The index to set the value at.value
- The args to set.- Returns:
- This builder for chaining.
-
addArgs
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;
- Parameters:
value
- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
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;
- Parameters:
values
- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
public Container.Builder clearArgs()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4;
- Returns:
- This builder for chaining.
-
addArgsBytes
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;
- Parameters:
value
- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getEnvList
public List<EnvVar> getEnvList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
- Specified by:
getEnvList
in interfaceContainerOrBuilder
-
getEnvCount
public int getEnvCount()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
- Specified by:
getEnvCount
in interfaceContainerOrBuilder
-
getEnv
public EnvVar getEnv(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
- Specified by:
getEnv
in interfaceContainerOrBuilder
-
setEnv
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;
-
setEnv
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;
-
addEnv
public Container.Builder addEnv(EnvVar value)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
addEnv
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;
-
addEnv
public Container.Builder addEnv(EnvVar.Builder builderForValue)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
addEnv
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;
-
addAllEnv
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;
-
clearEnv
public Container.Builder clearEnv()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
removeEnv
public Container.Builder removeEnv(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
getEnvBuilder
public EnvVar.Builder getEnvBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
getEnvOrBuilder
public EnvVarOrBuilder getEnvOrBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
- Specified by:
getEnvOrBuilder
in interfaceContainerOrBuilder
-
getEnvOrBuilderList
public List<? extends EnvVarOrBuilder> getEnvOrBuilderList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
- Specified by:
getEnvOrBuilderList
in interfaceContainerOrBuilder
-
addEnvBuilder
public EnvVar.Builder addEnvBuilder()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
addEnvBuilder
public EnvVar.Builder addEnvBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
getEnvBuilderList
public List<EnvVar.Builder> getEnvBuilderList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
-
hasResources
public boolean hasResources()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
- Specified by:
hasResources
in interfaceContainerOrBuilder
- Returns:
- Whether the resources field is set.
-
getResources
public ResourceRequirements getResources()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
- Specified by:
getResources
in interfaceContainerOrBuilder
- Returns:
- The resources.
-
setResources
public Container.Builder setResources(ResourceRequirements value)
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
-
setResources
public Container.Builder setResources(ResourceRequirements.Builder builderForValue)
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
-
mergeResources
public Container.Builder mergeResources(ResourceRequirements value)
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
-
clearResources
public Container.Builder clearResources()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
-
getResourcesBuilder
public ResourceRequirements.Builder getResourcesBuilder()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
-
getResourcesOrBuilder
public ResourceRequirementsOrBuilder getResourcesOrBuilder()
Compute Resource requirements by this container.
.google.cloud.run.v2.ResourceRequirements resources = 6;
- Specified by:
getResourcesOrBuilder
in interfaceContainerOrBuilder
-
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;
- Specified by:
getPortsList
in interfaceContainerOrBuilder
-
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;
- Specified by:
getPortsCount
in interfaceContainerOrBuilder
-
getPorts
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;
- Specified by:
getPorts
in interfaceContainerOrBuilder
-
setPorts
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;
-
setPorts
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;
-
addPorts
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;
-
addPorts
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;
-
addPorts
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;
-
addPorts
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;
-
addAllPorts
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;
-
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;
-
removePorts
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;
-
getPortsBuilder
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;
-
getPortsOrBuilder
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;
- Specified by:
getPortsOrBuilder
in interfaceContainerOrBuilder
-
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;
- Specified by:
getPortsOrBuilderList
in interfaceContainerOrBuilder
-
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;
-
addPortsBuilder
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;
-
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;
-
getVolumeMountsList
public List<VolumeMount> getVolumeMountsList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
- Specified by:
getVolumeMountsList
in interfaceContainerOrBuilder
-
getVolumeMountsCount
public int getVolumeMountsCount()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
- Specified by:
getVolumeMountsCount
in interfaceContainerOrBuilder
-
getVolumeMounts
public VolumeMount getVolumeMounts(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
- Specified by:
getVolumeMounts
in interfaceContainerOrBuilder
-
setVolumeMounts
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;
-
setVolumeMounts
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;
-
addVolumeMounts
public Container.Builder addVolumeMounts(VolumeMount value)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
addVolumeMounts
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;
-
addVolumeMounts
public Container.Builder addVolumeMounts(VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
addVolumeMounts
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;
-
addAllVolumeMounts
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;
-
clearVolumeMounts
public Container.Builder clearVolumeMounts()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
removeVolumeMounts
public Container.Builder removeVolumeMounts(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
getVolumeMountsBuilder
public VolumeMount.Builder getVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
getVolumeMountsOrBuilder
public VolumeMountOrBuilder getVolumeMountsOrBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
- Specified by:
getVolumeMountsOrBuilder
in interfaceContainerOrBuilder
-
getVolumeMountsOrBuilderList
public List<? extends VolumeMountOrBuilder> getVolumeMountsOrBuilderList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
- Specified by:
getVolumeMountsOrBuilderList
in interfaceContainerOrBuilder
-
addVolumeMountsBuilder
public VolumeMount.Builder addVolumeMountsBuilder()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
addVolumeMountsBuilder
public VolumeMount.Builder addVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
getVolumeMountsBuilderList
public List<VolumeMount.Builder> getVolumeMountsBuilderList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
-
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;
- Specified by:
getWorkingDir
in interfaceContainerOrBuilder
- Returns:
- The workingDir.
-
getWorkingDirBytes
public 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;
- Specified by:
getWorkingDirBytes
in interfaceContainerOrBuilder
- Returns:
- The bytes for workingDir.
-
setWorkingDir
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;
- Parameters:
value
- The workingDir to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setWorkingDirBytes
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;
- Parameters:
value
- The bytes for workingDir to set.- Returns:
- This builder for chaining.
-
hasLivenessProbe
public boolean hasLivenessProbe()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;
- Specified by:
hasLivenessProbe
in interfaceContainerOrBuilder
- Returns:
- Whether the livenessProbe field is set.
-
getLivenessProbe
public Probe getLivenessProbe()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;
- Specified by:
getLivenessProbe
in interfaceContainerOrBuilder
- Returns:
- The livenessProbe.
-
setLivenessProbe
public 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;
-
setLivenessProbe
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;
-
mergeLivenessProbe
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;
-
clearLivenessProbe
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;
-
getLivenessProbeBuilder
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;
-
getLivenessProbeOrBuilder
public ProbeOrBuilder getLivenessProbeOrBuilder()
Periodic probe of container liveness. Container will be restarted if the probe fails.
.google.cloud.run.v2.Probe liveness_probe = 10;
- Specified by:
getLivenessProbeOrBuilder
in interfaceContainerOrBuilder
-
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.
.google.cloud.run.v2.Probe startup_probe = 11;
- Specified by:
hasStartupProbe
in interfaceContainerOrBuilder
- Returns:
- Whether the startupProbe field is set.
-
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.
.google.cloud.run.v2.Probe startup_probe = 11;
- Specified by:
getStartupProbe
in interfaceContainerOrBuilder
- Returns:
- The startupProbe.
-
setStartupProbe
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.
.google.cloud.run.v2.Probe startup_probe = 11;
-
setStartupProbe
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;
-
mergeStartupProbe
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;
-
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.
.google.cloud.run.v2.Probe startup_probe = 11;
-
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.
.google.cloud.run.v2.Probe startup_probe = 11;
-
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.
.google.cloud.run.v2.Probe startup_probe = 11;
- Specified by:
getStartupProbeOrBuilder
in interfaceContainerOrBuilder
-
setUnknownFields
public final Container.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeUnknownFields
public final Container.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
-