Package com.google.cloud.compute.v1
Class SavedAttachedDisk
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.SavedAttachedDisk
-
- All Implemented Interfaces:
SavedAttachedDiskOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class SavedAttachedDisk extends com.google.protobuf.GeneratedMessageV3 implements SavedAttachedDiskOrBuilder
DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.
Protobuf typegoogle.cloud.compute.v1.SavedAttachedDisk
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SavedAttachedDisk.Builder
DEPRECATED: Please use compute#savedDisk instead.static class
SavedAttachedDisk.Interface
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.static class
SavedAttachedDisk.Mode
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.static class
SavedAttachedDisk.StorageBytesStatus
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.static class
SavedAttachedDisk.Type
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTO_DELETE_FIELD_NUMBER
static int
BOOT_FIELD_NUMBER
static int
DEVICE_NAME_FIELD_NUMBER
static int
DISK_ENCRYPTION_KEY_FIELD_NUMBER
static int
DISK_SIZE_GB_FIELD_NUMBER
static int
DISK_TYPE_FIELD_NUMBER
static int
GUEST_OS_FEATURES_FIELD_NUMBER
static int
INDEX_FIELD_NUMBER
static int
INTERFACE_FIELD_NUMBER
static int
KIND_FIELD_NUMBER
static int
LICENSES_FIELD_NUMBER
static int
MODE_FIELD_NUMBER
static int
SOURCE_FIELD_NUMBER
static int
STORAGE_BYTES_FIELD_NUMBER
static int
STORAGE_BYTES_STATUS_FIELD_NUMBER
static int
TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).boolean
getBoot()
Indicates that this is a boot disk.static SavedAttachedDisk
getDefaultInstance()
SavedAttachedDisk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDeviceName()
Specifies the name of the disk attached to the source instance.com.google.protobuf.ByteString
getDeviceNameBytes()
Specifies the name of the disk attached to the source instance.CustomerEncryptionKey
getDiskEncryptionKey()
The encryption key for the disk.CustomerEncryptionKeyOrBuilder
getDiskEncryptionKeyOrBuilder()
The encryption key for the disk.long
getDiskSizeGb()
The size of the disk in base-2 GB.String
getDiskType()
[Output Only] URL of the disk type resource.com.google.protobuf.ByteString
getDiskTypeBytes()
[Output Only] URL of the disk type resource.GuestOsFeature
getGuestOsFeatures(int index)
A list of features to enable on the guest operating system.int
getGuestOsFeaturesCount()
A list of features to enable on the guest operating system.List<GuestOsFeature>
getGuestOsFeaturesList()
A list of features to enable on the guest operating system.GuestOsFeatureOrBuilder
getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system.List<? extends GuestOsFeatureOrBuilder>
getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system.int
getIndex()
Specifies zero-based index of the disk that is attached to the source instance.String
getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteString
getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getLicenses(int index)
[Output Only] Any valid publicly visible licenses.com.google.protobuf.ByteString
getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.int
getLicensesCount()
[Output Only] Any valid publicly visible licenses.com.google.protobuf.ProtocolStringList
getLicensesList()
[Output Only] Any valid publicly visible licenses.String
getMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.com.google.protobuf.ByteString
getModeBytes()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.com.google.protobuf.Parser<SavedAttachedDisk>
getParserForType()
int
getSerializedSize()
String
getSource()
Specifies a URL of the disk attached to the source instance.com.google.protobuf.ByteString
getSourceBytes()
Specifies a URL of the disk attached to the source instance.long
getStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.String
getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.com.google.protobuf.ByteString
getStorageBytesStatusBytes()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.String
getType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.com.google.protobuf.ByteString
getTypeBytes()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.boolean
hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).boolean
hasBoot()
Indicates that this is a boot disk.boolean
hasDeviceName()
Specifies the name of the disk attached to the source instance.boolean
hasDiskEncryptionKey()
The encryption key for the disk.boolean
hasDiskSizeGb()
The size of the disk in base-2 GB.boolean
hasDiskType()
[Output Only] URL of the disk type resource.int
hashCode()
boolean
hasIndex()
Specifies zero-based index of the disk that is attached to the source instance.boolean
hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.boolean
hasSource()
Specifies a URL of the disk attached to the source instance.boolean
hasStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.boolean
hasStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.boolean
hasType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static SavedAttachedDisk.Builder
newBuilder()
static SavedAttachedDisk.Builder
newBuilder(SavedAttachedDisk prototype)
SavedAttachedDisk.Builder
newBuilderForType()
protected SavedAttachedDisk.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SavedAttachedDisk
parseDelimitedFrom(InputStream input)
static SavedAttachedDisk
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SavedAttachedDisk
parseFrom(byte[] data)
static SavedAttachedDisk
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SavedAttachedDisk
parseFrom(com.google.protobuf.ByteString data)
static SavedAttachedDisk
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SavedAttachedDisk
parseFrom(com.google.protobuf.CodedInputStream input)
static SavedAttachedDisk
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SavedAttachedDisk
parseFrom(InputStream input)
static SavedAttachedDisk
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SavedAttachedDisk
parseFrom(ByteBuffer data)
static SavedAttachedDisk
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SavedAttachedDisk>
parser()
SavedAttachedDisk.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
AUTO_DELETE_FIELD_NUMBER
public static final int AUTO_DELETE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_FIELD_NUMBER
public static final int BOOT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEVICE_NAME_FIELD_NUMBER
public static final int DEVICE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_ENCRYPTION_KEY_FIELD_NUMBER
public static final int DISK_ENCRYPTION_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_SIZE_GB_FIELD_NUMBER
public static final int DISK_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_TYPE_FIELD_NUMBER
public static final int DISK_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GUEST_OS_FEATURES_FIELD_NUMBER
public static final int GUEST_OS_FEATURES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INDEX_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTERFACE_FIELD_NUMBER
public static final int INTERFACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LICENSES_FIELD_NUMBER
public static final int LICENSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_BYTES_FIELD_NUMBER
public static final int STORAGE_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_BYTES_STATUS_FIELD_NUMBER
public static final int STORAGE_BYTES_STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasAutoDelete
public boolean hasAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
- Specified by:
hasAutoDelete
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the autoDelete field is set.
-
getAutoDelete
public boolean getAutoDelete()
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 464761403;
- Specified by:
getAutoDelete
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The autoDelete.
-
hasBoot
public boolean hasBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
- Specified by:
hasBoot
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the boot field is set.
-
getBoot
public boolean getBoot()
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 3029746;
- Specified by:
getBoot
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The boot.
-
hasDeviceName
public boolean hasDeviceName()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Specified by:
hasDeviceName
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the deviceName field is set.
-
getDeviceName
public String getDeviceName()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Specified by:
getDeviceName
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The deviceName.
-
getDeviceNameBytes
public com.google.protobuf.ByteString getDeviceNameBytes()
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;
- Specified by:
getDeviceNameBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for deviceName.
-
hasDiskEncryptionKey
public boolean hasDiskEncryptionKey()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Specified by:
hasDiskEncryptionKey
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the diskEncryptionKey field is set.
-
getDiskEncryptionKey
public CustomerEncryptionKey getDiskEncryptionKey()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Specified by:
getDiskEncryptionKey
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The diskEncryptionKey.
-
getDiskEncryptionKeyOrBuilder
public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
- Specified by:
getDiskEncryptionKeyOrBuilder
in interfaceSavedAttachedDiskOrBuilder
-
hasDiskSizeGb
public boolean hasDiskSizeGb()
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Specified by:
hasDiskSizeGb
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the diskSizeGb field is set.
-
getDiskSizeGb
public long getDiskSizeGb()
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;
- Specified by:
getDiskSizeGb
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The diskSizeGb.
-
hasDiskType
public boolean hasDiskType()
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Specified by:
hasDiskType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the diskType field is set.
-
getDiskType
public String getDiskType()
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Specified by:
getDiskType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The diskType.
-
getDiskTypeBytes
public com.google.protobuf.ByteString getDiskTypeBytes()
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 93009052;
- Specified by:
getDiskTypeBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for diskType.
-
getGuestOsFeaturesList
public List<GuestOsFeature> getGuestOsFeaturesList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesList
in interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeaturesOrBuilderList
public List<? extends GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesOrBuilderList
in interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeaturesCount
public int getGuestOsFeaturesCount()
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesCount
in interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeatures
public GuestOsFeature getGuestOsFeatures(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeatures
in interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeaturesOrBuilder
public GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder(int index)
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
- Specified by:
getGuestOsFeaturesOrBuilder
in interfaceSavedAttachedDiskOrBuilder
-
hasIndex
public boolean hasIndex()
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Specified by:
hasIndex
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the index field is set.
-
getIndex
public int getIndex()
Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;
- Specified by:
getIndex
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The index.
-
hasInterface
public boolean hasInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
hasInterface
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the interface field is set.
-
getInterface
public String getInterface()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
getInterface
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The interface.
-
getInterfaceBytes
public com.google.protobuf.ByteString getInterfaceBytes()
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. Check the Interface enum for the list of possible values.
optional string interface = 502623545;
- Specified by:
getInterfaceBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for interface.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for kind.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesList
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesCount
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The count of licenses.
-
getLicenses
public String getLicenses(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicenses
in interfaceSavedAttachedDiskOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The licenses at the given index.
-
getLicensesBytes
public com.google.protobuf.ByteString getLicensesBytes(int index)
[Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;
- Specified by:
getLicensesBytes
in interfaceSavedAttachedDiskOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
hasMode
public boolean hasMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Specified by:
hasMode
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the mode field is set.
-
getMode
public String getMode()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Specified by:
getMode
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;
- Specified by:
getModeBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for mode.
-
hasSource
public boolean hasSource()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Specified by:
hasSource
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
public String getSource()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Specified by:
getSource
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;
- Specified by:
getSourceBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for source.
-
hasStorageBytes
public boolean hasStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;
- Specified by:
hasStorageBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the storageBytes field is set.
-
getStorageBytes
public long getStorageBytes()
[Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;
- Specified by:
getStorageBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The storageBytes.
-
hasStorageBytesStatus
public boolean hasStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Specified by:
hasStorageBytesStatus
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the storageBytesStatus field is set.
-
getStorageBytesStatus
public String getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Specified by:
getStorageBytesStatus
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The storageBytesStatus.
-
getStorageBytesStatusBytes
public com.google.protobuf.ByteString getStorageBytesStatusBytes()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;
- Specified by:
getStorageBytesStatusBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for storageBytesStatus.
-
hasType
public boolean hasType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
hasType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- Whether the type field is set.
-
getType
public String getType()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
getType
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Specifies the type of the attached disk, either SCRATCH or PERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;
- Specified by:
getTypeBytes
in interfaceSavedAttachedDiskOrBuilder
- Returns:
- The bytes for type.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SavedAttachedDisk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SavedAttachedDisk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SavedAttachedDisk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SavedAttachedDisk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SavedAttachedDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SavedAttachedDisk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SavedAttachedDisk parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SavedAttachedDisk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SavedAttachedDisk parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SavedAttachedDisk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SavedAttachedDisk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SavedAttachedDisk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SavedAttachedDisk.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SavedAttachedDisk.Builder newBuilder()
-
newBuilder
public static SavedAttachedDisk.Builder newBuilder(SavedAttachedDisk prototype)
-
toBuilder
public SavedAttachedDisk.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SavedAttachedDisk.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SavedAttachedDisk getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SavedAttachedDisk> parser()
-
getParserForType
public com.google.protobuf.Parser<SavedAttachedDisk> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SavedAttachedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-