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()
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()
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 2023-11-14 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?