Package com.dropbox.core.v2.files
Enum UploadSessionAppendError.Tag
- java.lang.Object
-
- java.lang.Enum<UploadSessionAppendError.Tag>
-
- com.dropbox.core.v2.files.UploadSessionAppendError.Tag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UploadSessionAppendError.Tag>
- Enclosing class:
- UploadSessionAppendError
public static enum UploadSessionAppendError.Tag extends java.lang.Enum<UploadSessionAppendError.Tag>
Discriminating tag type forUploadSessionAppendError
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
You are attempting to append data to an upload session that has already been closed (i.e.CONCURRENT_SESSION_INVALID_DATA_SIZE
For concurrent upload sessions, only chunks with size multiple of 4194304 bytes can be uploaded.CONCURRENT_SESSION_INVALID_OFFSET
For concurrent upload sessions, offset needs to be multiple of 4194304 bytes.CONTENT_HASH_MISMATCH
The content received by the Dropbox server in this call does not match the provided content hash.INCORRECT_OFFSET
The specified offset was incorrect.NOT_CLOSED
The session must be closed before calling upload_session/finish_batch.NOT_FOUND
The upload session ID was not found or has expired.OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.PAYLOAD_TOO_LARGE
The request payload must be at most 150 MB.TOO_LARGE
You can not append to the upload session because the size of a file should not reach the max file size limit (i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UploadSessionAppendError.Tag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UploadSessionAppendError.Tag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_FOUND
public static final UploadSessionAppendError.Tag NOT_FOUND
The upload session ID was not found or has expired. Upload sessions are valid for 7 days.
-
INCORRECT_OFFSET
public static final UploadSessionAppendError.Tag INCORRECT_OFFSET
The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.
-
CLOSED
public static final UploadSessionAppendError.Tag CLOSED
You are attempting to append data to an upload session that has already been closed (i.e. committed).
-
NOT_CLOSED
public static final UploadSessionAppendError.Tag NOT_CLOSED
The session must be closed before calling upload_session/finish_batch.
-
TOO_LARGE
public static final UploadSessionAppendError.Tag TOO_LARGE
You can not append to the upload session because the size of a file should not reach the max file size limit (i.e. 350GB).
-
CONCURRENT_SESSION_INVALID_OFFSET
public static final UploadSessionAppendError.Tag CONCURRENT_SESSION_INVALID_OFFSET
For concurrent upload sessions, offset needs to be multiple of 4194304 bytes.
-
CONCURRENT_SESSION_INVALID_DATA_SIZE
public static final UploadSessionAppendError.Tag CONCURRENT_SESSION_INVALID_DATA_SIZE
For concurrent upload sessions, only chunks with size multiple of 4194304 bytes can be uploaded.
-
PAYLOAD_TOO_LARGE
public static final UploadSessionAppendError.Tag PAYLOAD_TOO_LARGE
The request payload must be at most 150 MB.
-
OTHER
public static final UploadSessionAppendError.Tag OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
CONTENT_HASH_MISMATCH
public static final UploadSessionAppendError.Tag CONTENT_HASH_MISMATCH
The content received by the Dropbox server in this call does not match the provided content hash.
-
-
Method Detail
-
values
public static UploadSessionAppendError.Tag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UploadSessionAppendError.Tag c : UploadSessionAppendError.Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UploadSessionAppendError.Tag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-