public static final class WorkstationConfig.Container extends GeneratedMessageV3 implements WorkstationConfig.ContainerOrBuilder
A Docker container.
Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.Container
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
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)
Environment variables passed to the container's entrypoint.
map<string, string> env = 4;
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)
Arguments passed to the entrypoint.
repeated string args = 3;
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)
Arguments passed to the entrypoint.
repeated string args = 3;
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()
Arguments passed to the entrypoint.
repeated string args = 3;
Returns |
---|
Type | Description |
int | The count of args.
|
getArgsList()
public ProtocolStringList getArgsList()
Arguments passed to the entrypoint.
repeated string args = 3;
getCommand(int index)
public String getCommand(int index)
If set, overrides the default ENTRYPOINT specified by the image.
repeated string command = 2;
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)
If set, overrides the default ENTRYPOINT specified by the image.
repeated string command = 2;
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()
If set, overrides the default ENTRYPOINT specified by the image.
repeated string command = 2;
Returns |
---|
Type | Description |
int | The count of command.
|
getCommandList()
public ProtocolStringList getCommandList()
If set, overrides the default ENTRYPOINT specified by the image.
repeated string command = 2;
getDefaultInstanceForType()
public WorkstationConfig.Container getDefaultInstanceForType()
getEnv()
public Map<String,String> getEnv()
getEnvCount()
Environment variables passed to the container's entrypoint.
map<string, string> env = 4;
Returns |
---|
Type | Description |
int | |
getEnvMap()
public Map<String,String> getEnvMap()
Environment variables passed to the container's entrypoint.
map<string, string> env = 4;
getEnvOrDefault(String key, String defaultValue)
public String getEnvOrDefault(String key, String defaultValue)
Environment variables passed to the container's entrypoint.
map<string, string> env = 4;
getEnvOrThrow(String key)
public String getEnvOrThrow(String key)
Environment variables passed to the container's entrypoint.
map<string, string> env = 4;
Parameter |
---|
Name | Description |
key | String
|
getImage()
Docker image defining the container. This image must be accessible by the
service account specified in the workstation configuration.
string image = 1;
Returns |
---|
Type | Description |
String | The image.
|
getImageBytes()
public ByteString getImageBytes()
Docker image defining the container. This image must be accessible by the
service account specified in the workstation configuration.
string image = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for image.
|
getParserForType()
public Parser<WorkstationConfig.Container> getParserForType()
Overrides
getRunAsUser()
public int getRunAsUser()
If set, overrides the USER specified in the image with the given uid.
int32 run_as_user = 6;
Returns |
---|
Type | Description |
int | The runAsUser.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getWorkingDir()
public String getWorkingDir()
If set, overrides the default DIR specified by the image.
string working_dir = 5;
Returns |
---|
Type | Description |
String | The workingDir.
|
getWorkingDirBytes()
public ByteString getWorkingDirBytes()
If set, overrides the default DIR specified by the image.
string working_dir = 5;
Returns |
---|
Type | Description |
ByteString | The bytes for workingDir.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
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)
Overrides
toBuilder()
public WorkstationConfig.Container.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides