Drive API v2 (revision 1)



com.google.api.services.drive.model
Class App

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.drive.model.App
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class App
extends GenericJson

Information about a third-party application which the user has installed or given access to Google Drive.

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: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
static class App.Icons
          Model definition for AppIcons.
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
App()
           
 
Method Summary
 Boolean getAuthorized()
          Whether the app is authorized to access data on the user's Drive.
 List<App.Icons> getIcons()
          The various icons for the app.
 String getId()
          The ID of the app.
 Boolean getInstalled()
          Whether the app is installed.
 String getKind()
          This is always drive#app.
 String getName()
          The name of the app.
 String getObjectType()
          The name of the type of object this app creates.
 List<String> getPrimaryFileExtensions()
          The list of primary file extensions.
 List<String> getPrimaryMimeTypes()
          The list of primary mime types.
 String getProductUrl()
          The product URL.
 HttpHeaders getResponseHeaders()
          Returns the HTTP headers that were returned with the server response, or null.
 List<String> getSecondaryFileExtensions()
          The list of secondary file extensions.
 List<String> getSecondaryMimeTypes()
          The list of secondary mime types.
 Boolean getSupportsCreate()
          Whether this app supports creating new objects.
 Boolean getSupportsImport()
          Whether this app supports importing Google Docs.
 App setAuthorized(Boolean authorized)
          Whether the app is authorized to access data on the user's Drive.
 App setIcons(List<App.Icons> icons)
          The various icons for the app.
 App setId(String id)
          The ID of the app.
 App setInstalled(Boolean installed)
          Whether the app is installed.
 App setKind(String kind)
          This is always drive#app.
 App setName(String name)
          The name of the app.
 App setObjectType(String objectType)
          The name of the type of object this app creates.
 App setPrimaryFileExtensions(List<String> primaryFileExtensions)
          The list of primary file extensions.
 App setPrimaryMimeTypes(List<String> primaryMimeTypes)
          The list of primary mime types.
 App setProductUrl(String productUrl)
          The product URL.
 void setResponseHeaders(HttpHeaders responseHeaders)
          Sets the HTTP headers returned with the server response, or null.
 App setSecondaryFileExtensions(List<String> secondaryFileExtensions)
          The list of secondary file extensions.
 App setSecondaryMimeTypes(List<String> secondaryMimeTypes)
          The list of secondary mime types.
 App setSupportsCreate(Boolean supportsCreate)
          Whether this app supports creating new objects.
 App setSupportsImport(Boolean supportsImport)
          Whether this app supports importing Google Docs.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, 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
 

Constructor Detail

App

public App()
Method Detail

getKind

public String getKind()
This is always drive#app. The value returned may be null.


setKind

public App setKind(String kind)
This is always drive#app. The value set may be null.


getPrimaryFileExtensions

public List<String> getPrimaryFileExtensions()
The list of primary file extensions. The value returned may be null.


setPrimaryFileExtensions

public App setPrimaryFileExtensions(List<String> primaryFileExtensions)
The list of primary file extensions. The value set may be null.


getName

public String getName()
The name of the app. The value returned may be null.


setName

public App setName(String name)
The name of the app. The value set may be null.


getIcons

public List<App.Icons> getIcons()
The various icons for the app. The value returned may be null.


setIcons

public App setIcons(List<App.Icons> icons)
The various icons for the app. The value set may be null.


getSecondaryFileExtensions

public List<String> getSecondaryFileExtensions()
The list of secondary file extensions. The value returned may be null.


setSecondaryFileExtensions

public App setSecondaryFileExtensions(List<String> secondaryFileExtensions)
The list of secondary file extensions. The value set may be null.


getInstalled

public Boolean getInstalled()
Whether the app is installed. The value returned may be null.


setInstalled

public App setInstalled(Boolean installed)
Whether the app is installed. The value set may be null.


getProductUrl

public String getProductUrl()
The product URL. The value returned may be null.


setProductUrl

public App setProductUrl(String productUrl)
The product URL. The value set may be null.


getSecondaryMimeTypes

public List<String> getSecondaryMimeTypes()
The list of secondary mime types. The value returned may be null.


setSecondaryMimeTypes

public App setSecondaryMimeTypes(List<String> secondaryMimeTypes)
The list of secondary mime types. The value set may be null.


getAuthorized

public Boolean getAuthorized()
Whether the app is authorized to access data on the user's Drive. The value returned may be null.


setAuthorized

public App setAuthorized(Boolean authorized)
Whether the app is authorized to access data on the user's Drive. The value set may be null.


getSupportsCreate

public Boolean getSupportsCreate()
Whether this app supports creating new objects. The value returned may be null.


setSupportsCreate

public App setSupportsCreate(Boolean supportsCreate)
Whether this app supports creating new objects. The value set may be null.


getSupportsImport

public Boolean getSupportsImport()
Whether this app supports importing Google Docs. The value returned may be null.


setSupportsImport

public App setSupportsImport(Boolean supportsImport)
Whether this app supports importing Google Docs. The value set may be null.


getPrimaryMimeTypes

public List<String> getPrimaryMimeTypes()
The list of primary mime types. The value returned may be null.


setPrimaryMimeTypes

public App setPrimaryMimeTypes(List<String> primaryMimeTypes)
The list of primary mime types. The value set may be null.


getId

public String getId()
The ID of the app. The value returned may be null.


setId

public App setId(String id)
The ID of the app. The value set may be null.


getObjectType

public String getObjectType()
The name of the type of object this app creates. The value returned may be null.


setObjectType

public App setObjectType(String objectType)
The name of the type of object this app creates. The value set may be null.


setResponseHeaders

public void setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP headers returned with the server response, or null. This member should only be non-null if this object was the top level element of a response. For example, a request that returns a single App would include the response headers, while a request which returns an array of App, would have a non-null response header in the enclosing object only.


getResponseHeaders

public HttpHeaders getResponseHeaders()
Returns the HTTP headers that were returned with the server response, or null.