public static final class PersistentDiskSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<PersistentDiskSpec.Builder> implements PersistentDiskSpecOrBuilder
Represents the spec of [persistent disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options.Protobuf type
google.cloud.aiplatform.v1.PersistentDiskSpec| Modifier and Type | Method and Description |
|---|---|
PersistentDiskSpec |
build() |
PersistentDiskSpec |
buildPartial() |
PersistentDiskSpec.Builder |
clear() |
PersistentDiskSpec.Builder |
clearDiskSizeGb()
Size in GB of the disk (default is 100GB).
|
PersistentDiskSpec.Builder |
clearDiskType()
Type of the disk (default is "pd-standard").
|
PersistentDiskSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getDiskSizeGb()
Size in GB of the disk (default is 100GB).
|
String |
getDiskType()
Type of the disk (default is "pd-standard").
|
com.google.protobuf.ByteString |
getDiskTypeBytes()
Type of the disk (default is "pd-standard").
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PersistentDiskSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PersistentDiskSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
PersistentDiskSpec.Builder |
mergeFrom(PersistentDiskSpec other) |
PersistentDiskSpec.Builder |
setDiskSizeGb(long value)
Size in GB of the disk (default is 100GB).
|
PersistentDiskSpec.Builder |
setDiskType(String value)
Type of the disk (default is "pd-standard").
|
PersistentDiskSpec.Builder |
setDiskTypeBytes(com.google.protobuf.ByteString value)
Type of the disk (default is "pd-standard").
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PersistentDiskSpec.Builder>public PersistentDiskSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<PersistentDiskSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PersistentDiskSpec.Builder>public PersistentDiskSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PersistentDiskSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PersistentDiskSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PersistentDiskSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PersistentDiskSpec.Builder>public PersistentDiskSpec.Builder mergeFrom(PersistentDiskSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<PersistentDiskSpec.Builder>public PersistentDiskSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PersistentDiskSpec.Builder>IOExceptionpublic 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;getDiskType in interface PersistentDiskSpecOrBuilderpublic com.google.protobuf.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;getDiskTypeBytes in interface PersistentDiskSpecOrBuilderpublic 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;value - The diskType to set.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;public PersistentDiskSpec.Builder setDiskTypeBytes(com.google.protobuf.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;value - The bytes for diskType to set.public long getDiskSizeGb()
Size in GB of the disk (default is 100GB).
int64 disk_size_gb = 2;getDiskSizeGb in interface PersistentDiskSpecOrBuilderpublic PersistentDiskSpec.Builder setDiskSizeGb(long value)
Size in GB of the disk (default is 100GB).
int64 disk_size_gb = 2;value - The diskSizeGb to set.public PersistentDiskSpec.Builder clearDiskSizeGb()
Size in GB of the disk (default is 100GB).
int64 disk_size_gb = 2;Copyright © 2026 Google LLC. All rights reserved.