Class WorkstationConfig.EphemeralDirectory.Builder (0.25.0)

public static final class WorkstationConfig.EphemeralDirectory.Builder extends GeneratedMessageV3.Builder<WorkstationConfig.EphemeralDirectory.Builder> implements WorkstationConfig.EphemeralDirectoryOrBuilder

An ephemeral directory which won't persist across workstation sessions. It is freshly created on every workstation start operation.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearDirectoryType()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcePd()

public WorkstationConfig.EphemeralDirectory.Builder clearGcePd()

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder

clearMountPath()

public WorkstationConfig.EphemeralDirectory.Builder clearMountPath()

Required. Location of this directory in the running workstation.

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

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDirectoryTypeCase()

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

getGcePd()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk getGcePd()

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk

The gcePd.

getGcePdBuilder()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder getGcePdBuilder()

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

getGcePdOrBuilder()

public WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder getGcePdOrBuilder()

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder

getMountPath()

public String getMountPath()

Required. Location of this directory in the running workstation.

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

Returns
TypeDescription
String

The mountPath.

getMountPathBytes()

public ByteString getMountPathBytes()

Required. Location of this directory in the running workstation.

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

Returns
TypeDescription
ByteString

The bytes for mountPath.

hasGcePd()

public boolean hasGcePd()

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

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.EphemeralDirectory other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcePd(WorkstationConfig.EphemeralDirectory.GcePersistentDisk value)

public WorkstationConfig.EphemeralDirectory.Builder mergeGcePd(WorkstationConfig.EphemeralDirectory.GcePersistentDisk value)

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

Parameter
NameDescription
valueWorkstationConfig.EphemeralDirectory.GcePersistentDisk
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcePd(WorkstationConfig.EphemeralDirectory.GcePersistentDisk value)

public WorkstationConfig.EphemeralDirectory.Builder setGcePd(WorkstationConfig.EphemeralDirectory.GcePersistentDisk value)

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

Parameter
NameDescription
valueWorkstationConfig.EphemeralDirectory.GcePersistentDisk
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder

setGcePd(WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder builderForValue)

public WorkstationConfig.EphemeralDirectory.Builder setGcePd(WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder builderForValue)

An EphemeralDirectory backed by a Compute Engine persistent disk.

.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3;

Parameter
NameDescription
builderForValueWorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder

setMountPath(String value)

public WorkstationConfig.EphemeralDirectory.Builder setMountPath(String value)

Required. Location of this directory in the running workstation.

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

Parameter
NameDescription
valueString

The mountPath to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder

This builder for chaining.

setMountPathBytes(ByteString value)

public WorkstationConfig.EphemeralDirectory.Builder setMountPathBytes(ByteString value)

Required. Location of this directory in the running workstation.

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

Parameter
NameDescription
valueByteString

The bytes for mountPath to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder

This builder for chaining.

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

public WorkstationConfig.EphemeralDirectory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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