public static final class SandboxTemplate.Builder extends GeneratedMessage.Builder<SandboxTemplate.Builder> implements SandboxTemplateOrBuilderTemplate for a single sandbox.
Protobuf type google.cloud.run.v2.SandboxTemplate
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SandboxTemplate.BuilderImplements
SandboxTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllArgs(Iterable<String> values)
public SandboxTemplate.Builder addAllArgs(Iterable<String> values)Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The args to add. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
addAllCommand(Iterable<String> values)
public SandboxTemplate.Builder addAllCommand(Iterable<String> values)Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The command to add. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
addAllEnv(Iterable<? extends EnvVar> values)
public SandboxTemplate.Builder addAllEnv(Iterable<? extends EnvVar> values)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.run.v2.EnvVar> |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addAllVolumeMounts(Iterable<? extends VolumeMount> values)
public SandboxTemplate.Builder addAllVolumeMounts(Iterable<? extends VolumeMount> values)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.run.v2.VolumeMount> |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addArgs(String value)
public SandboxTemplate.Builder addArgs(String value)Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe args to add. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
addArgsBytes(ByteString value)
public SandboxTemplate.Builder addArgsBytes(ByteString value)Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the args to add. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
addCommand(String value)
public SandboxTemplate.Builder addCommand(String value)Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe command to add. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
addCommandBytes(ByteString value)
public SandboxTemplate.Builder addCommandBytes(ByteString value)Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the command to add. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
addEnv(EnvVar value)
public SandboxTemplate.Builder addEnv(EnvVar value)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
EnvVar |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addEnv(EnvVar.Builder builderForValue)
public SandboxTemplate.Builder addEnv(EnvVar.Builder builderForValue)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EnvVar.Builder |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addEnv(int index, EnvVar value)
public SandboxTemplate.Builder addEnv(int index, EnvVar value)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EnvVar |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addEnv(int index, EnvVar.Builder builderForValue)
public SandboxTemplate.Builder addEnv(int index, EnvVar.Builder builderForValue)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EnvVar.Builder |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addEnvBuilder()
public EnvVar.Builder addEnvBuilder()Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnvVar.Builder |
|
addEnvBuilder(int index)
public EnvVar.Builder addEnvBuilder(int index)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvVar.Builder |
|
addVolumeMounts(VolumeMount value)
public SandboxTemplate.Builder addVolumeMounts(VolumeMount value)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
VolumeMount |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addVolumeMounts(VolumeMount.Builder builderForValue)
public SandboxTemplate.Builder addVolumeMounts(VolumeMount.Builder builderForValue)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
VolumeMount.Builder |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addVolumeMounts(int index, VolumeMount value)
public SandboxTemplate.Builder addVolumeMounts(int index, VolumeMount value)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
VolumeMount |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addVolumeMounts(int index, VolumeMount.Builder builderForValue)
public SandboxTemplate.Builder addVolumeMounts(int index, VolumeMount.Builder builderForValue)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
VolumeMount.Builder |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
addVolumeMountsBuilder()
public VolumeMount.Builder addVolumeMountsBuilder()Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VolumeMount.Builder |
|
addVolumeMountsBuilder(int index)
public VolumeMount.Builder addVolumeMountsBuilder(int index)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VolumeMount.Builder |
|
build()
public SandboxTemplate build()| Returns | |
|---|---|
| Type | Description |
SandboxTemplate |
|
buildPartial()
public SandboxTemplate buildPartial()| Returns | |
|---|---|
| Type | Description |
SandboxTemplate |
|
clear()
public SandboxTemplate.Builder clear()| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
clearArgs()
public SandboxTemplate.Builder clearArgs()Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
clearCommand()
public SandboxTemplate.Builder clearCommand()Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
clearEnv()
public SandboxTemplate.Builder clearEnv()Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
clearImage()
public SandboxTemplate.Builder clearImage()Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
clearName()
public SandboxTemplate.Builder clearName()Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
clearVolumeMounts()
public SandboxTemplate.Builder clearVolumeMounts()Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
clearWorkingDir()
public SandboxTemplate.Builder clearWorkingDir()Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
getArgs(int index)
public String getArgs(int index)Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The args at the given index. |
getArgsBytes(int index)
public ByteString getArgsBytes(int index)Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the args at the given index. |
getArgsCount()
public int getArgsCount()Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of args. |
getArgsList()
public ProtocolStringList getArgsList()Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the args. |
getCommand(int index)
public String getCommand(int index)Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The command at the given index. |
getCommandBytes(int index)
public ByteString getCommandBytes(int index)Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the command at the given index. |
getCommandCount()
public int getCommandCount()Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of command. |
getCommandList()
public ProtocolStringList getCommandList()Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the command. |
getDefaultInstanceForType()
public SandboxTemplate getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SandboxTemplate |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnv(int index)
public EnvVar getEnv(int index)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvVar |
|
getEnvBuilder(int index)
public EnvVar.Builder getEnvBuilder(int index)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvVar.Builder |
|
getEnvBuilderList()
public List<EnvVar.Builder> getEnvBuilderList()Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getEnvCount()
public int getEnvCount()Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getEnvList()
public List<EnvVar> getEnvList()Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<EnvVar> |
|
getEnvOrBuilder(int index)
public EnvVarOrBuilder getEnvOrBuilder(int index)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnvVarOrBuilder |
|
getEnvOrBuilderList()
public List<? extends EnvVarOrBuilder> getEnvOrBuilderList()Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.run.v2.EnvVarOrBuilder> |
|
getImage()
public String getImage()Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The image. |
getImageBytes()
public ByteString getImageBytes()Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for image. |
getName()
public String getName()Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getVolumeMounts(int index)
public VolumeMount getVolumeMounts(int index)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VolumeMount |
|
getVolumeMountsBuilder(int index)
public VolumeMount.Builder getVolumeMountsBuilder(int index)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VolumeMount.Builder |
|
getVolumeMountsBuilderList()
public List<VolumeMount.Builder> getVolumeMountsBuilderList()Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getVolumeMountsCount()
public int getVolumeMountsCount()Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getVolumeMountsList()
public List<VolumeMount> getVolumeMountsList()Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<VolumeMount> |
|
getVolumeMountsOrBuilder(int index)
public VolumeMountOrBuilder getVolumeMountsOrBuilder(int index)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
VolumeMountOrBuilder |
|
getVolumeMountsOrBuilderList()
public List<? extends VolumeMountOrBuilder> getVolumeMountsOrBuilderList()Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.run.v2.VolumeMountOrBuilder> |
|
getWorkingDir()
public String getWorkingDir()Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The workingDir. |
getWorkingDirBytes()
public ByteString getWorkingDirBytes()Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for workingDir. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SandboxTemplate other)
public SandboxTemplate.Builder mergeFrom(SandboxTemplate other)| Parameter | |
|---|---|
| Name | Description |
other |
SandboxTemplate |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SandboxTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SandboxTemplate.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
removeEnv(int index)
public SandboxTemplate.Builder removeEnv(int index)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
removeVolumeMounts(int index)
public SandboxTemplate.Builder removeVolumeMounts(int index)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
setArgs(int index, String value)
public SandboxTemplate.Builder setArgs(int index, String value)Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
repeated string args = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe args to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
setCommand(int index, String value)
public SandboxTemplate.Builder setCommand(int index, String value)Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
repeated string command = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe command to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
setEnv(int index, EnvVar value)
public SandboxTemplate.Builder setEnv(int index, EnvVar value)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EnvVar |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
setEnv(int index, EnvVar.Builder builderForValue)
public SandboxTemplate.Builder setEnv(int index, EnvVar.Builder builderForValue)Optional. List of environment variables to set in the sandbox.
repeated .google.cloud.run.v2.EnvVar env = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EnvVar.Builder |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
setImage(String value)
public SandboxTemplate.Builder setImage(String value)Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe image to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
setImageBytes(ByteString value)
public SandboxTemplate.Builder setImageBytes(ByteString value)Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed.
string image = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for image to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
setName(String value)
public SandboxTemplate.Builder setName(String value)Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SandboxTemplate.Builder setNameBytes(ByteString value)Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
setVolumeMounts(int index, VolumeMount value)
public SandboxTemplate.Builder setVolumeMounts(int index, VolumeMount value)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
VolumeMount |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
setVolumeMounts(int index, VolumeMount.Builder builderForValue)
public SandboxTemplate.Builder setVolumeMounts(int index, VolumeMount.Builder builderForValue)Optional. Volume to mount into the container's filesystem.
repeated .google.cloud.run.v2.VolumeMount volume_mounts = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
VolumeMount.Builder |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
|
setWorkingDir(String value)
public SandboxTemplate.Builder setWorkingDir(String value)Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe workingDir to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |
setWorkingDirBytes(ByteString value)
public SandboxTemplate.Builder setWorkingDirBytes(ByteString value)Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for workingDir to set. |
| Returns | |
|---|---|
| Type | Description |
SandboxTemplate.Builder |
This builder for chaining. |