Send feedback
Class WorkstationConfig.EphemeralDirectory.GcePersistentDisk (0.44.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DISK_TYPE_FIELD_NUMBER
public static final int DISK_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
READ_ONLY_FIELD_NUMBER
public static final int READ_ONLY_FIELD_NUMBER
Field Value
Type
Description
int
SOURCE_IMAGE_FIELD_NUMBER
public static final int SOURCE_IMAGE_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 . EphemeralDirectory . GcePersistentDisk getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk . Builder newBuilder ()
newBuilder(WorkstationConfig.EphemeralDirectory.GcePersistentDisk prototype)
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk . Builder newBuilder ( WorkstationConfig . EphemeralDirectory . GcePersistentDisk prototype )
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseDelimitedFrom ( InputStream input )
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( CodedInputStream input )
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( InputStream input )
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig . EphemeralDirectory . GcePersistentDisk parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<WorkstationConfig . EphemeralDirectory . GcePersistentDisk > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public WorkstationConfig . EphemeralDirectory . GcePersistentDisk getDefaultInstanceForType ()
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
Type
Description
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
Type
Description
ByteString
The bytes for diskType.
getParserForType()
public Parser<WorkstationConfig . EphemeralDirectory . GcePersistentDisk > getParserForType ()
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
Type
Description
boolean
The readOnly.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
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
Type
Description
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
Type
Description
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
Type
Description
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
Type
Description
ByteString
The bytes for sourceSnapshot.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public WorkstationConfig . EphemeralDirectory . GcePersistentDisk . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WorkstationConfig . EphemeralDirectory . GcePersistentDisk . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public WorkstationConfig . EphemeralDirectory . GcePersistentDisk . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]