target.apidocs.com.google.api.services.drive.model.Property.html Maven / Gradle / Ivy
Property (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive.model
Class Property
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.Property
-
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Property()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Property
clone()
String
getEtag()
Output only.
String
getKey()
The key of this property.
String
getKind()
Output only.
String
getSelfLink()
Output only.
String
getValue()
The value of this property.
String
getVisibility()
The visibility of this property.
Property
set(String fieldName,
Object value)
Property
setEtag(String etag)
Output only.
Property
setKey(String key)
The key of this property.
Property
setKind(String kind)
Output only.
Property
setSelfLink(String selfLink)
Output only.
Property
setValue(String value)
The value of this property.
Property
setVisibility(String visibility)
The visibility of this property.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
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.