Package com.dropbox.core.v2.clouddocs
Class GetMetadataResult
- java.lang.Object
-
- com.dropbox.core.v2.clouddocs.GetMetadataResult
-
public class GetMetadataResult extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetMetadataResult.Builder
Builder forGetMetadataResult
.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description GetMetadataResult()
NoneGetMetadataResult(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)
UsenewBuilder()
to create instances of this class without specifying values for all optional fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
fileId
protected final java.lang.String fileId
-
title
protected final java.lang.String title
-
mimeType
protected final java.lang.String mimeType
-
version
protected final java.lang.String version
-
providerVersion
protected final java.lang.String providerVersion
-
user
protected final UserInfo user
-
isDeleted
protected final boolean isDeleted
-
userPermissions
protected final UserPermissions userPermissions
-
-
Constructor Detail
-
GetMetadataResult
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)
UsenewBuilder()
to create instances of this class without specifying values for all optional fields.- Parameters:
fileId
- Must not benull
.title
- Title of the Cloud Doc without extension. Must not benull
.mimeType
- MIME type of the Cloud Doc. Must not benull
.version
- Opaque string representing the version of the document stored in Dropbox (only set for Dropbox-stored Documents). Must not benull
.providerVersion
- Application specific string representing the revision of a document (only set for App-stored Documents). Must not benull
.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.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
GetMetadataResult
public GetMetadataResult()
NoneThe default values for unset fields will be used.
-
-
Method Detail
-
getFileId
public java.lang.String getFileId()
- Returns:
- value for this field, or
null
if not present. Defaults to "\"\"".
-
getTitle
public java.lang.String getTitle()
Title of the Cloud Doc without extension.- Returns:
- value for this field, or
null
if not present. Defaults to "\"\"".
-
getMimeType
public java.lang.String getMimeType()
MIME type of the Cloud Doc.- Returns:
- value for this field, or
null
if not present. Defaults to "\"\"".
-
getVersion
public java.lang.String getVersion()
Opaque string representing the version of the document stored in Dropbox (only set for Dropbox-stored Documents).- Returns:
- value for this field, or
null
if not present. Defaults to "\"\"".
-
getProviderVersion
public java.lang.String getProviderVersion()
Application specific string representing the revision of a document (only set for App-stored Documents).- Returns:
- value for this field, or
null
if not present. Defaults to "\"\"".
-
getUser
public UserInfo getUser()
User identified by the auth token.- Returns:
- value for this field, or
null
if not present.
-
getIsDeleted
public boolean getIsDeleted()
true if the document is deleted or purged.- Returns:
- value for this field, or
null
if not present. Defaults to false.
-
getUserPermissions
public UserPermissions getUserPermissions()
Actions that the user identified by the auth token can performn. This message will not be populated for deleted documents.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static GetMetadataResult.Builder newBuilder()
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-
-