/*
 * 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.contentwarehouse.v1.model;

/**
 * The change of AndroidAppInfo, e.g. app installation or deletion for incremental delta app info
 * upload.
 *
 * <p> 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 Document AI Warehouse API. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class AssistantApiCoreTypesAndroidAppInfoDelta extends com.google.api.client.json.GenericJson {

  /**
   * The android app information of the provider. Like, Spotify.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private AssistantApiCoreTypesAndroidAppInfo androidAppInfo;

  /**
   * The client-side timestamp in millis when the app is last updated, installed or deleted.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String lastUpdateTimestamp;

  /**
   * App is installed or deleted.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String updateType;

  /**
   * The android app information of the provider. Like, Spotify.
   * @return value or {@code null} for none
   */
  public AssistantApiCoreTypesAndroidAppInfo getAndroidAppInfo() {
    return androidAppInfo;
  }

  /**
   * The android app information of the provider. Like, Spotify.
   * @param androidAppInfo androidAppInfo or {@code null} for none
   */
  public AssistantApiCoreTypesAndroidAppInfoDelta setAndroidAppInfo(AssistantApiCoreTypesAndroidAppInfo androidAppInfo) {
    this.androidAppInfo = androidAppInfo;
    return this;
  }

  /**
   * The client-side timestamp in millis when the app is last updated, installed or deleted.
   * @return value or {@code null} for none
   */
  public String getLastUpdateTimestamp() {
    return lastUpdateTimestamp;
  }

  /**
   * The client-side timestamp in millis when the app is last updated, installed or deleted.
   * @param lastUpdateTimestamp lastUpdateTimestamp or {@code null} for none
   */
  public AssistantApiCoreTypesAndroidAppInfoDelta setLastUpdateTimestamp(String lastUpdateTimestamp) {
    this.lastUpdateTimestamp = lastUpdateTimestamp;
    return this;
  }

  /**
   * App is installed or deleted.
   * @return value or {@code null} for none
   */
  public java.lang.String getUpdateType() {
    return updateType;
  }

  /**
   * App is installed or deleted.
   * @param updateType updateType or {@code null} for none
   */
  public AssistantApiCoreTypesAndroidAppInfoDelta setUpdateType(java.lang.String updateType) {
    this.updateType = updateType;
    return this;
  }

  @Override
  public AssistantApiCoreTypesAndroidAppInfoDelta set(String fieldName, Object value) {
    return (AssistantApiCoreTypesAndroidAppInfoDelta) super.set(fieldName, value);
  }

  @Override
  public AssistantApiCoreTypesAndroidAppInfoDelta clone() {
    return (AssistantApiCoreTypesAndroidAppInfoDelta) super.clone();
  }

}
