public class GetMetadataResult
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GetMetadataResult.Builder
Builder for
GetMetadataResult . |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fileId |
protected boolean |
isDeleted |
protected java.lang.String |
mimeType |
protected java.lang.String |
providerVersion |
protected java.lang.String |
title |
protected UserInfo |
user |
protected UserPermissions |
userPermissions |
protected java.lang.String |
version |
Constructor and Description |
---|
GetMetadataResult()
None
|
GetMetadataResult(java.lang.String fileId,
java.lang.String title,
java.lang.String mimeType,
java.lang.String version,
java.lang.String providerVersion,
UserInfo user,
boolean isDeleted,
UserPermissions userPermissions)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFileId() |
boolean |
getIsDeleted()
true if the document is deleted or purged.
|
java.lang.String |
getMimeType()
MIME type of the Cloud Doc.
|
java.lang.String |
getProviderVersion()
Application specific string representing the revision of a document (only
set for App-stored Documents).
|
java.lang.String |
getTitle()
Title of the Cloud Doc without extension.
|
UserInfo |
getUser()
User identified by the auth token.
|
UserPermissions |
getUserPermissions()
Actions that the user identified by the auth token can performn.
|
java.lang.String |
getVersion()
Opaque string representing the version of the document stored in Dropbox
(only set for Dropbox-stored Documents).
|
int |
hashCode() |
static GetMetadataResult.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String fileId
protected final java.lang.String title
protected final java.lang.String mimeType
protected final java.lang.String version
protected final java.lang.String providerVersion
protected final UserInfo user
protected final boolean isDeleted
protected final UserPermissions userPermissions
public GetMetadataResult(java.lang.String fileId, java.lang.String title, java.lang.String mimeType, java.lang.String version, java.lang.String providerVersion, UserInfo user, boolean isDeleted, UserPermissions userPermissions)
newBuilder
to create instances of this class without
specifying values for all optional fields.fileId
- Must not be null
.title
- Title of the Cloud Doc without extension. Must not be
null
.mimeType
- MIME type of the Cloud Doc. Must not be null
.version
- Opaque string representing the version of the document
stored in Dropbox (only set for Dropbox-stored Documents). Must not
be null
.providerVersion
- Application specific string representing the
revision of a document (only set for App-stored Documents). Must not
be null
.user
- User identified by the auth token.isDeleted
- true if the document is deleted or purged.userPermissions
- Actions that the user identified by the auth
token can performn. This message will not be populated for deleted
documents.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetMetadataResult()
The default values for unset fields will be used.
public java.lang.String getFileId()
null
if not present. Defaults to
"\"\"".public java.lang.String getTitle()
null
if not present. Defaults to
"\"\"".public java.lang.String getMimeType()
null
if not present. Defaults to
"\"\"".public java.lang.String getVersion()
null
if not present. Defaults to
"\"\"".public java.lang.String getProviderVersion()
null
if not present. Defaults to
"\"\"".public UserInfo getUser()
null
if not present.public boolean getIsDeleted()
null
if not present. Defaults to
false.public UserPermissions getUserPermissions()
null
if not present.public static GetMetadataResult.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.