Class UploadOptions (2.0.0)

public final class UploadOptions

Allows users to customize the behavior of a single upload to the BlobstoreService.

Inheritance

java.lang.Object > UploadOptions

Methods

equals(@Nullable Object object)

public boolean equals(@Nullable Object object)
Parameter
NameDescription
object@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
TypeDescription
boolean
Overrides

getGoogleStorageBucketName()

public String getGoogleStorageBucketName()
Returns
TypeDescription
String

getMaxUploadSizeBytes()

public long getMaxUploadSizeBytes()
Returns
TypeDescription
long

getMaxUploadSizeBytesPerBlob()

public long getMaxUploadSizeBytesPerBlob()
Returns
TypeDescription
long

googleStorageBucketName(String bucketName)

public UploadOptions googleStorageBucketName(String bucketName)
Parameter
NameDescription
bucketNameString
Returns
TypeDescription
UploadOptions

hasGoogleStorageBucketName()

public boolean hasGoogleStorageBucketName()

Determines if the storage bucket is set.

Returns
TypeDescription
boolean

hasMaxUploadSizeBytes()

public boolean hasMaxUploadSizeBytes()

Determines if the maximum size is set.

Returns
TypeDescription
boolean

hasMaxUploadSizeBytesPerBlob()

public boolean hasMaxUploadSizeBytesPerBlob()

Determines if the maximum upload size per blob is set.

Returns
TypeDescription
boolean

hashCode()

public int hashCode()
Returns
TypeDescription
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
NameDescription
maxUploadSizeByteslong

The maximum size in bytes for the upload.

Returns
TypeDescription
UploadOptions

this (for chaining)

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
NameDescription
maxUploadSizeBytesPerBloblong

The maximum size in bytes that any one blob in the upload can be.

Returns
TypeDescription
UploadOptions

this (for chaining)

toString()

public String toString()
Returns
TypeDescription
String
Overrides