/*
 * 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 civil time relative to a timezone. IMPORTANT: The definition of TimeOfDay 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 AssistantApiTimeOfDay extends com.google.api.client.json.GenericJson {

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

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

  /**
   * The fraction of seconds in nanoseconds, in 0..999999999.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer nanosecond;

  /**
   * The second, in 0...59. Leap seconds are not supported.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer second;

  /**
   * The hour, in 0...23.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getHour() {
    return hour;
  }

  /**
   * The hour, in 0...23.
   * @param hour hour or {@code null} for none
   */
  public AssistantApiTimeOfDay setHour(java.lang.Integer hour) {
    this.hour = hour;
    return this;
  }

  /**
   * The minute, in 0...59.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getMinute() {
    return minute;
  }

  /**
   * The minute, in 0...59.
   * @param minute minute or {@code null} for none
   */
  public AssistantApiTimeOfDay setMinute(java.lang.Integer minute) {
    this.minute = minute;
    return this;
  }

  /**
   * The fraction of seconds in nanoseconds, in 0..999999999.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getNanosecond() {
    return nanosecond;
  }

  /**
   * The fraction of seconds in nanoseconds, in 0..999999999.
   * @param nanosecond nanosecond or {@code null} for none
   */
  public AssistantApiTimeOfDay setNanosecond(java.lang.Integer nanosecond) {
    this.nanosecond = nanosecond;
    return this;
  }

  /**
   * The second, in 0...59. Leap seconds are not supported.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getSecond() {
    return second;
  }

  /**
   * The second, in 0...59. Leap seconds are not supported.
   * @param second second or {@code null} for none
   */
  public AssistantApiTimeOfDay setSecond(java.lang.Integer second) {
    this.second = second;
    return this;
  }

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

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

}
