
com.google.api.services.androidenterprise.model.Product Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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/google/apis-client-generator/
* (build: 2016-07-08 17:28:43 UTC)
* on 2016-10-11 at 14:14:59 UTC
* Modify at your own risk.
*/
package com.google.api.services.androidenterprise.model;
/**
* A Products resource represents an app in the Google Play Store that is available to at least some
* users in the enterprise. (Some apps are restricted to a single enterprise, and no information
* about them is made available outside that enterprise.)
*
* The information provided for each product (localized name, icon, link to the full Google Play
* details page) is intended to allow a basic representation of the product within an EMM user
* interface.
*
* 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 Play EMM 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 Product extends com.google.api.client.json.GenericJson {
/**
* App versions currently available for this product. The returned list contains only public
* versions. Alpha and beta versions are not included.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List appVersion;
static {
// hack to force ProGuard to consider AppVersion used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(AppVersion.class);
}
/**
* The name of the author of the product (e.g. the app developer).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String authorName;
/**
* A link to the (consumer) Google Play details page for the product.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String detailsUrl;
/**
* How and to whom the package is made available. The value publicGoogleHosted means that the
* package is available through the Play Store and not restricted to a specific enterprise. The
* value privateGoogleHosted means that the package is a private app (restricted to an enterprise)
* but hosted by Google. The value privateSelfHosted means that the package is a private app
* (restricted to an enterprise) and is privately hosted.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String distributionChannel;
/**
* A link to an image that can be used as an icon for the product. This image is suitable for use
* at up to 512px x 512px.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String iconUrl;
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#product".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* A string of the form app:. For example, app:com.google.android.gm represents the Gmail app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String productId;
/**
* Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown,
* this means the product is not generally available anymore (even though it might still be
* available to people who own it).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String productPricing;
/**
* Whether this app can only be installed on devices using the Android for Work container app.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean requiresContainerApp;
/**
* A link to a smaller image that can be used as an icon for the product. This image is suitable
* for use at up to 128px x 128px.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String smallIconUrl;
/**
* The name of the product.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String title;
/**
* A link to the Google Play for Work details page for the product, for use by an Enterprise
* administrator.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String workDetailsUrl;
/**
* App versions currently available for this product. The returned list contains only public
* versions. Alpha and beta versions are not included.
* @return value or {@code null} for none
*/
public java.util.List getAppVersion() {
return appVersion;
}
/**
* App versions currently available for this product. The returned list contains only public
* versions. Alpha and beta versions are not included.
* @param appVersion appVersion or {@code null} for none
*/
public Product setAppVersion(java.util.List appVersion) {
this.appVersion = appVersion;
return this;
}
/**
* The name of the author of the product (e.g. the app developer).
* @return value or {@code null} for none
*/
public java.lang.String getAuthorName() {
return authorName;
}
/**
* The name of the author of the product (e.g. the app developer).
* @param authorName authorName or {@code null} for none
*/
public Product setAuthorName(java.lang.String authorName) {
this.authorName = authorName;
return this;
}
/**
* A link to the (consumer) Google Play details page for the product.
* @return value or {@code null} for none
*/
public java.lang.String getDetailsUrl() {
return detailsUrl;
}
/**
* A link to the (consumer) Google Play details page for the product.
* @param detailsUrl detailsUrl or {@code null} for none
*/
public Product setDetailsUrl(java.lang.String detailsUrl) {
this.detailsUrl = detailsUrl;
return this;
}
/**
* How and to whom the package is made available. The value publicGoogleHosted means that the
* package is available through the Play Store and not restricted to a specific enterprise. The
* value privateGoogleHosted means that the package is a private app (restricted to an enterprise)
* but hosted by Google. The value privateSelfHosted means that the package is a private app
* (restricted to an enterprise) and is privately hosted.
* @return value or {@code null} for none
*/
public java.lang.String getDistributionChannel() {
return distributionChannel;
}
/**
* How and to whom the package is made available. The value publicGoogleHosted means that the
* package is available through the Play Store and not restricted to a specific enterprise. The
* value privateGoogleHosted means that the package is a private app (restricted to an enterprise)
* but hosted by Google. The value privateSelfHosted means that the package is a private app
* (restricted to an enterprise) and is privately hosted.
* @param distributionChannel distributionChannel or {@code null} for none
*/
public Product setDistributionChannel(java.lang.String distributionChannel) {
this.distributionChannel = distributionChannel;
return this;
}
/**
* A link to an image that can be used as an icon for the product. This image is suitable for use
* at up to 512px x 512px.
* @return value or {@code null} for none
*/
public java.lang.String getIconUrl() {
return iconUrl;
}
/**
* A link to an image that can be used as an icon for the product. This image is suitable for use
* at up to 512px x 512px.
* @param iconUrl iconUrl or {@code null} for none
*/
public Product setIconUrl(java.lang.String iconUrl) {
this.iconUrl = iconUrl;
return this;
}
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#product".
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Identifies what kind of resource this is. Value: the fixed string "androidenterprise#product".
* @param kind kind or {@code null} for none
*/
public Product setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* A string of the form app:. For example, app:com.google.android.gm represents the Gmail app.
* @return value or {@code null} for none
*/
public java.lang.String getProductId() {
return productId;
}
/**
* A string of the form app:. For example, app:com.google.android.gm represents the Gmail app.
* @param productId productId or {@code null} for none
*/
public Product setProductId(java.lang.String productId) {
this.productId = productId;
return this;
}
/**
* Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown,
* this means the product is not generally available anymore (even though it might still be
* available to people who own it).
* @return value or {@code null} for none
*/
public java.lang.String getProductPricing() {
return productPricing;
}
/**
* Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown,
* this means the product is not generally available anymore (even though it might still be
* available to people who own it).
* @param productPricing productPricing or {@code null} for none
*/
public Product setProductPricing(java.lang.String productPricing) {
this.productPricing = productPricing;
return this;
}
/**
* Whether this app can only be installed on devices using the Android for Work container app.
* @return value or {@code null} for none
*/
public java.lang.Boolean getRequiresContainerApp() {
return requiresContainerApp;
}
/**
* Whether this app can only be installed on devices using the Android for Work container app.
* @param requiresContainerApp requiresContainerApp or {@code null} for none
*/
public Product setRequiresContainerApp(java.lang.Boolean requiresContainerApp) {
this.requiresContainerApp = requiresContainerApp;
return this;
}
/**
* A link to a smaller image that can be used as an icon for the product. This image is suitable
* for use at up to 128px x 128px.
* @return value or {@code null} for none
*/
public java.lang.String getSmallIconUrl() {
return smallIconUrl;
}
/**
* A link to a smaller image that can be used as an icon for the product. This image is suitable
* for use at up to 128px x 128px.
* @param smallIconUrl smallIconUrl or {@code null} for none
*/
public Product setSmallIconUrl(java.lang.String smallIconUrl) {
this.smallIconUrl = smallIconUrl;
return this;
}
/**
* The name of the product.
* @return value or {@code null} for none
*/
public java.lang.String getTitle() {
return title;
}
/**
* The name of the product.
* @param title title or {@code null} for none
*/
public Product setTitle(java.lang.String title) {
this.title = title;
return this;
}
/**
* A link to the Google Play for Work details page for the product, for use by an Enterprise
* administrator.
* @return value or {@code null} for none
*/
public java.lang.String getWorkDetailsUrl() {
return workDetailsUrl;
}
/**
* A link to the Google Play for Work details page for the product, for use by an Enterprise
* administrator.
* @param workDetailsUrl workDetailsUrl or {@code null} for none
*/
public Product setWorkDetailsUrl(java.lang.String workDetailsUrl) {
this.workDetailsUrl = workDetailsUrl;
return this;
}
@Override
public Product set(String fieldName, Object value) {
return (Product) super.set(fieldName, value);
}
@Override
public Product clone() {
return (Product) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy