π Source: GoogleCloudDialogflowV2beta1Intent.php
<?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\Dialogflow;
class GoogleCloudDialogflowV2beta1Intent extends \Google\Collection
{
public const WEBHOOK_STATE_WEBHOOK_STATE_UNSPECIFIED = 'WEBHOOK_STATE_UNSPECIFIED';
public const WEBHOOK_STATE_WEBHOOK_STATE_ENABLED = 'WEBHOOK_STATE_ENABLED';
public const WEBHOOK_STATE_WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING = 'WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING';
protected $collection_key = 'trainingPhrases';
/**
* @var string
*/
public $action;
/**
* @var string[]
*/
public $defaultResponsePlatforms;
/**
* @var string
*/
public $displayName;
/**
* @var bool
*/
public $endInteraction;
/**
* @var string[]
*/
public $events;
protected $followupIntentInfoType = GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo::class;
protected $followupIntentInfoDataType = 'array';
/**
* @var string[]
*/
public $inputContextNames;
/**
* @var bool
*/
public $isFallback;
/**
* @var bool
*/
public $liveAgentHandoff;
protected $messagesType = GoogleCloudDialogflowV2beta1IntentMessage::class;
protected $messagesDataType = 'array';
/**
* @var bool
*/
public $mlDisabled;
/**
* @deprecated
* @var bool
*/
public $mlEnabled;
/**
* @var string
*/
public $name;
protected $outputContextsType = GoogleCloudDialogflowV2beta1Context::class;
protected $outputContextsDataType = 'array';
protected $parametersType = GoogleCloudDialogflowV2beta1IntentParameter::class;
protected $parametersDataType = 'array';
/**
* @var string
*/
public $parentFollowupIntentName;
/**
* @var int
*/
public $priority;
/**
* @var bool
*/
public $resetContexts;
/**
* @var string
*/
public $rootFollowupIntentName;
protected $trainingPhrasesType = GoogleCloudDialogflowV2beta1IntentTrainingPhrase::class;
protected $trainingPhrasesDataType = 'array';
/**
* @var string
*/
public $webhookState;
/**
* @param string $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string[] $defaultResponsePlatforms
*/
public function setDefaultResponsePlatforms($defaultResponsePlatforms)
{
$this->defaultResponsePlatforms = $defaultResponsePlatforms;
}
/**
* @return string[]
*/
public function getDefaultResponsePlatforms()
{
return $this->defaultResponsePlatforms;
}
/**
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param bool $endInteraction
*/
public function setEndInteraction($endInteraction)
{
$this->endInteraction = $endInteraction;
}
/**
* @return bool
*/
public function getEndInteraction()
{
return $this->endInteraction;
}
/**
* @param string[] $events
*/
public function setEvents($events)
{
$this->events = $events;
}
/**
* @return string[]
*/
public function getEvents()
{
return $this->events;
}
/**
* @param GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo[] $followupIntentInfo
*/
public function setFollowupIntentInfo($followupIntentInfo)
{
$this->followupIntentInfo = $followupIntentInfo;
}
/**
* @return GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo[]
*/
public function getFollowupIntentInfo()
{
return $this->followupIntentInfo;
}
/**
* @param string[] $inputContextNames
*/
public function setInputContextNames($inputContextNames)
{
$this->inputContextNames = $inputContextNames;
}
/**
* @return string[]
*/
public function getInputContextNames()
{
return $this->inputContextNames;
}
/**
* @param bool $isFallback
*/
public function setIsFallback($isFallback)
{
$this->isFallback = $isFallback;
}
/**
* @return bool
*/
public function getIsFallback()
{
return $this->isFallback;
}
/**
* @param bool $liveAgentHandoff
*/
public function setLiveAgentHandoff($liveAgentHandoff)
{
$this->liveAgentHandoff = $liveAgentHandoff;
}
/**
* @return bool
*/
public function getLiveAgentHandoff()
{
return $this->liveAgentHandoff;
}
/**
* @param GoogleCloudDialogflowV2beta1IntentMessage[] $messages
*/
public function setMessages($messages)
{
$this->messages = $messages;
}
/**
* @return GoogleCloudDialogflowV2beta1IntentMessage[]
*/
public function getMessages()
{
return $this->messages;
}
/**
* @param bool $mlDisabled
*/
public function setMlDisabled($mlDisabled)
{
$this->mlDisabled = $mlDisabled;
}
/**
* @return bool
*/
public function getMlDisabled()
{
return $this->mlDisabled;
}
/**
* @deprecated
* @param bool $mlEnabled
*/
public function setMlEnabled($mlEnabled)
{
$this->mlEnabled = $mlEnabled;
}
/**
* @deprecated
* @return bool
*/
public function getMlEnabled()
{
return $this->mlEnabled;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudDialogflowV2beta1Context[] $outputContexts
*/
public function setOutputContexts($outputContexts)
{
$this->outputContexts = $outputContexts;
}
/**
* @return GoogleCloudDialogflowV2beta1Context[]
*/
public function getOutputContexts()
{
return $this->outputContexts;
}
/**
* @param GoogleCloudDialogflowV2beta1IntentParameter[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return GoogleCloudDialogflowV2beta1IntentParameter[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* @param string $parentFollowupIntentName
*/
public function setParentFollowupIntentName($parentFollowupIntentName)
{
$this->parentFollowupIntentName = $parentFollowupIntentName;
}
/**
* @return string
*/
public function getParentFollowupIntentName()
{
return $this->parentFollowupIntentName;
}
/**
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param bool $resetContexts
*/
public function setResetContexts($resetContexts)
{
$this->resetContexts = $resetContexts;
}
/**
* @return bool
*/
public function getResetContexts()
{
return $this->resetContexts;
}
/**
* @param string $rootFollowupIntentName
*/
public function setRootFollowupIntentName($rootFollowupIntentName)
{
$this->rootFollowupIntentName = $rootFollowupIntentName;
}
/**
* @return string
*/
public function getRootFollowupIntentName()
{
return $this->rootFollowupIntentName;
}
/**
* @param GoogleCloudDialogflowV2beta1IntentTrainingPhrase[] $trainingPhrases
*/
public function setTrainingPhrases($trainingPhrases)
{
$this->trainingPhrases = $trainingPhrases;
}
/**
* @return GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]
*/
public function getTrainingPhrases()
{
return $this->trainingPhrases;
}
/**
* @param self::WEBHOOK_STATE_* $webhookState
*/
public function setWebhookState($webhookState)
{
$this->webhookState = $webhookState;
}
/**
* @return self::WEBHOOK_STATE_*
*/
public function getWebhookState()
{
return $this->webhookState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDialogflowV2beta1Intent::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Intent');
β Back