public final class SandboxTemplate extends GeneratedMessage implements SandboxTemplateOrBuilder
Template for a single sandbox.
Protobuf type google.cloud.run.v2.SandboxTemplate
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
COMMAND_FIELD_NUMBER
public static final int COMMAND_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENV_FIELD_NUMBER
public static final int ENV_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VOLUME_MOUNTS_FIELD_NUMBER
public static final int VOLUME_MOUNTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
WORKING_DIR_FIELD_NUMBER
public static final int WORKING_DIR_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SandboxTemplate getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SandboxTemplate.Builder newBuilder()
newBuilder(SandboxTemplate prototype)
public static SandboxTemplate.Builder newBuilder(SandboxTemplate prototype)
public static SandboxTemplate parseDelimitedFrom(InputStream input)
public static SandboxTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SandboxTemplate parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SandboxTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SandboxTemplate parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SandboxTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SandboxTemplate parseFrom(CodedInputStream input)
public static SandboxTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SandboxTemplate parseFrom(InputStream input)
public static SandboxTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SandboxTemplate parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SandboxTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SandboxTemplate> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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 |
int
The 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 |
int
The 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];
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 |
int
The 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 |
int
The 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];
getDefaultInstanceForType()
public SandboxTemplate getDefaultInstanceForType()
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 |
|
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];
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
|
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()
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()
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.
|
getParserForType()
public Parser<SandboxTemplate> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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
|
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];
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
|
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SandboxTemplate.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected SandboxTemplate.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public SandboxTemplate.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides