Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

/*
 * 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://code.google.com/p/google-apis-client-generator/
 * (build: 2014-07-09 17:08:39 UTC)
 * on 2014-07-23 at 21:49:03 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.content.model;

/**
 * The status of a product, i.e., information about a product computed asynchronously by the data
 * quality analysis.
 *
 * <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 Content API for Shopping. For a detailed explanation
 * see:
 * <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class ProductStatus extends com.google.api.client.json.GenericJson {

  /**
   * A list of data quality issues associated with the product.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<ProductStatusDataQualityIssue> dataQualityIssues;

  /**
   * The intended destinations for the product.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<ProductStatusDestinationStatus> destinationStatuses;

  /**
   * Identifies what kind of resource this is. Value: the fixed string "content#productStatus".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String kind;

  /**
   * The link to the product.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String link;

  /**
   * The id of the product for which status is reported.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String productId;

  /**
   * The title of the product.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String title;

  /**
   * A list of data quality issues associated with the product.
   * @return value or {@code null} for none
   */
  public java.util.List<ProductStatusDataQualityIssue> getDataQualityIssues() {
    return dataQualityIssues;
  }

  /**
   * A list of data quality issues associated with the product.
   * @param dataQualityIssues dataQualityIssues or {@code null} for none
   */
  public ProductStatus setDataQualityIssues(java.util.List<ProductStatusDataQualityIssue> dataQualityIssues) {
    this.dataQualityIssues = dataQualityIssues;
    return this;
  }

  /**
   * The intended destinations for the product.
   * @return value or {@code null} for none
   */
  public java.util.List<ProductStatusDestinationStatus> getDestinationStatuses() {
    return destinationStatuses;
  }

  /**
   * The intended destinations for the product.
   * @param destinationStatuses destinationStatuses or {@code null} for none
   */
  public ProductStatus setDestinationStatuses(java.util.List<ProductStatusDestinationStatus> destinationStatuses) {
    this.destinationStatuses = destinationStatuses;
    return this;
  }

  /**
   * Identifies what kind of resource this is. Value: the fixed string "content#productStatus".
   * @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 "content#productStatus".
   * @param kind kind or {@code null} for none
   */
  public ProductStatus setKind(java.lang.String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * The link to the product.
   * @return value or {@code null} for none
   */
  public java.lang.String getLink() {
    return link;
  }

  /**
   * The link to the product.
   * @param link link or {@code null} for none
   */
  public ProductStatus setLink(java.lang.String link) {
    this.link = link;
    return this;
  }

  /**
   * The id of the product for which status is reported.
   * @return value or {@code null} for none
   */
  public java.lang.String getProductId() {
    return productId;
  }

  /**
   * The id of the product for which status is reported.
   * @param productId productId or {@code null} for none
   */
  public ProductStatus setProductId(java.lang.String productId) {
    this.productId = productId;
    return this;
  }

  /**
   * The title of the product.
   * @return value or {@code null} for none
   */
  public java.lang.String getTitle() {
    return title;
  }

  /**
   * The title of the product.
   * @param title title or {@code null} for none
   */
  public ProductStatus setTitle(java.lang.String title) {
    this.title = title;
    return this;
  }

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

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

}