Send feedback
Class PersistentDiskSpec.Builder (1.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PersistentDiskSpec . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public PersistentDiskSpec build ()
buildPartial()
public PersistentDiskSpec buildPartial ()
clear()
public PersistentDiskSpec . Builder clear ()
Overrides
clearDiskSizeGb()
public PersistentDiskSpec . Builder clearDiskSizeGb ()
Size in GB of the disk (default is 100GB).
int64 disk_size_gb = 2;
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;
clearField(Descriptors.FieldDescriptor field)
public PersistentDiskSpec . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PersistentDiskSpec . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public PersistentDiskSpec . Builder clone ()
Overrides
getDefaultInstanceForType()
public PersistentDiskSpec getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(PersistentDiskSpec other)
public PersistentDiskSpec . Builder mergeFrom ( PersistentDiskSpec other )
public PersistentDiskSpec . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public PersistentDiskSpec . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PersistentDiskSpec . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public PersistentDiskSpec . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PersistentDiskSpec . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PersistentDiskSpec . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-03 UTC."],[],[]]