Class RawDisk.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RawDisk.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.Builder<RawDisk.Builder> implements RawDiskOrBuilder
 The parameters of the raw disk image.
 
Protobuf type google.cloud.compute.v1.RawDisk
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The format used to encode and transmit the block device, which should beTAR.
    [Deprecated] This field is deprecated.
    The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.
    The format used to encode and transmit the block device, which should beTAR.
    com.google.protobuf.ByteString
    The format used to encode and transmit the block device, which should beTAR.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    [Deprecated] This field is deprecated.
    com.google.protobuf.ByteString
    [Deprecated] This field is deprecated.
    The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.
    com.google.protobuf.ByteString
    The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.
    boolean
    The format used to encode and transmit the block device, which should beTAR.
    boolean
    [Deprecated] This field is deprecated.
    boolean
    The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The format used to encode and transmit the block device, which should beTAR.
    setContainerTypeBytes(com.google.protobuf.ByteString value)
    The format used to encode and transmit the block device, which should beTAR.
    [Deprecated] This field is deprecated.
    setSha1ChecksumBytes(com.google.protobuf.ByteString value)
    [Deprecated] This field is deprecated.
    The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.
    setSourceBytes(com.google.protobuf.ByteString value)
    The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public RawDisk.Builder mergeFrom(RawDisk other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 beTAR. 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 beTAR. 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 beTAR. 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 beTAR. 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 beTAR. 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 beTAR. 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 or Artifact Registry path where the raw
       disk image archive is stored.
       The following are valid formats:
      
       - https://storage.googleapis.com/bucket_name/image_archive_name
       - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      
      
      
       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 or Artifact Registry path where the raw
       disk image archive is stored.
       The following are valid formats:
      
       - https://storage.googleapis.com/bucket_name/image_archive_name
       - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      
      
      
       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 or Artifact Registry path where the raw
       disk image archive is stored.
       The following are valid formats:
      
       - https://storage.googleapis.com/bucket_name/image_archive_name
       - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      
      
      
       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 or Artifact Registry path where the raw
       disk image archive is stored.
       The following are valid formats:
      
       - https://storage.googleapis.com/bucket_name/image_archive_name
       - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      
      
      
       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 or Artifact Registry path where the raw
       disk image archive is stored.
       The following are valid formats:
      
       - https://storage.googleapis.com/bucket_name/image_archive_name
       - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      
      
      
       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 or Artifact Registry path where the raw
       disk image archive is stored.
       The following are valid formats:
      
       - https://storage.googleapis.com/bucket_name/image_archive_name
       - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id
       - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
      
      
      
       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.