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
Name Description
object @org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
Type Description
boolean
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
Returns
Type Description
UploadOptions

hasGoogleStorageBucketName()

public boolean hasGoogleStorageBucketName()

Determines if the storage bucket is set.

Returns
Type Description
boolean

hasMaxUploadSizeBytes()

public boolean hasMaxUploadSizeBytes()

Determines if the maximum size is set.

Returns
Type Description
boolean

hasMaxUploadSizeBytesPerBlob()

public boolean hasMaxUploadSizeBytesPerBlob()

Determines if the maximum upload size per blob is set.

Returns
Type Description
boolean

hashCode()

public int 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.

Returns
Type Description
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
Name Description
maxUploadSizeBytesPerBlob long

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

Returns
Type Description
UploadOptions

this (for chaining)

toString()

public String toString()
Returns
Type Description
String
Overrides