public final class DiskType extends com.google.protobuf.GeneratedMessageV3 implements DiskTypeOrBuilder
Represents a Disk Type resource. Google Compute Engine has two Disk Type resources: * [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) * [Zonal](/compute/docs/reference/rest/v1/diskTypes) You can choose from a variety of disk types based on your needs. For more information, read Storage options. The diskTypes resource represents disk types for a zonal persistent disk. For more information, read Zonal persistent disks. The regionDiskTypes resource represents disk types for a regional persistent disk. For more information, read Regional persistent disks.Protobuf type
google.cloud.compute.v1.DiskType| Modifier and Type | Class and Description |
|---|---|
static class |
DiskType.Builder
Represents a Disk Type resource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATION_TIMESTAMP_FIELD_NUMBER |
static int |
DEFAULT_DISK_SIZE_GB_FIELD_NUMBER |
static int |
DEPRECATED_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
REGION_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
VALID_DISK_SIZE_FIELD_NUMBER |
static int |
ZONE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
long |
getDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.
|
static DiskType |
getDefaultInstance() |
DiskType |
getDefaultInstanceForType() |
DeprecationStatus |
getDeprecated()
[Output Only] The deprecation status associated with this disk type.
|
DeprecationStatusOrBuilder |
getDeprecatedOrBuilder()
[Output Only] The deprecation status associated with this disk type.
|
String |
getDescription()
[Output Only] An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
[Output Only] An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
String |
getName()
[Output Only] Name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
[Output Only] Name of the resource.
|
com.google.protobuf.Parser<DiskType> |
getParserForType() |
String |
getRegion()
[Output Only] URL of the region where the disk type resides.
|
com.google.protobuf.ByteString |
getRegionBytes()
[Output Only] URL of the region where the disk type resides.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
|
com.google.protobuf.ByteString |
getValidDiskSizeBytes()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
|
String |
getZone()
[Output Only] URL of the zone where the disk type resides.
|
com.google.protobuf.ByteString |
getZoneBytes()
[Output Only] URL of the zone where the disk type resides.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.
|
boolean |
hasDeprecated()
[Output Only] The deprecation status associated with this disk type.
|
boolean |
hasDescription()
[Output Only] An optional description of this resource.
|
int |
hashCode() |
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasName()
[Output Only] Name of the resource.
|
boolean |
hasRegion()
[Output Only] URL of the region where the disk type resides.
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
|
boolean |
hasZone()
[Output Only] URL of the zone where the disk type resides.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DiskType.Builder |
newBuilder() |
static DiskType.Builder |
newBuilder(DiskType prototype) |
DiskType.Builder |
newBuilderForType() |
protected DiskType.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DiskType |
parseDelimitedFrom(InputStream input) |
static DiskType |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskType |
parseFrom(byte[] data) |
static DiskType |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskType |
parseFrom(ByteBuffer data) |
static DiskType |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskType |
parseFrom(com.google.protobuf.ByteString data) |
static DiskType |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskType |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DiskType |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiskType |
parseFrom(InputStream input) |
static DiskType |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DiskType> |
parser() |
DiskType.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DEFAULT_DISK_SIZE_GB_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int VALID_DISK_SIZE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface DiskTypeOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface DiskTypeOrBuilderpublic boolean hasDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.
optional int64 default_disk_size_gb = 270619253;hasDefaultDiskSizeGb in interface DiskTypeOrBuilderpublic long getDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.
optional int64 default_disk_size_gb = 270619253;getDefaultDiskSizeGb in interface DiskTypeOrBuilderpublic boolean hasDeprecated()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;hasDeprecated in interface DiskTypeOrBuilderpublic DeprecationStatus getDeprecated()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;getDeprecated in interface DiskTypeOrBuilderpublic DeprecationStatusOrBuilder getDeprecatedOrBuilder()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;getDeprecatedOrBuilder in interface DiskTypeOrBuilderpublic boolean hasDescription()
[Output Only] An optional description of this resource.
optional string description = 422937596;hasDescription in interface DiskTypeOrBuilderpublic String getDescription()
[Output Only] An optional description of this resource.
optional string description = 422937596;getDescription in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
[Output Only] An optional description of this resource.
optional string description = 422937596;getDescriptionBytes in interface DiskTypeOrBuilderpublic boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface DiskTypeOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface DiskTypeOrBuilderpublic boolean hasKind()
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;hasKind in interface DiskTypeOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;getKind in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;getKindBytes in interface DiskTypeOrBuilderpublic boolean hasName()
[Output Only] Name of the resource.
optional string name = 3373707;hasName in interface DiskTypeOrBuilderpublic String getName()
[Output Only] Name of the resource.
optional string name = 3373707;getName in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
[Output Only] Name of the resource.
optional string name = 3373707;getNameBytes in interface DiskTypeOrBuilderpublic boolean hasRegion()
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;hasRegion in interface DiskTypeOrBuilderpublic String getRegion()
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;getRegion in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;getRegionBytes in interface DiskTypeOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface DiskTypeOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface DiskTypeOrBuilderpublic boolean hasValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;hasValidDiskSize in interface DiskTypeOrBuilderpublic String getValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;getValidDiskSize in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getValidDiskSizeBytes()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;getValidDiskSizeBytes in interface DiskTypeOrBuilderpublic boolean hasZone()
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;hasZone in interface DiskTypeOrBuilderpublic String getZone()
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;getZone in interface DiskTypeOrBuilderpublic com.google.protobuf.ByteString getZoneBytes()
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;getZoneBytes in interface DiskTypeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DiskType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskType parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiskType parseFrom(InputStream input) throws IOException
IOExceptionpublic static DiskType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiskType parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DiskType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiskType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DiskType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DiskType.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DiskType.Builder newBuilder()
public static DiskType.Builder newBuilder(DiskType prototype)
public DiskType.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DiskType.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DiskType getDefaultInstance()
public static com.google.protobuf.Parser<DiskType> parser()
public com.google.protobuf.Parser<DiskType> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DiskType getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.