Class PersistentDiskSpec.Builder (3.37.0)

public static final class PersistentDiskSpec.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PersistentDiskSpec build()
Returns
TypeDescription
PersistentDiskSpec

buildPartial()

public PersistentDiskSpec buildPartial()
Returns
TypeDescription
PersistentDiskSpec

clear()

public PersistentDiskSpec.Builder clear()
Returns
TypeDescription
PersistentDiskSpec.Builder
Overrides

clearDiskSizeGb()

public PersistentDiskSpec.Builder clearDiskSizeGb()

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

int64 disk_size_gb = 2;

Returns
TypeDescription
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
TypeDescription
PersistentDiskSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PersistentDiskSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PersistentDiskSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PersistentDiskSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PersistentDiskSpec.Builder
Overrides

clone()

public PersistentDiskSpec.Builder clone()
Returns
TypeDescription
PersistentDiskSpec.Builder
Overrides

getDefaultInstanceForType()

public PersistentDiskSpec getDefaultInstanceForType()
Returns
TypeDescription
PersistentDiskSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskSizeGb()

public long getDiskSizeGb()

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

int64 disk_size_gb = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for diskType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PersistentDiskSpec other)

public PersistentDiskSpec.Builder mergeFrom(PersistentDiskSpec other)
Parameter
NameDescription
otherPersistentDiskSpec
Returns
TypeDescription
PersistentDiskSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PersistentDiskSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PersistentDiskSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PersistentDiskSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The diskSizeGb to set.

Returns
TypeDescription
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
NameDescription
valueString

The diskType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for diskType to set.

Returns
TypeDescription
PersistentDiskSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final PersistentDiskSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PersistentDiskSpec.Builder
Overrides