target.apidocs.com.google.api.services.drive.model.Property.html Maven / Gradle / Ivy
Property (Drive API v2-rev20180830-1.26.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.
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 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()
ETag of the property.
String
getKey()
The key of this property.
String
getKind()
This is always drive#property.
String
getSelfLink()
The link back to this property.
String
getValue()
The value of this property.
String
getVisibility()
The visibility of this property.
Property
set(String fieldName,
Object value)
Property
setEtag(String etag)
ETag of the property.
Property
setKey(String key)
The key of this property.
Property
setKind(String kind)
This is always drive#property.
Property
setSelfLink(String selfLink)
The link back to this property.
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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()
ETag of the property.
- Returns:
- value or
null
for none
-
setEtag
public Property setEtag(String etag)
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()
This is always drive#property.
- Returns:
- value or
null
for none
-
setKind
public Property setKind(String kind)
This is always drive#property.
- Parameters:
kind
- kind or null
for none
-
getSelfLink
public String getSelfLink()
The link back to this property.
- Returns:
- value or
null
for none
-
setSelfLink
public Property setSelfLink(String selfLink)
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 and PUBLIC. (Default: PRIVATE)
- Returns:
- value or
null
for none
-
setVisibility
public Property setVisibility(String visibility)
The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
- 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–2018 Google. All rights reserved.