public static final class WorkstationConfig.Builder extends GeneratedMessageV3.Builder<WorkstationConfig.Builder> implements WorkstationConfigOrBuilder
A set of configuration options describing how a workstation will be run. Workstation configurations are intended to be shared across multiple workstations.
Protobuf type google.cloud.workstations.v1.WorkstationConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WorkstationConfig.BuilderImplements
WorkstationConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllConditions(Iterable<? extends Status> values)
public WorkstationConfig.Builder addAllConditions(Iterable<? extends Status> values)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.rpc.Status> |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addAllPersistentDirectories(Iterable<? extends WorkstationConfig.PersistentDirectory> values)
public WorkstationConfig.Builder addAllPersistentDirectories(Iterable<? extends WorkstationConfig.PersistentDirectory> values)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory> |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addConditions(Status value)
public WorkstationConfig.Builder addConditions(Status value)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | com.google.rpc.Status |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addConditions(Status.Builder builderForValue)
public WorkstationConfig.Builder addConditions(Status.Builder builderForValue)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | com.google.rpc.Status.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addConditions(int index, Status value)
public WorkstationConfig.Builder addConditions(int index, Status value)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
value | com.google.rpc.Status |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addConditions(int index, Status.Builder builderForValue)
public WorkstationConfig.Builder addConditions(int index, Status.Builder builderForValue)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | com.google.rpc.Status.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addConditionsBuilder()
public Status.Builder addConditionsBuilder()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
com.google.rpc.Status.Builder |
addConditionsBuilder(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
com.google.rpc.Status.Builder |
addPersistentDirectories(WorkstationConfig.PersistentDirectory value)
public WorkstationConfig.Builder addPersistentDirectories(WorkstationConfig.PersistentDirectory value)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
value | WorkstationConfig.PersistentDirectory |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addPersistentDirectories(WorkstationConfig.PersistentDirectory.Builder builderForValue)
public WorkstationConfig.Builder addPersistentDirectories(WorkstationConfig.PersistentDirectory.Builder builderForValue)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
builderForValue | WorkstationConfig.PersistentDirectory.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addPersistentDirectories(int index, WorkstationConfig.PersistentDirectory value)
public WorkstationConfig.Builder addPersistentDirectories(int index, WorkstationConfig.PersistentDirectory value)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameters | |
---|---|
Name | Description |
index | int |
value | WorkstationConfig.PersistentDirectory |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addPersistentDirectories(int index, WorkstationConfig.PersistentDirectory.Builder builderForValue)
public WorkstationConfig.Builder addPersistentDirectories(int index, WorkstationConfig.PersistentDirectory.Builder builderForValue)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | WorkstationConfig.PersistentDirectory.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
addPersistentDirectoriesBuilder()
public WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder()
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Returns | |
---|---|
Type | Description |
WorkstationConfig.PersistentDirectory.Builder |
addPersistentDirectoriesBuilder(int index)
public WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder(int index)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
WorkstationConfig.PersistentDirectory.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WorkstationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
build()
public WorkstationConfig build()
Returns | |
---|---|
Type | Description |
WorkstationConfig |
buildPartial()
public WorkstationConfig buildPartial()
Returns | |
---|---|
Type | Description |
WorkstationConfig |
clear()
public WorkstationConfig.Builder clear()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearAnnotations()
public WorkstationConfig.Builder clearAnnotations()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
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];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearContainer()
public WorkstationConfig.Builder clearContainer()
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearCreateTime()
public WorkstationConfig.Builder clearCreateTime()
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
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
field.
bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
clearDeleteTime()
public WorkstationConfig.Builder clearDeleteTime()
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearDisplayName()
public WorkstationConfig.Builder clearDisplayName()
Human-readable name for this resource.
string display_name = 2;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
clearEncryptionKey()
public WorkstationConfig.Builder clearEncryptionKey()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearEtag()
public WorkstationConfig.Builder clearEtag()
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;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public WorkstationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearHost()
public WorkstationConfig.Builder clearHost()
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearIdleTimeout()
public WorkstationConfig.Builder clearIdleTimeout()
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearLabels()
public WorkstationConfig.Builder clearLabels()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearName()
public WorkstationConfig.Builder clearName()
Full name of this resource.
string name = 1;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkstationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearPersistentDirectories()
public WorkstationConfig.Builder clearPersistentDirectories()
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearReconciling()
public WorkstationConfig.Builder clearReconciling()
Output only. Indicates whether this resource is currently being updated to match its intended state.
bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
clearRunningTimeout()
public WorkstationConfig.Builder clearRunningTimeout()
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clearUid()
public WorkstationConfig.Builder clearUid()
Output only. A system-assigned unique identified for this resource.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
clearUpdateTime()
public WorkstationConfig.Builder clearUpdateTime()
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
clone()
public WorkstationConfig.Builder clone()
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
containsAnnotations(String key)
public boolean containsAnnotations(String key)
Client-specified annotations.
map<string, string> annotations = 5;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
containsLabels(String key)
public boolean containsLabels(String key)
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getAnnotations()
public Map<String,String> getAnnotations()
Use #getAnnotationsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsCount()
public int getAnnotationsCount()
Client-specified annotations.
map<string, string> annotations = 5;
Returns | |
---|---|
Type | Description |
int |
getAnnotationsMap()
public Map<String,String> getAnnotationsMap()
Client-specified annotations.
map<string, string> annotations = 5;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getAnnotationsOrDefault(String key, String defaultValue)
public String getAnnotationsOrDefault(String key, String defaultValue)
Client-specified annotations.
map<string, string> annotations = 5;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getAnnotationsOrThrow(String key)
public String getAnnotationsOrThrow(String key)
Client-specified annotations.
map<string, string> annotations = 5;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getConditions(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
com.google.rpc.Status |
getConditionsBuilder(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
com.google.rpc.Status.Builder |
getConditionsBuilderList()
public List<Status.Builder> getConditionsBuilderList()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<com.google.rpc.Status.Builder> |
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];
Returns | |
---|---|
Type | Description |
int |
getConditionsList()
public List<Status> getConditionsList()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<com.google.rpc.Status> |
getConditionsOrBuilder(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
com.google.rpc.StatusOrBuilder |
getConditionsOrBuilderList()
public List<? extends StatusOrBuilder> getConditionsOrBuilderList()
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<? extends com.google.rpc.StatusOrBuilder> |
getContainer()
public WorkstationConfig.Container getContainer()
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Container | The container. |
getContainerBuilder()
public WorkstationConfig.Container.Builder getContainerBuilder()
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Container.Builder |
getContainerOrBuilder()
public WorkstationConfig.ContainerOrBuilder getContainerOrBuilder()
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Returns | |
---|---|
Type | Description |
WorkstationConfig.ContainerOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public WorkstationConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
WorkstationConfig |
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
field.
bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | The degraded. |
getDeleteTime()
public Timestamp getDeleteTime()
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The deleteTime. |
getDeleteTimeBuilder()
public Timestamp.Builder getDeleteTimeBuilder()
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getDeleteTimeOrBuilder()
public TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Human-readable name for this resource.
string display_name = 2;
Returns | |
---|---|
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Human-readable name for this resource.
string display_name = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for displayName. |
getEncryptionKey()
public WorkstationConfig.CustomerEncryptionKey getEncryptionKey()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
WorkstationConfig.CustomerEncryptionKey | The encryptionKey. |
getEncryptionKeyBuilder()
public WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
WorkstationConfig.CustomerEncryptionKey.Builder |
getEncryptionKeyOrBuilder()
public WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
WorkstationConfig.CustomerEncryptionKeyOrBuilder |
getEtag()
public String getEtag()
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;
Returns | |
---|---|
Type | Description |
String | The etag. |
getEtagBytes()
public ByteString getEtagBytes()
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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for etag. |
getHost()
public WorkstationConfig.Host getHost()
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host | The host. |
getHostBuilder()
public WorkstationConfig.Host.Builder getHostBuilder()
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Returns | |
---|---|
Type | Description |
WorkstationConfig.Host.Builder |
getHostOrBuilder()
public WorkstationConfig.HostOrBuilder getHostOrBuilder()
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Returns | |
---|---|
Type | Description |
WorkstationConfig.HostOrBuilder |
getIdleTimeout()
public Duration getIdleTimeout()
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Returns | |
---|---|
Type | Description |
Duration | The idleTimeout. |
getIdleTimeoutBuilder()
public Duration.Builder getIdleTimeoutBuilder()
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Returns | |
---|---|
Type | Description |
Builder |
getIdleTimeoutOrBuilder()
public DurationOrBuilder getIdleTimeoutOrBuilder()
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableAnnotations()
public Map<String,String> getMutableAnnotations()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
public String getName()
Full name of this resource.
string name = 1;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Full name of this resource.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getPersistentDirectories(int index)
public WorkstationConfig.PersistentDirectory getPersistentDirectories(int index)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
WorkstationConfig.PersistentDirectory |
getPersistentDirectoriesBuilder(int index)
public WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder(int index)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
WorkstationConfig.PersistentDirectory.Builder |
getPersistentDirectoriesBuilderList()
public List<WorkstationConfig.PersistentDirectory.Builder> getPersistentDirectoriesBuilderList()
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Returns | |
---|---|
Type | Description |
List<Builder> |
getPersistentDirectoriesCount()
public int getPersistentDirectoriesCount()
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Returns | |
---|---|
Type | Description |
int |
getPersistentDirectoriesList()
public List<WorkstationConfig.PersistentDirectory> getPersistentDirectoriesList()
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Returns | |
---|---|
Type | Description |
List<PersistentDirectory> |
getPersistentDirectoriesOrBuilder(int index)
public WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder(int index)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
WorkstationConfig.PersistentDirectoryOrBuilder |
getPersistentDirectoriesOrBuilderList()
public List<? extends WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList()
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> |
getReconciling()
public boolean getReconciling()
Output only. Indicates whether this resource is currently being updated to match its intended state.
bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | The reconciling. |
getRunningTimeout()
public Duration getRunningTimeout()
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Returns | |
---|---|
Type | Description |
Duration | The runningTimeout. |
getRunningTimeoutBuilder()
public Duration.Builder getRunningTimeoutBuilder()
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Returns | |
---|---|
Type | Description |
Builder |
getRunningTimeoutOrBuilder()
public DurationOrBuilder getRunningTimeoutOrBuilder()
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getUid()
public String getUid()
Output only. A system-assigned unique identified for this resource.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The uid. |
getUidBytes()
public ByteString getUidBytes()
Output only. A system-assigned unique identified for this resource.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for uid. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasContainer()
public boolean hasContainer()
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Returns | |
---|---|
Type | Description |
boolean | Whether the container field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
hasDeleteTime()
public boolean hasDeleteTime()
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the deleteTime field is set. |
hasEncryptionKey()
public boolean hasEncryptionKey()
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
boolean | Whether the encryptionKey field is set. |
hasHost()
public boolean hasHost()
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Returns | |
---|---|
Type | Description |
boolean | Whether the host field is set. |
hasIdleTimeout()
public boolean hasIdleTimeout()
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Returns | |
---|---|
Type | Description |
boolean | Whether the idleTimeout field is set. |
hasRunningTimeout()
public boolean hasRunningTimeout()
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Returns | |
---|---|
Type | Description |
boolean | Whether the runningTimeout field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeContainer(WorkstationConfig.Container value)
public WorkstationConfig.Builder mergeContainer(WorkstationConfig.Container value)
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Parameter | |
---|---|
Name | Description |
value | WorkstationConfig.Container |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeCreateTime(Timestamp value)
public WorkstationConfig.Builder mergeCreateTime(Timestamp value)
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeDeleteTime(Timestamp value)
public WorkstationConfig.Builder mergeDeleteTime(Timestamp value)
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)
public WorkstationConfig.Builder mergeEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value | WorkstationConfig.CustomerEncryptionKey |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeFrom(WorkstationConfig other)
public WorkstationConfig.Builder mergeFrom(WorkstationConfig other)
Parameter | |
---|---|
Name | Description |
other | WorkstationConfig |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WorkstationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public WorkstationConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeHost(WorkstationConfig.Host value)
public WorkstationConfig.Builder mergeHost(WorkstationConfig.Host value)
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Parameter | |
---|---|
Name | Description |
value | WorkstationConfig.Host |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeIdleTimeout(Duration value)
public WorkstationConfig.Builder mergeIdleTimeout(Duration value)
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeRunningTimeout(Duration value)
public WorkstationConfig.Builder mergeRunningTimeout(Duration value)
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkstationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
mergeUpdateTime(Timestamp value)
public WorkstationConfig.Builder mergeUpdateTime(Timestamp value)
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
putAllAnnotations(Map<String,String> values)
public WorkstationConfig.Builder putAllAnnotations(Map<String,String> values)
Client-specified annotations.
map<string, string> annotations = 5;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
putAllLabels(Map<String,String> values)
public WorkstationConfig.Builder putAllLabels(Map<String,String> values)
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
putAnnotations(String key, String value)
public WorkstationConfig.Builder putAnnotations(String key, String value)
Client-specified annotations.
map<string, string> annotations = 5;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
putLabels(String key, String value)
public WorkstationConfig.Builder putLabels(String key, String value)
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
removeAnnotations(String key)
public WorkstationConfig.Builder removeAnnotations(String key)
Client-specified annotations.
map<string, string> annotations = 5;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
removeConditions(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
removeLabels(String key)
public WorkstationConfig.Builder removeLabels(String key)
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
map<string, string> labels = 18;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
removePersistentDirectories(int index)
public WorkstationConfig.Builder removePersistentDirectories(int index)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setConditions(int index, Status value)
public WorkstationConfig.Builder setConditions(int index, Status value)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
value | com.google.rpc.Status |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setConditions(int index, Status.Builder builderForValue)
public WorkstationConfig.Builder setConditions(int index, Status.Builder builderForValue)
Output only. Status conditions describing the current resource state.
repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | com.google.rpc.Status.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setContainer(WorkstationConfig.Container value)
public WorkstationConfig.Builder setContainer(WorkstationConfig.Container value)
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Parameter | |
---|---|
Name | Description |
value | WorkstationConfig.Container |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setContainer(WorkstationConfig.Container.Builder builderForValue)
public WorkstationConfig.Builder setContainer(WorkstationConfig.Container.Builder builderForValue)
Container that will be run for each workstation using this configuration when that workstation is started.
.google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
Parameter | |
---|---|
Name | Description |
builderForValue | WorkstationConfig.Container.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setCreateTime(Timestamp value)
public WorkstationConfig.Builder setCreateTime(Timestamp value)
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public WorkstationConfig.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time when this resource was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setDegraded(boolean value)
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
field.
bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | boolean The degraded to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setDeleteTime(Timestamp value)
public WorkstationConfig.Builder setDeleteTime(Timestamp value)
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setDeleteTime(Timestamp.Builder builderForValue)
public WorkstationConfig.Builder setDeleteTime(Timestamp.Builder builderForValue)
Output only. Time when this resource was soft-deleted.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setDisplayName(String value)
public WorkstationConfig.Builder setDisplayName(String value)
Human-readable name for this resource.
string display_name = 2;
Parameter | |
---|---|
Name | Description |
value | String The displayName to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public WorkstationConfig.Builder setDisplayNameBytes(ByteString value)
Human-readable name for this resource.
string display_name = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)
public WorkstationConfig.Builder setEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
value | WorkstationConfig.CustomerEncryptionKey |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.Builder builderForValue)
public WorkstationConfig.Builder setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.Builder builderForValue)
Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. 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 will be lost. If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE];
Parameter | |
---|---|
Name | Description |
builderForValue | WorkstationConfig.CustomerEncryptionKey.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setEtag(String value)
public WorkstationConfig.Builder setEtag(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The etag to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setEtagBytes(ByteString value)
public WorkstationConfig.Builder setEtagBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for etag to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public WorkstationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setHost(WorkstationConfig.Host value)
public WorkstationConfig.Builder setHost(WorkstationConfig.Host value)
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Parameter | |
---|---|
Name | Description |
value | WorkstationConfig.Host |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setHost(WorkstationConfig.Host.Builder builderForValue)
public WorkstationConfig.Builder setHost(WorkstationConfig.Host.Builder builderForValue)
Runtime host for the workstation.
.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;
Parameter | |
---|---|
Name | Description |
builderForValue | WorkstationConfig.Host.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setIdleTimeout(Duration value)
public WorkstationConfig.Builder setIdleTimeout(Duration value)
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setIdleTimeout(Duration.Builder builderForValue)
public WorkstationConfig.Builder setIdleTimeout(Duration.Builder builderForValue)
How long to wait before automatically stopping an instance that hasn't received any user traffic. A value of 0 indicates that this instance should never time out due to idleness. Defaults to 20 minutes.
.google.protobuf.Duration idle_timeout = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setName(String value)
public WorkstationConfig.Builder setName(String value)
Full name of this resource.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public WorkstationConfig.Builder setNameBytes(ByteString value)
Full name of this resource.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setPersistentDirectories(int index, WorkstationConfig.PersistentDirectory value)
public WorkstationConfig.Builder setPersistentDirectories(int index, WorkstationConfig.PersistentDirectory value)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameters | |
---|---|
Name | Description |
index | int |
value | WorkstationConfig.PersistentDirectory |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setPersistentDirectories(int index, WorkstationConfig.PersistentDirectory.Builder builderForValue)
public WorkstationConfig.Builder setPersistentDirectories(int index, WorkstationConfig.PersistentDirectory.Builder builderForValue)
Directories to persist across workstation sessions.
repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | WorkstationConfig.PersistentDirectory.Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setReconciling(boolean value)
public WorkstationConfig.Builder setReconciling(boolean value)
Output only. Indicates whether this resource is currently being updated to match its intended state.
bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | boolean The reconciling to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WorkstationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setRunningTimeout(Duration value)
public WorkstationConfig.Builder setRunningTimeout(Duration value)
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Parameter | |
---|---|
Name | Description |
value | Duration |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setRunningTimeout(Duration.Builder builderForValue)
public WorkstationConfig.Builder setRunningTimeout(Duration.Builder builderForValue)
How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
.google.protobuf.Duration running_timeout = 11;
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setUid(String value)
public WorkstationConfig.Builder setUid(String value)
Output only. A system-assigned unique identified for this resource.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The uid to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setUidBytes(ByteString value)
public WorkstationConfig.Builder setUidBytes(ByteString value)
Output only. A system-assigned unique identified for this resource.
string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for uid to set. |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkstationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setUpdateTime(Timestamp value)
public WorkstationConfig.Builder setUpdateTime(Timestamp value)
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public WorkstationConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. Time when this resource was most recently updated.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
WorkstationConfig.Builder |