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

/**
 * Prediction input format for Video Classification.
 *
 * <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 Vertex AI 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 GoogleCloudAiplatformV1beta1SchemaPredictInstanceVideoClassificationPredictionInstance extends com.google.api.client.json.GenericJson {

  /**
   * The Google Cloud Storage location of the video on which to perform the prediction.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String content;

  /**
   * The MIME type of the content of the video. Only the following are supported: video/mp4
   * video/avi video/quicktime
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String mimeType;

  /**
   * The end, exclusive, of the video's time segment on which to perform the prediction. Expressed
   * as a number of seconds as measured from the start of the video, with "s" appended at the end.
   * Fractions are allowed, up to a microsecond precision, and "inf" or "Infinity" is allowed, which
   * means the end of the video.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String timeSegmentEnd;

  /**
   * The beginning, inclusive, of the video's time segment on which to perform the prediction.
   * Expressed as a number of seconds as measured from the start of the video, with "s" appended at
   * the end. Fractions are allowed, up to a microsecond precision.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String timeSegmentStart;

  /**
   * The Google Cloud Storage location of the video on which to perform the prediction.
   * @return value or {@code null} for none
   */
  public java.lang.String getContent() {
    return content;
  }

  /**
   * The Google Cloud Storage location of the video on which to perform the prediction.
   * @param content content or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1SchemaPredictInstanceVideoClassificationPredictionInstance setContent(java.lang.String content) {
    this.content = content;
    return this;
  }

  /**
   * The MIME type of the content of the video. Only the following are supported: video/mp4
   * video/avi video/quicktime
   * @return value or {@code null} for none
   */
  public java.lang.String getMimeType() {
    return mimeType;
  }

  /**
   * The MIME type of the content of the video. Only the following are supported: video/mp4
   * video/avi video/quicktime
   * @param mimeType mimeType or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1SchemaPredictInstanceVideoClassificationPredictionInstance setMimeType(java.lang.String mimeType) {
    this.mimeType = mimeType;
    return this;
  }

  /**
   * The end, exclusive, of the video's time segment on which to perform the prediction. Expressed
   * as a number of seconds as measured from the start of the video, with "s" appended at the end.
   * Fractions are allowed, up to a microsecond precision, and "inf" or "Infinity" is allowed, which
   * means the end of the video.
   * @return value or {@code null} for none
   */
  public java.lang.String getTimeSegmentEnd() {
    return timeSegmentEnd;
  }

  /**
   * The end, exclusive, of the video's time segment on which to perform the prediction. Expressed
   * as a number of seconds as measured from the start of the video, with "s" appended at the end.
   * Fractions are allowed, up to a microsecond precision, and "inf" or "Infinity" is allowed, which
   * means the end of the video.
   * @param timeSegmentEnd timeSegmentEnd or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1SchemaPredictInstanceVideoClassificationPredictionInstance setTimeSegmentEnd(java.lang.String timeSegmentEnd) {
    this.timeSegmentEnd = timeSegmentEnd;
    return this;
  }

  /**
   * The beginning, inclusive, of the video's time segment on which to perform the prediction.
   * Expressed as a number of seconds as measured from the start of the video, with "s" appended at
   * the end. Fractions are allowed, up to a microsecond precision.
   * @return value or {@code null} for none
   */
  public java.lang.String getTimeSegmentStart() {
    return timeSegmentStart;
  }

  /**
   * The beginning, inclusive, of the video's time segment on which to perform the prediction.
   * Expressed as a number of seconds as measured from the start of the video, with "s" appended at
   * the end. Fractions are allowed, up to a microsecond precision.
   * @param timeSegmentStart timeSegmentStart or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1SchemaPredictInstanceVideoClassificationPredictionInstance setTimeSegmentStart(java.lang.String timeSegmentStart) {
    this.timeSegmentStart = timeSegmentStart;
    return this;
  }

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

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

}
