Class WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk (0.43.0)

public static final class WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk extends GeneratedMessageV3 implements WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder

A PersistentDirectory backed by a Compute Engine regional persistent disk. The persistent_directories field is repeated, but it may contain only one entry. It creates a persistent disk that mounts to the workstation VM at /home when the session starts and detaches when the session ends. If this field is empty, workstations created with this configuration do not have a persistent home directory.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk

Static Fields

DISK_TYPE_FIELD_NUMBER

public static final int DISK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

FS_TYPE_FIELD_NUMBER

public static final int FS_TYPE_FIELD_NUMBER
Field Value
Type Description
int

RECLAIM_POLICY_FIELD_NUMBER

public static final int RECLAIM_POLICY_FIELD_NUMBER
Field Value
Type Description
int

SIZE_GB_FIELD_NUMBER

public static final int SIZE_GB_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_SNAPSHOT_FIELD_NUMBER

public static final int SOURCE_SNAPSHOT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance()
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk

getDescriptor()

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

newBuilder()

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilder()
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

newBuilder(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilder(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype)
Parameter
Name Description
prototype WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

parseDelimitedFrom(InputStream input)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk> parser()
Returns
Type Description
Parser<GceRegionalPersistentDisk>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getDiskType()

public String getDiskType()

Optional. The type of the persistent disk for the home directory. Defaults to "pd-standard".

string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The diskType.

getDiskTypeBytes()

public ByteString getDiskTypeBytes()

Optional. The type of the persistent disk for the home directory. Defaults to "pd-standard".

string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for diskType.

getFsType()

public String getFsType()

Optional. Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to "ext4".

string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The fsType.

getFsTypeBytes()

public ByteString getFsTypeBytes()

Optional. Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to "ext4".

string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for fsType.

getParserForType()

public Parser<WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk> getParserForType()
Returns
Type Description
Parser<GceRegionalPersistentDisk>
Overrides

getReclaimPolicy()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy()

Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values are DELETE and RETAIN. Defaults to DELETE.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy

The reclaimPolicy.

getReclaimPolicyValue()

public int getReclaimPolicyValue()

Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values are DELETE and RETAIN. Defaults to DELETE.

.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for reclaimPolicy.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSizeGb()

public int getSizeGb()

Optional. The GB capacity of a persistent home directory for each workstation created with this configuration. Must be empty if source_snapshot is set.

Valid values are 10, 50, 100, 200, 500, or 1000. Defaults to 200. If less than 200 GB, the disk_type must be "pd-balanced" or "pd-ssd".

int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The sizeGb.

getSourceSnapshot()

public String getSourceSnapshot()

Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty.

string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sourceSnapshot.

getSourceSnapshotBytes()

public ByteString getSourceSnapshotBytes()

Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty.

string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sourceSnapshot.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilderForType()
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder toBuilder()
Returns
Type Description
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException