- 0.55.0 (latest)
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.5
- 0.2.1
- 0.1.2
public static final class Container.Builder extends GeneratedMessageV3.Builder<Container.Builder> implements ContainerOrBuilder
A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.
Protobuf type google.cloud.run.v2.Container
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Container.BuilderImplements
ContainerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllArgs(Iterable<String> values)
public Container.Builder addAllArgs(Iterable<String> values)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Name | Description |
values | Iterable<String> The args to add. |
Type | Description |
Container.Builder | This builder for chaining. |
addAllCommand(Iterable<String> values)
public Container.Builder addAllCommand(Iterable<String> values)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Name | Description |
values | Iterable<String> The command to add. |
Type | Description |
Container.Builder | This builder for chaining. |
addAllEnv(Iterable<? extends EnvVar> values)
public Container.Builder addAllEnv(Iterable<? extends EnvVar> values)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
values | Iterable<? extends com.google.cloud.run.v2.EnvVar> |
Type | Description |
Container.Builder |
addAllPorts(Iterable<? extends ContainerPort> values)
public Container.Builder addAllPorts(Iterable<? extends ContainerPort> values)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
values | Iterable<? extends com.google.cloud.run.v2.ContainerPort> |
Type | Description |
Container.Builder |
addAllVolumeMounts(Iterable<? extends VolumeMount> values)
public Container.Builder addAllVolumeMounts(Iterable<? extends VolumeMount> values)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
values | Iterable<? extends com.google.cloud.run.v2.VolumeMount> |
Type | Description |
Container.Builder |
addArgs(String value)
public Container.Builder addArgs(String value)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Name | Description |
value | String The args to add. |
Type | Description |
Container.Builder | This builder for chaining. |
addArgsBytes(ByteString value)
public Container.Builder addArgsBytes(ByteString value)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Name | Description |
value | ByteString The bytes of the args to add. |
Type | Description |
Container.Builder | This builder for chaining. |
addCommand(String value)
public Container.Builder addCommand(String value)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Name | Description |
value | String The command to add. |
Type | Description |
Container.Builder | This builder for chaining. |
addCommandBytes(ByteString value)
public Container.Builder addCommandBytes(ByteString value)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Name | Description |
value | ByteString The bytes of the command to add. |
Type | Description |
Container.Builder | This builder for chaining. |
addEnv(EnvVar value)
public Container.Builder addEnv(EnvVar value)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
value | EnvVar |
Type | Description |
Container.Builder |
addEnv(EnvVar.Builder builderForValue)
public Container.Builder addEnv(EnvVar.Builder builderForValue)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
builderForValue | EnvVar.Builder |
Type | Description |
Container.Builder |
addEnv(int index, EnvVar value)
public Container.Builder addEnv(int index, EnvVar value)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
value | EnvVar |
Type | Description |
Container.Builder |
addEnv(int index, EnvVar.Builder builderForValue)
public Container.Builder addEnv(int index, EnvVar.Builder builderForValue)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
builderForValue | EnvVar.Builder |
Type | Description |
Container.Builder |
addEnvBuilder()
public EnvVar.Builder addEnvBuilder()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Type | Description |
EnvVar.Builder |
addEnvBuilder(int index)
public EnvVar.Builder addEnvBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
Type | Description |
EnvVar.Builder |
addPorts(ContainerPort value)
public Container.Builder addPorts(ContainerPort value)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
value | ContainerPort |
Type | Description |
Container.Builder |
addPorts(ContainerPort.Builder builderForValue)
public Container.Builder addPorts(ContainerPort.Builder builderForValue)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
builderForValue | ContainerPort.Builder |
Type | Description |
Container.Builder |
addPorts(int index, ContainerPort value)
public Container.Builder addPorts(int index, ContainerPort value)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
value | ContainerPort |
Type | Description |
Container.Builder |
addPorts(int index, ContainerPort.Builder builderForValue)
public Container.Builder addPorts(int index, ContainerPort.Builder builderForValue)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
builderForValue | ContainerPort.Builder |
Type | Description |
Container.Builder |
addPortsBuilder()
public ContainerPort.Builder addPortsBuilder()
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Type | Description |
ContainerPort.Builder |
addPortsBuilder(int index)
public ContainerPort.Builder addPortsBuilder(int index)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
Type | Description |
ContainerPort.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Container.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Container.Builder |
addVolumeMounts(VolumeMount value)
public Container.Builder addVolumeMounts(VolumeMount value)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
value | VolumeMount |
Type | Description |
Container.Builder |
addVolumeMounts(VolumeMount.Builder builderForValue)
public Container.Builder addVolumeMounts(VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
builderForValue | VolumeMount.Builder |
Type | Description |
Container.Builder |
addVolumeMounts(int index, VolumeMount value)
public Container.Builder addVolumeMounts(int index, VolumeMount value)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
value | VolumeMount |
Type | Description |
Container.Builder |
addVolumeMounts(int index, VolumeMount.Builder builderForValue)
public Container.Builder addVolumeMounts(int index, VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
builderForValue | VolumeMount.Builder |
Type | Description |
Container.Builder |
addVolumeMountsBuilder()
public VolumeMount.Builder addVolumeMountsBuilder()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Type | Description |
VolumeMount.Builder |
addVolumeMountsBuilder(int index)
public VolumeMount.Builder addVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
Type | Description |
VolumeMount.Builder |
build()
public Container build()
Type | Description |
Container |
buildPartial()
public Container buildPartial()
Type | Description |
Container |
clear()
public Container.Builder clear()
Type | Description |
Container.Builder |
clearArgs()
public Container.Builder clearArgs()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Type | Description |
Container.Builder | This builder for chaining. |
clearCommand()
public Container.Builder clearCommand()
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Type | Description |
Container.Builder | This builder for chaining. |
clearEnv()
public Container.Builder clearEnv()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Type | Description |
Container.Builder |
clearField(Descriptors.FieldDescriptor field)
public Container.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Container.Builder |
clearImage()
public Container.Builder clearImage()
Required. URL of the Container image in Google Container Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images
string image = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Container.Builder | This builder for chaining. |
clearName()
public Container.Builder clearName()
Name of the container specified as a DNS_LABEL.
string name = 1;
Type | Description |
Container.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Container.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Container.Builder |
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;
Type | Description |
Container.Builder |
clearResources()
public Container.Builder clearResources()
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Type | Description |
Container.Builder |
clearVolumeMounts()
public Container.Builder clearVolumeMounts()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Type | Description |
Container.Builder |
clone()
public Container.Builder clone()
Type | Description |
Container.Builder |
getArgs(int index)
public String getArgs(int index)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The args at the given index. |
getArgsBytes(int index)
public ByteString getArgsBytes(int index)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the args at the given index. |
getArgsCount()
public int getArgsCount()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Type | Description |
int | The count of args. |
getArgsList()
public ProtocolStringList getArgsList()
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Type | Description |
ProtocolStringList | A list containing the args. |
getCommand(int index)
public String getCommand(int index)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The command at the given index. |
getCommandBytes(int index)
public ByteString getCommandBytes(int index)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the command at the given index. |
getCommandCount()
public int getCommandCount()
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Type | Description |
int | The count of command. |
getCommandList()
public ProtocolStringList getCommandList()
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Type | Description |
ProtocolStringList | A list containing the command. |
getDefaultInstanceForType()
public Container getDefaultInstanceForType()
Type | Description |
Container |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnv(int index)
public EnvVar getEnv(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
Type | Description |
EnvVar |
getEnvBuilder(int index)
public EnvVar.Builder getEnvBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
Type | Description |
EnvVar.Builder |
getEnvBuilderList()
public List<EnvVar.Builder> getEnvBuilderList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Type | Description |
List<Builder> |
getEnvCount()
public int getEnvCount()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Type | Description |
int |
getEnvList()
public List<EnvVar> getEnvList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Type | Description |
List<EnvVar> |
getEnvOrBuilder(int index)
public EnvVarOrBuilder getEnvOrBuilder(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
Type | Description |
EnvVarOrBuilder |
getEnvOrBuilderList()
public List<? extends EnvVarOrBuilder> getEnvOrBuilderList()
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Type | Description |
List<? extends com.google.cloud.run.v2.EnvVarOrBuilder> |
getImage()
public String getImage()
Required. URL of the Container image in Google Container Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images
string image = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The image. |
getImageBytes()
public ByteString getImageBytes()
Required. URL of the Container image in Google Container Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images
string image = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for image. |
getName()
public String getName()
Name of the container specified as a DNS_LABEL.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Name of the container specified as a DNS_LABEL.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getPorts(int index)
public ContainerPort getPorts(int index)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
Type | Description |
ContainerPort |
getPortsBuilder(int index)
public ContainerPort.Builder getPortsBuilder(int index)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
Type | Description |
ContainerPort.Builder |
getPortsBuilderList()
public List<ContainerPort.Builder> getPortsBuilderList()
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Type | Description |
List<Builder> |
getPortsCount()
public int getPortsCount()
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Type | Description |
int |
getPortsList()
public List<ContainerPort> getPortsList()
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Type | Description |
List<ContainerPort> |
getPortsOrBuilder(int index)
public ContainerPortOrBuilder getPortsOrBuilder(int index)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
Type | Description |
ContainerPortOrBuilder |
getPortsOrBuilderList()
public List<? extends ContainerPortOrBuilder> getPortsOrBuilderList()
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Type | Description |
List<? extends com.google.cloud.run.v2.ContainerPortOrBuilder> |
getResources()
public ResourceRequirements getResources()
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Type | Description |
ResourceRequirements | The resources. |
getResourcesBuilder()
public ResourceRequirements.Builder getResourcesBuilder()
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Type | Description |
ResourceRequirements.Builder |
getResourcesOrBuilder()
public ResourceRequirementsOrBuilder getResourcesOrBuilder()
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Type | Description |
ResourceRequirementsOrBuilder |
getVolumeMounts(int index)
public VolumeMount getVolumeMounts(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
Type | Description |
VolumeMount |
getVolumeMountsBuilder(int index)
public VolumeMount.Builder getVolumeMountsBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
Type | Description |
VolumeMount.Builder |
getVolumeMountsBuilderList()
public List<VolumeMount.Builder> getVolumeMountsBuilderList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Type | Description |
List<Builder> |
getVolumeMountsCount()
public int getVolumeMountsCount()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Type | Description |
int |
getVolumeMountsList()
public List<VolumeMount> getVolumeMountsList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Type | Description |
List<VolumeMount> |
getVolumeMountsOrBuilder(int index)
public VolumeMountOrBuilder getVolumeMountsOrBuilder(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
Type | Description |
VolumeMountOrBuilder |
getVolumeMountsOrBuilderList()
public List<? extends VolumeMountOrBuilder> getVolumeMountsOrBuilderList()
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Type | Description |
List<? extends com.google.cloud.run.v2.VolumeMountOrBuilder> |
hasResources()
public boolean hasResources()
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Type | Description |
boolean | Whether the resources field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Container other)
public Container.Builder mergeFrom(Container other)
Name | Description |
other | Container |
Type | Description |
Container.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Container.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Container.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Container.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Container.Builder |
mergeResources(ResourceRequirements value)
public Container.Builder mergeResources(ResourceRequirements value)
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Name | Description |
value | ResourceRequirements |
Type | Description |
Container.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Container.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Container.Builder |
removeEnv(int index)
public Container.Builder removeEnv(int index)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
Type | Description |
Container.Builder |
removePorts(int index)
public Container.Builder removePorts(int index)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
Type | Description |
Container.Builder |
removeVolumeMounts(int index)
public Container.Builder removeVolumeMounts(int index)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
Type | Description |
Container.Builder |
setArgs(int index, String value)
public Container.Builder setArgs(int index, String value)
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string args = 4;
Name | Description |
index | int The index to set the value at. |
value | String The args to set. |
Type | Description |
Container.Builder | This builder for chaining. |
setCommand(int index, String value)
public Container.Builder setCommand(int index, String value)
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
repeated string command = 3;
Name | Description |
index | int The index to set the value at. |
value | String The command to set. |
Type | Description |
Container.Builder | This builder for chaining. |
setEnv(int index, EnvVar value)
public Container.Builder setEnv(int index, EnvVar value)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
value | EnvVar |
Type | Description |
Container.Builder |
setEnv(int index, EnvVar.Builder builderForValue)
public Container.Builder setEnv(int index, EnvVar.Builder builderForValue)
List of environment variables to set in the container.
repeated .google.cloud.run.v2.EnvVar env = 5;
Name | Description |
index | int |
builderForValue | EnvVar.Builder |
Type | Description |
Container.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Container.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Container.Builder |
setImage(String value)
public Container.Builder setImage(String value)
Required. URL of the Container image in Google Container Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images
string image = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The image to set. |
Type | Description |
Container.Builder | This builder for chaining. |
setImageBytes(ByteString value)
public Container.Builder setImageBytes(ByteString value)
Required. URL of the Container image in Google Container Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images
string image = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for image to set. |
Type | Description |
Container.Builder | This builder for chaining. |
setName(String value)
public Container.Builder setName(String value)
Name of the container specified as a DNS_LABEL.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Container.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Container.Builder setNameBytes(ByteString value)
Name of the container specified as a DNS_LABEL.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Container.Builder | This builder for chaining. |
setPorts(int index, ContainerPort value)
public Container.Builder setPorts(int index, ContainerPort value)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
value | ContainerPort |
Type | Description |
Container.Builder |
setPorts(int index, ContainerPort.Builder builderForValue)
public Container.Builder setPorts(int index, ContainerPort.Builder builderForValue)
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.
repeated .google.cloud.run.v2.ContainerPort ports = 7;
Name | Description |
index | int |
builderForValue | ContainerPort.Builder |
Type | Description |
Container.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Container.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Container.Builder |
setResources(ResourceRequirements value)
public Container.Builder setResources(ResourceRequirements value)
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Name | Description |
value | ResourceRequirements |
Type | Description |
Container.Builder |
setResources(ResourceRequirements.Builder builderForValue)
public Container.Builder setResources(ResourceRequirements.Builder builderForValue)
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.google.cloud.run.v2.ResourceRequirements resources = 6;
Name | Description |
builderForValue | ResourceRequirements.Builder |
Type | Description |
Container.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Container.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Container.Builder |
setVolumeMounts(int index, VolumeMount value)
public Container.Builder setVolumeMounts(int index, VolumeMount value)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
value | VolumeMount |
Type | Description |
Container.Builder |
setVolumeMounts(int index, VolumeMount.Builder builderForValue)
public Container.Builder setVolumeMounts(int index, VolumeMount.Builder builderForValue)
Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 8;
Name | Description |
index | int |
builderForValue | VolumeMount.Builder |
Type | Description |
Container.Builder |