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

target.apidocs.com.google.api.services.drive.Drive.Realtime.Get.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240903-2.0.0
Show newest version






Drive.Realtime.Get (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive

Class Drive.Realtime.Get

    • Constructor Detail

      • Get

        protected Get(String fileId)
        Exports the contents of the Realtime API data model associated with this file as JSON. Create a request for the method "realtime.get". This request holds the parameters needed by the the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

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

        Parameters:
        fileId - The ID of the file that the Realtime API data model is associated with.
        Since:
        1.13
    • Method Detail

      • executeMediaAndDownloadTo

        public void executeMediaAndDownloadTo(OutputStream outputStream)
                                       throws IOException
        Overrides:
        executeMediaAndDownloadTo in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Void>
        Throws:
        IOException
      • executeMediaAsInputStream

        public InputStream executeMediaAsInputStream()
                                              throws IOException
        Overrides:
        executeMediaAsInputStream in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Void>
        Throws:
        IOException
      • executeMedia

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

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

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

        public Drive.Realtime.Get setKey(String key)
        Description copied from class: DriveRequest
        API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
        Overrides:
        setKey in class DriveRequest<Void>
      • getFileId

        public String getFileId()
        The ID of the file that the Realtime API data model is associated with.
      • setFileId

        public Drive.Realtime.Get setFileId(String fileId)
        The ID of the file that the Realtime API data model is associated with.
      • getRevision

        public Integer getRevision()
        The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned. [minimum: 1]
      • setRevision

        public Drive.Realtime.Get setRevision(Integer revision)
        The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy