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

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

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






ParentReference (Google Drive API v2-rev20240521-2.0.0)












com.google.api.services.drive.model

Class ParentReference

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


    public final class ParentReference
    extends com.google.api.client.json.GenericJson
    A reference to a file's parent. Some resource methods (such as `parents.get`) require a `parentId`. Use the `parents.list` method to retrieve the ID for a parent.

    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

      • ParentReference

        public ParentReference()
    • Method Detail

      • getId

        public String getId()
        The ID of the parent.
        Returns:
        value or null for none
      • setId

        public ParentReference setId(String id)
        The ID of the parent.
        Parameters:
        id - id or null for none
      • getIsRoot

        public Boolean getIsRoot()
        Output only. Whether or not the parent is the root folder.
        Returns:
        value or null for none
      • setIsRoot

        public ParentReference setIsRoot(Boolean isRoot)
        Output only. Whether or not the parent is the root folder.
        Parameters:
        isRoot - isRoot or null for none
      • getKind

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

        public ParentReference setKind(String kind)
        Output only. This is always `drive#parentReference`.
        Parameters:
        kind - kind or null for none
      • getParentLink

        public String getParentLink()
        Output only. A link to the parent.
        Returns:
        value or null for none
      • setParentLink

        public ParentReference setParentLink(String parentLink)
        Output only. A link to the parent.
        Parameters:
        parentLink - parentLink or null for none
      • getSelfLink

        public String getSelfLink()
        Output only. A link back to this reference.
        Returns:
        value or null for none
      • setSelfLink

        public ParentReference setSelfLink(String selfLink)
        Output only. A link back to this reference.
        Parameters:
        selfLink - selfLink or null for none
      • clone

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