Package com.google.cloud.workstations.v1
Class WorkstationConfig.Container
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.workstations.v1.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.v1.WorkstationConfig.Container- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkstationConfig.Container.BuilderA 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 intARGS_FIELD_NUMBERstatic intCOMMAND_FIELD_NUMBERstatic intENV_FIELD_NUMBERstatic intIMAGE_FIELD_NUMBERstatic intRUN_AS_USER_FIELD_NUMBERstatic intWORKING_DIR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsEnv(String key)Optional.booleanequals(Object obj)StringgetArgs(int index)Optional.com.google.protobuf.ByteStringgetArgsBytes(int index)Optional.intgetArgsCount()Optional.com.google.protobuf.ProtocolStringListgetArgsList()Optional.StringgetCommand(int index)Optional.com.google.protobuf.ByteStringgetCommandBytes(int index)Optional.intgetCommandCount()Optional.com.google.protobuf.ProtocolStringListgetCommandList()Optional.static WorkstationConfig.ContainergetDefaultInstance()WorkstationConfig.ContainergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Map<String,String>getEnv()Deprecated.intgetEnvCount()Optional.Map<String,String>getEnvMap()Optional.StringgetEnvOrDefault(String key, String defaultValue)Optional.StringgetEnvOrThrow(String key)Optional.StringgetImage()Optional.com.google.protobuf.ByteStringgetImageBytes()Optional.com.google.protobuf.Parser<WorkstationConfig.Container>getParserForType()intgetRunAsUser()Optional.intgetSerializedSize()StringgetWorkingDir()Optional.com.google.protobuf.ByteStringgetWorkingDirBytes()Optional.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static WorkstationConfig.Container.BuildernewBuilder()static WorkstationConfig.Container.BuildernewBuilder(WorkstationConfig.Container prototype)WorkstationConfig.Container.BuildernewBuilderForType()protected WorkstationConfig.Container.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WorkstationConfig.ContainerparseDelimitedFrom(InputStream input)static WorkstationConfig.ContainerparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkstationConfig.ContainerparseFrom(byte[] data)static WorkstationConfig.ContainerparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkstationConfig.ContainerparseFrom(com.google.protobuf.ByteString data)static WorkstationConfig.ContainerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkstationConfig.ContainerparseFrom(com.google.protobuf.CodedInputStream input)static WorkstationConfig.ContainerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkstationConfig.ContainerparseFrom(InputStream input)static WorkstationConfig.ContainerparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkstationConfig.ContainerparseFrom(ByteBuffer data)static WorkstationConfig.ContainerparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<WorkstationConfig.Container>parser()WorkstationConfig.Container.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getImagein 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:
getImageBytesin 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:
getCommandListin 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:
getCommandCountin 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:
getCommandin 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:
getCommandBytesin 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:
getArgsListin 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:
getArgsCountin 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:
getArgsin 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:
getArgsBytesin 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.ContainerOrBuilderOptional. Environment variables passed to the container's entrypoint.
map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnvCountin 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:
containsEnvin interfaceWorkstationConfig.ContainerOrBuilder
-
getEnv
@Deprecated public Map<String,String> getEnv()
Deprecated.UsegetEnvMap()instead.- Specified by:
getEnvin 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:
getEnvMapin 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:
getEnvOrDefaultin 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:
getEnvOrThrowin 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:
getWorkingDirin 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:
getWorkingDirBytesin 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:
getRunAsUserin interfaceWorkstationConfig.ContainerOrBuilder- Returns:
- The runAsUser.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WorkstationConfig.Container.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WorkstationConfig.Container getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-