Class WorkstationConfig.PersistentDirectory.Builder (0.40.0)

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

A directory to persist across workstation sessions.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.PersistentDirectory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public WorkstationConfig.PersistentDirectory.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

clearGcePd()

public WorkstationConfig.PersistentDirectory.Builder clearGcePd()

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1.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.

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkstationConfig.PersistentDirectory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

clone()

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

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

getGcePd()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd()

A PersistentDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1.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.v1.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.v1.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.

hasGcePd()

public boolean hasGcePd()

A PersistentDirectory backed by a Compute Engine persistent disk.

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

Returns
Type Description
boolean

Whether the gcePd field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

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.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.PersistentDirectory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.PersistentDirectory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

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.v1.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.v1.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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WorkstationConfig.PersistentDirectory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.PersistentDirectory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkstationConfig.PersistentDirectory.Builder
Overrides