public static final class WorkstationConfig.Container extends GeneratedMessageV3 implements WorkstationConfig.ContainerOrBuilder
A Docker container.
Protobuf type google.cloud.workstations.v1.WorkstationConfig.Container
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(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 |
|
RUN_AS_USER_FIELD_NUMBER
public static final int RUN_AS_USER_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 WorkstationConfig.Container getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static WorkstationConfig.Container.Builder newBuilder()
newBuilder(WorkstationConfig.Container prototype)
public static WorkstationConfig.Container.Builder newBuilder(WorkstationConfig.Container prototype)
public static WorkstationConfig.Container parseDelimitedFrom(InputStream input)
public static WorkstationConfig.Container parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static WorkstationConfig.Container parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Container parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static WorkstationConfig.Container parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Container parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Container parseFrom(CodedInputStream input)
public static WorkstationConfig.Container parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Container parseFrom(InputStream input)
public static WorkstationConfig.Container parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static WorkstationConfig.Container parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.Container parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<WorkstationConfig.Container> parser()
Methods
containsEnv(String key)
public boolean containsEnv(String key)
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getArgs(int index)
public String getArgs(int index)
Optional. Arguments passed to the entrypoint.
repeated string args = 3 [(.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 passed to the entrypoint.
repeated string args = 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 args at the given index.
|
getArgsCount()
public int getArgsCount()
Optional. Arguments passed to the entrypoint.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The count of args.
|
getArgsList()
public ProtocolStringList getArgsList()
Optional. Arguments passed to the entrypoint.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
getCommand(int index)
public String getCommand(int index)
Optional. If set, overrides the default ENTRYPOINT specified by the
image.
repeated string command = 2 [(.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. If set, overrides the default ENTRYPOINT specified by the
image.
repeated string command = 2 [(.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. If set, overrides the default ENTRYPOINT specified by the
image.
repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The count of command.
|
getCommandList()
public ProtocolStringList getCommandList()
Optional. If set, overrides the default ENTRYPOINT specified by the
image.
repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public WorkstationConfig.Container getDefaultInstanceForType()
getEnv() (deprecated)
public Map<String,String> getEnv()
getEnvCount()
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getEnvMap()
public Map<String,String> getEnvMap()
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
getEnvOrDefault(String key, String defaultValue)
public String getEnvOrDefault(String key, String defaultValue)
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
|
getEnvOrThrow(String key)
public String getEnvOrThrow(String key)
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getImage()
Optional. A Docker container image that defines a custom environment.
Cloud Workstations provides a number of
preconfigured
images,
but you can create your own
custom container
images.
If using a private image, the host.gceInstance.serviceAccount
field
must be specified in the workstation configuration and must have
permission to pull the specified image. Otherwise, the image must be
publicly accessible.
string image = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The image.
|
getImageBytes()
public ByteString getImageBytes()
Optional. A Docker container image that defines a custom environment.
Cloud Workstations provides a number of
preconfigured
images,
but you can create your own
custom container
images.
If using a private image, the host.gceInstance.serviceAccount
field
must be specified in the workstation configuration and must have
permission to pull the specified image. Otherwise, the image must be
publicly accessible.
string image = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for image.
|
getParserForType()
public Parser<WorkstationConfig.Container> getParserForType()
Overrides
getRunAsUser()
public int getRunAsUser()
Optional. If set, overrides the USER specified in the image with the
given uid.
int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The runAsUser.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getWorkingDir()
public String getWorkingDir()
Optional. If set, overrides the default DIR specified by the image.
string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The workingDir.
|
getWorkingDirBytes()
public ByteString getWorkingDirBytes()
Optional. If set, overrides the default DIR specified by the image.
string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for workingDir.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public WorkstationConfig.Container.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WorkstationConfig.Container.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public WorkstationConfig.Container.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides