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

target.apidocs.com.google.api.services.drive.model.File.Labels.html Maven / Gradle / Ivy

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






File.Labels (Google Drive API v2-rev20240521-2.0.0)












com.google.api.services.drive.model

Class File.Labels

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>
    Enclosing class:
    File


    public static final class File.Labels
    extends com.google.api.client.json.GenericJson
    A group of labels for the file.
    • Constructor Detail

      • Labels

        public Labels()
    • Method Detail

      • getHidden

        public Boolean getHidden()
        Output only. Deprecated.
        Returns:
        value or null for none
      • setHidden

        public File.Labels setHidden(Boolean hidden)
        Output only. Deprecated.
        Parameters:
        hidden - hidden or null for none
      • getModified

        public Boolean getModified()
        Output only. Whether the file has been modified by this user.
        Returns:
        value or null for none
      • setModified

        public File.Labels setModified(Boolean modified)
        Output only. Whether the file has been modified by this user.
        Parameters:
        modified - modified or null for none
      • getRestricted

        public Boolean getRestricted()
        Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
        Returns:
        value or null for none
      • setRestricted

        public File.Labels setRestricted(Boolean restricted)
        Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
        Parameters:
        restricted - restricted or null for none
      • getStarred

        public Boolean getStarred()
        Whether this file is starred by the user.
        Returns:
        value or null for none
      • setStarred

        public File.Labels setStarred(Boolean starred)
        Whether this file is starred by the user.
        Parameters:
        starred - starred or null for none
      • getTrashed

        public Boolean getTrashed()
        Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
        Returns:
        value or null for none
      • setTrashed

        public File.Labels setTrashed(Boolean trashed)
        Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
        Parameters:
        trashed - trashed or null for none
      • getViewed

        public Boolean getViewed()
        Whether this file has been viewed by this user.
        Returns:
        value or null for none
      • setViewed

        public File.Labels setViewed(Boolean viewed)
        Whether this file has been viewed by this user.
        Parameters:
        viewed - viewed or null for none
      • set

        public File.Labels set(String fieldName,
                               Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public File.Labels clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy