<?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\CustomerEngagementSuite;

class Deployment extends \Google\Model
{
  /**
   * Unknown modality.
   */
  public const MODALITY_MODALITY_UNSPECIFIED = 'MODALITY_UNSPECIFIED';
  /**
   * Text modality.
   */
  public const MODALITY_MODALITY_TEXT = 'MODALITY_TEXT';
  /**
   * Voice modality.
   */
  public const MODALITY_MODALITY_VOICE = 'MODALITY_VOICE';
  /**
   * Video modality.
   */
  public const MODALITY_MODALITY_VIDEO = 'MODALITY_VIDEO';
  /**
   * Optional. The resource name of the app version to deploy. Format:
   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` Use
   * `projects/{project}/locations/{location}/apps/{app}/versions/-` to use the
   * draft app.
   *
   * @var string
   */
  public $appVersion;
  protected $channelProfileType = ChannelProfile::class;
  protected $channelProfileDataType = '';
  /**
   * Output only. Timestamp when this deployment was created.
   *
   * @var string
   */
  public $createTime;
  /**
   * Required. Display name of the deployment.
   *
   * @var string
   */
  public $displayName;
  /**
   * Output only. Etag used to ensure the object hasn't changed during a read-
   * modify-write operation. If the etag is empty, the update will overwrite any
   * concurrent changes.
   *
   * @var string
   */
  public $etag;
  protected $experimentConfigType = ExperimentConfig::class;
  protected $experimentConfigDataType = '';
  protected $instagramCredentialsType = InstagramCredentials::class;
  protected $instagramCredentialsDataType = '';
  /**
   * Optional. The modality of the deployment. Note: Deployment-level modality
   * override is gated behind an allowlist. Contact the CXAS team to enable this
   * field.
   *
   * @var string
   */
  public $modality;
  protected $modelSettingsType = ModelSettings::class;
  protected $modelSettingsDataType = '';
  /**
   * Identifier. The resource name of the deployment. Format: `projects/{project
   * }/locations/{location}/apps/{app}/deployments/{deployment}`
   *
   * @var string
   */
  public $name;
  /**
   * Output only. Timestamp when this deployment was last updated.
   *
   * @var string
   */
  public $updateTime;
  protected $whatsappCredentialsType = WhatsAppCredentials::class;
  protected $whatsappCredentialsDataType = '';

  /**
   * Optional. The resource name of the app version to deploy. Format:
   * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` Use
   * `projects/{project}/locations/{location}/apps/{app}/versions/-` to use the
   * draft app.
   *
   * @param string $appVersion
   */
  public function setAppVersion($appVersion)
  {
    $this->appVersion = $appVersion;
  }
  /**
   * @return string
   */
  public function getAppVersion()
  {
    return $this->appVersion;
  }
  /**
   * Required. The channel profile used in the deployment.
   *
   * @param ChannelProfile $channelProfile
   */
  public function setChannelProfile(ChannelProfile $channelProfile)
  {
    $this->channelProfile = $channelProfile;
  }
  /**
   * @return ChannelProfile
   */
  public function getChannelProfile()
  {
    return $this->channelProfile;
  }
  /**
   * Output only. Timestamp when this deployment was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Required. Display name of the deployment.
   *
   * @param string $displayName
   */
  public function setDisplayName($displayName)
  {
    $this->displayName = $displayName;
  }
  /**
   * @return string
   */
  public function getDisplayName()
  {
    return $this->displayName;
  }
  /**
   * Output only. Etag used to ensure the object hasn't changed during a read-
   * modify-write operation. If the etag is empty, the update will overwrite any
   * concurrent changes.
   *
   * @param string $etag
   */
  public function setEtag($etag)
  {
    $this->etag = $etag;
  }
  /**
   * @return string
   */
  public function getEtag()
  {
    return $this->etag;
  }
  /**
   * Optional. Experiment configuration for the deployment.
   *
   * @param ExperimentConfig $experimentConfig
   */
  public function setExperimentConfig(ExperimentConfig $experimentConfig)
  {
    $this->experimentConfig = $experimentConfig;
  }
  /**
   * @return ExperimentConfig
   */
  public function getExperimentConfig()
  {
    return $this->experimentConfig;
  }
  /**
   * Optional. Input only. Ephemeral Instagram credentials required when
   * configuring a Instagram channel profile.
   *
   * @param InstagramCredentials $instagramCredentials
   */
  public function setInstagramCredentials(InstagramCredentials $instagramCredentials)
  {
    $this->instagramCredentials = $instagramCredentials;
  }
  /**
   * @return InstagramCredentials
   */
  public function getInstagramCredentials()
  {
    return $this->instagramCredentials;
  }
  /**
   * Optional. The modality of the deployment. Note: Deployment-level modality
   * override is gated behind an allowlist. Contact the CXAS team to enable this
   * field.
   *
   * Accepted values: MODALITY_UNSPECIFIED, MODALITY_TEXT, MODALITY_VOICE,
   * MODALITY_VIDEO
   *
   * @param self::MODALITY_* $modality
   */
  public function setModality($modality)
  {
    $this->modality = $modality;
  }
  /**
   * @return self::MODALITY_*
   */
  public function getModality()
  {
    return $this->modality;
  }
  /**
   * Optional. Model settings for the deployment. Overrides model settings
   * configured at the app/agent levels. Note: Deployment-level model settings
   * override is gated behind an allowlist. Contact the CXAS team to enable this
   * field.
   *
   * @param ModelSettings $modelSettings
   */
  public function setModelSettings(ModelSettings $modelSettings)
  {
    $this->modelSettings = $modelSettings;
  }
  /**
   * @return ModelSettings
   */
  public function getModelSettings()
  {
    return $this->modelSettings;
  }
  /**
   * Identifier. The resource name of the deployment. Format: `projects/{project
   * }/locations/{location}/apps/{app}/deployments/{deployment}`
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Output only. Timestamp when this deployment was last updated.
   *
   * @param string $updateTime
   */
  public function setUpdateTime($updateTime)
  {
    $this->updateTime = $updateTime;
  }
  /**
   * @return string
   */
  public function getUpdateTime()
  {
    return $this->updateTime;
  }
  /**
   * Optional. Input only. Ephemeral WhatsApp credentials required when
   * configuring a WhatsApp channel profile.
   *
   * @param WhatsAppCredentials $whatsappCredentials
   */
  public function setWhatsappCredentials(WhatsAppCredentials $whatsappCredentials)
  {
    $this->whatsappCredentials = $whatsappCredentials;
  }
  /**
   * @return WhatsAppCredentials
   */
  public function getWhatsappCredentials()
  {
    return $this->whatsappCredentials;
  }
}

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