Package com.google.cloud.workstations.v1
Class WorkstationConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
- com.google.cloud.workstations.v1.WorkstationConfig.Builder
-
- All Implemented Interfaces:
WorkstationConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- WorkstationConfig
public static final class WorkstationConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder> implements WorkstationConfigOrBuilder
A workstation configuration resource in the Cloud Workstations API. Workstation configurations act as templates for workstations. The workstation configuration defines details such as the workstation virtual machine (VM) instance type, persistent storage, container image defining environment, which IDE or Code Editor to use, and more. Administrators and platform teams can also use [Identity and Access Management (IAM)](https://cloud.google.com/iam/docs/overview) rules to grant access to teams or to individual developers.
Protobuf typegoogle.cloud.workstations.v1.WorkstationConfig
-
-
Method Summary
-
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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
clear
public WorkstationConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
getDefaultInstanceForType
public WorkstationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkstationConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkstationConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkstationConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
setField
public WorkstationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
clearField
public WorkstationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
clearOneof
public WorkstationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
setRepeatedField
public WorkstationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
addRepeatedField
public WorkstationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
mergeFrom
public WorkstationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WorkstationConfig.Builder>
-
mergeFrom
public WorkstationConfig.Builder mergeFrom(WorkstationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
mergeFrom
public WorkstationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WorkstationConfig.Builder>
- Throws:
IOException
-
getName
public String getName()
Full name of this workstation configuration.
string name = 1;
- Specified by:
getName
in interfaceWorkstationConfigOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Full name of this workstation configuration.
string name = 1;
- Specified by:
getNameBytes
in interfaceWorkstationConfigOrBuilder
- Returns:
- The bytes for name.
-
setName
public WorkstationConfig.Builder setName(String value)
Full name of this workstation configuration.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public WorkstationConfig.Builder clearName()
Full name of this workstation configuration.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public WorkstationConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
Full name of this workstation configuration.
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 configuration.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDisplayName
in interfaceWorkstationConfigOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Optional. Human-readable name for this workstation configuration.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDisplayNameBytes
in interfaceWorkstationConfigOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public WorkstationConfig.Builder setDisplayName(String value)
Optional. Human-readable name for this workstation configuration.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public WorkstationConfig.Builder clearDisplayName()
Optional. Human-readable name for this workstation configuration.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public WorkstationConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Optional. Human-readable name for this workstation configuration.
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 configuration.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUid
in interfaceWorkstationConfigOrBuilder
- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. A system-assigned unique identifier for this workstation configuration.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUidBytes
in interfaceWorkstationConfigOrBuilder
- Returns:
- The bytes for uid.
-
setUid
public WorkstationConfig.Builder setUid(String value)
Output only. A system-assigned unique identifier for this workstation configuration.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public WorkstationConfig.Builder clearUid()
Output only. A system-assigned unique identifier for this workstation configuration.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUidBytes
public WorkstationConfig.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. A system-assigned unique identifier for this workstation configuration.
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 configuration is currently being updated to match its intended state.
bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getReconciling
in interfaceWorkstationConfigOrBuilder
- Returns:
- The reconciling.
-
setReconciling
public WorkstationConfig.Builder setReconciling(boolean value)
Output only. Indicates whether this workstation configuration 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 WorkstationConfig.Builder clearReconciling()
Output only. Indicates whether this workstation configuration 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:WorkstationConfigOrBuilder
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAnnotationsCount
in interfaceWorkstationConfigOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsAnnotations
in interfaceWorkstationConfigOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()
instead.- Specified by:
getAnnotations
in interfaceWorkstationConfigOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAnnotationsMap
in interfaceWorkstationConfigOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAnnotationsOrDefault
in interfaceWorkstationConfigOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAnnotationsOrThrow
in interfaceWorkstationConfigOrBuilder
-
clearAnnotations
public WorkstationConfig.Builder clearAnnotations()
-
removeAnnotations
public WorkstationConfig.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 WorkstationConfig.Builder putAnnotations(String key, String value)
Optional. Client-specified annotations.
map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
-
putAllAnnotations
public WorkstationConfig.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:WorkstationConfigOrBuilder
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsCount
in interfaceWorkstationConfigOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsLabels
in interfaceWorkstationConfigOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceWorkstationConfigOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsMap
in interfaceWorkstationConfigOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrDefault
in interfaceWorkstationConfigOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLabelsOrThrow
in interfaceWorkstationConfigOrBuilder
-
clearLabels
public WorkstationConfig.Builder clearLabels()
-
removeLabels
public WorkstationConfig.Builder removeLabels(String key)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public WorkstationConfig.Builder putLabels(String key, String value)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
-
putAllLabels
public WorkstationConfig.Builder putAllLabels(Map<String,String> values)
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
-
hasCreateTime
public boolean hasCreateTime()
Output only. Time when this workstation configuration was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Time when this workstation configuration was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceWorkstationConfigOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public WorkstationConfig.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation configuration was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public WorkstationConfig.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time when this workstation configuration was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public WorkstationConfig.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation configuration was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public WorkstationConfig.Builder clearCreateTime()
Output only. Time when this workstation configuration 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 configuration 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 configuration was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceWorkstationConfigOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Time when this workstation configuration was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasUpdateTime
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. Time when this workstation configuration was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceWorkstationConfigOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public WorkstationConfig.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation configuration was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public WorkstationConfig.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time when this workstation configuration was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public WorkstationConfig.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation configuration was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public WorkstationConfig.Builder clearUpdateTime()
Output only. Time when this workstation configuration 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 configuration 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 configuration was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceWorkstationConfigOrBuilder
-
hasDeleteTime
public boolean hasDeleteTime()
Output only. Time when this workstation configuration was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasDeleteTime
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
public com.google.protobuf.Timestamp getDeleteTime()
Output only. Time when this workstation configuration was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteTime
in interfaceWorkstationConfigOrBuilder
- Returns:
- The deleteTime.
-
setDeleteTime
public WorkstationConfig.Builder setDeleteTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation configuration was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setDeleteTime
public WorkstationConfig.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time when this workstation configuration was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeDeleteTime
public WorkstationConfig.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only. Time when this workstation configuration was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearDeleteTime
public WorkstationConfig.Builder clearDeleteTime()
Output only. Time when this workstation configuration 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 configuration 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 configuration was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteTimeOrBuilder
in interfaceWorkstationConfigOrBuilder
-
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:
getEtag
in interfaceWorkstationConfigOrBuilder
- 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:
getEtagBytes
in interfaceWorkstationConfigOrBuilder
- Returns:
- The bytes for etag.
-
setEtag
public WorkstationConfig.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 WorkstationConfig.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 WorkstationConfig.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.
-
hasIdleTimeout
public boolean hasIdleTimeout()
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasIdleTimeout
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the idleTimeout field is set.
-
getIdleTimeout
public com.google.protobuf.Duration getIdleTimeout()
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getIdleTimeout
in interfaceWorkstationConfigOrBuilder
- Returns:
- The idleTimeout.
-
setIdleTimeout
public WorkstationConfig.Builder setIdleTimeout(com.google.protobuf.Duration value)
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
-
setIdleTimeout
public WorkstationConfig.Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue)
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
-
mergeIdleTimeout
public WorkstationConfig.Builder mergeIdleTimeout(com.google.protobuf.Duration value)
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
-
clearIdleTimeout
public WorkstationConfig.Builder clearIdleTimeout()
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
-
getIdleTimeoutBuilder
public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder()
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
-
getIdleTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
.google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getIdleTimeoutOrBuilder
in interfaceWorkstationConfigOrBuilder
-
hasRunningTimeout
public boolean hasRunningTimeout()
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasRunningTimeout
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the runningTimeout field is set.
-
getRunningTimeout
public com.google.protobuf.Duration getRunningTimeout()
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRunningTimeout
in interfaceWorkstationConfigOrBuilder
- Returns:
- The runningTimeout.
-
setRunningTimeout
public WorkstationConfig.Builder setRunningTimeout(com.google.protobuf.Duration value)
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
-
setRunningTimeout
public WorkstationConfig.Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue)
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
-
mergeRunningTimeout
public WorkstationConfig.Builder mergeRunningTimeout(com.google.protobuf.Duration value)
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
-
clearRunningTimeout
public WorkstationConfig.Builder clearRunningTimeout()
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getRunningTimeoutBuilder
public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder()
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getRunningTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder()
Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security updates can be applied upon restart. The [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout] and [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] fields are independent of each other. Note that the [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout] field shuts down VMs after the specified time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations using this configuration should never time out. If [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key] is set, it must be greater than `"0s"` and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not pick up security updates.
.google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getRunningTimeoutOrBuilder
in interfaceWorkstationConfigOrBuilder
-
hasHost
public boolean hasHost()
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasHost
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the host field is set.
-
getHost
public WorkstationConfig.Host getHost()
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHost
in interfaceWorkstationConfigOrBuilder
- Returns:
- The host.
-
setHost
public WorkstationConfig.Builder setHost(WorkstationConfig.Host value)
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
-
setHost
public WorkstationConfig.Builder setHost(WorkstationConfig.Host.Builder builderForValue)
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
-
mergeHost
public WorkstationConfig.Builder mergeHost(WorkstationConfig.Host value)
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
-
clearHost
public WorkstationConfig.Builder clearHost()
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
-
getHostBuilder
public WorkstationConfig.Host.Builder getHostBuilder()
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
-
getHostOrBuilder
public WorkstationConfig.HostOrBuilder getHostOrBuilder()
Optional. Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getHostOrBuilder
in interfaceWorkstationConfigOrBuilder
-
getPersistentDirectoriesList
public List<WorkstationConfig.PersistentDirectory> getPersistentDirectoriesList()
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistentDirectoriesList
in interfaceWorkstationConfigOrBuilder
-
getPersistentDirectoriesCount
public int getPersistentDirectoriesCount()
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistentDirectoriesCount
in interfaceWorkstationConfigOrBuilder
-
getPersistentDirectories
public WorkstationConfig.PersistentDirectory getPersistentDirectories(int index)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistentDirectories
in interfaceWorkstationConfigOrBuilder
-
setPersistentDirectories
public WorkstationConfig.Builder setPersistentDirectories(int index, WorkstationConfig.PersistentDirectory value)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
setPersistentDirectories
public WorkstationConfig.Builder setPersistentDirectories(int index, WorkstationConfig.PersistentDirectory.Builder builderForValue)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
addPersistentDirectories
public WorkstationConfig.Builder addPersistentDirectories(WorkstationConfig.PersistentDirectory value)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
addPersistentDirectories
public WorkstationConfig.Builder addPersistentDirectories(int index, WorkstationConfig.PersistentDirectory value)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
addPersistentDirectories
public WorkstationConfig.Builder addPersistentDirectories(WorkstationConfig.PersistentDirectory.Builder builderForValue)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
addPersistentDirectories
public WorkstationConfig.Builder addPersistentDirectories(int index, WorkstationConfig.PersistentDirectory.Builder builderForValue)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
addAllPersistentDirectories
public WorkstationConfig.Builder addAllPersistentDirectories(Iterable<? extends WorkstationConfig.PersistentDirectory> values)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
clearPersistentDirectories
public WorkstationConfig.Builder clearPersistentDirectories()
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
removePersistentDirectories
public WorkstationConfig.Builder removePersistentDirectories(int index)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
getPersistentDirectoriesBuilder
public WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder(int index)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
getPersistentDirectoriesOrBuilder
public WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder(int index)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistentDirectoriesOrBuilder
in interfaceWorkstationConfigOrBuilder
-
getPersistentDirectoriesOrBuilderList
public List<? extends WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList()
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistentDirectoriesOrBuilderList
in interfaceWorkstationConfigOrBuilder
-
addPersistentDirectoriesBuilder
public WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder()
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
addPersistentDirectoriesBuilder
public WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder(int index)
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
getPersistentDirectoriesBuilderList
public List<WorkstationConfig.PersistentDirectory.Builder> getPersistentDirectoriesBuilderList()
Optional. Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL];
-
hasContainer
public boolean hasContainer()
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasContainer
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the container field is set.
-
getContainer
public WorkstationConfig.Container getContainer()
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getContainer
in interfaceWorkstationConfigOrBuilder
- Returns:
- The container.
-
setContainer
public WorkstationConfig.Builder setContainer(WorkstationConfig.Container value)
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
-
setContainer
public WorkstationConfig.Builder setContainer(WorkstationConfig.Container.Builder builderForValue)
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
-
mergeContainer
public WorkstationConfig.Builder mergeContainer(WorkstationConfig.Container value)
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
-
clearContainer
public WorkstationConfig.Builder clearContainer()
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
-
getContainerBuilder
public WorkstationConfig.Container.Builder getContainerBuilder()
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
-
getContainerOrBuilder
public WorkstationConfig.ContainerOrBuilder getContainerOrBuilder()
Optional. Container that runs upon startup for each workstation using this workstation configuration.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getContainerOrBuilder
in interfaceWorkstationConfigOrBuilder
-
hasEncryptionKey
public boolean hasEncryptionKey()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
hasEncryptionKey
in interfaceWorkstationConfigOrBuilder
- Returns:
- Whether the encryptionKey field is set.
-
getEncryptionKey
public WorkstationConfig.CustomerEncryptionKey getEncryptionKey()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getEncryptionKey
in interfaceWorkstationConfigOrBuilder
- Returns:
- The encryptionKey.
-
setEncryptionKey
public WorkstationConfig.Builder setEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
-
setEncryptionKey
public WorkstationConfig.Builder setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.Builder builderForValue)
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
-
mergeEncryptionKey
public WorkstationConfig.Builder mergeEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
-
clearEncryptionKey
public WorkstationConfig.Builder clearEncryptionKey()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
-
getEncryptionKeyBuilder
public WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
-
getEncryptionKeyOrBuilder
public WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked, the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getEncryptionKeyOrBuilder
in interfaceWorkstationConfigOrBuilder
-
getReadinessChecksList
public List<WorkstationConfig.ReadinessCheck> getReadinessChecksList()
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReadinessChecksList
in interfaceWorkstationConfigOrBuilder
-
getReadinessChecksCount
public int getReadinessChecksCount()
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReadinessChecksCount
in interfaceWorkstationConfigOrBuilder
-
getReadinessChecks
public WorkstationConfig.ReadinessCheck getReadinessChecks(int index)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReadinessChecks
in interfaceWorkstationConfigOrBuilder
-
setReadinessChecks
public WorkstationConfig.Builder setReadinessChecks(int index, WorkstationConfig.ReadinessCheck value)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
setReadinessChecks
public WorkstationConfig.Builder setReadinessChecks(int index, WorkstationConfig.ReadinessCheck.Builder builderForValue)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
addReadinessChecks
public WorkstationConfig.Builder addReadinessChecks(WorkstationConfig.ReadinessCheck value)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
addReadinessChecks
public WorkstationConfig.Builder addReadinessChecks(int index, WorkstationConfig.ReadinessCheck value)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
addReadinessChecks
public WorkstationConfig.Builder addReadinessChecks(WorkstationConfig.ReadinessCheck.Builder builderForValue)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
addReadinessChecks
public WorkstationConfig.Builder addReadinessChecks(int index, WorkstationConfig.ReadinessCheck.Builder builderForValue)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
addAllReadinessChecks
public WorkstationConfig.Builder addAllReadinessChecks(Iterable<? extends WorkstationConfig.ReadinessCheck> values)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
clearReadinessChecks
public WorkstationConfig.Builder clearReadinessChecks()
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
removeReadinessChecks
public WorkstationConfig.Builder removeReadinessChecks(int index)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
getReadinessChecksBuilder
public WorkstationConfig.ReadinessCheck.Builder getReadinessChecksBuilder(int index)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
getReadinessChecksOrBuilder
public WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder(int index)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReadinessChecksOrBuilder
in interfaceWorkstationConfigOrBuilder
-
getReadinessChecksOrBuilderList
public List<? extends WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksOrBuilderList()
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReadinessChecksOrBuilderList
in interfaceWorkstationConfigOrBuilder
-
addReadinessChecksBuilder
public WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder()
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
addReadinessChecksBuilder
public WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder(int index)
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
getReadinessChecksBuilderList
public List<WorkstationConfig.ReadinessCheck.Builder> getReadinessChecksBuilderList()
Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200 status codes.
repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL];
-
getReplicaZonesList
public com.google.protobuf.ProtocolStringList getReplicaZonesList()
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getReplicaZonesList
in interfaceWorkstationConfigOrBuilder
- Returns:
- A list containing the replicaZones.
-
getReplicaZonesCount
public int getReplicaZonesCount()
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getReplicaZonesCount
in interfaceWorkstationConfigOrBuilder
- Returns:
- The count of replicaZones.
-
getReplicaZones
public String getReplicaZones(int index)
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getReplicaZones
in interfaceWorkstationConfigOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The replicaZones at the given index.
-
getReplicaZonesBytes
public com.google.protobuf.ByteString getReplicaZonesBytes(int index)
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getReplicaZonesBytes
in interfaceWorkstationConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the replicaZones at the given index.
-
setReplicaZones
public WorkstationConfig.Builder setReplicaZones(int index, String value)
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Parameters:
index
- The index to set the value at.value
- The replicaZones to set.- Returns:
- This builder for chaining.
-
addReplicaZones
public WorkstationConfig.Builder addReplicaZones(String value)
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The replicaZones to add.- Returns:
- This builder for chaining.
-
addAllReplicaZones
public WorkstationConfig.Builder addAllReplicaZones(Iterable<String> values)
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Parameters:
values
- The replicaZones to add.- Returns:
- This builder for chaining.
-
clearReplicaZones
public WorkstationConfig.Builder clearReplicaZones()
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
addReplicaZonesBytes
public WorkstationConfig.Builder addReplicaZonesBytes(com.google.protobuf.ByteString value)
Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.
repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The bytes of the replicaZones to add.- Returns:
- This builder for chaining.
-
getDegraded
public boolean getDegraded()
Output only. Whether this resource is degraded, in which case it may require user action to restore full functionality. See also the [conditions][google.cloud.workstations.v1.WorkstationConfig.conditions] field.
bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDegraded
in interfaceWorkstationConfigOrBuilder
- Returns:
- The degraded.
-
setDegraded
public WorkstationConfig.Builder setDegraded(boolean value)
Output only. Whether this resource is degraded, in which case it may require user action to restore full functionality. See also the [conditions][google.cloud.workstations.v1.WorkstationConfig.conditions] field.
bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The degraded to set.- Returns:
- This builder for chaining.
-
clearDegraded
public WorkstationConfig.Builder clearDegraded()
Output only. Whether this resource is degraded, in which case it may require user action to restore full functionality. See also the [conditions][google.cloud.workstations.v1.WorkstationConfig.conditions] field.
bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getConditionsList
public List<com.google.rpc.Status> getConditionsList()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConditionsList
in interfaceWorkstationConfigOrBuilder
-
getConditionsCount
public int getConditionsCount()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConditionsCount
in interfaceWorkstationConfigOrBuilder
-
getConditions
public com.google.rpc.Status getConditions(int index)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConditions
in interfaceWorkstationConfigOrBuilder
-
setConditions
public WorkstationConfig.Builder setConditions(int index, com.google.rpc.Status value)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setConditions
public WorkstationConfig.Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addConditions
public WorkstationConfig.Builder addConditions(com.google.rpc.Status value)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addConditions
public WorkstationConfig.Builder addConditions(int index, com.google.rpc.Status value)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addConditions
public WorkstationConfig.Builder addConditions(com.google.rpc.Status.Builder builderForValue)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addConditions
public WorkstationConfig.Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addAllConditions
public WorkstationConfig.Builder addAllConditions(Iterable<? extends com.google.rpc.Status> values)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearConditions
public WorkstationConfig.Builder clearConditions()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
removeConditions
public WorkstationConfig.Builder removeConditions(int index)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getConditionsBuilder
public com.google.rpc.Status.Builder getConditionsBuilder(int index)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getConditionsOrBuilder
public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConditionsOrBuilder
in interfaceWorkstationConfigOrBuilder
-
getConditionsOrBuilderList
public List<? extends com.google.rpc.StatusOrBuilder> getConditionsOrBuilderList()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getConditionsOrBuilderList
in interfaceWorkstationConfigOrBuilder
-
addConditionsBuilder
public com.google.rpc.Status.Builder addConditionsBuilder()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addConditionsBuilder
public com.google.rpc.Status.Builder addConditionsBuilder(int index)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getConditionsBuilderList
public List<com.google.rpc.Status.Builder> getConditionsBuilderList()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUnknownFields
public final WorkstationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
mergeUnknownFields
public final WorkstationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WorkstationConfig.Builder>
-
-