public static final class PersistentDiskSpec.Builder extends GeneratedMessage.Builder<PersistentDiskSpec.Builder> implements PersistentDiskSpecOrBuilderRepresents the spec of persistent disk options.
Protobuf type google.cloud.aiplatform.v1.PersistentDiskSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PersistentDiskSpec.BuilderImplements
PersistentDiskSpecOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PersistentDiskSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PersistentDiskSpec.Builder |
|
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 |
longThe 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 |
StringThe 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 |
ByteStringThe bytes for diskType to set. |
| Returns | |
|---|---|
| Type | Description |
PersistentDiskSpec.Builder |
This builder for chaining. |