[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Dialogflow;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudDialogflowV2beta1Intent extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'trainingPhrases';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $action;
|
---|
| 27 | /**
|
---|
| 28 | * @var string[]
|
---|
| 29 | */
|
---|
| 30 | public $defaultResponsePlatforms;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $displayName;
|
---|
| 35 | /**
|
---|
| 36 | * @var bool
|
---|
| 37 | */
|
---|
| 38 | public $endInteraction;
|
---|
| 39 | /**
|
---|
| 40 | * @var string[]
|
---|
| 41 | */
|
---|
| 42 | public $events;
|
---|
| 43 | protected $followupIntentInfoType = GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo::class;
|
---|
| 44 | protected $followupIntentInfoDataType = 'array';
|
---|
| 45 | /**
|
---|
| 46 | * @var string[]
|
---|
| 47 | */
|
---|
| 48 | public $inputContextNames;
|
---|
| 49 | /**
|
---|
| 50 | * @var bool
|
---|
| 51 | */
|
---|
| 52 | public $isFallback;
|
---|
| 53 | /**
|
---|
| 54 | * @var bool
|
---|
| 55 | */
|
---|
| 56 | public $liveAgentHandoff;
|
---|
| 57 | protected $messagesType = GoogleCloudDialogflowV2beta1IntentMessage::class;
|
---|
| 58 | protected $messagesDataType = 'array';
|
---|
| 59 | /**
|
---|
| 60 | * @var bool
|
---|
| 61 | */
|
---|
| 62 | public $mlDisabled;
|
---|
| 63 | /**
|
---|
| 64 | * @var bool
|
---|
| 65 | */
|
---|
| 66 | public $mlEnabled;
|
---|
| 67 | /**
|
---|
| 68 | * @var string
|
---|
| 69 | */
|
---|
| 70 | public $name;
|
---|
| 71 | protected $outputContextsType = GoogleCloudDialogflowV2beta1Context::class;
|
---|
| 72 | protected $outputContextsDataType = 'array';
|
---|
| 73 | protected $parametersType = GoogleCloudDialogflowV2beta1IntentParameter::class;
|
---|
| 74 | protected $parametersDataType = 'array';
|
---|
| 75 | /**
|
---|
| 76 | * @var string
|
---|
| 77 | */
|
---|
| 78 | public $parentFollowupIntentName;
|
---|
| 79 | /**
|
---|
| 80 | * @var int
|
---|
| 81 | */
|
---|
| 82 | public $priority;
|
---|
| 83 | /**
|
---|
| 84 | * @var bool
|
---|
| 85 | */
|
---|
| 86 | public $resetContexts;
|
---|
| 87 | /**
|
---|
| 88 | * @var string
|
---|
| 89 | */
|
---|
| 90 | public $rootFollowupIntentName;
|
---|
| 91 | protected $trainingPhrasesType = GoogleCloudDialogflowV2beta1IntentTrainingPhrase::class;
|
---|
| 92 | protected $trainingPhrasesDataType = 'array';
|
---|
| 93 | /**
|
---|
| 94 | * @var string
|
---|
| 95 | */
|
---|
| 96 | public $webhookState;
|
---|
| 97 |
|
---|
| 98 | /**
|
---|
| 99 | * @param string
|
---|
| 100 | */
|
---|
| 101 | public function setAction($action)
|
---|
| 102 | {
|
---|
| 103 | $this->action = $action;
|
---|
| 104 | }
|
---|
| 105 | /**
|
---|
| 106 | * @return string
|
---|
| 107 | */
|
---|
| 108 | public function getAction()
|
---|
| 109 | {
|
---|
| 110 | return $this->action;
|
---|
| 111 | }
|
---|
| 112 | /**
|
---|
| 113 | * @param string[]
|
---|
| 114 | */
|
---|
| 115 | public function setDefaultResponsePlatforms($defaultResponsePlatforms)
|
---|
| 116 | {
|
---|
| 117 | $this->defaultResponsePlatforms = $defaultResponsePlatforms;
|
---|
| 118 | }
|
---|
| 119 | /**
|
---|
| 120 | * @return string[]
|
---|
| 121 | */
|
---|
| 122 | public function getDefaultResponsePlatforms()
|
---|
| 123 | {
|
---|
| 124 | return $this->defaultResponsePlatforms;
|
---|
| 125 | }
|
---|
| 126 | /**
|
---|
| 127 | * @param string
|
---|
| 128 | */
|
---|
| 129 | public function setDisplayName($displayName)
|
---|
| 130 | {
|
---|
| 131 | $this->displayName = $displayName;
|
---|
| 132 | }
|
---|
| 133 | /**
|
---|
| 134 | * @return string
|
---|
| 135 | */
|
---|
| 136 | public function getDisplayName()
|
---|
| 137 | {
|
---|
| 138 | return $this->displayName;
|
---|
| 139 | }
|
---|
| 140 | /**
|
---|
| 141 | * @param bool
|
---|
| 142 | */
|
---|
| 143 | public function setEndInteraction($endInteraction)
|
---|
| 144 | {
|
---|
| 145 | $this->endInteraction = $endInteraction;
|
---|
| 146 | }
|
---|
| 147 | /**
|
---|
| 148 | * @return bool
|
---|
| 149 | */
|
---|
| 150 | public function getEndInteraction()
|
---|
| 151 | {
|
---|
| 152 | return $this->endInteraction;
|
---|
| 153 | }
|
---|
| 154 | /**
|
---|
| 155 | * @param string[]
|
---|
| 156 | */
|
---|
| 157 | public function setEvents($events)
|
---|
| 158 | {
|
---|
| 159 | $this->events = $events;
|
---|
| 160 | }
|
---|
| 161 | /**
|
---|
| 162 | * @return string[]
|
---|
| 163 | */
|
---|
| 164 | public function getEvents()
|
---|
| 165 | {
|
---|
| 166 | return $this->events;
|
---|
| 167 | }
|
---|
| 168 | /**
|
---|
| 169 | * @param GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo[]
|
---|
| 170 | */
|
---|
| 171 | public function setFollowupIntentInfo($followupIntentInfo)
|
---|
| 172 | {
|
---|
| 173 | $this->followupIntentInfo = $followupIntentInfo;
|
---|
| 174 | }
|
---|
| 175 | /**
|
---|
| 176 | * @return GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo[]
|
---|
| 177 | */
|
---|
| 178 | public function getFollowupIntentInfo()
|
---|
| 179 | {
|
---|
| 180 | return $this->followupIntentInfo;
|
---|
| 181 | }
|
---|
| 182 | /**
|
---|
| 183 | * @param string[]
|
---|
| 184 | */
|
---|
| 185 | public function setInputContextNames($inputContextNames)
|
---|
| 186 | {
|
---|
| 187 | $this->inputContextNames = $inputContextNames;
|
---|
| 188 | }
|
---|
| 189 | /**
|
---|
| 190 | * @return string[]
|
---|
| 191 | */
|
---|
| 192 | public function getInputContextNames()
|
---|
| 193 | {
|
---|
| 194 | return $this->inputContextNames;
|
---|
| 195 | }
|
---|
| 196 | /**
|
---|
| 197 | * @param bool
|
---|
| 198 | */
|
---|
| 199 | public function setIsFallback($isFallback)
|
---|
| 200 | {
|
---|
| 201 | $this->isFallback = $isFallback;
|
---|
| 202 | }
|
---|
| 203 | /**
|
---|
| 204 | * @return bool
|
---|
| 205 | */
|
---|
| 206 | public function getIsFallback()
|
---|
| 207 | {
|
---|
| 208 | return $this->isFallback;
|
---|
| 209 | }
|
---|
| 210 | /**
|
---|
| 211 | * @param bool
|
---|
| 212 | */
|
---|
| 213 | public function setLiveAgentHandoff($liveAgentHandoff)
|
---|
| 214 | {
|
---|
| 215 | $this->liveAgentHandoff = $liveAgentHandoff;
|
---|
| 216 | }
|
---|
| 217 | /**
|
---|
| 218 | * @return bool
|
---|
| 219 | */
|
---|
| 220 | public function getLiveAgentHandoff()
|
---|
| 221 | {
|
---|
| 222 | return $this->liveAgentHandoff;
|
---|
| 223 | }
|
---|
| 224 | /**
|
---|
| 225 | * @param GoogleCloudDialogflowV2beta1IntentMessage[]
|
---|
| 226 | */
|
---|
| 227 | public function setMessages($messages)
|
---|
| 228 | {
|
---|
| 229 | $this->messages = $messages;
|
---|
| 230 | }
|
---|
| 231 | /**
|
---|
| 232 | * @return GoogleCloudDialogflowV2beta1IntentMessage[]
|
---|
| 233 | */
|
---|
| 234 | public function getMessages()
|
---|
| 235 | {
|
---|
| 236 | return $this->messages;
|
---|
| 237 | }
|
---|
| 238 | /**
|
---|
| 239 | * @param bool
|
---|
| 240 | */
|
---|
| 241 | public function setMlDisabled($mlDisabled)
|
---|
| 242 | {
|
---|
| 243 | $this->mlDisabled = $mlDisabled;
|
---|
| 244 | }
|
---|
| 245 | /**
|
---|
| 246 | * @return bool
|
---|
| 247 | */
|
---|
| 248 | public function getMlDisabled()
|
---|
| 249 | {
|
---|
| 250 | return $this->mlDisabled;
|
---|
| 251 | }
|
---|
| 252 | /**
|
---|
| 253 | * @param bool
|
---|
| 254 | */
|
---|
| 255 | public function setMlEnabled($mlEnabled)
|
---|
| 256 | {
|
---|
| 257 | $this->mlEnabled = $mlEnabled;
|
---|
| 258 | }
|
---|
| 259 | /**
|
---|
| 260 | * @return bool
|
---|
| 261 | */
|
---|
| 262 | public function getMlEnabled()
|
---|
| 263 | {
|
---|
| 264 | return $this->mlEnabled;
|
---|
| 265 | }
|
---|
| 266 | /**
|
---|
| 267 | * @param string
|
---|
| 268 | */
|
---|
| 269 | public function setName($name)
|
---|
| 270 | {
|
---|
| 271 | $this->name = $name;
|
---|
| 272 | }
|
---|
| 273 | /**
|
---|
| 274 | * @return string
|
---|
| 275 | */
|
---|
| 276 | public function getName()
|
---|
| 277 | {
|
---|
| 278 | return $this->name;
|
---|
| 279 | }
|
---|
| 280 | /**
|
---|
| 281 | * @param GoogleCloudDialogflowV2beta1Context[]
|
---|
| 282 | */
|
---|
| 283 | public function setOutputContexts($outputContexts)
|
---|
| 284 | {
|
---|
| 285 | $this->outputContexts = $outputContexts;
|
---|
| 286 | }
|
---|
| 287 | /**
|
---|
| 288 | * @return GoogleCloudDialogflowV2beta1Context[]
|
---|
| 289 | */
|
---|
| 290 | public function getOutputContexts()
|
---|
| 291 | {
|
---|
| 292 | return $this->outputContexts;
|
---|
| 293 | }
|
---|
| 294 | /**
|
---|
| 295 | * @param GoogleCloudDialogflowV2beta1IntentParameter[]
|
---|
| 296 | */
|
---|
| 297 | public function setParameters($parameters)
|
---|
| 298 | {
|
---|
| 299 | $this->parameters = $parameters;
|
---|
| 300 | }
|
---|
| 301 | /**
|
---|
| 302 | * @return GoogleCloudDialogflowV2beta1IntentParameter[]
|
---|
| 303 | */
|
---|
| 304 | public function getParameters()
|
---|
| 305 | {
|
---|
| 306 | return $this->parameters;
|
---|
| 307 | }
|
---|
| 308 | /**
|
---|
| 309 | * @param string
|
---|
| 310 | */
|
---|
| 311 | public function setParentFollowupIntentName($parentFollowupIntentName)
|
---|
| 312 | {
|
---|
| 313 | $this->parentFollowupIntentName = $parentFollowupIntentName;
|
---|
| 314 | }
|
---|
| 315 | /**
|
---|
| 316 | * @return string
|
---|
| 317 | */
|
---|
| 318 | public function getParentFollowupIntentName()
|
---|
| 319 | {
|
---|
| 320 | return $this->parentFollowupIntentName;
|
---|
| 321 | }
|
---|
| 322 | /**
|
---|
| 323 | * @param int
|
---|
| 324 | */
|
---|
| 325 | public function setPriority($priority)
|
---|
| 326 | {
|
---|
| 327 | $this->priority = $priority;
|
---|
| 328 | }
|
---|
| 329 | /**
|
---|
| 330 | * @return int
|
---|
| 331 | */
|
---|
| 332 | public function getPriority()
|
---|
| 333 | {
|
---|
| 334 | return $this->priority;
|
---|
| 335 | }
|
---|
| 336 | /**
|
---|
| 337 | * @param bool
|
---|
| 338 | */
|
---|
| 339 | public function setResetContexts($resetContexts)
|
---|
| 340 | {
|
---|
| 341 | $this->resetContexts = $resetContexts;
|
---|
| 342 | }
|
---|
| 343 | /**
|
---|
| 344 | * @return bool
|
---|
| 345 | */
|
---|
| 346 | public function getResetContexts()
|
---|
| 347 | {
|
---|
| 348 | return $this->resetContexts;
|
---|
| 349 | }
|
---|
| 350 | /**
|
---|
| 351 | * @param string
|
---|
| 352 | */
|
---|
| 353 | public function setRootFollowupIntentName($rootFollowupIntentName)
|
---|
| 354 | {
|
---|
| 355 | $this->rootFollowupIntentName = $rootFollowupIntentName;
|
---|
| 356 | }
|
---|
| 357 | /**
|
---|
| 358 | * @return string
|
---|
| 359 | */
|
---|
| 360 | public function getRootFollowupIntentName()
|
---|
| 361 | {
|
---|
| 362 | return $this->rootFollowupIntentName;
|
---|
| 363 | }
|
---|
| 364 | /**
|
---|
| 365 | * @param GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]
|
---|
| 366 | */
|
---|
| 367 | public function setTrainingPhrases($trainingPhrases)
|
---|
| 368 | {
|
---|
| 369 | $this->trainingPhrases = $trainingPhrases;
|
---|
| 370 | }
|
---|
| 371 | /**
|
---|
| 372 | * @return GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]
|
---|
| 373 | */
|
---|
| 374 | public function getTrainingPhrases()
|
---|
| 375 | {
|
---|
| 376 | return $this->trainingPhrases;
|
---|
| 377 | }
|
---|
| 378 | /**
|
---|
| 379 | * @param string
|
---|
| 380 | */
|
---|
| 381 | public function setWebhookState($webhookState)
|
---|
| 382 | {
|
---|
| 383 | $this->webhookState = $webhookState;
|
---|
| 384 | }
|
---|
| 385 | /**
|
---|
| 386 | * @return string
|
---|
| 387 | */
|
---|
| 388 | public function getWebhookState()
|
---|
| 389 | {
|
---|
| 390 | return $this->webhookState;
|
---|
| 391 | }
|
---|
| 392 | }
|
---|
| 393 |
|
---|
| 394 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 395 | class_alias(GoogleCloudDialogflowV2beta1Intent::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1Intent');
|
---|