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

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

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






App (Google Drive API v2-rev20240809-2.0.0)












com.google.api.services.drive.model

Class App

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


    public final class App
    extends com.google.api.client.json.GenericJson
    The apps resource provides a list of the apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details. Some resource methods (such as `apps.get`) require an `appId`. Use the `apps.list` method to retrieve the ID for an installed application.

    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

      • App

        public App()
    • Method Detail

      • getAuthorized

        public Boolean getAuthorized()
        Whether the app is authorized to access data on the user's Drive.
        Returns:
        value or null for none
      • setAuthorized

        public App setAuthorized(Boolean authorized)
        Whether the app is authorized to access data on the user's Drive.
        Parameters:
        authorized - authorized or null for none
      • getCreateInFolderTemplate

        public String getCreateInFolderTemplate()
        The template url to create a new file with this app in a given folder. The template will contain {folderId} to be replaced by the folder to create the new file in.
        Returns:
        value or null for none
      • setCreateInFolderTemplate

        public App setCreateInFolderTemplate(String createInFolderTemplate)
        The template url to create a new file with this app in a given folder. The template will contain {folderId} to be replaced by the folder to create the new file in.
        Parameters:
        createInFolderTemplate - createInFolderTemplate or null for none
      • getCreateUrl

        public String getCreateUrl()
        The url to create a new file with this app.
        Returns:
        value or null for none
      • setCreateUrl

        public App setCreateUrl(String createUrl)
        The url to create a new file with this app.
        Parameters:
        createUrl - createUrl or null for none
      • getHasDriveWideScope

        public Boolean getHasDriveWideScope()
        Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive.
        Returns:
        value or null for none
      • setHasDriveWideScope

        public App setHasDriveWideScope(Boolean hasDriveWideScope)
        Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive.
        Parameters:
        hasDriveWideScope - hasDriveWideScope or null for none
      • getIcons

        public List<App.Icons> getIcons()
        The various icons for the app.
        Returns:
        value or null for none
      • setIcons

        public App setIcons(List<App.Icons> icons)
        The various icons for the app.
        Parameters:
        icons - icons or null for none
      • getId

        public String getId()
        The ID of the app.
        Returns:
        value or null for none
      • setId

        public App setId(String id)
        The ID of the app.
        Parameters:
        id - id or null for none
      • getInstalled

        public Boolean getInstalled()
        Whether the app is installed.
        Returns:
        value or null for none
      • setInstalled

        public App setInstalled(Boolean installed)
        Whether the app is installed.
        Parameters:
        installed - installed or null for none
      • getKind

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

        public App setKind(String kind)
        This is always `drive#app`.
        Parameters:
        kind - kind or null for none
      • getLongDescription

        public String getLongDescription()
        A long description of the app.
        Returns:
        value or null for none
      • setLongDescription

        public App setLongDescription(String longDescription)
        A long description of the app.
        Parameters:
        longDescription - longDescription or null for none
      • getName

        public String getName()
        The name of the app.
        Returns:
        value or null for none
      • setName

        public App setName(String name)
        The name of the app.
        Parameters:
        name - name or null for none
      • getObjectType

        public String getObjectType()
        The type of object this app creates (e.g. Chart). If empty, the app name should be used instead.
        Returns:
        value or null for none
      • setObjectType

        public App setObjectType(String objectType)
        The type of object this app creates (e.g. Chart). If empty, the app name should be used instead.
        Parameters:
        objectType - objectType or null for none
      • getOpenUrlTemplate

        public String getOpenUrlTemplate()
        The template url for opening files with this app. The template will contain `{ids}` and/or `{exportIds}` to be replaced by the actual file ids. See Open Files for the full documentation.
        Returns:
        value or null for none
      • setOpenUrlTemplate

        public App setOpenUrlTemplate(String openUrlTemplate)
        The template url for opening files with this app. The template will contain `{ids}` and/or `{exportIds}` to be replaced by the actual file ids. See Open Files for the full documentation.
        Parameters:
        openUrlTemplate - openUrlTemplate or null for none
      • getPrimaryFileExtensions

        public List<String> getPrimaryFileExtensions()
        The list of primary file extensions.
        Returns:
        value or null for none
      • setPrimaryFileExtensions

        public App setPrimaryFileExtensions(List<String> primaryFileExtensions)
        The list of primary file extensions.
        Parameters:
        primaryFileExtensions - primaryFileExtensions or null for none
      • getPrimaryMimeTypes

        public List<String> getPrimaryMimeTypes()
        The list of primary mime types.
        Returns:
        value or null for none
      • setPrimaryMimeTypes

        public App setPrimaryMimeTypes(List<String> primaryMimeTypes)
        The list of primary mime types.
        Parameters:
        primaryMimeTypes - primaryMimeTypes or null for none
      • getProductId

        public String getProductId()
        The ID of the product listing for this app.
        Returns:
        value or null for none
      • setProductId

        public App setProductId(String productId)
        The ID of the product listing for this app.
        Parameters:
        productId - productId or null for none
      • getProductUrl

        public String getProductUrl()
        A link to the product listing for this app.
        Returns:
        value or null for none
      • setProductUrl

        public App setProductUrl(String productUrl)
        A link to the product listing for this app.
        Parameters:
        productUrl - productUrl or null for none
      • getSecondaryFileExtensions

        public List<String> getSecondaryFileExtensions()
        The list of secondary file extensions.
        Returns:
        value or null for none
      • setSecondaryFileExtensions

        public App setSecondaryFileExtensions(List<String> secondaryFileExtensions)
        The list of secondary file extensions.
        Parameters:
        secondaryFileExtensions - secondaryFileExtensions or null for none
      • getSecondaryMimeTypes

        public List<String> getSecondaryMimeTypes()
        The list of secondary mime types.
        Returns:
        value or null for none
      • setSecondaryMimeTypes

        public App setSecondaryMimeTypes(List<String> secondaryMimeTypes)
        The list of secondary mime types.
        Parameters:
        secondaryMimeTypes - secondaryMimeTypes or null for none
      • getShortDescription

        public String getShortDescription()
        A short description of the app.
        Returns:
        value or null for none
      • setShortDescription

        public App setShortDescription(String shortDescription)
        A short description of the app.
        Parameters:
        shortDescription - shortDescription or null for none
      • getSupportsCreate

        public Boolean getSupportsCreate()
        Whether this app supports creating new objects.
        Returns:
        value or null for none
      • setSupportsCreate

        public App setSupportsCreate(Boolean supportsCreate)
        Whether this app supports creating new objects.
        Parameters:
        supportsCreate - supportsCreate or null for none
      • getSupportsImport

        public Boolean getSupportsImport()
        Whether this app supports importing from Docs Editors.
        Returns:
        value or null for none
      • setSupportsImport

        public App setSupportsImport(Boolean supportsImport)
        Whether this app supports importing from Docs Editors.
        Parameters:
        supportsImport - supportsImport or null for none
      • getSupportsMultiOpen

        public Boolean getSupportsMultiOpen()
        Whether this app supports opening more than one file.
        Returns:
        value or null for none
      • setSupportsMultiOpen

        public App setSupportsMultiOpen(Boolean supportsMultiOpen)
        Whether this app supports opening more than one file.
        Parameters:
        supportsMultiOpen - supportsMultiOpen or null for none
      • getSupportsOfflineCreate

        public Boolean getSupportsOfflineCreate()
        Whether this app supports creating new files when offline.
        Returns:
        value or null for none
      • setSupportsOfflineCreate

        public App setSupportsOfflineCreate(Boolean supportsOfflineCreate)
        Whether this app supports creating new files when offline.
        Parameters:
        supportsOfflineCreate - supportsOfflineCreate or null for none
      • getUseByDefault

        public Boolean getUseByDefault()
        Whether the app is selected as the default handler for the types it supports.
        Returns:
        value or null for none
      • setUseByDefault

        public App setUseByDefault(Boolean useByDefault)
        Whether the app is selected as the default handler for the types it supports.
        Parameters:
        useByDefault - useByDefault or null for none
      • set

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

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