/*
 * 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;

/**
 * A Gregorian calendar date. IMPORTANT: The definition of Date proto is being moved to
 * //assistant/api/core_types/governed/datetime_type.proto. All existing references will be updated
 * to point to the new location. If you are adding a reference, use the new one instead.
 *
 * <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 AssistantApiDate extends com.google.api.client.json.GenericJson {

  /**
   * The day, in 1...31.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer day;

  /**
   * The month, in 1...12.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer month;

  /**
   * The year, e.g. 2016.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer year;

  /**
   * The day, in 1...31.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getDay() {
    return day;
  }

  /**
   * The day, in 1...31.
   * @param day day or {@code null} for none
   */
  public AssistantApiDate setDay(java.lang.Integer day) {
    this.day = day;
    return this;
  }

  /**
   * The month, in 1...12.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getMonth() {
    return month;
  }

  /**
   * The month, in 1...12.
   * @param month month or {@code null} for none
   */
  public AssistantApiDate setMonth(java.lang.Integer month) {
    this.month = month;
    return this;
  }

  /**
   * The year, e.g. 2016.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getYear() {
    return year;
  }

  /**
   * The year, e.g. 2016.
   * @param year year or {@code null} for none
   */
  public AssistantApiDate setYear(java.lang.Integer year) {
    this.year = year;
    return this;
  }

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

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

}
