Send feedback
Class UploadOptions (2.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class UploadOptions
Allows users to customize the behavior of a single upload to the
BlobstoreService .
Methods
equals(@Nullable Object object)
public boolean equals ( @Nullable Object object )
Parameter
Name
Description
object
@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Overrides
getGoogleStorageBucketName()
public String getGoogleStorageBucketName ()
Returns
Type
Description
String
getMaxUploadSizeBytes()
public long getMaxUploadSizeBytes ()
Returns
Type
Description
long
getMaxUploadSizeBytesPerBlob()
public long getMaxUploadSizeBytesPerBlob ()
Returns
Type
Description
long
googleStorageBucketName(String bucketName)
public UploadOptions googleStorageBucketName ( String bucketName )
Parameter
Name
Description
bucketName
String
hasGoogleStorageBucketName()
public boolean hasGoogleStorageBucketName ()
Determines if the storage bucket is set.
hasMaxUploadSizeBytes()
public boolean hasMaxUploadSizeBytes ()
Determines if the maximum size is set.
hasMaxUploadSizeBytesPerBlob()
public boolean hasMaxUploadSizeBytesPerBlob ()
Determines if the maximum upload size per blob is set.
hashCode()
Returns
Type
Description
int
Overrides
maxUploadSizeBytes(long maxUploadSizeBytes)
public UploadOptions maxUploadSizeBytes ( long maxUploadSizeBytes )
Sets the maximum size in bytes that for the total upload. If the upload
exceeds this value then a 413 error will be returned to the client.
Parameter
Name
Description
maxUploadSizeBytes
long
The maximum size in bytes for the upload.
maxUploadSizeBytesPerBlob(long maxUploadSizeBytesPerBlob)
public UploadOptions maxUploadSizeBytesPerBlob ( long maxUploadSizeBytesPerBlob )
Sets the maximum size in bytes for any one blob in the upload. If any blob
in the upload exceeds this value then a 413 error will be returned to the
client.
Parameter
Name
Description
maxUploadSizeBytesPerBlob
long
The maximum size in bytes that any one
blob in the upload can be.
toString()
Returns
Type
Description
String
Overrides
Send feedback
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 2024-12-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]