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.BuilderaddAllArgs(Iterable<String> values)Arguments to the entrypoint.Container.BuilderaddAllCommand(Iterable<String> values)Entrypoint array.Container.BuilderaddAllEnv(Iterable<? extends EnvVar> values)List of environment variables to set in the container.Container.BuilderaddAllPorts(Iterable<? extends ContainerPort> values)List of ports to expose from the container.Container.BuilderaddAllVolumeMounts(Iterable<? extends VolumeMount> values)Volume to mount into the container's filesystem.Container.BuilderaddArgs(String value)Arguments to the entrypoint.Container.BuilderaddArgsBytes(com.google.protobuf.ByteString value)Arguments to the entrypoint.Container.BuilderaddCommand(String value)Entrypoint array.Container.BuilderaddCommandBytes(com.google.protobuf.ByteString value)Entrypoint array.Container.BuilderaddEnv(int index, EnvVar value)List of environment variables to set in the container.Container.BuilderaddEnv(int index, EnvVar.Builder builderForValue)List of environment variables to set in the container.Container.BuilderaddEnv(EnvVar value)List of environment variables to set in the container.Container.BuilderaddEnv(EnvVar.Builder builderForValue)List of environment variables to set in the container.EnvVar.BuilderaddEnvBuilder()List of environment variables to set in the container.EnvVar.BuilderaddEnvBuilder(int index)List of environment variables to set in the container.Container.BuilderaddPorts(int index, ContainerPort value)List of ports to expose from the container.Container.BuilderaddPorts(int index, ContainerPort.Builder builderForValue)List of ports to expose from the container.Container.BuilderaddPorts(ContainerPort value)List of ports to expose from the container.Container.BuilderaddPorts(ContainerPort.Builder builderForValue)List of ports to expose from the container.ContainerPort.BuilderaddPortsBuilder()List of ports to expose from the container.ContainerPort.BuilderaddPortsBuilder(int index)List of ports to expose from the container.Container.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Container.BuilderaddVolumeMounts(int index, VolumeMount value)Volume to mount into the container's filesystem.Container.BuilderaddVolumeMounts(int index, VolumeMount.Builder builderForValue)Volume to mount into the container's filesystem.Container.BuilderaddVolumeMounts(VolumeMount value)Volume to mount into the container's filesystem.Container.BuilderaddVolumeMounts(VolumeMount.Builder builderForValue)Volume to mount into the container's filesystem.VolumeMount.BuilderaddVolumeMountsBuilder()Volume to mount into the container's filesystem.VolumeMount.BuilderaddVolumeMountsBuilder(int index)Volume to mount into the container's filesystem.Containerbuild()ContainerbuildPartial()Container.Builderclear()Container.BuilderclearArgs()Arguments to the entrypoint.Container.BuilderclearCommand()Entrypoint array.Container.BuilderclearEnv()List of environment variables to set in the container.Container.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Container.BuilderclearImage()Required.Container.BuilderclearLivenessProbe()Periodic probe of container liveness.Container.BuilderclearName()Name of the container specified as a DNS_LABEL (RFC 1123).Container.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Container.BuilderclearPorts()List of ports to expose from the container.Container.BuilderclearResources()Compute Resource requirements by this container.Container.BuilderclearStartupProbe()Startup probe of application within the container.Container.BuilderclearVolumeMounts()Volume to mount into the container's filesystem.Container.BuilderclearWorkingDir()Container's working directory.Container.Builderclone()StringgetArgs(int index)Arguments to the entrypoint.com.google.protobuf.ByteStringgetArgsBytes(int index)Arguments to the entrypoint.intgetArgsCount()Arguments to the entrypoint.com.google.protobuf.ProtocolStringListgetArgsList()Arguments to the entrypoint.StringgetCommand(int index)Entrypoint array.com.google.protobuf.ByteStringgetCommandBytes(int index)Entrypoint array.intgetCommandCount()Entrypoint array.com.google.protobuf.ProtocolStringListgetCommandList()Entrypoint array.ContainergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EnvVargetEnv(int index)List of environment variables to set in the container.EnvVar.BuildergetEnvBuilder(int index)List of environment variables to set in the container.List<EnvVar.Builder>getEnvBuilderList()List of environment variables to set in the container.intgetEnvCount()List of environment variables to set in the container.List<EnvVar>getEnvList()List of environment variables to set in the container.EnvVarOrBuildergetEnvOrBuilder(int index)List of environment variables to set in the container.List<? extends EnvVarOrBuilder>getEnvOrBuilderList()List of environment variables to set in the container.StringgetImage()Required.com.google.protobuf.ByteStringgetImageBytes()Required.ProbegetLivenessProbe()Periodic probe of container liveness.Probe.BuildergetLivenessProbeBuilder()Periodic probe of container liveness.ProbeOrBuildergetLivenessProbeOrBuilder()Periodic probe of container liveness.StringgetName()Name of the container specified as a DNS_LABEL (RFC 1123).com.google.protobuf.ByteStringgetNameBytes()Name of the container specified as a DNS_LABEL (RFC 1123).ContainerPortgetPorts(int index)List of ports to expose from the container.ContainerPort.BuildergetPortsBuilder(int index)List of ports to expose from the container.List<ContainerPort.Builder>getPortsBuilderList()List of ports to expose from the container.intgetPortsCount()List of ports to expose from the container.List<ContainerPort>getPortsList()List of ports to expose from the container.ContainerPortOrBuildergetPortsOrBuilder(int index)List of ports to expose from the container.List<? extends ContainerPortOrBuilder>getPortsOrBuilderList()List of ports to expose from the container.ResourceRequirementsgetResources()Compute Resource requirements by this container.ResourceRequirements.BuildergetResourcesBuilder()Compute Resource requirements by this container.ResourceRequirementsOrBuildergetResourcesOrBuilder()Compute Resource requirements by this container.ProbegetStartupProbe()Startup probe of application within the container.Probe.BuildergetStartupProbeBuilder()Startup probe of application within the container.ProbeOrBuildergetStartupProbeOrBuilder()Startup probe of application within the container.VolumeMountgetVolumeMounts(int index)Volume to mount into the container's filesystem.VolumeMount.BuildergetVolumeMountsBuilder(int index)Volume to mount into the container's filesystem.List<VolumeMount.Builder>getVolumeMountsBuilderList()Volume to mount into the container's filesystem.intgetVolumeMountsCount()Volume to mount into the container's filesystem.List<VolumeMount>getVolumeMountsList()Volume to mount into the container's filesystem.VolumeMountOrBuildergetVolumeMountsOrBuilder(int index)Volume to mount into the container's filesystem.List<? extends VolumeMountOrBuilder>getVolumeMountsOrBuilderList()Volume to mount into the container's filesystem.StringgetWorkingDir()Container's working directory.com.google.protobuf.ByteStringgetWorkingDirBytes()Container's working directory.booleanhasLivenessProbe()Periodic probe of container liveness.booleanhasResources()Compute Resource requirements by this container.booleanhasStartupProbe()Startup probe of application within the container.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Container.BuildermergeFrom(Container other)Container.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Container.BuildermergeFrom(com.google.protobuf.Message other)Container.BuildermergeLivenessProbe(Probe value)Periodic probe of container liveness.Container.BuildermergeResources(ResourceRequirements value)Compute Resource requirements by this container.Container.BuildermergeStartupProbe(Probe value)Startup probe of application within the container.Container.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Container.BuilderremoveEnv(int index)List of environment variables to set in the container.Container.BuilderremovePorts(int index)List of ports to expose from the container.Container.BuilderremoveVolumeMounts(int index)Volume to mount into the container's filesystem.Container.BuildersetArgs(int index, String value)Arguments to the entrypoint.Container.BuildersetCommand(int index, String value)Entrypoint array.Container.BuildersetEnv(int index, EnvVar value)List of environment variables to set in the container.Container.BuildersetEnv(int index, EnvVar.Builder builderForValue)List of environment variables to set in the container.Container.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Container.BuildersetImage(String value)Required.Container.BuildersetImageBytes(com.google.protobuf.ByteString value)Required.Container.BuildersetLivenessProbe(Probe value)Periodic probe of container liveness.Container.BuildersetLivenessProbe(Probe.Builder builderForValue)Periodic probe of container liveness.Container.BuildersetName(String value)Name of the container specified as a DNS_LABEL (RFC 1123).Container.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the container specified as a DNS_LABEL (RFC 1123).Container.BuildersetPorts(int index, ContainerPort value)List of ports to expose from the container.Container.BuildersetPorts(int index, ContainerPort.Builder builderForValue)List of ports to expose from the container.Container.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Container.BuildersetResources(ResourceRequirements value)Compute Resource requirements by this container.Container.BuildersetResources(ResourceRequirements.Builder builderForValue)Compute Resource requirements by this container.Container.BuildersetStartupProbe(Probe value)Startup probe of application within the container.Container.BuildersetStartupProbe(Probe.Builder builderForValue)Startup probe of application within the container.Container.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Container.BuildersetVolumeMounts(int index, VolumeMount value)Volume to mount into the container's filesystem.Container.BuildersetVolumeMounts(int index, VolumeMount.Builder builderForValue)Volume to mount into the container's filesystem.Container.BuildersetWorkingDir(String value)Container's working directory.Container.BuildersetWorkingDirBytes(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clear
public Container.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
getDefaultInstanceForType
public Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Container build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Container buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Container.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setField
public Container.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearField
public Container.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
clearOneof
public Container.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
setRepeatedField
public Container.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
addRepeatedField
public Container.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Container.Builder>
-
mergeFrom
public Container.Builder mergeFrom(Container other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getNamein 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:
getNameBytesin 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:
getImagein 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:
getImageBytesin 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:
getCommandListin 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:
getCommandCountin 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:
getCommandin 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:
getCommandBytesin 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:
getArgsListin 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:
getArgsCountin 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:
getArgsin 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:
getArgsBytesin 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:
getEnvListin interfaceContainerOrBuilder
-
getEnvCount
public int getEnvCount()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;- Specified by:
getEnvCountin 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:
getEnvin 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:
getEnvOrBuilderin 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:
getEnvOrBuilderListin 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:
hasResourcesin 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:
getResourcesin 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:
getResourcesOrBuilderin 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:
getPortsListin 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:
getPortsCountin 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:
getPortsin 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:
getPortsOrBuilderin 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:
getPortsOrBuilderListin 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:
getVolumeMountsListin interfaceContainerOrBuilder
-
getVolumeMountsCount
public int getVolumeMountsCount()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;- Specified by:
getVolumeMountsCountin 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:
getVolumeMountsin 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:
getVolumeMountsOrBuilderin 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:
getVolumeMountsOrBuilderListin 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:
getWorkingDirin 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:
getWorkingDirBytesin 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:
hasLivenessProbein 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:
getLivenessProbein 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:
getLivenessProbeOrBuilderin 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:
hasStartupProbein 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:
getStartupProbein 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:
getStartupProbeOrBuilderin interfaceContainerOrBuilder
-
setUnknownFields
public final Container.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
mergeUnknownFields
public final Container.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Container.Builder>
-
-