Class BootDisk.Builder

  • All Implemented Interfaces:
    BootDiskOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    BootDisk

    public static final class BootDisk.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BootDisk.Builder>
    implements BootDiskOrBuilder
     The definition of a boot disk.
     
    Protobuf type google.cloud.notebooks.v2.BootDisk
    • 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<BootDisk.Builder>
      • clear

        public BootDisk.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<BootDisk.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<BootDisk.Builder>
      • getDefaultInstanceForType

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

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

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

        public BootDisk.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<BootDisk.Builder>
      • setField

        public BootDisk.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<BootDisk.Builder>
      • clearField

        public BootDisk.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<BootDisk.Builder>
      • clearOneof

        public BootDisk.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<BootDisk.Builder>
      • setRepeatedField

        public BootDisk.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<BootDisk.Builder>
      • addRepeatedField

        public BootDisk.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<BootDisk.Builder>
      • mergeFrom

        public BootDisk.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<BootDisk.Builder>
      • isInitialized

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

        public BootDisk.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<BootDisk.Builder>
        Throws:
        IOException
      • getDiskSizeGb

        public long getDiskSizeGb()
         Optional. The size of the boot disk in GB attached to this instance, up to
         a maximum of 64000 GB (64 TB). If not specified, this defaults to the
         recommended value of 150GB.
         
        int64 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskSizeGb in interface BootDiskOrBuilder
        Returns:
        The diskSizeGb.
      • setDiskSizeGb

        public BootDisk.Builder setDiskSizeGb​(long value)
         Optional. The size of the boot disk in GB attached to this instance, up to
         a maximum of 64000 GB (64 TB). If not specified, this defaults to the
         recommended value of 150GB.
         
        int64 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The diskSizeGb to set.
        Returns:
        This builder for chaining.
      • clearDiskSizeGb

        public BootDisk.Builder clearDiskSizeGb()
         Optional. The size of the boot disk in GB attached to this instance, up to
         a maximum of 64000 GB (64 TB). If not specified, this defaults to the
         recommended value of 150GB.
         
        int64 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getDiskTypeValue

        public int getDiskTypeValue()
         Optional. Indicates the type of the disk.
         
        .google.cloud.notebooks.v2.DiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskTypeValue in interface BootDiskOrBuilder
        Returns:
        The enum numeric value on the wire for diskType.
      • setDiskTypeValue

        public BootDisk.Builder setDiskTypeValue​(int value)
         Optional. Indicates the type of the disk.
         
        .google.cloud.notebooks.v2.DiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for diskType to set.
        Returns:
        This builder for chaining.
      • getDiskType

        public DiskType getDiskType()
         Optional. Indicates the type of the disk.
         
        .google.cloud.notebooks.v2.DiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskType in interface BootDiskOrBuilder
        Returns:
        The diskType.
      • setDiskType

        public BootDisk.Builder setDiskType​(DiskType value)
         Optional. Indicates the type of the disk.
         
        .google.cloud.notebooks.v2.DiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The diskType to set.
        Returns:
        This builder for chaining.
      • clearDiskType

        public BootDisk.Builder clearDiskType()
         Optional. Indicates the type of the disk.
         
        .google.cloud.notebooks.v2.DiskType disk_type = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getDiskEncryptionValue

        public int getDiskEncryptionValue()
         Optional. Input only. Disk encryption method used on the boot and data
         disks, defaults to GMEK.
         
        .google.cloud.notebooks.v2.DiskEncryption disk_encryption = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskEncryptionValue in interface BootDiskOrBuilder
        Returns:
        The enum numeric value on the wire for diskEncryption.
      • setDiskEncryptionValue

        public BootDisk.Builder setDiskEncryptionValue​(int value)
         Optional. Input only. Disk encryption method used on the boot and data
         disks, defaults to GMEK.
         
        .google.cloud.notebooks.v2.DiskEncryption disk_encryption = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for diskEncryption to set.
        Returns:
        This builder for chaining.
      • getDiskEncryption

        public DiskEncryption getDiskEncryption()
         Optional. Input only. Disk encryption method used on the boot and data
         disks, defaults to GMEK.
         
        .google.cloud.notebooks.v2.DiskEncryption disk_encryption = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskEncryption in interface BootDiskOrBuilder
        Returns:
        The diskEncryption.
      • setDiskEncryption

        public BootDisk.Builder setDiskEncryption​(DiskEncryption value)
         Optional. Input only. Disk encryption method used on the boot and data
         disks, defaults to GMEK.
         
        .google.cloud.notebooks.v2.DiskEncryption disk_encryption = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The diskEncryption to set.
        Returns:
        This builder for chaining.
      • clearDiskEncryption

        public BootDisk.Builder clearDiskEncryption()
         Optional. Input only. Disk encryption method used on the boot and data
         disks, defaults to GMEK.
         
        .google.cloud.notebooks.v2.DiskEncryption disk_encryption = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getKmsKey

        public String getKmsKey()
         Optional. Input only. The KMS key used to encrypt the disks, only
         applicable if disk_encryption is CMEK. Format:
         `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`
        
         Learn more about using your own encryption keys.
         
        string kms_key = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKmsKey in interface BootDiskOrBuilder
        Returns:
        The kmsKey.
      • getKmsKeyBytes

        public com.google.protobuf.ByteString getKmsKeyBytes()
         Optional. Input only. The KMS key used to encrypt the disks, only
         applicable if disk_encryption is CMEK. Format:
         `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`
        
         Learn more about using your own encryption keys.
         
        string kms_key = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKmsKeyBytes in interface BootDiskOrBuilder
        Returns:
        The bytes for kmsKey.
      • setKmsKey

        public BootDisk.Builder setKmsKey​(String value)
         Optional. Input only. The KMS key used to encrypt the disks, only
         applicable if disk_encryption is CMEK. Format:
         `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`
        
         Learn more about using your own encryption keys.
         
        string kms_key = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The kmsKey to set.
        Returns:
        This builder for chaining.
      • clearKmsKey

        public BootDisk.Builder clearKmsKey()
         Optional. Input only. The KMS key used to encrypt the disks, only
         applicable if disk_encryption is CMEK. Format:
         `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`
        
         Learn more about using your own encryption keys.
         
        string kms_key = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setKmsKeyBytes

        public BootDisk.Builder setKmsKeyBytes​(com.google.protobuf.ByteString value)
         Optional. Input only. The KMS key used to encrypt the disks, only
         applicable if disk_encryption is CMEK. Format:
         `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`
        
         Learn more about using your own encryption keys.
         
        string kms_key = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for kmsKey to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BootDisk.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<BootDisk.Builder>
      • mergeUnknownFields

        public final BootDisk.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<BootDisk.Builder>