Class PersistentDiskSpec (1.35.0)

publicfinalclass PersistentDiskSpecextendsGeneratedMessageV3implementsPersistentDiskSpecOrBuilder

Represents the spec of persistent disk options.

Protobuf type google.cloud.vertexai.v1.PersistentDiskSpec

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DISK_SIZE_GB_FIELD_NUMBER

publicstaticfinalintDISK_SIZE_GB_FIELD_NUMBER
Field Value
Type Description
int

DISK_TYPE_FIELD_NUMBER

publicstaticfinalintDISK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticPersistentDiskSpecgetDefaultInstance()
Returns
Type Description
PersistentDiskSpec

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticPersistentDiskSpec.BuildernewBuilder()
Returns
Type Description
PersistentDiskSpec.Builder

newBuilder(PersistentDiskSpec prototype)

publicstaticPersistentDiskSpec.BuildernewBuilder(PersistentDiskSpecprototype)
Parameter
Name Description
prototype PersistentDiskSpec
Returns
Type Description
PersistentDiskSpec.Builder

parseDelimitedFrom(InputStream input)

publicstaticPersistentDiskSpecparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPersistentDiskSpecparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticPersistentDiskSpecparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticPersistentDiskSpecparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticPersistentDiskSpecparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticPersistentDiskSpecparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticPersistentDiskSpecparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPersistentDiskSpecparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticPersistentDiskSpecparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPersistentDiskSpecparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticPersistentDiskSpecparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticPersistentDiskSpecparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersistentDiskSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<PersistentDiskSpec>parser()
Returns
Type Description
Parser<PersistentDiskSpec>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicPersistentDiskSpecgetDefaultInstanceForType()
Returns
Type Description
PersistentDiskSpec

getDiskSizeGb()

publiclonggetDiskSizeGb()

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

int64 disk_size_gb = 2;

Returns
Type Description
long

The diskSizeGb.

getDiskType()

publicStringgetDiskType()

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()

publicByteStringgetDiskTypeBytes()

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.

getParserForType()

publicParser<PersistentDiskSpec>getParserForType()
Returns
Type Description
Parser<PersistentDiskSpec>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicPersistentDiskSpec.BuildernewBuilderForType()
Returns
Type Description
PersistentDiskSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedPersistentDiskSpec.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PersistentDiskSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicPersistentDiskSpec.BuildertoBuilder()
Returns
Type Description
PersistentDiskSpec.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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年11月19日 UTC.