Class WorkstationConfig.PersistentDirectory.Builder (0.81.0)

public static final class WorkstationConfig.PersistentDirectory.Builder extends GeneratedMessage.Builder<WorkstationConfig.PersistentDirectory.Builder> implements WorkstationConfig.PersistentDirectoryOrBuilder

A directory to persist across workstation sessions. Updates to this field will not update existing workstations and will only take effect on new workstations.

Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public WorkstationConfig.PersistentDirectory build()
Returns
Type Description
WorkstationConfig.PersistentDirectory

buildPartial()

public WorkstationConfig.PersistentDirectory buildPartial()
Returns
Type Description
WorkstationConfig.PersistentDirectory

clear()

public WorkstationConfig.PersistentDirectory.Builder clear()
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

clearDirectoryType()

public WorkstationConfig.PersistentDirectory.Builder clearDirectoryType()
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

clearGceHd()

public WorkstationConfig.PersistentDirectory.Builder clearGceHd()

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

clearGcePd()

public WorkstationConfig.PersistentDirectory.Builder clearGcePd()

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

clearMountPath()

public WorkstationConfig.PersistentDirectory.Builder clearMountPath()

Optional. Location of this directory in the running workstation.

string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

This builder for chaining.

getDefaultInstanceForType()

public WorkstationConfig.PersistentDirectory getDefaultInstanceForType()
Returns
Type Description
WorkstationConfig.PersistentDirectory

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDirectoryTypeCase()

public WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase()
Returns
Type Description
WorkstationConfig.PersistentDirectory.DirectoryTypeCase

getGceHd()

public WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability getGceHd()

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Returns
Type Description
WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability

The gceHd.

getGceHdBuilder()

public WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability.Builder getGceHdBuilder()

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Returns
Type Description
WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability.Builder

getGceHdOrBuilder()

public WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailabilityOrBuilder getGceHdOrBuilder()

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Returns
Type Description
WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailabilityOrBuilder

getGcePd()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd()

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk

The gcePd.

getGcePdBuilder()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder()

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

getGcePdOrBuilder()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder()

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder

getMountPath()

public String getMountPath()

Optional. Location of this directory in the running workstation.

string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The mountPath.

getMountPathBytes()

public ByteString getMountPathBytes()

Optional. Location of this directory in the running workstation.

string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for mountPath.

hasGceHd()

public boolean hasGceHd()

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Returns
Type Description
boolean

Whether the gceHd field is set.

hasGcePd()

public boolean hasGcePd()

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Returns
Type Description
boolean

Whether the gcePd field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkstationConfig.PersistentDirectory other)

public WorkstationConfig.PersistentDirectory.Builder mergeFrom(WorkstationConfig.PersistentDirectory other)
Parameter
Name Description
other WorkstationConfig.PersistentDirectory
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkstationConfig.PersistentDirectory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WorkstationConfig.PersistentDirectory.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

mergeGceHd(WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability value)

public WorkstationConfig.PersistentDirectory.Builder mergeGceHd(WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability value)

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Parameter
Name Description
value WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

mergeGcePd(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value)

public WorkstationConfig.PersistentDirectory.Builder mergeGcePd(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value)

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Parameter
Name Description
value WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

setGceHd(WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability value)

public WorkstationConfig.PersistentDirectory.Builder setGceHd(WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability value)

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Parameter
Name Description
value WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

setGceHd(WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability.Builder builderForValue)

public WorkstationConfig.PersistentDirectory.Builder setGceHd(WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability.Builder builderForValue)

A PersistentDirectory backed by a Compute Engine hyperdisk high availability disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability gce_hd = 3;

Parameter
Name Description
builderForValue WorkstationConfig.PersistentDirectory.GceHyperdiskBalancedHighAvailability.Builder
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

setGcePd(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value)

public WorkstationConfig.PersistentDirectory.Builder setGcePd(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value)

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Parameter
Name Description
value WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

setGcePd(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue)

public WorkstationConfig.PersistentDirectory.Builder setGcePd(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue)

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Parameter
Name Description
builderForValue WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

setMountPath(String value)

public WorkstationConfig.PersistentDirectory.Builder setMountPath(String value)

Optional. Location of this directory in the running workstation.

string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The mountPath to set.

Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

This builder for chaining.

setMountPathBytes(ByteString value)

public WorkstationConfig.PersistentDirectory.Builder setMountPathBytes(ByteString value)

Optional. Location of this directory in the running workstation.

string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for mountPath to set.

Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder

This builder for chaining.