Class GetMetadataResult


  • public class GetMetadataResult
    extends java.lang.Object
    • 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
      • isDeleted

        protected final boolean isDeleted
    • 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)
        Use newBuilder() to create instances of this class without specifying values for all optional fields.
        Parameters:
        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.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • GetMetadataResult

        public GetMetadataResult()
        None

        The 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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