All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.docs.v1.Docs.Documents.Get.html Maven / Gradle / Ivy







Docs.Documents.Get (Google Docs API v1-rev20240722-2.0.0)












com.google.api.services.docs.v1

Class Docs.Documents.Get

    • Constructor Detail

      • Get

        protected Get(String documentId)
        Gets the latest version of the specified document. Create a request for the method "documents.get". This request holds the parameters needed by the the docs server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        Docs.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        Parameters:
        documentId - The ID of the document to retrieve.
        Since:
        1.13
    • Method Detail

      • executeUsingHead

        public com.google.api.client.http.HttpResponse executeUsingHead()
                                                                 throws IOException
        Overrides:
        executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Document>
        Throws:
        IOException
      • buildHttpRequestUsingHead

        public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
                                                                         throws IOException
        Overrides:
        buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Document>
        Throws:
        IOException
      • getDocumentId

        public String getDocumentId()
        The ID of the document to retrieve.
      • getIncludeTabsContent

        public Boolean getIncludeTabsContent()
        Whether to populate the Document.tabs field instead of the text content fields like body and documentStyle on Document. - When `True`: Document content populates in the Document.tabs field instead of the text content fields in Document. - When `False`: The content of the document's first tab populates the content fields in Document excluding Document.tabs. If a document has only one tab, then that tab is used to populate the document content. Document.tabs will be empty.
      • setIncludeTabsContent

        public Docs.Documents.Get setIncludeTabsContent(Boolean includeTabsContent)
        Whether to populate the Document.tabs field instead of the text content fields like body and documentStyle on Document. - When `True`: Document content populates in the Document.tabs field instead of the text content fields in Document. - When `False`: The content of the document's first tab populates the content fields in Document excluding Document.tabs. If a document has only one tab, then that tab is used to populate the document content. Document.tabs will be empty.
      • getSuggestionsViewMode

        public String getSuggestionsViewMode()
        The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used.
      • setSuggestionsViewMode

        public Docs.Documents.Get setSuggestionsViewMode(String suggestionsViewMode)
        The suggestions view mode to apply to the document. This allows viewing the document with all suggestions inline, accepted or rejected. If one is not specified, DEFAULT_FOR_CURRENT_ACCESS is used.

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy