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

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

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






Property (Google Drive API v2-rev20240809-2.0.0)












com.google.api.services.drive.model

Class Property

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


    public final class Property
    extends com.google.api.client.json.GenericJson
    A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties: * Maximum of 100 properties total per file * Maximum of 30 private properties per app * Maximum of 30 public properties * Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property Some resource methods (such as `properties.update`) require a `propertyKey`. Use the `properties.list` method to retrieve the key for a property.

    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

      • Property

        public Property()
    • Method Detail

      • getEtag

        public String getEtag()
        Output only. ETag of the property.
        Returns:
        value or null for none
      • setEtag

        public Property setEtag(String etag)
        Output only. ETag of the property.
        Parameters:
        etag - etag or null for none
      • getKey

        public String getKey()
        The key of this property.
        Returns:
        value or null for none
      • setKey

        public Property setKey(String key)
        The key of this property.
        Parameters:
        key - key or null for none
      • getKind

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

        public Property setKind(String kind)
        Output only. This is always `drive#property`.
        Parameters:
        kind - kind or null for none
      • getSelfLink

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

        public Property setSelfLink(String selfLink)
        Output only. The link back to this property.
        Parameters:
        selfLink - selfLink or null for none
      • getValue

        public String getValue()
        The value of this property.
        Returns:
        value or null for none
      • setValue

        public Property setValue(String value)
        The value of this property.
        Parameters:
        value - value or null for none
      • getVisibility

        public String getVisibility()
        The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
        Returns:
        value or null for none
      • setVisibility

        public Property setVisibility(String visibility)
        The visibility of this property. Allowed values are PRIVATE (default) and PUBLIC. Private properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
        Parameters:
        visibility - visibility or null for none
      • set

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

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