Class Instance.Disk.Builder

  • All Implemented Interfaces:
    Instance.DiskOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Instance.Disk

    public static final class Instance.Disk.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
    implements Instance.DiskOrBuilder
     An instance-attached disk resource.
     
    Protobuf type google.cloud.notebooks.v1.Instance.Disk
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • clear

        public Instance.Disk.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • getDefaultInstanceForType

        public Instance.Disk getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Instance.Disk build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Instance.Disk buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Instance.Disk.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • setField

        public Instance.Disk.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • clearField

        public Instance.Disk.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • clearOneof

        public Instance.Disk.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • setRepeatedField

        public Instance.Disk.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • addRepeatedField

        public Instance.Disk.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • mergeFrom

        public Instance.Disk.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Disk.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • mergeFrom

        public Instance.Disk.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Disk.Builder>
        Throws:
        IOException
      • getAutoDelete

        public boolean getAutoDelete()
         Indicates whether the disk will be auto-deleted when the instance is
         deleted (but not when the disk is detached from the instance).
         
        bool auto_delete = 1;
        Specified by:
        getAutoDelete in interface Instance.DiskOrBuilder
        Returns:
        The autoDelete.
      • setAutoDelete

        public Instance.Disk.Builder setAutoDelete​(boolean value)
         Indicates whether the disk will be auto-deleted when the instance is
         deleted (but not when the disk is detached from the instance).
         
        bool auto_delete = 1;
        Parameters:
        value - The autoDelete to set.
        Returns:
        This builder for chaining.
      • clearAutoDelete

        public Instance.Disk.Builder clearAutoDelete()
         Indicates whether the disk will be auto-deleted when the instance is
         deleted (but not when the disk is detached from the instance).
         
        bool auto_delete = 1;
        Returns:
        This builder for chaining.
      • 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.
         
        bool boot = 2;
        Specified by:
        getBoot in interface Instance.DiskOrBuilder
        Returns:
        The boot.
      • setBoot

        public Instance.Disk.Builder setBoot​(boolean value)
         Indicates that this is a boot disk. The virtual machine will use the
         first partition of the disk for its root filesystem.
         
        bool boot = 2;
        Parameters:
        value - The boot to set.
        Returns:
        This builder for chaining.
      • clearBoot

        public Instance.Disk.Builder clearBoot()
         Indicates that this is a boot disk. The virtual machine will use the
         first partition of the disk for its root filesystem.
         
        bool boot = 2;
        Returns:
        This builder for chaining.
      • getDeviceName

        public String getDeviceName()
         Indicates a unique device name of your choice that is reflected into the
         `/dev/disk/by-id/google-*` tree of a Linux operating system running
         within the instance. This name can be used to reference the device for
         mounting, resizing, and so on, from within the instance.
        
         If not specified, the server chooses a default device name to apply to
         this disk, in the form persistent-disk-x, where x is a number assigned by
         Google Compute Engine.This field is only applicable for persistent disks.
         
        string device_name = 3;
        Specified by:
        getDeviceName in interface Instance.DiskOrBuilder
        Returns:
        The deviceName.
      • getDeviceNameBytes

        public com.google.protobuf.ByteString getDeviceNameBytes()
         Indicates a unique device name of your choice that is reflected into the
         `/dev/disk/by-id/google-*` tree of a Linux operating system running
         within the instance. This name can be used to reference the device for
         mounting, resizing, and so on, from within the instance.
        
         If not specified, the server chooses a default device name to apply to
         this disk, in the form persistent-disk-x, where x is a number assigned by
         Google Compute Engine.This field is only applicable for persistent disks.
         
        string device_name = 3;
        Specified by:
        getDeviceNameBytes in interface Instance.DiskOrBuilder
        Returns:
        The bytes for deviceName.
      • setDeviceName

        public Instance.Disk.Builder setDeviceName​(String value)
         Indicates a unique device name of your choice that is reflected into the
         `/dev/disk/by-id/google-*` tree of a Linux operating system running
         within the instance. This name can be used to reference the device for
         mounting, resizing, and so on, from within the instance.
        
         If not specified, the server chooses a default device name to apply to
         this disk, in the form persistent-disk-x, where x is a number assigned by
         Google Compute Engine.This field is only applicable for persistent disks.
         
        string device_name = 3;
        Parameters:
        value - The deviceName to set.
        Returns:
        This builder for chaining.
      • clearDeviceName

        public Instance.Disk.Builder clearDeviceName()
         Indicates a unique device name of your choice that is reflected into the
         `/dev/disk/by-id/google-*` tree of a Linux operating system running
         within the instance. This name can be used to reference the device for
         mounting, resizing, and so on, from within the instance.
        
         If not specified, the server chooses a default device name to apply to
         this disk, in the form persistent-disk-x, where x is a number assigned by
         Google Compute Engine.This field is only applicable for persistent disks.
         
        string device_name = 3;
        Returns:
        This builder for chaining.
      • setDeviceNameBytes

        public Instance.Disk.Builder setDeviceNameBytes​(com.google.protobuf.ByteString value)
         Indicates a unique device name of your choice that is reflected into the
         `/dev/disk/by-id/google-*` tree of a Linux operating system running
         within the instance. This name can be used to reference the device for
         mounting, resizing, and so on, from within the instance.
        
         If not specified, the server chooses a default device name to apply to
         this disk, in the form persistent-disk-x, where x is a number assigned by
         Google Compute Engine.This field is only applicable for persistent disks.
         
        string device_name = 3;
        Parameters:
        value - The bytes for deviceName to set.
        Returns:
        This builder for chaining.
      • getDiskSizeGb

        public long getDiskSizeGb()
         Indicates the size of the disk in base-2 GB.
         
        int64 disk_size_gb = 4;
        Specified by:
        getDiskSizeGb in interface Instance.DiskOrBuilder
        Returns:
        The diskSizeGb.
      • setDiskSizeGb

        public Instance.Disk.Builder setDiskSizeGb​(long value)
         Indicates the size of the disk in base-2 GB.
         
        int64 disk_size_gb = 4;
        Parameters:
        value - The diskSizeGb to set.
        Returns:
        This builder for chaining.
      • clearDiskSizeGb

        public Instance.Disk.Builder clearDiskSizeGb()
         Indicates the size of the disk in base-2 GB.
         
        int64 disk_size_gb = 4;
        Returns:
        This builder for chaining.
      • getGuestOsFeaturesList

        public List<Instance.Disk.GuestOsFeature> getGuestOsFeaturesList()
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
        Specified by:
        getGuestOsFeaturesList in interface Instance.DiskOrBuilder
      • getGuestOsFeaturesCount

        public int getGuestOsFeaturesCount()
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
        Specified by:
        getGuestOsFeaturesCount in interface Instance.DiskOrBuilder
      • getGuestOsFeatures

        public Instance.Disk.GuestOsFeature getGuestOsFeatures​(int index)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
        Specified by:
        getGuestOsFeatures in interface Instance.DiskOrBuilder
      • setGuestOsFeatures

        public Instance.Disk.Builder setGuestOsFeatures​(int index,
                                                        Instance.Disk.GuestOsFeature value)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • setGuestOsFeatures

        public Instance.Disk.Builder setGuestOsFeatures​(int index,
                                                        Instance.Disk.GuestOsFeature.Builder builderForValue)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • addGuestOsFeatures

        public Instance.Disk.Builder addGuestOsFeatures​(Instance.Disk.GuestOsFeature value)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • addGuestOsFeatures

        public Instance.Disk.Builder addGuestOsFeatures​(int index,
                                                        Instance.Disk.GuestOsFeature value)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • addGuestOsFeatures

        public Instance.Disk.Builder addGuestOsFeatures​(Instance.Disk.GuestOsFeature.Builder builderForValue)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • addGuestOsFeatures

        public Instance.Disk.Builder addGuestOsFeatures​(int index,
                                                        Instance.Disk.GuestOsFeature.Builder builderForValue)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • addAllGuestOsFeatures

        public Instance.Disk.Builder addAllGuestOsFeatures​(Iterable<? extends Instance.Disk.GuestOsFeature> values)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • clearGuestOsFeatures

        public Instance.Disk.Builder clearGuestOsFeatures()
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • removeGuestOsFeatures

        public Instance.Disk.Builder removeGuestOsFeatures​(int index)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • getGuestOsFeaturesBuilder

        public Instance.Disk.GuestOsFeature.Builder getGuestOsFeaturesBuilder​(int index)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • getGuestOsFeaturesOrBuilder

        public Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder​(int index)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
        Specified by:
        getGuestOsFeaturesOrBuilder in interface Instance.DiskOrBuilder
      • getGuestOsFeaturesOrBuilderList

        public List<? extends Instance.Disk.GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList()
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
        Specified by:
        getGuestOsFeaturesOrBuilderList in interface Instance.DiskOrBuilder
      • addGuestOsFeaturesBuilder

        public Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder()
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • addGuestOsFeaturesBuilder

        public Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder​(int index)
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • getGuestOsFeaturesBuilderList

        public List<Instance.Disk.GuestOsFeature.Builder> getGuestOsFeaturesBuilderList()
         Indicates 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.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5;
      • getIndex

        public long getIndex()
         A zero-based index to this disk, where 0 is reserved for the
         boot disk. If you have many disks attached to an instance, each disk
         would have a unique index number.
         
        int64 index = 6;
        Specified by:
        getIndex in interface Instance.DiskOrBuilder
        Returns:
        The index.
      • setIndex

        public Instance.Disk.Builder setIndex​(long value)
         A zero-based index to this disk, where 0 is reserved for the
         boot disk. If you have many disks attached to an instance, each disk
         would have a unique index number.
         
        int64 index = 6;
        Parameters:
        value - The index to set.
        Returns:
        This builder for chaining.
      • clearIndex

        public Instance.Disk.Builder clearIndex()
         A zero-based index to this disk, where 0 is reserved for the
         boot disk. If you have many disks attached to an instance, each disk
         would have a unique index number.
         
        int64 index = 6;
        Returns:
        This builder for chaining.
      • getInterface

        public String getInterface()
         Indicates the disk interface to use for attaching this disk, which is
         either SCSI or NVME. The default is SCSI. Persistent disks must always
         use SCSI and the request will fail if you attempt to attach a persistent
         disk in any other format than SCSI. Local SSDs can use either NVME or
         SCSI. For performance characteristics of SCSI over NVMe, see Local SSD
         performance.
         Valid values:
        
         * `NVME`
         * `SCSI`
         
        string interface = 7;
        Specified by:
        getInterface in interface Instance.DiskOrBuilder
        Returns:
        The interface.
      • getInterfaceBytes

        public com.google.protobuf.ByteString getInterfaceBytes()
         Indicates the disk interface to use for attaching this disk, which is
         either SCSI or NVME. The default is SCSI. Persistent disks must always
         use SCSI and the request will fail if you attempt to attach a persistent
         disk in any other format than SCSI. Local SSDs can use either NVME or
         SCSI. For performance characteristics of SCSI over NVMe, see Local SSD
         performance.
         Valid values:
        
         * `NVME`
         * `SCSI`
         
        string interface = 7;
        Specified by:
        getInterfaceBytes in interface Instance.DiskOrBuilder
        Returns:
        The bytes for interface.
      • setInterface

        public Instance.Disk.Builder setInterface​(String value)
         Indicates the disk interface to use for attaching this disk, which is
         either SCSI or NVME. The default is SCSI. Persistent disks must always
         use SCSI and the request will fail if you attempt to attach a persistent
         disk in any other format than SCSI. Local SSDs can use either NVME or
         SCSI. For performance characteristics of SCSI over NVMe, see Local SSD
         performance.
         Valid values:
        
         * `NVME`
         * `SCSI`
         
        string interface = 7;
        Parameters:
        value - The interface to set.
        Returns:
        This builder for chaining.
      • clearInterface

        public Instance.Disk.Builder clearInterface()
         Indicates the disk interface to use for attaching this disk, which is
         either SCSI or NVME. The default is SCSI. Persistent disks must always
         use SCSI and the request will fail if you attempt to attach a persistent
         disk in any other format than SCSI. Local SSDs can use either NVME or
         SCSI. For performance characteristics of SCSI over NVMe, see Local SSD
         performance.
         Valid values:
        
         * `NVME`
         * `SCSI`
         
        string interface = 7;
        Returns:
        This builder for chaining.
      • setInterfaceBytes

        public Instance.Disk.Builder setInterfaceBytes​(com.google.protobuf.ByteString value)
         Indicates the disk interface to use for attaching this disk, which is
         either SCSI or NVME. The default is SCSI. Persistent disks must always
         use SCSI and the request will fail if you attempt to attach a persistent
         disk in any other format than SCSI. Local SSDs can use either NVME or
         SCSI. For performance characteristics of SCSI over NVMe, see Local SSD
         performance.
         Valid values:
        
         * `NVME`
         * `SCSI`
         
        string interface = 7;
        Parameters:
        value - The bytes for interface to set.
        Returns:
        This builder for chaining.
      • getKind

        public String getKind()
         Type of the resource. Always compute#attachedDisk for attached
         disks.
         
        string kind = 8;
        Specified by:
        getKind in interface Instance.DiskOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         Type of the resource. Always compute#attachedDisk for attached
         disks.
         
        string kind = 8;
        Specified by:
        getKindBytes in interface Instance.DiskOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public Instance.Disk.Builder setKind​(String value)
         Type of the resource. Always compute#attachedDisk for attached
         disks.
         
        string kind = 8;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public Instance.Disk.Builder clearKind()
         Type of the resource. Always compute#attachedDisk for attached
         disks.
         
        string kind = 8;
        Returns:
        This builder for chaining.
      • setKindBytes

        public Instance.Disk.Builder setKindBytes​(com.google.protobuf.ByteString value)
         Type of the resource. Always compute#attachedDisk for attached
         disks.
         
        string kind = 8;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • getLicensesList

        public com.google.protobuf.ProtocolStringList getLicensesList()
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Specified by:
        getLicensesList in interface Instance.DiskOrBuilder
        Returns:
        A list containing the licenses.
      • getLicensesCount

        public int getLicensesCount()
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Specified by:
        getLicensesCount in interface Instance.DiskOrBuilder
        Returns:
        The count of licenses.
      • getLicenses

        public String getLicenses​(int index)
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Specified by:
        getLicenses in interface Instance.DiskOrBuilder
        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)
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Specified by:
        getLicensesBytes in interface Instance.DiskOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the licenses at the given index.
      • setLicenses

        public Instance.Disk.Builder setLicenses​(int index,
                                                 String value)
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Parameters:
        index - The index to set the value at.
        value - The licenses to set.
        Returns:
        This builder for chaining.
      • addLicenses

        public Instance.Disk.Builder addLicenses​(String value)
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Parameters:
        value - The licenses to add.
        Returns:
        This builder for chaining.
      • addAllLicenses

        public Instance.Disk.Builder addAllLicenses​(Iterable<String> values)
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Parameters:
        values - The licenses to add.
        Returns:
        This builder for chaining.
      • clearLicenses

        public Instance.Disk.Builder clearLicenses()
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Returns:
        This builder for chaining.
      • addLicensesBytes

        public Instance.Disk.Builder addLicensesBytes​(com.google.protobuf.ByteString value)
         A list of publicly visible licenses. Reserved for Google's use.
         A License represents billing and aggregate usage data for public
         and marketplace images.
         
        repeated string licenses = 9;
        Parameters:
        value - The bytes of the licenses to add.
        Returns:
        This builder for chaining.
      • getMode

        public String getMode()
         The mode in which to attach this disk, either `READ_WRITE` or
         `READ_ONLY`. If not specified, the default is to attach the disk in
         `READ_WRITE` mode. Valid values:
        
         * `READ_ONLY`
         * `READ_WRITE`
         
        string mode = 10;
        Specified by:
        getMode in interface Instance.DiskOrBuilder
        Returns:
        The mode.
      • getModeBytes

        public com.google.protobuf.ByteString getModeBytes()
         The mode in which to attach this disk, either `READ_WRITE` or
         `READ_ONLY`. If not specified, the default is to attach the disk in
         `READ_WRITE` mode. Valid values:
        
         * `READ_ONLY`
         * `READ_WRITE`
         
        string mode = 10;
        Specified by:
        getModeBytes in interface Instance.DiskOrBuilder
        Returns:
        The bytes for mode.
      • setMode

        public Instance.Disk.Builder setMode​(String value)
         The mode in which to attach this disk, either `READ_WRITE` or
         `READ_ONLY`. If not specified, the default is to attach the disk in
         `READ_WRITE` mode. Valid values:
        
         * `READ_ONLY`
         * `READ_WRITE`
         
        string mode = 10;
        Parameters:
        value - The mode to set.
        Returns:
        This builder for chaining.
      • clearMode

        public Instance.Disk.Builder clearMode()
         The mode in which to attach this disk, either `READ_WRITE` or
         `READ_ONLY`. If not specified, the default is to attach the disk in
         `READ_WRITE` mode. Valid values:
        
         * `READ_ONLY`
         * `READ_WRITE`
         
        string mode = 10;
        Returns:
        This builder for chaining.
      • setModeBytes

        public Instance.Disk.Builder setModeBytes​(com.google.protobuf.ByteString value)
         The mode in which to attach this disk, either `READ_WRITE` or
         `READ_ONLY`. If not specified, the default is to attach the disk in
         `READ_WRITE` mode. Valid values:
        
         * `READ_ONLY`
         * `READ_WRITE`
         
        string mode = 10;
        Parameters:
        value - The bytes for mode to set.
        Returns:
        This builder for chaining.
      • getSource

        public String getSource()
         Indicates a valid partial or full URL to an existing Persistent Disk
         resource.
         
        string source = 11;
        Specified by:
        getSource in interface Instance.DiskOrBuilder
        Returns:
        The source.
      • getSourceBytes

        public com.google.protobuf.ByteString getSourceBytes()
         Indicates a valid partial or full URL to an existing Persistent Disk
         resource.
         
        string source = 11;
        Specified by:
        getSourceBytes in interface Instance.DiskOrBuilder
        Returns:
        The bytes for source.
      • setSource

        public Instance.Disk.Builder setSource​(String value)
         Indicates a valid partial or full URL to an existing Persistent Disk
         resource.
         
        string source = 11;
        Parameters:
        value - The source to set.
        Returns:
        This builder for chaining.
      • clearSource

        public Instance.Disk.Builder clearSource()
         Indicates a valid partial or full URL to an existing Persistent Disk
         resource.
         
        string source = 11;
        Returns:
        This builder for chaining.
      • setSourceBytes

        public Instance.Disk.Builder setSourceBytes​(com.google.protobuf.ByteString value)
         Indicates a valid partial or full URL to an existing Persistent Disk
         resource.
         
        string source = 11;
        Parameters:
        value - The bytes for source to set.
        Returns:
        This builder for chaining.
      • getType

        public String getType()
         Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.
         Valid values:
        
         * `PERSISTENT`
         * `SCRATCH`
         
        string type = 12;
        Specified by:
        getType in interface Instance.DiskOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.
         Valid values:
        
         * `PERSISTENT`
         * `SCRATCH`
         
        string type = 12;
        Specified by:
        getTypeBytes in interface Instance.DiskOrBuilder
        Returns:
        The bytes for type.
      • setType

        public Instance.Disk.Builder setType​(String value)
         Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.
         Valid values:
        
         * `PERSISTENT`
         * `SCRATCH`
         
        string type = 12;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Instance.Disk.Builder clearType()
         Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.
         Valid values:
        
         * `PERSISTENT`
         * `SCRATCH`
         
        string type = 12;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public Instance.Disk.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`.
         Valid values:
        
         * `PERSISTENT`
         * `SCRATCH`
         
        string type = 12;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Instance.Disk.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>
      • mergeUnknownFields

        public final Instance.Disk.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Disk.Builder>