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

/**
 * Model definition for Volumeseriesinfo.
 *
 * <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 Books 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 Volumeseriesinfo extends com.google.api.client.json.GenericJson {

  /**
   * The display number string. This should be used only for display purposes and the actual
   * sequence should be inferred from the below orderNumber.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String bookDisplayNumber;

  /**
   * Resource type.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String kind;

  /**
   * Short book title in the context of the series.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String shortSeriesBookTitle;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<VolumeSeries> volumeSeries;

  static {
    // hack to force ProGuard to consider VolumeSeries 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(VolumeSeries.class);
  }

  /**
   * The display number string. This should be used only for display purposes and the actual
   * sequence should be inferred from the below orderNumber.
   * @return value or {@code null} for none
   */
  public java.lang.String getBookDisplayNumber() {
    return bookDisplayNumber;
  }

  /**
   * The display number string. This should be used only for display purposes and the actual
   * sequence should be inferred from the below orderNumber.
   * @param bookDisplayNumber bookDisplayNumber or {@code null} for none
   */
  public Volumeseriesinfo setBookDisplayNumber(java.lang.String bookDisplayNumber) {
    this.bookDisplayNumber = bookDisplayNumber;
    return this;
  }

  /**
   * Resource type.
   * @return value or {@code null} for none
   */
  public java.lang.String getKind() {
    return kind;
  }

  /**
   * Resource type.
   * @param kind kind or {@code null} for none
   */
  public Volumeseriesinfo setKind(java.lang.String kind) {
    this.kind = kind;
    return this;
  }

  /**
   * Short book title in the context of the series.
   * @return value or {@code null} for none
   */
  public java.lang.String getShortSeriesBookTitle() {
    return shortSeriesBookTitle;
  }

  /**
   * Short book title in the context of the series.
   * @param shortSeriesBookTitle shortSeriesBookTitle or {@code null} for none
   */
  public Volumeseriesinfo setShortSeriesBookTitle(java.lang.String shortSeriesBookTitle) {
    this.shortSeriesBookTitle = shortSeriesBookTitle;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.util.List<VolumeSeries> getVolumeSeries() {
    return volumeSeries;
  }

  /**
   * @param volumeSeries volumeSeries or {@code null} for none
   */
  public Volumeseriesinfo setVolumeSeries(java.util.List<VolumeSeries> volumeSeries) {
    this.volumeSeries = volumeSeries;
    return this;
  }

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

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

  /**
   * Model definition for VolumeseriesinfoVolumeSeries.
   */
  public static final class VolumeSeries extends com.google.api.client.json.GenericJson {

    /**
     * List of issues. Applicable only for Collection Edition and Omnibus.
     * The value may be {@code null}.
     */
    @com.google.api.client.util.Key
    private java.util.List<Issue> issue;

    static {
      // hack to force ProGuard to consider Issue 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(Issue.class);
    }

    /**
     * The book order number in the series.
     * The value may be {@code null}.
     */
    @com.google.api.client.util.Key
    private java.lang.Integer orderNumber;

    /**
     * The book type in the context of series. Examples - Single Issue, Collection Edition, etc.
     * The value may be {@code null}.
     */
    @com.google.api.client.util.Key
    private java.lang.String seriesBookType;

    /**
     * The series id.
     * The value may be {@code null}.
     */
    @com.google.api.client.util.Key
    private java.lang.String seriesId;

    /**
     * List of issues. Applicable only for Collection Edition and Omnibus.
     * @return value or {@code null} for none
     */
    public java.util.List<Issue> getIssue() {
      return issue;
    }

    /**
     * List of issues. Applicable only for Collection Edition and Omnibus.
     * @param issue issue or {@code null} for none
     */
    public VolumeSeries setIssue(java.util.List<Issue> issue) {
      this.issue = issue;
      return this;
    }

    /**
     * The book order number in the series.
     * @return value or {@code null} for none
     */
    public java.lang.Integer getOrderNumber() {
      return orderNumber;
    }

    /**
     * The book order number in the series.
     * @param orderNumber orderNumber or {@code null} for none
     */
    public VolumeSeries setOrderNumber(java.lang.Integer orderNumber) {
      this.orderNumber = orderNumber;
      return this;
    }

    /**
     * The book type in the context of series. Examples - Single Issue, Collection Edition, etc.
     * @return value or {@code null} for none
     */
    public java.lang.String getSeriesBookType() {
      return seriesBookType;
    }

    /**
     * The book type in the context of series. Examples - Single Issue, Collection Edition, etc.
     * @param seriesBookType seriesBookType or {@code null} for none
     */
    public VolumeSeries setSeriesBookType(java.lang.String seriesBookType) {
      this.seriesBookType = seriesBookType;
      return this;
    }

    /**
     * The series id.
     * @return value or {@code null} for none
     */
    public java.lang.String getSeriesId() {
      return seriesId;
    }

    /**
     * The series id.
     * @param seriesId seriesId or {@code null} for none
     */
    public VolumeSeries setSeriesId(java.lang.String seriesId) {
      this.seriesId = seriesId;
      return this;
    }

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

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

    /**
     * Model definition for VolumeseriesinfoVolumeSeriesIssue.
     */
    public static final class Issue extends com.google.api.client.json.GenericJson {

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

      /**
       * The value may be {@code null}.
       */
      @com.google.api.client.util.Key
      private java.lang.Integer issueOrderNumber;

      /**
       * @return value or {@code null} for none
       */
      public java.lang.String getIssueDisplayNumber() {
        return issueDisplayNumber;
      }

      /**
       * @param issueDisplayNumber issueDisplayNumber or {@code null} for none
       */
      public Issue setIssueDisplayNumber(java.lang.String issueDisplayNumber) {
        this.issueDisplayNumber = issueDisplayNumber;
        return this;
      }

      /**
       * @return value or {@code null} for none
       */
      public java.lang.Integer getIssueOrderNumber() {
        return issueOrderNumber;
      }

      /**
       * @param issueOrderNumber issueOrderNumber or {@code null} for none
       */
      public Issue setIssueOrderNumber(java.lang.Integer issueOrderNumber) {
        this.issueOrderNumber = issueOrderNumber;
        return this;
      }

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

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

    }
  }

}
