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 classGetMetadataResult.BuilderBuilder forGetMetadataResult.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringfileIdprotected booleanisDeletedprotected java.lang.StringmimeTypeprotected java.lang.StringproviderVersionprotected java.lang.Stringtitleprotected UserInfouserprotected UserPermissionsuserPermissionsprotected java.lang.Stringversion
-
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 booleanequals(java.lang.Object obj)java.lang.StringgetFileId()booleangetIsDeleted()true if the document is deleted or purged.java.lang.StringgetMimeType()MIME type of the Cloud Doc.java.lang.StringgetProviderVersion()Application specific string representing the revision of a document (only set for App-stored Documents).java.lang.StringgetTitle()Title of the Cloud Doc without extension.UserInfogetUser()User identified by the auth token.UserPermissionsgetUserPermissions()Actions that the user identified by the auth token can performn.java.lang.StringgetVersion()Opaque string representing the version of the document stored in Dropbox (only set for Dropbox-stored Documents).inthashCode()static GetMetadataResult.BuildernewBuilder()Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()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
nullif not present. Defaults to "\"\"".
-
getTitle
public java.lang.String getTitle()
Title of the Cloud Doc without extension.- Returns:
- value for this field, or
nullif not present. Defaults to "\"\"".
-
getMimeType
public java.lang.String getMimeType()
MIME type of the Cloud Doc.- Returns:
- value for this field, or
nullif 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
nullif 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
nullif not present. Defaults to "\"\"".
-
getUser
public UserInfo getUser()
User identified by the auth token.- Returns:
- value for this field, or
nullif not present.
-
getIsDeleted
public boolean getIsDeleted()
true if the document is deleted or purged.- Returns:
- value for this field, or
nullif 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
nullif 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
-