Class WorkstationConfig.PersistentDirectory.Builder (0.7.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.v1beta.WorkstationConfig.PersistentDirectory

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkstationConfig.PersistentDirectory build()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory

buildPartial()

public WorkstationConfig.PersistentDirectory buildPartial()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory

clear()

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

clearDirectoryType()

public WorkstationConfig.PersistentDirectory.Builder clearDirectoryType()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.Builder

clearField(Descriptors.FieldDescriptor field)

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

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

clearMountPath()

public WorkstationConfig.PersistentDirectory.Builder clearMountPath()

Location of this directory in the running workstation.

string mount_path = 1;

Returns
TypeDescription
WorkstationConfig.PersistentDirectory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public WorkstationConfig.PersistentDirectory getDefaultInstanceForType()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDirectoryTypeCase()

public WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.DirectoryTypeCase

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
TypeDescription
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
TypeDescription
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
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder

getMountPath()

public String getMountPath()

Location of this directory in the running workstation.

string mount_path = 1;

Returns
TypeDescription
String

The mountPath.

getMountPathBytes()

public ByteString getMountPathBytes()

Location of this directory in the running workstation.

string mount_path = 1;

Returns
TypeDescription
ByteString

The bytes for mountPath.

hasGcePd()

public boolean hasGcePd()

A PersistentDirectory backed by a Compute Engine persistent disk.

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

Returns
TypeDescription
boolean

Whether the gcePd field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkstationConfig.PersistentDirectory other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WorkstationConfig.PersistentDirectory.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Parameter
NameDescription
valueWorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.PersistentDirectory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2;

Parameter
NameDescription
valueWorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Returns
TypeDescription
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
NameDescription
builderForValueWorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.Builder

setMountPath(String value)

public WorkstationConfig.PersistentDirectory.Builder setMountPath(String value)

Location of this directory in the running workstation.

string mount_path = 1;

Parameter
NameDescription
valueString

The mountPath to set.

Returns
TypeDescription
WorkstationConfig.PersistentDirectory.Builder

This builder for chaining.

setMountPathBytes(ByteString value)

public WorkstationConfig.PersistentDirectory.Builder setMountPathBytes(ByteString value)

Location of this directory in the running workstation.

string mount_path = 1;

Parameter
NameDescription
valueByteString

The bytes for mountPath to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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