Package com.google.cloud.compute.v1
Class SavedAttachedDisk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SavedAttachedDisk.Builder>
com.google.cloud.compute.v1.SavedAttachedDisk.Builder
- All Implemented Interfaces:
SavedAttachedDiskOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SavedAttachedDisk
public static final class SavedAttachedDisk.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SavedAttachedDisk.Builder>
implements SavedAttachedDiskOrBuilder
DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.Protobuf type
google.cloud.compute.v1.SavedAttachedDisk-
Method Summary
Modifier and TypeMethodDescriptionaddAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values) A list of features to enable on the guest operating system.addAllLicenses(Iterable<String> values) Output only.addGuestOsFeatures(int index, GuestOsFeature value) A list of features to enable on the guest operating system.addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue) A list of features to enable on the guest operating system.addGuestOsFeatures(GuestOsFeature value) A list of features to enable on the guest operating system.addGuestOsFeatures(GuestOsFeature.Builder builderForValue) A list of features to enable on the guest operating system.A list of features to enable on the guest operating system.addGuestOsFeaturesBuilder(int index) A list of features to enable on the guest operating system.addLicenses(String value) Output only.addLicensesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).Indicates that this is a boot disk.Specifies the name of the disk attached to the source instance.The encryption key for the disk.The size of the disk in base-2 GB.Output only.A list of features to enable on the guest operating system.Output only.Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.Output only.Output only.The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY.Specifies a URL of the disk attached to the source instance.Output only.Output only.Specifies the type of the attached disk, either SCRATCH orPERSISTENT.booleanSpecifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleangetBoot()Indicates that this is a boot disk.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the name of the disk attached to the source instance.com.google.protobuf.ByteStringSpecifies the name of the disk attached to the source instance.The encryption key for the disk.The encryption key for the disk.The encryption key for the disk.longThe size of the disk in base-2 GB.Output only.com.google.protobuf.ByteStringOutput only.getGuestOsFeatures(int index) A list of features to enable on the guest operating system.getGuestOsFeaturesBuilder(int index) A list of features to enable on the guest operating system.A list of features to enable on the guest operating system.intA list of features to enable on the guest operating system.A list of features to enable on the guest operating system.getGuestOsFeaturesOrBuilder(int index) A list of features to enable on the guest operating system.List<? extends GuestOsFeatureOrBuilder>A list of features to enable on the guest operating system.intgetIndex()Output only.Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.com.google.protobuf.ByteStringSpecifies the disk interface to use for attaching this disk, which is either SCSI or NVME.getKind()Output only.com.google.protobuf.ByteStringOutput only.getLicenses(int index) Output only.com.google.protobuf.ByteStringgetLicensesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getMode()The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY.com.google.protobuf.ByteStringThe mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY.Specifies a URL of the disk attached to the source instance.com.google.protobuf.ByteStringSpecifies a URL of the disk attached to the source instance.longOutput only.Output only.com.google.protobuf.ByteStringOutput only.getType()Specifies the type of the attached disk, either SCRATCH orPERSISTENT.com.google.protobuf.ByteStringSpecifies the type of the attached disk, either SCRATCH orPERSISTENT.booleanSpecifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).booleanhasBoot()Indicates that this is a boot disk.booleanSpecifies the name of the disk attached to the source instance.booleanThe encryption key for the disk.booleanThe size of the disk in base-2 GB.booleanOutput only.booleanhasIndex()Output only.booleanSpecifies the disk interface to use for attaching this disk, which is either SCSI or NVME.booleanhasKind()Output only.booleanhasMode()The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY.booleanSpecifies a URL of the disk attached to the source instance.booleanOutput only.booleanOutput only.booleanhasType()Specifies the type of the attached disk, either SCRATCH orPERSISTENT.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe encryption key for the disk.mergeFrom(SavedAttachedDisk other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeGuestOsFeatures(int index) A list of features to enable on the guest operating system.setAutoDelete(boolean value) Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).setBoot(boolean value) Indicates that this is a boot disk.setDeviceName(String value) Specifies the name of the disk attached to the source instance.setDeviceNameBytes(com.google.protobuf.ByteString value) Specifies the name of the disk attached to the source instance.The encryption key for the disk.setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue) The encryption key for the disk.setDiskSizeGb(long value) The size of the disk in base-2 GB.setDiskType(String value) Output only.setDiskTypeBytes(com.google.protobuf.ByteString value) Output only.setGuestOsFeatures(int index, GuestOsFeature value) A list of features to enable on the guest operating system.setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue) A list of features to enable on the guest operating system.setIndex(int value) Output only.setInterface(String value) Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.setInterfaceBytes(com.google.protobuf.ByteString value) Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLicenses(int index, String value) Output only.The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY.setModeBytes(com.google.protobuf.ByteString value) The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY.Specifies a URL of the disk attached to the source instance.setSourceBytes(com.google.protobuf.ByteString value) Specifies a URL of the disk attached to the source instance.setStorageBytes(long value) Output only.setStorageBytesStatus(String value) Output only.setStorageBytesStatusBytes(com.google.protobuf.ByteString value) Output only.Specifies the type of the attached disk, either SCRATCH orPERSISTENT.setTypeBytes(com.google.protobuf.ByteString value) Specifies the type of the attached disk, either SCRATCH orPERSISTENT.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SavedAttachedDisk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SavedAttachedDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SavedAttachedDisk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SavedAttachedDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SavedAttachedDisk.Builder>
-
mergeFrom
public SavedAttachedDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SavedAttachedDisk.Builder>- Throws:
IOException
-
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:
hasAutoDeletein 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:
getAutoDeletein interfaceSavedAttachedDiskOrBuilder- Returns:
- The autoDelete.
-
setAutoDelete
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;- Parameters:
value- The autoDelete to set.- Returns:
- This builder for chaining.
-
clearAutoDelete
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;- Returns:
- This builder for chaining.
-
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:
hasBootin 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:
getBootin interfaceSavedAttachedDiskOrBuilder- Returns:
- The boot.
-
setBoot
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;- Parameters:
value- The boot to set.- Returns:
- This builder for chaining.
-
clearBoot
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;- Returns:
- This builder for chaining.
-
hasDeviceName
public boolean hasDeviceName()Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;- Specified by:
hasDeviceNamein interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the deviceName field is set.
-
getDeviceName
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;- Specified by:
getDeviceNamein 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:
getDeviceNameBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for deviceName.
-
setDeviceName
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;- Parameters:
value- The deviceName to set.- Returns:
- This builder for chaining.
-
clearDeviceName
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;- Returns:
- This builder for chaining.
-
setDeviceNameBytes
Specifies the name of the disk attached to the source instance.
optional string device_name = 67541716;- Parameters:
value- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
hasDiskEncryptionKey
public boolean hasDiskEncryptionKey()The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;- Specified by:
hasDiskEncryptionKeyin interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the diskEncryptionKey field is set.
-
getDiskEncryptionKey
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;- Specified by:
getDiskEncryptionKeyin interfaceSavedAttachedDiskOrBuilder- Returns:
- The diskEncryptionKey.
-
setDiskEncryptionKey
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
setDiskEncryptionKey
public SavedAttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue) The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
mergeDiskEncryptionKey
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
clearDiskEncryptionKey
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
getDiskEncryptionKeyBuilder
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677; -
getDiskEncryptionKeyOrBuilder
The encryption key for the disk.
optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;- Specified by:
getDiskEncryptionKeyOrBuilderin interfaceSavedAttachedDiskOrBuilder
-
hasDiskSizeGb
public boolean hasDiskSizeGb()The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;- Specified by:
hasDiskSizeGbin 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:
getDiskSizeGbin interfaceSavedAttachedDiskOrBuilder- Returns:
- The diskSizeGb.
-
setDiskSizeGb
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;- Parameters:
value- The diskSizeGb to set.- Returns:
- This builder for chaining.
-
clearDiskSizeGb
The size of the disk in base-2 GB.
optional int64 disk_size_gb = 316263735;- Returns:
- This builder for chaining.
-
hasDiskType
public boolean hasDiskType()Output only. [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:
hasDiskTypein interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the diskType field is set.
-
getDiskType
Output only. [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:
getDiskTypein interfaceSavedAttachedDiskOrBuilder- Returns:
- The diskType.
-
getDiskTypeBytes
public com.google.protobuf.ByteString getDiskTypeBytes()Output only. [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:
getDiskTypeBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for diskType.
-
setDiskType
Output only. [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;- Parameters:
value- The diskType to set.- Returns:
- This builder for chaining.
-
clearDiskType
Output only. [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;- Returns:
- This builder for chaining.
-
setDiskTypeBytes
Output only. [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;- Parameters:
value- The bytes for diskType to set.- Returns:
- This builder for chaining.
-
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:
getGuestOsFeaturesListin 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:
getGuestOsFeaturesCountin interfaceSavedAttachedDiskOrBuilder
-
getGuestOsFeatures
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:
getGuestOsFeaturesin interfaceSavedAttachedDiskOrBuilder
-
setGuestOsFeatures
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; -
setGuestOsFeatures
public SavedAttachedDisk.Builder setGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue) 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; -
addGuestOsFeatures
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; -
addGuestOsFeatures
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; -
addGuestOsFeatures
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; -
addGuestOsFeatures
public SavedAttachedDisk.Builder addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue) 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; -
addAllGuestOsFeatures
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; -
clearGuestOsFeatures
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; -
removeGuestOsFeatures
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; -
getGuestOsFeaturesBuilder
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; -
getGuestOsFeaturesOrBuilder
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:
getGuestOsFeaturesOrBuilderin interfaceSavedAttachedDiskOrBuilder
-
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:
getGuestOsFeaturesOrBuilderListin interfaceSavedAttachedDiskOrBuilder
-
addGuestOsFeaturesBuilder
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; -
addGuestOsFeaturesBuilder
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; -
getGuestOsFeaturesBuilderList
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; -
hasIndex
public boolean hasIndex()Output only. Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;- Specified by:
hasIndexin interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the index field is set.
-
getIndex
public int getIndex()Output only. Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;- Specified by:
getIndexin interfaceSavedAttachedDiskOrBuilder- Returns:
- The index.
-
setIndex
Output only. Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
Output only. Specifies zero-based index of the disk that is attached to the source instance.
optional int32 index = 100346066;- Returns:
- This builder for chaining.
-
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:
hasInterfacein interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the interface field is set.
-
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:
getInterfacein 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:
getInterfaceBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for interface.
-
setInterface
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;- Parameters:
value- The interface to set.- Returns:
- This builder for chaining.
-
clearInterface
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;- Returns:
- This builder for chaining.
-
setInterfaceBytes
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;- Parameters:
value- The bytes for interface to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Specified by:
hasKindin interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Specified by:
getKindin interfaceSavedAttachedDiskOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getLicensesList
public com.google.protobuf.ProtocolStringList getLicensesList()Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesListin interfaceSavedAttachedDiskOrBuilder- Returns:
- A list containing the licenses.
-
getLicensesCount
public int getLicensesCount()Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesCountin interfaceSavedAttachedDiskOrBuilder- Returns:
- The count of licenses.
-
getLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesin 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. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Specified by:
getLicensesBytesin interfaceSavedAttachedDiskOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the licenses at the given index.
-
setLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
index- The index to set the value at.value- The licenses to set.- Returns:
- This builder for chaining.
-
addLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
value- The licenses to add.- Returns:
- This builder for chaining.
-
addAllLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
values- The licenses to add.- Returns:
- This builder for chaining.
-
clearLicenses
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Returns:
- This builder for chaining.
-
addLicensesBytes
Output only. [Output Only] Any valid publicly visible licenses.
repeated string licenses = 337642578;- Parameters:
value- The bytes of the licenses to add.- Returns:
- This builder for chaining.
-
hasMode
public boolean hasMode()The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
hasModein interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the mode field is set.
-
getMode
The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModein interfaceSavedAttachedDiskOrBuilder- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModeBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for mode.
-
setMode
The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Returns:
- This builder for chaining.
-
setModeBytes
The mode in which this disk is attached to the source instance, eitherREAD_WRITE or READ_ONLY. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The bytes for mode to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;- Specified by:
hasSourcein interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the source field is set.
-
getSource
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;- Specified by:
getSourcein 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:
getSourceBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for source.
-
setSource
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;- Returns:
- This builder for chaining.
-
setSourceBytes
Specifies a URL of the disk attached to the source instance.
optional string source = 177235995;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasStorageBytes
public boolean hasStorageBytes()Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;- Specified by:
hasStorageBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the storageBytes field is set.
-
getStorageBytes
public long getStorageBytes()Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;- Specified by:
getStorageBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The storageBytes.
-
setStorageBytes
Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;- Parameters:
value- The storageBytes to set.- Returns:
- This builder for chaining.
-
clearStorageBytes
Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine image.
optional int64 storage_bytes = 424631719;- Returns:
- This builder for chaining.
-
hasStorageBytesStatus
public boolean hasStorageBytesStatus()Output only. [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:
hasStorageBytesStatusin interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the storageBytesStatus field is set.
-
getStorageBytesStatus
Output only. [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:
getStorageBytesStatusin interfaceSavedAttachedDiskOrBuilder- Returns:
- The storageBytesStatus.
-
getStorageBytesStatusBytes
public com.google.protobuf.ByteString getStorageBytesStatusBytes()Output only. [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:
getStorageBytesStatusBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for storageBytesStatus.
-
setStorageBytesStatus
Output only. [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;- Parameters:
value- The storageBytesStatus to set.- Returns:
- This builder for chaining.
-
clearStorageBytesStatus
Output only. [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;- Returns:
- This builder for chaining.
-
setStorageBytesStatusBytes
Output only. [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;- Parameters:
value- The bytes for storageBytesStatus to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Specifies the type of the attached disk, either SCRATCH orPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceSavedAttachedDiskOrBuilder- Returns:
- Whether the type field is set.
-
getType
Specifies the type of the attached disk, either SCRATCH orPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceSavedAttachedDiskOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Specifies the type of the attached disk, either SCRATCH orPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceSavedAttachedDiskOrBuilder- Returns:
- The bytes for type.
-
setType
Specifies the type of the attached disk, either SCRATCH orPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Specifies the type of the attached disk, either SCRATCH orPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
Specifies the type of the attached disk, either SCRATCH orPERSISTENT. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-