Class UploadPartRequest

java.lang.Object
com.google.cloud.storage.multipartupload.model.UploadPartRequest

public final class UploadPartRequest extends Object
An object to represent an upload part request. An upload part request is used to upload a single part of a multipart upload.
Since:
2.60.0
  • Method Details

    • bucket

      public String bucket()
      Returns the bucket to upload the part to.
      Returns:
      The bucket to upload the part to.
      Since:
      2.60.0
    • key

      public String key()
      Returns the key of the object to upload the part to.
      Returns:
      The key of the object to upload the part to.
      Since:
      2.60.0
    • partNumber

      public int partNumber()
      Returns the part number of the part to upload.
      Returns:
      The part number of the part to upload.
      Since:
      2.60.0
    • uploadId

      public String uploadId()
      Returns the upload ID of the multipart upload.
      Returns:
      The upload ID of the multipart upload.
      Since:
      2.60.0
    • crc32c

      public @Nullable String crc32c()
      Returns the CRC32C checksum of the part to upload.
      Returns:
      The CRC32C checksum of the part to upload.
      Since:
      2.61.0
    • userProject

      public String userProject()
      Returns the user-project.
      Returns:
      the user-project.
      Since:
      2.61.0
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static UploadPartRequest.Builder builder()
      Returns a new builder for an UploadPartRequest.
      Returns:
      A new builder.
      Since:
      2.60.0