<?php
/*
 * Copyright 2014 Google Inc.
 *
 * 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.
 */

namespace Google\Service\Aiplatform;

class CloudAiLargeModelsVisionGenerateVideoExperiments extends \Google\Collection
{
  public const CODEC_VIDEO_CODEC_UNSPECIFIED = 'VIDEO_CODEC_UNSPECIFIED';
  public const CODEC_VIDEO_CODEC_H264 = 'VIDEO_CODEC_H264';
  public const CODEC_VIDEO_CODEC_PRORES = 'VIDEO_CODEC_PRORES';
  protected $collection_key = 'conditioningFrames';
  /**
   * Optional. Video codec to use for output.
   *
   * @var string
   */
  public $codec;
  protected $conditioningFramesType = CloudAiLargeModelsVisionGenerateVideoExperimentsConditioningFrame::class;
  protected $conditioningFramesDataType = 'array';
  protected $humanPoseType = CloudAiLargeModelsVisionHumanPose::class;
  protected $humanPoseDataType = '';
  /**
   * Model names, as defined in: xyz
   *
   * @var string
   */
  public $modelName;
  /**
   * Number of diffusion steps
   *
   * @var int
   */
  public $numDiffusionSteps;
  protected $promptInputsType = CloudAiLargeModelsVisionPromptInputs::class;
  protected $promptInputsDataType = '';
  /**
   * Optional tag for tracking the source of this request. Allowed values:
   * "colab", "comfyui", "curl", "flowresearch", "vertexstudio". Unrecognized
   * tags are recorded as "unknown" in metrics. Tags do not affect video
   * generation behavior. Up to 16 characters, ASCII alphanumeric, hyphens, and
   * underscores only.
   *
   * @var string
   */
  public $requestOriginTag;
  /**
   * If true (default), truncate input videos that exceed the model's maximum
   * frame count by applying a frame_selection_config to __video_file__ inputs.
   * Set to false to preserve the existing fail-fast behavior.
   *
   * @var bool
   */
  public $truncateInputVideo;
  /**
   * GCS URI of the grayscale video mask for Differential Diffusion. Maps to
   * sdedit_video_tmax_scale_map
   *
   * @var string
   */
  public $videoTransformMaskGcsUri;
  /**
   * SDEdit: Scalar noise level (0.0 to 1.0) Maps to sdedit_tmax
   *
   * @var float
   */
  public $videoTransformStrength;

  /**
   * Optional. Video codec to use for output.
   *
   * Accepted values: VIDEO_CODEC_UNSPECIFIED, VIDEO_CODEC_H264,
   * VIDEO_CODEC_PRORES
   *
   * @param self::CODEC_* $codec
   */
  public function setCodec($codec)
  {
    $this->codec = $codec;
  }
  /**
   * @return self::CODEC_*
   */
  public function getCodec()
  {
    return $this->codec;
  }
  /**
   * Conditioning frames for veo experimental models ONLY, not to be confused
   * with keyframes (ID:31) in GenerateVideoRequest.
   *
   * @param CloudAiLargeModelsVisionGenerateVideoExperimentsConditioningFrame[] $conditioningFrames
   */
  public function setConditioningFrames($conditioningFrames)
  {
    $this->conditioningFrames = $conditioningFrames;
  }
  /**
   * @return CloudAiLargeModelsVisionGenerateVideoExperimentsConditioningFrame[]
   */
  public function getConditioningFrames()
  {
    return $this->conditioningFrames;
  }
  /**
   * Human pose parameters for Pose Control
   *
   * @param CloudAiLargeModelsVisionHumanPose $humanPose
   */
  public function setHumanPose(CloudAiLargeModelsVisionHumanPose $humanPose)
  {
    $this->humanPose = $humanPose;
  }
  /**
   * @return CloudAiLargeModelsVisionHumanPose
   */
  public function getHumanPose()
  {
    return $this->humanPose;
  }
  /**
   * Model names, as defined in: xyz
   *
   * @param string $modelName
   */
  public function setModelName($modelName)
  {
    $this->modelName = $modelName;
  }
  /**
   * @return string
   */
  public function getModelName()
  {
    return $this->modelName;
  }
  /**
   * Number of diffusion steps
   *
   * @param int $numDiffusionSteps
   */
  public function setNumDiffusionSteps($numDiffusionSteps)
  {
    $this->numDiffusionSteps = $numDiffusionSteps;
  }
  /**
   * @return int
   */
  public function getNumDiffusionSteps()
  {
    return $this->numDiffusionSteps;
  }
  /**
   * Prompt chunks for "ProModel" prompting. If set, the prompt will not be
   * rewritten, and top-level prompt ignored.
   *
   * @param CloudAiLargeModelsVisionPromptInputs $promptInputs
   */
  public function setPromptInputs(CloudAiLargeModelsVisionPromptInputs $promptInputs)
  {
    $this->promptInputs = $promptInputs;
  }
  /**
   * @return CloudAiLargeModelsVisionPromptInputs
   */
  public function getPromptInputs()
  {
    return $this->promptInputs;
  }
  /**
   * Optional tag for tracking the source of this request. Allowed values:
   * "colab", "comfyui", "curl", "flowresearch", "vertexstudio". Unrecognized
   * tags are recorded as "unknown" in metrics. Tags do not affect video
   * generation behavior. Up to 16 characters, ASCII alphanumeric, hyphens, and
   * underscores only.
   *
   * @param string $requestOriginTag
   */
  public function setRequestOriginTag($requestOriginTag)
  {
    $this->requestOriginTag = $requestOriginTag;
  }
  /**
   * @return string
   */
  public function getRequestOriginTag()
  {
    return $this->requestOriginTag;
  }
  /**
   * If true (default), truncate input videos that exceed the model's maximum
   * frame count by applying a frame_selection_config to __video_file__ inputs.
   * Set to false to preserve the existing fail-fast behavior.
   *
   * @param bool $truncateInputVideo
   */
  public function setTruncateInputVideo($truncateInputVideo)
  {
    $this->truncateInputVideo = $truncateInputVideo;
  }
  /**
   * @return bool
   */
  public function getTruncateInputVideo()
  {
    return $this->truncateInputVideo;
  }
  /**
   * GCS URI of the grayscale video mask for Differential Diffusion. Maps to
   * sdedit_video_tmax_scale_map
   *
   * @param string $videoTransformMaskGcsUri
   */
  public function setVideoTransformMaskGcsUri($videoTransformMaskGcsUri)
  {
    $this->videoTransformMaskGcsUri = $videoTransformMaskGcsUri;
  }
  /**
   * @return string
   */
  public function getVideoTransformMaskGcsUri()
  {
    return $this->videoTransformMaskGcsUri;
  }
  /**
   * SDEdit: Scalar noise level (0.0 to 1.0) Maps to sdedit_tmax
   *
   * @param float $videoTransformStrength
   */
  public function setVideoTransformStrength($videoTransformStrength)
  {
    $this->videoTransformStrength = $videoTransformStrength;
  }
  /**
   * @return float
   */
  public function getVideoTransformStrength()
  {
    return $this->videoTransformStrength;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAiLargeModelsVisionGenerateVideoExperiments::class, 'Google_Service_Aiplatform_CloudAiLargeModelsVisionGenerateVideoExperiments');
