Class ExistingDisk.Builder

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

    public static final class ExistingDisk.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExistingDisk.Builder>
    implements ExistingDiskOrBuilder
     Configuration for an existing disk to be attached to the VM.
     
    Protobuf type google.cloud.lifesciences.v2beta.ExistingDisk
    • 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<ExistingDisk.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ExistingDisk.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<ExistingDisk.Builder>
        Throws:
        IOException
      • getDisk

        public String getDisk()
         If `disk` contains slashes, the Cloud Life Sciences API assumes that it is
         a complete URL for the disk.  If `disk` does not contain slashes, the Cloud
         Life Sciences API assumes that the disk is a zonal disk and a URL will be
         generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the
         zone in which the instance is allocated. The disk must be ext4 formatted.
        
         If all `Mount` references to this disk have the `read_only` flag set to
         true, the disk will be attached in `read-only` mode and can be shared with
         other instances. Otherwise, the disk will be available for writing but
         cannot be shared.
         
        string disk = 1;
        Specified by:
        getDisk in interface ExistingDiskOrBuilder
        Returns:
        The disk.
      • getDiskBytes

        public com.google.protobuf.ByteString getDiskBytes()
         If `disk` contains slashes, the Cloud Life Sciences API assumes that it is
         a complete URL for the disk.  If `disk` does not contain slashes, the Cloud
         Life Sciences API assumes that the disk is a zonal disk and a URL will be
         generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the
         zone in which the instance is allocated. The disk must be ext4 formatted.
        
         If all `Mount` references to this disk have the `read_only` flag set to
         true, the disk will be attached in `read-only` mode and can be shared with
         other instances. Otherwise, the disk will be available for writing but
         cannot be shared.
         
        string disk = 1;
        Specified by:
        getDiskBytes in interface ExistingDiskOrBuilder
        Returns:
        The bytes for disk.
      • setDisk

        public ExistingDisk.Builder setDisk​(String value)
         If `disk` contains slashes, the Cloud Life Sciences API assumes that it is
         a complete URL for the disk.  If `disk` does not contain slashes, the Cloud
         Life Sciences API assumes that the disk is a zonal disk and a URL will be
         generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the
         zone in which the instance is allocated. The disk must be ext4 formatted.
        
         If all `Mount` references to this disk have the `read_only` flag set to
         true, the disk will be attached in `read-only` mode and can be shared with
         other instances. Otherwise, the disk will be available for writing but
         cannot be shared.
         
        string disk = 1;
        Parameters:
        value - The disk to set.
        Returns:
        This builder for chaining.
      • clearDisk

        public ExistingDisk.Builder clearDisk()
         If `disk` contains slashes, the Cloud Life Sciences API assumes that it is
         a complete URL for the disk.  If `disk` does not contain slashes, the Cloud
         Life Sciences API assumes that the disk is a zonal disk and a URL will be
         generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the
         zone in which the instance is allocated. The disk must be ext4 formatted.
        
         If all `Mount` references to this disk have the `read_only` flag set to
         true, the disk will be attached in `read-only` mode and can be shared with
         other instances. Otherwise, the disk will be available for writing but
         cannot be shared.
         
        string disk = 1;
        Returns:
        This builder for chaining.
      • setDiskBytes

        public ExistingDisk.Builder setDiskBytes​(com.google.protobuf.ByteString value)
         If `disk` contains slashes, the Cloud Life Sciences API assumes that it is
         a complete URL for the disk.  If `disk` does not contain slashes, the Cloud
         Life Sciences API assumes that the disk is a zonal disk and a URL will be
         generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the
         zone in which the instance is allocated. The disk must be ext4 formatted.
        
         If all `Mount` references to this disk have the `read_only` flag set to
         true, the disk will be attached in `read-only` mode and can be shared with
         other instances. Otherwise, the disk will be available for writing but
         cannot be shared.
         
        string disk = 1;
        Parameters:
        value - The bytes for disk to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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