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

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

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






LabelModification (Google Drive API v3-rev20241027-2.0.0)












com.google.api.services.drive.model

Class LabelModification

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


    public final class LabelModification
    extends com.google.api.client.json.GenericJson
    A modification to a label on a file. A LabelModification can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Drive API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • LabelModification

        public LabelModification()
    • Method Detail

      • getFieldModifications

        public List<LabelFieldModification> getFieldModifications()
        The list of modifications to this label's fields.
        Returns:
        value or null for none
      • setFieldModifications

        public LabelModification setFieldModifications(List<LabelFieldModification> fieldModifications)
        The list of modifications to this label's fields.
        Parameters:
        fieldModifications - fieldModifications or null for none
      • getKind

        public String getKind()
        This is always drive#labelModification.
        Returns:
        value or null for none
      • setKind

        public LabelModification setKind(String kind)
        This is always drive#labelModification.
        Parameters:
        kind - kind or null for none
      • getLabelId

        public String getLabelId()
        The ID of the label to modify.
        Returns:
        value or null for none
      • setLabelId

        public LabelModification setLabelId(String labelId)
        The ID of the label to modify.
        Parameters:
        labelId - labelId or null for none
      • getRemoveLabel

        public Boolean getRemoveLabel()
        If true, the label will be removed from the file.
        Returns:
        value or null for none
      • setRemoveLabel

        public LabelModification setRemoveLabel(Boolean removeLabel)
        If true, the label will be removed from the file.
        Parameters:
        removeLabel - removeLabel or null for none
      • clone

        public LabelModification 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