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

/**
 * Contains token-level information about ASR captions.
 *
 * <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 VideoContentSearchAsrCaption extends com.google.api.client.json.GenericJson {

  /**
   * The confidence score of the token: between 0 and 1.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Float confidence;

  /**
   * The duration that the token is spoken for.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Float durationMs;

  /**
   * The time in the video at which the token starts being spoken.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer startTimeMs;

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

  /**
   * The confidence score of the token: between 0 and 1.
   * @return value or {@code null} for none
   */
  public java.lang.Float getConfidence() {
    return confidence;
  }

  /**
   * The confidence score of the token: between 0 and 1.
   * @param confidence confidence or {@code null} for none
   */
  public VideoContentSearchAsrCaption setConfidence(java.lang.Float confidence) {
    this.confidence = confidence;
    return this;
  }

  /**
   * The duration that the token is spoken for.
   * @return value or {@code null} for none
   */
  public java.lang.Float getDurationMs() {
    return durationMs;
  }

  /**
   * The duration that the token is spoken for.
   * @param durationMs durationMs or {@code null} for none
   */
  public VideoContentSearchAsrCaption setDurationMs(java.lang.Float durationMs) {
    this.durationMs = durationMs;
    return this;
  }

  /**
   * The time in the video at which the token starts being spoken.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getStartTimeMs() {
    return startTimeMs;
  }

  /**
   * The time in the video at which the token starts being spoken.
   * @param startTimeMs startTimeMs or {@code null} for none
   */
  public VideoContentSearchAsrCaption setStartTimeMs(java.lang.Integer startTimeMs) {
    this.startTimeMs = startTimeMs;
    return this;
  }

  /**
   * The speech token.
   * @return value or {@code null} for none
   */
  public java.lang.String getText() {
    return text;
  }

  /**
   * The speech token.
   * @param text text or {@code null} for none
   */
  public VideoContentSearchAsrCaption setText(java.lang.String text) {
    this.text = text;
    return this;
  }

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

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

}
