Class PersistentDiskSpec.Builder (1.15.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.vertexai.v1.PersistentDiskSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PersistentDiskSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public PersistentDiskSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PersistentDiskSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PersistentDiskSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public PersistentDiskSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

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

public PersistentDiskSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PersistentDiskSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PersistentDiskSpec.Builder
Overrides