Class WorkstationConfig.Builder (0.3.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory>
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueWorkstationConfig.PersistentDirectory
Returns
TypeDescription
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
NameDescription
builderForValueWorkstationConfig.PersistentDirectory.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWorkstationConfig.PersistentDirectory
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkstationConfig.PersistentDirectory.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

build()

public WorkstationConfig build()
Returns
TypeDescription
WorkstationConfig

buildPartial()

public WorkstationConfig buildPartial()
Returns
TypeDescription
WorkstationConfig

clear()

public WorkstationConfig.Builder clear()
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

clearAnnotations()

public WorkstationConfig.Builder clearAnnotations()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
WorkstationConfig.Builder

clearDisplayName()

public WorkstationConfig.Builder clearDisplayName()

Human-readable name for this resource.

string display_name = 2;

Returns
TypeDescription
WorkstationConfig.Builder

This builder for chaining.

clearEncryptionKey()

public WorkstationConfig.Builder clearEncryptionKey()

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Returns
TypeDescription
WorkstationConfig.Builder

clearEtag()

public WorkstationConfig.Builder clearEtag()

Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 9;

Returns
TypeDescription
WorkstationConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WorkstationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

clearHost()

public WorkstationConfig.Builder clearHost()

Runtime host for the workstation.

.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;

Returns
TypeDescription
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
TypeDescription
WorkstationConfig.Builder

clearLabels()

public WorkstationConfig.Builder clearLabels()
Returns
TypeDescription
WorkstationConfig.Builder

clearName()

public WorkstationConfig.Builder clearName()

Full name of this resource.

string name = 1;

Returns
TypeDescription
WorkstationConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkstationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

clearPersistentDirectories()

public WorkstationConfig.Builder clearPersistentDirectories()

Directories to persist across workstation sessions.

repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
WorkstationConfig.Builder

clone()

public WorkstationConfig.Builder clone()
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Client-specified annotations.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Client-specified annotations.

map<string, string> annotations = 5;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Client-specified annotations.

map<string, string> annotations = 5;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Client-specified annotations.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Client-specified annotations.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public WorkstationConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Human-readable name for this resource.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human-readable name for this resource.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEncryptionKey()

public WorkstationConfig.CustomerEncryptionKey getEncryptionKey()

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Returns
TypeDescription
WorkstationConfig.CustomerEncryptionKey

The encryptionKey.

getEncryptionKeyBuilder()

public WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder()

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Returns
TypeDescription
WorkstationConfig.CustomerEncryptionKey.Builder

getEncryptionKeyOrBuilder()

public WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder()

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Returns
TypeDescription
WorkstationConfig.CustomerEncryptionKeyOrBuilder

getEtag()

public String getEtag()

Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 9;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 9;

Returns
TypeDescription
ByteString

The bytes for etag.

getHost()

public WorkstationConfig.Host getHost()

Runtime host for the workstation.

.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;

Returns
TypeDescription
WorkstationConfig.Host

The host.

getHostBuilder()

public WorkstationConfig.Host.Builder getHostBuilder()

Runtime host for the workstation.

.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;

Returns
TypeDescription
WorkstationConfig.Host.Builder

getHostOrBuilder()

public WorkstationConfig.HostOrBuilder getHostOrBuilder()

Runtime host for the workstation.

.google.cloud.workstations.v1.WorkstationConfig.Host host = 12;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Full name of this resource.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Full name of this resource.

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getPersistentDirectoriesCount()

public int getPersistentDirectoriesCount()

Directories to persist across workstation sessions.

repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;

Returns
TypeDescription
int

getPersistentDirectoriesList()

public List<WorkstationConfig.PersistentDirectory> getPersistentDirectoriesList()

Directories to persist across workstation sessions.

repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the deleteTime field is set.

hasEncryptionKey()

public boolean hasEncryptionKey()

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueWorkstationConfig.Container
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
WorkstationConfig.Builder

mergeEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)

public WorkstationConfig.Builder mergeEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Parameter
NameDescription
valueWorkstationConfig.CustomerEncryptionKey
Returns
TypeDescription
WorkstationConfig.Builder

mergeFrom(WorkstationConfig other)

public WorkstationConfig.Builder mergeFrom(WorkstationConfig other)
Parameter
NameDescription
otherWorkstationConfig
Returns
TypeDescription
WorkstationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkstationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WorkstationConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

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
NameDescription
valueWorkstationConfig.Host
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
WorkstationConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
WorkstationConfig.Builder

putAllAnnotations(Map<String,String> values)

public WorkstationConfig.Builder putAllAnnotations(Map<String,String> values)

Client-specified annotations.

map<string, string> annotations = 5;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
WorkstationConfig.Builder

putAnnotations(String key, String value)

public WorkstationConfig.Builder putAnnotations(String key, String value)

Client-specified annotations.

map<string, string> annotations = 5;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
WorkstationConfig.Builder

removeAnnotations(String key)

public WorkstationConfig.Builder removeAnnotations(String key)

Client-specified annotations.

map<string, string> annotations = 5;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
valueWorkstationConfig.Container
Returns
TypeDescription
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
NameDescription
builderForValueWorkstationConfig.Container.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueboolean

The degraded to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkstationConfig.Builder

setDisplayName(String value)

public WorkstationConfig.Builder setDisplayName(String value)

Human-readable name for this resource.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
WorkstationConfig.Builder

This builder for chaining.

setEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)

public WorkstationConfig.Builder setEncryptionKey(WorkstationConfig.CustomerEncryptionKey value)

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Parameter
NameDescription
valueWorkstationConfig.CustomerEncryptionKey
Returns
TypeDescription
WorkstationConfig.Builder

setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.Builder builderForValue)

public WorkstationConfig.Builder setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.Builder builderForValue)

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.

.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17;

Parameter
NameDescription
builderForValueWorkstationConfig.CustomerEncryptionKey.Builder
Returns
TypeDescription
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 ensure that the client has an up-to-date value before proceeding.

string etag = 9;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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 ensure that the client has an up-to-date value before proceeding.

string etag = 9;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
WorkstationConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

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
NameDescription
valueWorkstationConfig.Host
Returns
TypeDescription
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
NameDescription
builderForValueWorkstationConfig.Host.Builder
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkstationConfig.Builder

setName(String value)

public WorkstationConfig.Builder setName(String value)

Full name of this resource.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
WorkstationConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WorkstationConfig.Builder setNameBytes(ByteString value)

Full name of this resource.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valueWorkstationConfig.PersistentDirectory
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkstationConfig.PersistentDirectory.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The reconciling to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
WorkstationConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationConfig.Builder
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkstationConfig.Builder