public static final class PersistentDiskSpec.Builder extends GeneratedMessageV3.Builder<PersistentDiskSpec.Builder> implements PersistentDiskSpecOrBuilder
Represents the spec of persistent
disk options.
Protobuf type google.cloud.aiplatform.v1.PersistentDiskSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public PersistentDiskSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PersistentDiskSpec build()
public PersistentDiskSpec buildPartial()
public PersistentDiskSpec.Builder clear()
Overrides
public PersistentDiskSpec.Builder clearDiskSizeGb()
Size in GB of the disk (default is 100GB).
int64 disk_size_gb = 2;
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 clearField(Descriptors.FieldDescriptor field)
Overrides
public PersistentDiskSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public PersistentDiskSpec.Builder clone()
Overrides
public PersistentDiskSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public long getDiskSizeGb()
Size in GB of the disk (default is 100GB).
int64 disk_size_gb = 2;
Returns |
---|
Type | Description |
long | The diskSizeGb.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PersistentDiskSpec.Builder mergeFrom(PersistentDiskSpec other)
public PersistentDiskSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PersistentDiskSpec.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final PersistentDiskSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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.
|
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.
|
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.
|
public PersistentDiskSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PersistentDiskSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final PersistentDiskSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides