Drive API v2 (revision 47)



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

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.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:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.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

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

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
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
App()
           
 
Method Summary
 java.lang.Boolean getAuthorized()
          Whether the app is authorized to access data on the user's Drive.
 java.util.List<App.Icons> getIcons()
          The various icons for the app.
 java.lang.String getId()
          The ID of the app.
 java.lang.Boolean getInstalled()
          Whether the app is installed.
 java.lang.String getKind()
          This is always drive#app.
 java.lang.String getName()
          The name of the app.
 java.lang.String getObjectType()
          The type of object this app creates (e.g.
 java.util.List<java.lang.String> getPrimaryFileExtensions()
          The list of primary file extensions.
 java.util.List<java.lang.String> getPrimaryMimeTypes()
          The list of primary mime types.
 java.lang.String getProductUrl()
          The product URL.
 java.util.List<java.lang.String> getSecondaryFileExtensions()
          The list of secondary file extensions.
 java.util.List<java.lang.String> getSecondaryMimeTypes()
          The list of secondary mime types.
 java.lang.Boolean getSupportsCreate()
          Whether this app supports creating new objects.
 java.lang.Boolean getSupportsImport()
          Whether this app supports importing Google Docs.
 java.lang.Boolean getUseByDefault()
          Whether the app is selected as the default handler for the types it supports.
 App setAuthorized(java.lang.Boolean authorized)
          Whether the app is authorized to access data on the user's Drive.
 App setIcons(java.util.List<App.Icons> icons)
          The various icons for the app.
 App setId(java.lang.String id)
          The ID of the app.
 App setInstalled(java.lang.Boolean installed)
          Whether the app is installed.
 App setKind(java.lang.String kind)
          This is always drive#app.
 App setName(java.lang.String name)
          The name of the app.
 App setObjectType(java.lang.String objectType)
          The type of object this app creates (e.g.
 App setPrimaryFileExtensions(java.util.List<java.lang.String> primaryFileExtensions)
          The list of primary file extensions.
 App setPrimaryMimeTypes(java.util.List<java.lang.String> primaryMimeTypes)
          The list of primary mime types.
 App setProductUrl(java.lang.String productUrl)
          The product URL.
 App setSecondaryFileExtensions(java.util.List<java.lang.String> secondaryFileExtensions)
          The list of secondary file extensions.
 App setSecondaryMimeTypes(java.util.List<java.lang.String> secondaryMimeTypes)
          The list of secondary mime types.
 App setSupportsCreate(java.lang.Boolean supportsCreate)
          Whether this app supports creating new objects.
 App setSupportsImport(java.lang.Boolean supportsImport)
          Whether this app supports importing Google Docs.
 App setUseByDefault(java.lang.Boolean useByDefault)
          Whether the app is selected as the default handler for the types it supports.
 
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

getAuthorized

public java.lang.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(java.lang.Boolean authorized)
Whether the app is authorized to access data on the user's Drive. The value set may be null.


getIcons

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


setIcons

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


getId

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


setId

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


getInstalled

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


setInstalled

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


getKind

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


setKind

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


getName

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


setName

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


getObjectType

public java.lang.String getObjectType()
The type of object this app creates (e.g. Chart). If empty, the app name should be used instead. The value returned may be null.


setObjectType

public App setObjectType(java.lang.String objectType)
The type of object this app creates (e.g. Chart). If empty, the app name should be used instead. The value set may be null.


getPrimaryFileExtensions

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


setPrimaryFileExtensions

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


getPrimaryMimeTypes

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


setPrimaryMimeTypes

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


getProductUrl

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


setProductUrl

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


getSecondaryFileExtensions

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


setSecondaryFileExtensions

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


getSecondaryMimeTypes

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


setSecondaryMimeTypes

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


getSupportsCreate

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


setSupportsCreate

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


getSupportsImport

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


setSupportsImport

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


getUseByDefault

public java.lang.Boolean getUseByDefault()
Whether the app is selected as the default handler for the types it supports. The value returned may be null.


setUseByDefault

public App setUseByDefault(java.lang.Boolean useByDefault)
Whether the app is selected as the default handler for the types it supports. The value set may be null.