Class WorkstationConfig.Container
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.workstations.v1beta.WorkstationConfig.Container
-
- All Implemented Interfaces:
WorkstationConfig.ContainerOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- WorkstationConfig
public static final class WorkstationConfig.Container extends com.google.protobuf.GeneratedMessageV3 implements WorkstationConfig.ContainerOrBuilder
A Docker container.
Protobuf typegoogle.cloud.workstations.v1beta.WorkstationConfig.Container
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkstationConfig.Container.Builder
A Docker container.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARGS_FIELD_NUMBER
static int
COMMAND_FIELD_NUMBER
static int
ENV_FIELD_NUMBER
static int
IMAGE_FIELD_NUMBER
static int
RUN_AS_USER_FIELD_NUMBER
static int
WORKING_DIR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsEnv(String key)
Optional.boolean
equals(Object obj)
String
getArgs(int index)
Optional.com.google.protobuf.ByteString
getArgsBytes(int index)
Optional.int
getArgsCount()
Optional.com.google.protobuf.ProtocolStringList
getArgsList()
Optional.String
getCommand(int index)
Optional.com.google.protobuf.ByteString
getCommandBytes(int index)
Optional.int
getCommandCount()
Optional.com.google.protobuf.ProtocolStringList
getCommandList()
Optional.static WorkstationConfig.Container
getDefaultInstance()
WorkstationConfig.Container
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Map<String,String>
getEnv()
Deprecated.int
getEnvCount()
Optional.Map<String,String>
getEnvMap()
Optional.String
getEnvOrDefault(String key, String defaultValue)
Optional.String
getEnvOrThrow(String key)
Optional.String
getImage()
Optional.com.google.protobuf.ByteString
getImageBytes()
Optional.com.google.protobuf.Parser<WorkstationConfig.Container>
getParserForType()
int
getRunAsUser()
Optional.int
getSerializedSize()
String
getWorkingDir()
Optional.com.google.protobuf.ByteString
getWorkingDirBytes()
Optional.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static WorkstationConfig.Container.Builder
newBuilder()
static WorkstationConfig.Container.Builder
newBuilder(WorkstationConfig.Container prototype)
WorkstationConfig.Container.Builder
newBuilderForType()
protected WorkstationConfig.Container.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static WorkstationConfig.Container
parseDelimitedFrom(InputStream input)
static WorkstationConfig.Container
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WorkstationConfig.Container
parseFrom(byte[] data)
static WorkstationConfig.Container
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WorkstationConfig.Container
parseFrom(com.google.protobuf.ByteString data)
static WorkstationConfig.Container
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WorkstationConfig.Container
parseFrom(com.google.protobuf.CodedInputStream input)
static WorkstationConfig.Container
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WorkstationConfig.Container
parseFrom(InputStream input)
static WorkstationConfig.Container
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static WorkstationConfig.Container
parseFrom(ByteBuffer data)
static WorkstationConfig.Container
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<WorkstationConfig.Container>
parser()
WorkstationConfig.Container.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMMAND_FIELD_NUMBER
public static final int COMMAND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENV_FIELD_NUMBER
public static final int ENV_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKING_DIR_FIELD_NUMBER
public static final int WORKING_DIR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUN_AS_USER_FIELD_NUMBER
public static final int RUN_AS_USER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getImage
public String getImage()
Optional. A Docker container image that defines a custom environment. Cloud Workstations provides a number of [preconfigured images](https://cloud.google.com/workstations/docs/preconfigured-base-images), but you can create your own [custom container images](https://cloud.google.com/workstations/docs/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];
- Specified by:
getImage
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- The image.
-
getImageBytes
public com.google.protobuf.ByteString getImageBytes()
Optional. A Docker container image that defines a custom environment. Cloud Workstations provides a number of [preconfigured images](https://cloud.google.com/workstations/docs/preconfigured-base-images), but you can create your own [custom container images](https://cloud.google.com/workstations/docs/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];
- Specified by:
getImageBytes
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- The bytes for image.
-
getCommandList
public com.google.protobuf.ProtocolStringList getCommandList()
Optional. If set, overrides the default ENTRYPOINT specified by the image.
repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getCommandList
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- A list containing the command.
-
getCommandCount
public int getCommandCount()
Optional. If set, overrides the default ENTRYPOINT specified by the image.
repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getCommandCount
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- The count of command.
-
getCommand
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];
- Specified by:
getCommand
in interfaceWorkstationConfig.ContainerOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The command at the given index.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes(int index)
Optional. If set, overrides the default ENTRYPOINT specified by the image.
repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getCommandBytes
in interfaceWorkstationConfig.ContainerOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the command at the given index.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()
Optional. Arguments passed to the entrypoint.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArgsList
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()
Optional. Arguments passed to the entrypoint.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArgsCount
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- The count of args.
-
getArgs
public String getArgs(int index)
Optional. Arguments passed to the entrypoint.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArgs
in interfaceWorkstationConfig.ContainerOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index)
Optional. Arguments passed to the entrypoint.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArgsBytes
in interfaceWorkstationConfig.ContainerOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getEnvCount
public int getEnvCount()
Description copied from interface:WorkstationConfig.ContainerOrBuilder
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEnvCount
in interfaceWorkstationConfig.ContainerOrBuilder
-
containsEnv
public boolean containsEnv(String key)
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsEnv
in interfaceWorkstationConfig.ContainerOrBuilder
-
getEnv
@Deprecated public Map<String,String> getEnv()
Deprecated.UsegetEnvMap()
instead.- Specified by:
getEnv
in interfaceWorkstationConfig.ContainerOrBuilder
-
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];
- Specified by:
getEnvMap
in interfaceWorkstationConfig.ContainerOrBuilder
-
getEnvOrDefault
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];
- Specified by:
getEnvOrDefault
in interfaceWorkstationConfig.ContainerOrBuilder
-
getEnvOrThrow
public String getEnvOrThrow(String key)
Optional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEnvOrThrow
in interfaceWorkstationConfig.ContainerOrBuilder
-
getWorkingDir
public String getWorkingDir()
Optional. If set, overrides the default DIR specified by the image.
string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getWorkingDir
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- The workingDir.
-
getWorkingDirBytes
public com.google.protobuf.ByteString getWorkingDirBytes()
Optional. If set, overrides the default DIR specified by the image.
string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getWorkingDirBytes
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- The bytes for workingDir.
-
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];
- Specified by:
getRunAsUser
in interfaceWorkstationConfig.ContainerOrBuilder
- Returns:
- The runAsUser.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WorkstationConfig.Container parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkstationConfig.Container parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkstationConfig.Container parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkstationConfig.Container parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkstationConfig.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkstationConfig.Container parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkstationConfig.Container parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WorkstationConfig.Container parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WorkstationConfig.Container parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WorkstationConfig.Container parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static WorkstationConfig.Container parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WorkstationConfig.Container parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public WorkstationConfig.Container.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WorkstationConfig.Container.Builder newBuilder()
-
newBuilder
public static WorkstationConfig.Container.Builder newBuilder(WorkstationConfig.Container prototype)
-
toBuilder
public WorkstationConfig.Container.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WorkstationConfig.Container.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WorkstationConfig.Container getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WorkstationConfig.Container> parser()
-
getParserForType
public com.google.protobuf.Parser<WorkstationConfig.Container> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WorkstationConfig.Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-