Class WorkstationConfig.EphemeralDirectory.GcePersistentDisk (0.19.0)

public static final class WorkstationConfig.EphemeralDirectory.GcePersistentDisk extends GeneratedMessageV3 implements WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder

An EphemeralDirectory is backed by a Compute Engine persistent disk.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > WorkstationConfig.EphemeralDirectory.GcePersistentDisk

Static Fields

DISK_TYPE_FIELD_NUMBER

public static final int DISK_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

READ_ONLY_FIELD_NUMBER

public static final int READ_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_IMAGE_FIELD_NUMBER

public static final int SOURCE_IMAGE_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.EphemeralDirectory.GcePersistentDisk getDefaultInstance()
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk

getDescriptor()

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

newBuilder()

public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder newBuilder()
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

newBuilder(WorkstationConfig.EphemeralDirectory.GcePersistentDisk prototype)

public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder newBuilder(WorkstationConfig.EphemeralDirectory.GcePersistentDisk prototype)
Parameter
NameDescription
prototypeWorkstationConfig.EphemeralDirectory.GcePersistentDisk
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<WorkstationConfig.EphemeralDirectory.GcePersistentDisk> parser()
Returns
TypeDescription
Parser<GcePersistentDisk>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getDiskType()

public String getDiskType()

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

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

Returns
TypeDescription
String

The diskType.

getDiskTypeBytes()

public ByteString getDiskTypeBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for diskType.

getParserForType()

public Parser<WorkstationConfig.EphemeralDirectory.GcePersistentDisk> getParserForType()
Returns
TypeDescription
Parser<GcePersistentDisk>
Overrides

getReadOnly()

public boolean getReadOnly()

Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and source_snapshot must be set.

bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The readOnly.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceImage()

public String getSourceImage()

Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.

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

Returns
TypeDescription
String

The sourceImage.

getSourceImageBytes()

public ByteString getSourceImageBytes()

Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.

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

Returns
TypeDescription
ByteString

The bytes for sourceImage.

getSourceSnapshot()

public String getSourceSnapshot()

Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.

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

Returns
TypeDescription
String

The sourceSnapshot.

getSourceSnapshotBytes()

public ByteString getSourceSnapshotBytes()

Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.

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

Returns
TypeDescription
ByteString

The bytes for sourceSnapshot.

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.EphemeralDirectory.GcePersistentDisk.Builder newBuilderForType()
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder toBuilder()
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

writeTo(CodedOutputStream output)

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