Class PersistentDiskSpec.Builder (3.84.0)

public static final class PersistentDiskSpec.Builder extends GeneratedMessage.Builder<PersistentDiskSpec.Builder> implements PersistentDiskSpecOrBuilder

Represents the spec of persistent disk options.

Protobuf type google.cloud.aiplatform.v1beta1.PersistentDiskSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public PersistentDiskSpec build()
Returns
Type Description
PersistentDiskSpec

buildPartial()

public PersistentDiskSpec buildPartial()
Returns
Type Description
PersistentDiskSpec

clear()

public PersistentDiskSpec.Builder clear()
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

clearDiskSizeGb()

public PersistentDiskSpec.Builder clearDiskSizeGb()

Size in GB of the disk (default is 100GB).

int64 disk_size_gb = 2;

Returns
Type Description
PersistentDiskSpec.Builder

This builder for chaining.

clearDiskType()

public PersistentDiskSpec.Builder clearDiskType()

Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

string disk_type = 1;

Returns
Type Description
PersistentDiskSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

public PersistentDiskSpec getDefaultInstanceForType()
Returns
Type Description
PersistentDiskSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiskSizeGb()

public long getDiskSizeGb()

Size in GB of the disk (default is 100GB).

int64 disk_size_gb = 2;

Returns
Type Description
long

The diskSizeGb.

getDiskType()

public String getDiskType()

Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

string disk_type = 1;

Returns
Type Description
String

The diskType.

getDiskTypeBytes()

public ByteString getDiskTypeBytes()

Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

string disk_type = 1;

Returns
Type Description
ByteString

The bytes for diskType.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PersistentDiskSpec other)

public PersistentDiskSpec.Builder mergeFrom(PersistentDiskSpec other)
Parameter
Name Description
other PersistentDiskSpec
Returns
Type Description
PersistentDiskSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PersistentDiskSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistentDiskSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PersistentDiskSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

setDiskSizeGb(long value)

public PersistentDiskSpec.Builder setDiskSizeGb(long value)

Size in GB of the disk (default is 100GB).

int64 disk_size_gb = 2;

Parameter
Name Description
value long

The diskSizeGb to set.

Returns
Type Description
PersistentDiskSpec.Builder

This builder for chaining.

setDiskType(String value)

public PersistentDiskSpec.Builder setDiskType(String value)

Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

string disk_type = 1;

Parameter
Name Description
value String

The diskType to set.

Returns
Type Description
PersistentDiskSpec.Builder

This builder for chaining.

setDiskTypeBytes(ByteString value)

public PersistentDiskSpec.Builder setDiskTypeBytes(ByteString value)

Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

string disk_type = 1;

Parameter
Name Description
value ByteString

The bytes for diskType to set.

Returns
Type Description
PersistentDiskSpec.Builder

This builder for chaining.