Class WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder (0.16.0)

public static final class WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder extends GeneratedMessageV3.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder> 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.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

build()

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

buildPartial()

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

clear()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clear()
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

clearDiskType()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearDiskType()

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

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

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

clearReadOnly()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearReadOnly()

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
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

clearSourceImage()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearSourceImage()

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
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

clearSourceSnapshot()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearSourceSnapshot()

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
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

clone()

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clone()
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkstationConfig.EphemeralDirectory.GcePersistentDisk other)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder mergeFrom(WorkstationConfig.EphemeralDirectory.GcePersistentDisk other)
Parameter
NameDescription
otherWorkstationConfig.EphemeralDirectory.GcePersistentDisk
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

setDiskType(String value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setDiskType(String value)

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

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

Parameter
NameDescription
valueString

The diskType to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

setDiskTypeBytes(ByteString value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setDiskTypeBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for diskType to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

setReadOnly(boolean value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setReadOnly(boolean value)

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];

Parameter
NameDescription
valueboolean

The readOnly to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides

setSourceImage(String value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceImage(String value)

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];

Parameter
NameDescription
valueString

The sourceImage to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

setSourceImageBytes(ByteString value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceImageBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for sourceImage to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

setSourceSnapshot(String value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceSnapshot(String value)

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];

Parameter
NameDescription
valueString

The sourceSnapshot to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

setSourceSnapshotBytes(ByteString value)

public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceSnapshotBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for sourceSnapshot to set.

Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
Overrides