Class CreateMultipartUploadRequest (2.62.0)
Version latestkeyboard_arrow_down
Beta
This library is covered by the Pre-GA Offerings Terms
of the Terms of Service. Pre-GA libraries might have limited support,
and changes to pre-GA libraries might not be compatible with other pre-GA versions.
For more information, see the
launch stage descriptions .
public final class CreateMultipartUploadRequest
Represents a request to initiate a multipart upload. This class holds all the necessary
information to create a new multipart upload session.
Inheritance
Object >
CreateMultipartUploadRequest
Static Methods
builder()
public static CreateMultipartUploadRequest . Builder builder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a new Builder for creating a CreateMultipartUploadRequest .
Methods
bucket()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the name of the bucket to which the object is being uploaded.
Returns
Type
Description
String
The bucket name
cacheControl()
public String cacheControl ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the conditions under which the resulting object should be cached if it is publicly
accessible.
Returns
Type
Description
String
The Cache-Control
cannedAcl()
public Storage . PredefinedAcl cannedAcl ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a canned ACL to apply to the object.
contentDisposition()
public String contentDisposition ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the presentational information about how the object data is to be transmitted.
Returns
Type
Description
String
The Content-Disposition
contentEncoding()
public String contentEncoding ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the compression algorithm that was used to compress the data being uploaded.
Returns
Type
Description
String
The Content-Encoding
contentLanguage()
public String contentLanguage ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the language code of the content.
Returns
Type
Description
String
The Content-Language
contentType()
public String contentType ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the MIME type of the data you are uploading.
Returns
Type
Description
String
The Content-Type
customTime()
public OffsetDateTime customTime ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a user-specified date and time.
equals(Object o)
public boolean equals ( Object o )
Parameter
Name
Description
o
Object
Overrides
hashCode()
Returns
Type
Description
int
Overrides
key()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the name of the object.
See Also: Object Naming
Returns
Type
Description
String
The object name
kmsKeyName()
public String kmsKeyName ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the customer-managed encryption key to use to encrypt the object.
Returns
Type
Description
String
The Cloud KMS key
public Map<String , String > metadata ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the custom metadata of the object.
objectLockMode()
public ObjectLockMode objectLockMode ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the mode of the object's retention configuration.
objectLockRetainUntilDate()
public OffsetDateTime objectLockRetainUntilDate ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the date that determines the time until which the object is retained as immutable.
Returns
Type
Description
OffsetDateTime
The object lock retention until date
storageClass()
public StorageClass storageClass ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns the storage class for the object.
toString()
Returns
Type
Description
String
Overrides
userProject()
public String userProject ()
Returns the project to be billed for charges associated with this request.
Returns
Type
Description
String
The user project
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-21 UTC."],[],[]]