com.google.api.services.drive.model.App Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.drive.model;
/**
* The `apps` resource provides a list of 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.
*/
@SuppressWarnings("javadoc")
public final class App extends com.google.api.client.json.GenericJson {
/**
* Whether the app is authorized to access data on the user's Drive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean authorized;
/**
* The template URL to create a file with this app in a given folder. The template contains the
* {folderId} to be replaced by the folder ID house the new file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String createInFolderTemplate;
/**
* The URL to create a file with this app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String createUrl;
/**
* Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the
* user's Drive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean hasDriveWideScope;
/**
* The various icons for the app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List icons;
/**
* The ID of the app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;
/**
* Whether the app is installed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean installed;
/**
* Output only. Identifies what kind of resource this is. Value: the fixed string "drive#app".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* A long description of the app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String longDescription;
/**
* The name of the app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* The type of object this app creates such as a Chart. If empty, the app name should be used
* instead.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String objectType;
/**
* The template URL for opening files with this app. The template contains {ids} or {exportIds} to
* be replaced by the actual file IDs. For more information, see Open Files for the full
* documentation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String openUrlTemplate;
/**
* The list of primary file extensions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List primaryFileExtensions;
/**
* The list of primary MIME types.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List primaryMimeTypes;
/**
* The ID of the product listing for this app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String productId;
/**
* A link to the product listing for this app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String productUrl;
/**
* The list of secondary file extensions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List secondaryFileExtensions;
/**
* The list of secondary MIME types.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List secondaryMimeTypes;
/**
* A short description of the app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String shortDescription;
/**
* Whether this app supports creating objects.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean supportsCreate;
/**
* Whether this app supports importing from Google Docs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean supportsImport;
/**
* Whether this app supports opening more than one file.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean supportsMultiOpen;
/**
* Whether this app supports creating files when offline.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean supportsOfflineCreate;
/**
* Whether the app is selected as the default handler for the types it supports.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean useByDefault;
/**
* Whether the app is authorized to access data on the user's Drive.
* @return value or {@code null} for none
*/
public java.lang.Boolean getAuthorized() {
return authorized;
}
/**
* Whether the app is authorized to access data on the user's Drive.
* @param authorized authorized or {@code null} for none
*/
public App setAuthorized(java.lang.Boolean authorized) {
this.authorized = authorized;
return this;
}
/**
* The template URL to create a file with this app in a given folder. The template contains the
* {folderId} to be replaced by the folder ID house the new file.
* @return value or {@code null} for none
*/
public java.lang.String getCreateInFolderTemplate() {
return createInFolderTemplate;
}
/**
* The template URL to create a file with this app in a given folder. The template contains the
* {folderId} to be replaced by the folder ID house the new file.
* @param createInFolderTemplate createInFolderTemplate or {@code null} for none
*/
public App setCreateInFolderTemplate(java.lang.String createInFolderTemplate) {
this.createInFolderTemplate = createInFolderTemplate;
return this;
}
/**
* The URL to create a file with this app.
* @return value or {@code null} for none
*/
public java.lang.String getCreateUrl() {
return createUrl;
}
/**
* The URL to create a file with this app.
* @param createUrl createUrl or {@code null} for none
*/
public App setCreateUrl(java.lang.String createUrl) {
this.createUrl = createUrl;
return this;
}
/**
* Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the
* user's Drive.
* @return value or {@code null} for none
*/
public java.lang.Boolean getHasDriveWideScope() {
return hasDriveWideScope;
}
/**
* Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the
* user's Drive.
* @param hasDriveWideScope hasDriveWideScope or {@code null} for none
*/
public App setHasDriveWideScope(java.lang.Boolean hasDriveWideScope) {
this.hasDriveWideScope = hasDriveWideScope;
return this;
}
/**
* The various icons for the app.
* @return value or {@code null} for none
*/
public java.util.List getIcons() {
return icons;
}
/**
* The various icons for the app.
* @param icons icons or {@code null} for none
*/
public App setIcons(java.util.List icons) {
this.icons = icons;
return this;
}
/**
* The ID of the app.
* @return value or {@code null} for none
*/
public java.lang.String getId() {
return id;
}
/**
* The ID of the app.
* @param id id or {@code null} for none
*/
public App setId(java.lang.String id) {
this.id = id;
return this;
}
/**
* Whether the app is installed.
* @return value or {@code null} for none
*/
public java.lang.Boolean getInstalled() {
return installed;
}
/**
* Whether the app is installed.
* @param installed installed or {@code null} for none
*/
public App setInstalled(java.lang.Boolean installed) {
this.installed = installed;
return this;
}
/**
* Output only. Identifies what kind of resource this is. Value: the fixed string "drive#app".
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Output only. Identifies what kind of resource this is. Value: the fixed string "drive#app".
* @param kind kind or {@code null} for none
*/
public App setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* A long description of the app.
* @return value or {@code null} for none
*/
public java.lang.String getLongDescription() {
return longDescription;
}
/**
* A long description of the app.
* @param longDescription longDescription or {@code null} for none
*/
public App setLongDescription(java.lang.String longDescription) {
this.longDescription = longDescription;
return this;
}
/**
* The name of the app.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of the app.
* @param name name or {@code null} for none
*/
public App setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* The type of object this app creates such as a Chart. If empty, the app name should be used
* instead.
* @return value or {@code null} for none
*/
public java.lang.String getObjectType() {
return objectType;
}
/**
* The type of object this app creates such as a Chart. If empty, the app name should be used
* instead.
* @param objectType objectType or {@code null} for none
*/
public App setObjectType(java.lang.String objectType) {
this.objectType = objectType;
return this;
}
/**
* The template URL for opening files with this app. The template contains {ids} or {exportIds} to
* be replaced by the actual file IDs. For more information, see Open Files for the full
* documentation.
* @return value or {@code null} for none
*/
public java.lang.String getOpenUrlTemplate() {
return openUrlTemplate;
}
/**
* The template URL for opening files with this app. The template contains {ids} or {exportIds} to
* be replaced by the actual file IDs. For more information, see Open Files for the full
* documentation.
* @param openUrlTemplate openUrlTemplate or {@code null} for none
*/
public App setOpenUrlTemplate(java.lang.String openUrlTemplate) {
this.openUrlTemplate = openUrlTemplate;
return this;
}
/**
* The list of primary file extensions.
* @return value or {@code null} for none
*/
public java.util.List getPrimaryFileExtensions() {
return primaryFileExtensions;
}
/**
* The list of primary file extensions.
* @param primaryFileExtensions primaryFileExtensions or {@code null} for none
*/
public App setPrimaryFileExtensions(java.util.List primaryFileExtensions) {
this.primaryFileExtensions = primaryFileExtensions;
return this;
}
/**
* The list of primary MIME types.
* @return value or {@code null} for none
*/
public java.util.List getPrimaryMimeTypes() {
return primaryMimeTypes;
}
/**
* The list of primary MIME types.
* @param primaryMimeTypes primaryMimeTypes or {@code null} for none
*/
public App setPrimaryMimeTypes(java.util.List primaryMimeTypes) {
this.primaryMimeTypes = primaryMimeTypes;
return this;
}
/**
* The ID of the product listing for this app.
* @return value or {@code null} for none
*/
public java.lang.String getProductId() {
return productId;
}
/**
* The ID of the product listing for this app.
* @param productId productId or {@code null} for none
*/
public App setProductId(java.lang.String productId) {
this.productId = productId;
return this;
}
/**
* A link to the product listing for this app.
* @return value or {@code null} for none
*/
public java.lang.String getProductUrl() {
return productUrl;
}
/**
* A link to the product listing for this app.
* @param productUrl productUrl or {@code null} for none
*/
public App setProductUrl(java.lang.String productUrl) {
this.productUrl = productUrl;
return this;
}
/**
* The list of secondary file extensions.
* @return value or {@code null} for none
*/
public java.util.List getSecondaryFileExtensions() {
return secondaryFileExtensions;
}
/**
* The list of secondary file extensions.
* @param secondaryFileExtensions secondaryFileExtensions or {@code null} for none
*/
public App setSecondaryFileExtensions(java.util.List secondaryFileExtensions) {
this.secondaryFileExtensions = secondaryFileExtensions;
return this;
}
/**
* The list of secondary MIME types.
* @return value or {@code null} for none
*/
public java.util.List getSecondaryMimeTypes() {
return secondaryMimeTypes;
}
/**
* The list of secondary MIME types.
* @param secondaryMimeTypes secondaryMimeTypes or {@code null} for none
*/
public App setSecondaryMimeTypes(java.util.List secondaryMimeTypes) {
this.secondaryMimeTypes = secondaryMimeTypes;
return this;
}
/**
* A short description of the app.
* @return value or {@code null} for none
*/
public java.lang.String getShortDescription() {
return shortDescription;
}
/**
* A short description of the app.
* @param shortDescription shortDescription or {@code null} for none
*/
public App setShortDescription(java.lang.String shortDescription) {
this.shortDescription = shortDescription;
return this;
}
/**
* Whether this app supports creating objects.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSupportsCreate() {
return supportsCreate;
}
/**
* Whether this app supports creating objects.
* @param supportsCreate supportsCreate or {@code null} for none
*/
public App setSupportsCreate(java.lang.Boolean supportsCreate) {
this.supportsCreate = supportsCreate;
return this;
}
/**
* Whether this app supports importing from Google Docs.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSupportsImport() {
return supportsImport;
}
/**
* Whether this app supports importing from Google Docs.
* @param supportsImport supportsImport or {@code null} for none
*/
public App setSupportsImport(java.lang.Boolean supportsImport) {
this.supportsImport = supportsImport;
return this;
}
/**
* Whether this app supports opening more than one file.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSupportsMultiOpen() {
return supportsMultiOpen;
}
/**
* Whether this app supports opening more than one file.
* @param supportsMultiOpen supportsMultiOpen or {@code null} for none
*/
public App setSupportsMultiOpen(java.lang.Boolean supportsMultiOpen) {
this.supportsMultiOpen = supportsMultiOpen;
return this;
}
/**
* Whether this app supports creating files when offline.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSupportsOfflineCreate() {
return supportsOfflineCreate;
}
/**
* Whether this app supports creating files when offline.
* @param supportsOfflineCreate supportsOfflineCreate or {@code null} for none
*/
public App setSupportsOfflineCreate(java.lang.Boolean supportsOfflineCreate) {
this.supportsOfflineCreate = supportsOfflineCreate;
return this;
}
/**
* Whether the app is selected as the default handler for the types it supports.
* @return value or {@code null} for none
*/
public java.lang.Boolean getUseByDefault() {
return useByDefault;
}
/**
* Whether the app is selected as the default handler for the types it supports.
* @param useByDefault useByDefault or {@code null} for none
*/
public App setUseByDefault(java.lang.Boolean useByDefault) {
this.useByDefault = useByDefault;
return this;
}
@Override
public App set(String fieldName, Object value) {
return (App) super.set(fieldName, value);
}
@Override
public App clone() {
return (App) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy