Class Workstation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
- com.google.cloud.workstations.v1beta.Workstation.Builder
-
- All Implemented Interfaces:
WorkstationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Workstation
public static final class Workstation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder> implements WorkstationOrBuilder
A single instance of a developer workstation with its own persistent storage.
Protobuf typegoogle.cloud.workstations.v1beta.Workstation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Workstation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Workstationbuild()WorkstationbuildPartial()Workstation.Builderclear()Workstation.BuilderclearAnnotations()Workstation.BuilderclearCreateTime()Output only.Workstation.BuilderclearDeleteTime()Output only.Workstation.BuilderclearDisplayName()Optional.Workstation.BuilderclearEnv()Workstation.BuilderclearEtag()Optional.Workstation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Workstation.BuilderclearHost()Output only.Workstation.BuilderclearLabels()Workstation.BuilderclearName()Full name of this workstation.Workstation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Workstation.BuilderclearReconciling()Output only.Workstation.BuilderclearStartTime()Output only.Workstation.BuilderclearState()Output only.Workstation.BuilderclearUid()Output only.Workstation.BuilderclearUpdateTime()Output only.Workstation.Builderclone()booleancontainsAnnotations(String key)Optional.booleancontainsEnv(String key)Optional.booleancontainsLabels(String key)Optional.Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Optional.Map<String,String>getAnnotationsMap()Optional.StringgetAnnotationsOrDefault(String key, String defaultValue)Optional.StringgetAnnotationsOrThrow(String key)Optional.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.WorkstationgetDefaultInstanceForType()com.google.protobuf.TimestampgetDeleteTime()Output only.com.google.protobuf.Timestamp.BuildergetDeleteTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetDeleteTimeOrBuilder()Output only.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Optional.com.google.protobuf.ByteStringgetDisplayNameBytes()Optional.Map<String,String>getEnv()Deprecated.intgetEnvCount()Optional.Map<String,String>getEnvMap()Optional.StringgetEnvOrDefault(String key, String defaultValue)Optional.StringgetEnvOrThrow(String key)Optional.StringgetEtag()Optional.com.google.protobuf.ByteStringgetEtagBytes()Optional.StringgetHost()Output only.com.google.protobuf.ByteStringgetHostBytes()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Optional.Map<String,String>getLabelsMap()Optional.StringgetLabelsOrDefault(String key, String defaultValue)Optional.StringgetLabelsOrThrow(String key)Optional.Map<String,String>getMutableAnnotations()Deprecated.Map<String,String>getMutableEnv()Deprecated.Map<String,String>getMutableLabels()Deprecated.StringgetName()Full name of this workstation.com.google.protobuf.ByteStringgetNameBytes()Full name of this workstation.booleangetReconciling()Output only.com.google.protobuf.TimestampgetStartTime()Output only.com.google.protobuf.Timestamp.BuildergetStartTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()Output only.Workstation.StategetState()Output only.intgetStateValue()Output only.StringgetUid()Output only.com.google.protobuf.ByteStringgetUidBytes()Output only.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCreateTime()Output only.booleanhasDeleteTime()Output only.booleanhasStartTime()Output only.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Workstation.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuildermergeDeleteTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuildermergeFrom(Workstation other)Workstation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Workstation.BuildermergeFrom(com.google.protobuf.Message other)Workstation.BuildermergeStartTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Workstation.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuilderputAllAnnotations(Map<String,String> values)Optional.Workstation.BuilderputAllEnv(Map<String,String> values)Optional.Workstation.BuilderputAllLabels(Map<String,String> values)Optional.Workstation.BuilderputAnnotations(String key, String value)Optional.Workstation.BuilderputEnv(String key, String value)Optional.Workstation.BuilderputLabels(String key, String value)Optional.Workstation.BuilderremoveAnnotations(String key)Optional.Workstation.BuilderremoveEnv(String key)Optional.Workstation.BuilderremoveLabels(String key)Optional.Workstation.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Workstation.BuildersetDeleteTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuildersetDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Workstation.BuildersetDisplayName(String value)Optional.Workstation.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Optional.Workstation.BuildersetEtag(String value)Optional.Workstation.BuildersetEtagBytes(com.google.protobuf.ByteString value)Optional.Workstation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Workstation.BuildersetHost(String value)Output only.Workstation.BuildersetHostBytes(com.google.protobuf.ByteString value)Output only.Workstation.BuildersetName(String value)Full name of this workstation.Workstation.BuildersetNameBytes(com.google.protobuf.ByteString value)Full name of this workstation.Workstation.BuildersetReconciling(boolean value)Output only.Workstation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Workstation.BuildersetStartTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuildersetStartTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Workstation.BuildersetState(Workstation.State value)Output only.Workstation.BuildersetStateValue(int value)Output only.Workstation.BuildersetUid(String value)Output only.Workstation.BuildersetUidBytes(com.google.protobuf.ByteString value)Output only.Workstation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Workstation.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.Workstation.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Workstation.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
clear
public Workstation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
getDefaultInstanceForType
public Workstation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Workstation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Workstation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Workstation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
setField
public Workstation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
clearField
public Workstation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
clearOneof
public Workstation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
setRepeatedField
public Workstation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
addRepeatedField
public Workstation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
mergeFrom
public Workstation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Workstation.Builder>
-
mergeFrom
public Workstation.Builder mergeFrom(Workstation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
mergeFrom
public Workstation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Workstation.Builder>- Throws:
IOException
-
getName
public String getName()
Full name of this workstation.
string name = 1;- Specified by:
getNamein interfaceWorkstationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Full name of this workstation.
string name = 1;- Specified by:
getNameBytesin interfaceWorkstationOrBuilder- Returns:
- The bytes for name.
-
setName
public Workstation.Builder setName(String value)
Full name of this workstation.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Workstation.Builder clearName()
Full name of this workstation.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Workstation.Builder setNameBytes(com.google.protobuf.ByteString value)
Full name of this workstation.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Optional. Human-readable name for this workstation.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceWorkstationOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Optional. Human-readable name for this workstation.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceWorkstationOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public Workstation.Builder setDisplayName(String value)
Optional. Human-readable name for this workstation.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Workstation.Builder clearDisplayName()
Optional. Human-readable name for this workstation.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Workstation.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Optional. Human-readable name for this workstation.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getUid
public String getUid()
Output only. A system-assigned unique identifier for this workstation.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceWorkstationOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. A system-assigned unique identifier for this workstation.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceWorkstationOrBuilder- Returns:
- The bytes for uid.
-
setUid
public Workstation.Builder setUid(String value)
Output only. A system-assigned unique identifier for this workstation.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public Workstation.Builder clearUid()
Output only. A system-assigned unique identifier for this workstation.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUidBytes
public Workstation.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. A system-assigned unique identifier for this workstation.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
getReconciling
public boolean getReconciling()
Output only. Indicates whether this workstation is currently being updated to match its intended state.
bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReconcilingin interfaceWorkstationOrBuilder- Returns:
- The reconciling.
-
setReconciling
public Workstation.Builder setReconciling(boolean value)
Output only. Indicates whether this workstation is currently being updated to match its intended state.
bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The reconciling to set.- Returns:
- This builder for chaining.
-
clearReconciling
public Workstation.Builder clearReconciling()
Output only. Indicates whether this workstation is currently being updated to match its intended state.
bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:WorkstationOrBuilderOptional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsCountin interfaceWorkstationOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsAnnotationsin interfaceWorkstationOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceWorkstationOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsMapin interfaceWorkstationOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrDefaultin interfaceWorkstationOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrThrowin interfaceWorkstationOrBuilder
-
clearAnnotations
public Workstation.Builder clearAnnotations()
-
removeAnnotations
public Workstation.Builder removeAnnotations(String key)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public Workstation.Builder putAnnotations(String key, String value)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
-
putAllAnnotations
public Workstation.Builder putAllAnnotations(Map<String,String> values)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:WorkstationOrBuilderOptional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceWorkstationOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceWorkstationOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceWorkstationOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceWorkstationOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceWorkstationOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceWorkstationOrBuilder
-
clearLabels
public Workstation.Builder clearLabels()
-
removeLabels
public Workstation.Builder removeLabels(String key)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Workstation.Builder putLabels(String key, String value)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
-
putAllLabels
public Workstation.Builder putAllLabels(Map<String,String> values)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
-
hasCreateTime
public boolean hasCreateTime()
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceWorkstationOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceWorkstationOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Workstation.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Workstation.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Workstation.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Workstation.Builder clearCreateTime()
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when this workstation was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceWorkstationOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceWorkstationOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceWorkstationOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public Workstation.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public Workstation.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public Workstation.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public Workstation.Builder clearUpdateTime()
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Time when this workstation was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceWorkstationOrBuilder
-
hasStartTime
public boolean hasStartTime()
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasStartTimein interfaceWorkstationOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStartTimein interfaceWorkstationOrBuilder- Returns:
- The startTime.
-
setStartTime
public Workstation.Builder setStartTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setStartTime
public Workstation.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeStartTime
public Workstation.Builder mergeStartTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearStartTime
public Workstation.Builder clearStartTime()
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
.google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStartTimeOrBuilderin interfaceWorkstationOrBuilder
-
hasDeleteTime
public boolean hasDeleteTime()
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDeleteTimein interfaceWorkstationOrBuilder- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
public com.google.protobuf.Timestamp getDeleteTime()
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimein interfaceWorkstationOrBuilder- Returns:
- The deleteTime.
-
setDeleteTime
public Workstation.Builder setDeleteTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setDeleteTime
public Workstation.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeDeleteTime
public Workstation.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearDeleteTime
public Workstation.Builder clearDeleteTime()
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. Time when this workstation was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimeOrBuilderin interfaceWorkstationOrBuilder
-
getEtag
public String getEtag()
Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagin interfaceWorkstationOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagBytesin interfaceWorkstationOrBuilder- Returns:
- The bytes for etag.
-
setEtag
public Workstation.Builder setEtag(String value)
Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public Workstation.Builder clearEtag()
Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEtagBytes
public Workstation.Builder setEtagBytes(com.google.protobuf.ByteString value)
Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. Current state of the workstation.
.google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceWorkstationOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Workstation.Builder setStateValue(int value)
Output only. Current state of the workstation.
.google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public Workstation.State getState()
Output only. Current state of the workstation.
.google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceWorkstationOrBuilder- Returns:
- The state.
-
setState
public Workstation.Builder setState(Workstation.State value)
Output only. Current state of the workstation.
.google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Workstation.Builder clearState()
Output only. Current state of the workstation.
.google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getHost
public String getHost()
Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format `{port}-{host}`.string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHostin interfaceWorkstationOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format `{port}-{host}`.string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHostBytesin interfaceWorkstationOrBuilder- Returns:
- The bytes for host.
-
setHost
public Workstation.Builder setHost(String value)
Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format `{port}-{host}`.string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public Workstation.Builder clearHost()
Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format `{port}-{host}`.string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setHostBytes
public Workstation.Builder setHostBytes(com.google.protobuf.ByteString value)
Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format `{port}-{host}`.string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
getEnvCount
public int getEnvCount()
Description copied from interface:WorkstationOrBuilderOptional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnvCountin interfaceWorkstationOrBuilder
-
containsEnv
public boolean containsEnv(String key)
Optional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsEnvin interfaceWorkstationOrBuilder
-
getEnv
@Deprecated public Map<String,String> getEnv()
Deprecated.UsegetEnvMap()instead.- Specified by:
getEnvin interfaceWorkstationOrBuilder
-
getEnvMap
public Map<String,String> getEnvMap()
Optional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnvMapin interfaceWorkstationOrBuilder
-
getEnvOrDefault
public String getEnvOrDefault(String key, String defaultValue)
Optional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnvOrDefaultin interfaceWorkstationOrBuilder
-
getEnvOrThrow
public String getEnvOrThrow(String key)
Optional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnvOrThrowin interfaceWorkstationOrBuilder
-
clearEnv
public Workstation.Builder clearEnv()
-
removeEnv
public Workstation.Builder removeEnv(String key)
Optional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableEnv
@Deprecated public Map<String,String> getMutableEnv()
Deprecated.Use alternate mutation accessors instead.
-
putEnv
public Workstation.Builder putEnv(String key, String value)
Optional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
-
putAllEnv
public Workstation.Builder putAllEnv(Map<String,String> values)
Optional. Environment variables passed to the workstation container's entrypoint.
map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final Workstation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
mergeUnknownFields
public final Workstation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Workstation.Builder>
-
-