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

target.apidocs.com.google.api.services.drive.Drive.Files.Watch.html Maven / Gradle / Ivy

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






Drive.Files.Watch (Google Drive API v2-rev20240521-2.0.0)












com.google.api.services.drive

Class Drive.Files.Watch

    • Constructor Detail

      • Watch

        protected Watch(String fileId,
                        Channel content)
        Subscribes to changes to a file. Create a request for the method "files.watch". 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 for the file in question.
        content - the Channel
        Since:
        1.13
    • Method Detail

      • getFileId

        public String getFileId()
        The ID for the file in question.
      • getAcknowledgeAbuse

        public Boolean getAcknowledgeAbuse()
        Whether the user is acknowledging the risk of downloading known malware or other abusive files. [default: false]
      • setAcknowledgeAbuse

        public Drive.Files.Watch setAcknowledgeAbuse(Boolean acknowledgeAbuse)
        Whether the user is acknowledging the risk of downloading known malware or other abusive files.
      • isAcknowledgeAbuse

        public boolean isAcknowledgeAbuse()
        Convenience method that returns only Boolean.TRUE or Boolean.FALSE.

        Boolean properties can have four possible values: null, Data.NULL_BOOLEAN, Boolean.TRUE or Boolean.FALSE.

        This method returns Boolean.TRUE if the default of the property is Boolean.TRUE and it is null or Data.NULL_BOOLEAN. Boolean.FALSE is returned if the default of the property is Boolean.FALSE and it is null or Data.NULL_BOOLEAN.

        Whether the user is acknowledging the risk of downloading known malware or other abusive files.

      • getIncludeLabels

        public String getIncludeLabels()
        A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
      • setIncludeLabels

        public Drive.Files.Watch setIncludeLabels(String includeLabels)
        A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
      • getIncludePermissionsForView

        public String getIncludePermissionsForView()
        Specifies which additional view's permissions to include in the response. Only `published` is supported.
      • setIncludePermissionsForView

        public Drive.Files.Watch setIncludePermissionsForView(String includePermissionsForView)
        Specifies which additional view's permissions to include in the response. Only `published` is supported.
      • getProjection

        public String getProjection()
        Deprecated: This parameter has no function.
      • setProjection

        public Drive.Files.Watch setProjection(String projection)
        Deprecated: This parameter has no function.
      • getRevisionId

        public String getRevisionId()
        Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
      • setRevisionId

        public Drive.Files.Watch setRevisionId(String revisionId)
        Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
      • getSupportsAllDrives

        public Boolean getSupportsAllDrives()
        Whether the requesting application supports both My Drives and shared drives. [default: false]
      • setSupportsAllDrives

        public Drive.Files.Watch setSupportsAllDrives(Boolean supportsAllDrives)
        Whether the requesting application supports both My Drives and shared drives.
      • isSupportsAllDrives

        public boolean isSupportsAllDrives()
        Convenience method that returns only Boolean.TRUE or Boolean.FALSE.

        Boolean properties can have four possible values: null, Data.NULL_BOOLEAN, Boolean.TRUE or Boolean.FALSE.

        This method returns Boolean.TRUE if the default of the property is Boolean.TRUE and it is null or Data.NULL_BOOLEAN. Boolean.FALSE is returned if the default of the property is Boolean.FALSE and it is null or Data.NULL_BOOLEAN.

        Whether the requesting application supports both My Drives and shared drives.

      • getSupportsTeamDrives

        public Boolean getSupportsTeamDrives()
        Deprecated: Use `supportsAllDrives` instead. [default: false]
      • setSupportsTeamDrives

        public Drive.Files.Watch setSupportsTeamDrives(Boolean supportsTeamDrives)
        Deprecated: Use `supportsAllDrives` instead.
      • isSupportsTeamDrives

        public boolean isSupportsTeamDrives()
        Convenience method that returns only Boolean.TRUE or Boolean.FALSE.

        Boolean properties can have four possible values: null, Data.NULL_BOOLEAN, Boolean.TRUE or Boolean.FALSE.

        This method returns Boolean.TRUE if the default of the property is Boolean.TRUE and it is null or Data.NULL_BOOLEAN. Boolean.FALSE is returned if the default of the property is Boolean.FALSE and it is null or Data.NULL_BOOLEAN.

        Deprecated: Use `supportsAllDrives` instead.

      • getUpdateViewedDate

        public Boolean getUpdateViewedDate()
        Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body. [default: false]
      • setUpdateViewedDate

        public Drive.Files.Watch setUpdateViewedDate(Boolean updateViewedDate)
        Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.
      • isUpdateViewedDate

        public boolean isUpdateViewedDate()
        Convenience method that returns only Boolean.TRUE or Boolean.FALSE.

        Boolean properties can have four possible values: null, Data.NULL_BOOLEAN, Boolean.TRUE or Boolean.FALSE.

        This method returns Boolean.TRUE if the default of the property is Boolean.TRUE and it is null or Data.NULL_BOOLEAN. Boolean.FALSE is returned if the default of the property is Boolean.FALSE and it is null or Data.NULL_BOOLEAN.

        Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy