Class WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk (0.3.0)

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

A PersistentDirectory backed by a Compute Engine regional persistent disk.

Protobuf type google.cloud.workstations.v1.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
TypeDescription
int

FS_TYPE_FIELD_NUMBER

public static final int FS_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

RECLAIM_POLICY_FIELD_NUMBER

public static final int RECLAIM_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_GB_FIELD_NUMBER

public static final int SIZE_GB_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_SNAPSHOT_FIELD_NUMBER

public static final int SOURCE_SNAPSHOT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk

getDescriptor()

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

newBuilder()

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilder()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

newBuilder(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilder(WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype)
Parameter
NameDescription
prototypeWorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

parseDelimitedFrom(InputStream input)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getDiskType()

public String getDiskType()

Type of the disk to use. Defaults to pd-standard.

string disk_type = 3;

Returns
TypeDescription
String

The diskType.

getDiskTypeBytes()

public ByteString getDiskTypeBytes()

Type of the disk to use. Defaults to pd-standard.

string disk_type = 3;

Returns
TypeDescription
ByteString

The bytes for diskType.

getFsType()

public String getFsType()

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;

Returns
TypeDescription
String

The fsType.

getFsTypeBytes()

public ByteString getFsTypeBytes()

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;

Returns
TypeDescription
ByteString

The bytes for fsType.

getParserForType()

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

getReclaimPolicy()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy()

What should happen to the disk after the workstation is deleted. Defaults to DELETE.

.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4;

Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy

The reclaimPolicy.

getReclaimPolicyValue()

public int getReclaimPolicyValue()

What should happen to the disk after the workstation is deleted. Defaults to DELETE.

.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for reclaimPolicy.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSizeGb()

public int getSizeGb()

Size of the disk in GB. Must be empty if source_snapshot is set. Defaults to 200.

int32 size_gb = 1;

Returns
TypeDescription
int

The sizeGb.

getSourceSnapshot()

public String getSourceSnapshot()

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;

Returns
TypeDescription
String

The sourceSnapshot.

getSourceSnapshotBytes()

public ByteString getSourceSnapshotBytes()

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;

Returns
TypeDescription
ByteString

The bytes for sourceSnapshot.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilderForType()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder toBuilder()
Returns
TypeDescription
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException