<?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 GoogleCloudAiplatformV1AudioResponseFormat extends \Google\Model
{
  /**
   * Default value. This value is unused.
   */
  public const DELIVERY_DELIVERY_UNSPECIFIED = 'DELIVERY_UNSPECIFIED';
  /**
   * Generated bytes are returned inline in the response.
   */
  public const DELIVERY_INLINE = 'INLINE';
  /**
   * Generated content is stored and a URI is returned.
   */
  public const DELIVERY_URI = 'URI';
  /**
   * Default value. This value is unused.
   */
  public const MIME_TYPE_MIME_TYPE_UNSPECIFIED = 'MIME_TYPE_UNSPECIFIED';
  /**
   * MP3 audio format.
   */
  public const MIME_TYPE_AUDIO_MP3 = 'AUDIO_MP3';
  /**
   * OGG Opus audio format.
   */
  public const MIME_TYPE_AUDIO_OGG_OPUS = 'AUDIO_OGG_OPUS';
  /**
   * Raw PCM (L16) audio format.
   */
  public const MIME_TYPE_AUDIO_L16 = 'AUDIO_L16';
  /**
   * WAV audio format.
   */
  public const MIME_TYPE_AUDIO_WAV = 'AUDIO_WAV';
  /**
   * A-law audio format.
   */
  public const MIME_TYPE_AUDIO_ALAW = 'AUDIO_ALAW';
  /**
   * Mu-law audio format.
   */
  public const MIME_TYPE_AUDIO_MULAW = 'AUDIO_MULAW';
  /**
   * Optional. Bit rate in bits per second (bps). Only applicable for compressed
   * formats (MP3, Opus).
   *
   * @var int
   */
  public $bitRate;
  /**
   * Optional. Delivery mode for the generated content.
   *
   * @var string
   */
  public $delivery;
  /**
   * Optional. The MIME type of the audio output.
   *
   * @var string
   */
  public $mimeType;
  /**
   * Optional. Sample rate for the generated audio in Hertz.
   *
   * @var int
   */
  public $sampleRate;

  /**
   * Optional. Bit rate in bits per second (bps). Only applicable for compressed
   * formats (MP3, Opus).
   *
   * @param int $bitRate
   */
  public function setBitRate($bitRate)
  {
    $this->bitRate = $bitRate;
  }
  /**
   * @return int
   */
  public function getBitRate()
  {
    return $this->bitRate;
  }
  /**
   * Optional. Delivery mode for the generated content.
   *
   * Accepted values: DELIVERY_UNSPECIFIED, INLINE, URI
   *
   * @param self::DELIVERY_* $delivery
   */
  public function setDelivery($delivery)
  {
    $this->delivery = $delivery;
  }
  /**
   * @return self::DELIVERY_*
   */
  public function getDelivery()
  {
    return $this->delivery;
  }
  /**
   * Optional. The MIME type of the audio output.
   *
   * Accepted values: MIME_TYPE_UNSPECIFIED, AUDIO_MP3, AUDIO_OGG_OPUS,
   * AUDIO_L16, AUDIO_WAV, AUDIO_ALAW, AUDIO_MULAW
   *
   * @param self::MIME_TYPE_* $mimeType
   */
  public function setMimeType($mimeType)
  {
    $this->mimeType = $mimeType;
  }
  /**
   * @return self::MIME_TYPE_*
   */
  public function getMimeType()
  {
    return $this->mimeType;
  }
  /**
   * Optional. Sample rate for the generated audio in Hertz.
   *
   * @param int $sampleRate
   */
  public function setSampleRate($sampleRate)
  {
    $this->sampleRate = $sampleRate;
  }
  /**
   * @return int
   */
  public function getSampleRate()
  {
    return $this->sampleRate;
  }
}

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