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.GcePersistentDiskStatic 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()
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder newBuilder()
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder |
newBuilder(WorkstationConfig.EphemeralDirectory.GcePersistentDisk prototype)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder newBuilder(WorkstationConfig.EphemeralDirectory.GcePersistentDisk prototype)
Parameter | |
---|---|
Name | Description |
prototype |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder |
parseDelimitedFrom(InputStream input)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<WorkstationConfig.EphemeralDirectory.GcePersistentDisk> parser()
Returns | |
---|---|
Type | Description |
Parser<GcePersistentDisk> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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()
Returns | |
---|---|
Type | Description |
Parser<GcePersistentDisk> |
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 |
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()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder toBuilder()
Returns | |
---|---|
Type | Description |
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |