Class RawDisk.Builder

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

    public static final class RawDisk.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RawDisk.Builder>
    implements RawDiskOrBuilder
     The parameters of the raw disk image.
     
    Protobuf type google.cloud.compute.v1.RawDisk
    • 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<RawDisk.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public RawDisk.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<RawDisk.Builder>
        Throws:
        IOException
      • hasContainerType

        public boolean hasContainerType()
         The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
         Check the ContainerType enum for the list of possible values.
         
        optional string container_type = 318809144;
        Specified by:
        hasContainerType in interface RawDiskOrBuilder
        Returns:
        Whether the containerType field is set.
      • getContainerType

        public String getContainerType()
         The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
         Check the ContainerType enum for the list of possible values.
         
        optional string container_type = 318809144;
        Specified by:
        getContainerType in interface RawDiskOrBuilder
        Returns:
        The containerType.
      • getContainerTypeBytes

        public com.google.protobuf.ByteString getContainerTypeBytes()
         The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
         Check the ContainerType enum for the list of possible values.
         
        optional string container_type = 318809144;
        Specified by:
        getContainerTypeBytes in interface RawDiskOrBuilder
        Returns:
        The bytes for containerType.
      • setContainerType

        public RawDisk.Builder setContainerType​(String value)
         The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
         Check the ContainerType enum for the list of possible values.
         
        optional string container_type = 318809144;
        Parameters:
        value - The containerType to set.
        Returns:
        This builder for chaining.
      • clearContainerType

        public RawDisk.Builder clearContainerType()
         The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
         Check the ContainerType enum for the list of possible values.
         
        optional string container_type = 318809144;
        Returns:
        This builder for chaining.
      • setContainerTypeBytes

        public RawDisk.Builder setContainerTypeBytes​(com.google.protobuf.ByteString value)
         The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
         Check the ContainerType enum for the list of possible values.
         
        optional string container_type = 318809144;
        Parameters:
        value - The bytes for containerType to set.
        Returns:
        This builder for chaining.
      • hasSha1Checksum

        public boolean hasSha1Checksum()
         [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
         
        optional string sha1_checksum = 314444349;
        Specified by:
        hasSha1Checksum in interface RawDiskOrBuilder
        Returns:
        Whether the sha1Checksum field is set.
      • getSha1Checksum

        public String getSha1Checksum()
         [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
         
        optional string sha1_checksum = 314444349;
        Specified by:
        getSha1Checksum in interface RawDiskOrBuilder
        Returns:
        The sha1Checksum.
      • getSha1ChecksumBytes

        public com.google.protobuf.ByteString getSha1ChecksumBytes()
         [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
         
        optional string sha1_checksum = 314444349;
        Specified by:
        getSha1ChecksumBytes in interface RawDiskOrBuilder
        Returns:
        The bytes for sha1Checksum.
      • setSha1Checksum

        public RawDisk.Builder setSha1Checksum​(String value)
         [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
         
        optional string sha1_checksum = 314444349;
        Parameters:
        value - The sha1Checksum to set.
        Returns:
        This builder for chaining.
      • clearSha1Checksum

        public RawDisk.Builder clearSha1Checksum()
         [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
         
        optional string sha1_checksum = 314444349;
        Returns:
        This builder for chaining.
      • setSha1ChecksumBytes

        public RawDisk.Builder setSha1ChecksumBytes​(com.google.protobuf.ByteString value)
         [Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
         
        optional string sha1_checksum = 314444349;
        Parameters:
        value - The bytes for sha1Checksum to set.
        Returns:
        This builder for chaining.
      • hasSource

        public boolean hasSource()
         The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
         
        optional string source = 177235995;
        Specified by:
        hasSource in interface RawDiskOrBuilder
        Returns:
        Whether the source field is set.
      • getSource

        public String getSource()
         The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
         
        optional string source = 177235995;
        Specified by:
        getSource in interface RawDiskOrBuilder
        Returns:
        The source.
      • getSourceBytes

        public com.google.protobuf.ByteString getSourceBytes()
         The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
         
        optional string source = 177235995;
        Specified by:
        getSourceBytes in interface RawDiskOrBuilder
        Returns:
        The bytes for source.
      • setSource

        public RawDisk.Builder setSource​(String value)
         The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
         
        optional string source = 177235995;
        Parameters:
        value - The source to set.
        Returns:
        This builder for chaining.
      • clearSource

        public RawDisk.Builder clearSource()
         The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
         
        optional string source = 177235995;
        Returns:
        This builder for chaining.
      • setSourceBytes

        public RawDisk.Builder setSourceBytes​(com.google.protobuf.ByteString value)
         The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
         
        optional string source = 177235995;
        Parameters:
        value - The bytes for source to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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