[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 GoogleCloudDialogflowCxV3beta1WebhookRequest extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'messages';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $detectIntentResponseId;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $dtmfDigits;
|
---|
| 31 | protected $fulfillmentInfoType = GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo::class;
|
---|
| 32 | protected $fulfillmentInfoDataType = '';
|
---|
| 33 | protected $intentInfoType = GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo::class;
|
---|
| 34 | protected $intentInfoDataType = '';
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $languageCode;
|
---|
| 39 | protected $languageInfoType = GoogleCloudDialogflowCxV3beta1LanguageInfo::class;
|
---|
| 40 | protected $languageInfoDataType = '';
|
---|
| 41 | protected $messagesType = GoogleCloudDialogflowCxV3beta1ResponseMessage::class;
|
---|
| 42 | protected $messagesDataType = 'array';
|
---|
| 43 | protected $pageInfoType = GoogleCloudDialogflowCxV3beta1PageInfo::class;
|
---|
| 44 | protected $pageInfoDataType = '';
|
---|
| 45 | /**
|
---|
| 46 | * @var array[]
|
---|
| 47 | */
|
---|
| 48 | public $payload;
|
---|
| 49 | protected $sentimentAnalysisResultType = GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult::class;
|
---|
| 50 | protected $sentimentAnalysisResultDataType = '';
|
---|
| 51 | protected $sessionInfoType = GoogleCloudDialogflowCxV3beta1SessionInfo::class;
|
---|
| 52 | protected $sessionInfoDataType = '';
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $text;
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $transcript;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $triggerEvent;
|
---|
| 65 | /**
|
---|
| 66 | * @var string
|
---|
| 67 | */
|
---|
| 68 | public $triggerIntent;
|
---|
| 69 |
|
---|
| 70 | /**
|
---|
| 71 | * @param string
|
---|
| 72 | */
|
---|
| 73 | public function setDetectIntentResponseId($detectIntentResponseId)
|
---|
| 74 | {
|
---|
| 75 | $this->detectIntentResponseId = $detectIntentResponseId;
|
---|
| 76 | }
|
---|
| 77 | /**
|
---|
| 78 | * @return string
|
---|
| 79 | */
|
---|
| 80 | public function getDetectIntentResponseId()
|
---|
| 81 | {
|
---|
| 82 | return $this->detectIntentResponseId;
|
---|
| 83 | }
|
---|
| 84 | /**
|
---|
| 85 | * @param string
|
---|
| 86 | */
|
---|
| 87 | public function setDtmfDigits($dtmfDigits)
|
---|
| 88 | {
|
---|
| 89 | $this->dtmfDigits = $dtmfDigits;
|
---|
| 90 | }
|
---|
| 91 | /**
|
---|
| 92 | * @return string
|
---|
| 93 | */
|
---|
| 94 | public function getDtmfDigits()
|
---|
| 95 | {
|
---|
| 96 | return $this->dtmfDigits;
|
---|
| 97 | }
|
---|
| 98 | /**
|
---|
| 99 | * @param GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
|
---|
| 100 | */
|
---|
| 101 | public function setFulfillmentInfo(GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo $fulfillmentInfo)
|
---|
| 102 | {
|
---|
| 103 | $this->fulfillmentInfo = $fulfillmentInfo;
|
---|
| 104 | }
|
---|
| 105 | /**
|
---|
| 106 | * @return GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
|
---|
| 107 | */
|
---|
| 108 | public function getFulfillmentInfo()
|
---|
| 109 | {
|
---|
| 110 | return $this->fulfillmentInfo;
|
---|
| 111 | }
|
---|
| 112 | /**
|
---|
| 113 | * @param GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
|
---|
| 114 | */
|
---|
| 115 | public function setIntentInfo(GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo $intentInfo)
|
---|
| 116 | {
|
---|
| 117 | $this->intentInfo = $intentInfo;
|
---|
| 118 | }
|
---|
| 119 | /**
|
---|
| 120 | * @return GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
|
---|
| 121 | */
|
---|
| 122 | public function getIntentInfo()
|
---|
| 123 | {
|
---|
| 124 | return $this->intentInfo;
|
---|
| 125 | }
|
---|
| 126 | /**
|
---|
| 127 | * @param string
|
---|
| 128 | */
|
---|
| 129 | public function setLanguageCode($languageCode)
|
---|
| 130 | {
|
---|
| 131 | $this->languageCode = $languageCode;
|
---|
| 132 | }
|
---|
| 133 | /**
|
---|
| 134 | * @return string
|
---|
| 135 | */
|
---|
| 136 | public function getLanguageCode()
|
---|
| 137 | {
|
---|
| 138 | return $this->languageCode;
|
---|
| 139 | }
|
---|
| 140 | /**
|
---|
| 141 | * @param GoogleCloudDialogflowCxV3beta1LanguageInfo
|
---|
| 142 | */
|
---|
| 143 | public function setLanguageInfo(GoogleCloudDialogflowCxV3beta1LanguageInfo $languageInfo)
|
---|
| 144 | {
|
---|
| 145 | $this->languageInfo = $languageInfo;
|
---|
| 146 | }
|
---|
| 147 | /**
|
---|
| 148 | * @return GoogleCloudDialogflowCxV3beta1LanguageInfo
|
---|
| 149 | */
|
---|
| 150 | public function getLanguageInfo()
|
---|
| 151 | {
|
---|
| 152 | return $this->languageInfo;
|
---|
| 153 | }
|
---|
| 154 | /**
|
---|
| 155 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessage[]
|
---|
| 156 | */
|
---|
| 157 | public function setMessages($messages)
|
---|
| 158 | {
|
---|
| 159 | $this->messages = $messages;
|
---|
| 160 | }
|
---|
| 161 | /**
|
---|
| 162 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessage[]
|
---|
| 163 | */
|
---|
| 164 | public function getMessages()
|
---|
| 165 | {
|
---|
| 166 | return $this->messages;
|
---|
| 167 | }
|
---|
| 168 | /**
|
---|
| 169 | * @param GoogleCloudDialogflowCxV3beta1PageInfo
|
---|
| 170 | */
|
---|
| 171 | public function setPageInfo(GoogleCloudDialogflowCxV3beta1PageInfo $pageInfo)
|
---|
| 172 | {
|
---|
| 173 | $this->pageInfo = $pageInfo;
|
---|
| 174 | }
|
---|
| 175 | /**
|
---|
| 176 | * @return GoogleCloudDialogflowCxV3beta1PageInfo
|
---|
| 177 | */
|
---|
| 178 | public function getPageInfo()
|
---|
| 179 | {
|
---|
| 180 | return $this->pageInfo;
|
---|
| 181 | }
|
---|
| 182 | /**
|
---|
| 183 | * @param array[]
|
---|
| 184 | */
|
---|
| 185 | public function setPayload($payload)
|
---|
| 186 | {
|
---|
| 187 | $this->payload = $payload;
|
---|
| 188 | }
|
---|
| 189 | /**
|
---|
| 190 | * @return array[]
|
---|
| 191 | */
|
---|
| 192 | public function getPayload()
|
---|
| 193 | {
|
---|
| 194 | return $this->payload;
|
---|
| 195 | }
|
---|
| 196 | /**
|
---|
| 197 | * @param GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
|
---|
| 198 | */
|
---|
| 199 | public function setSentimentAnalysisResult(GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult $sentimentAnalysisResult)
|
---|
| 200 | {
|
---|
| 201 | $this->sentimentAnalysisResult = $sentimentAnalysisResult;
|
---|
| 202 | }
|
---|
| 203 | /**
|
---|
| 204 | * @return GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
|
---|
| 205 | */
|
---|
| 206 | public function getSentimentAnalysisResult()
|
---|
| 207 | {
|
---|
| 208 | return $this->sentimentAnalysisResult;
|
---|
| 209 | }
|
---|
| 210 | /**
|
---|
| 211 | * @param GoogleCloudDialogflowCxV3beta1SessionInfo
|
---|
| 212 | */
|
---|
| 213 | public function setSessionInfo(GoogleCloudDialogflowCxV3beta1SessionInfo $sessionInfo)
|
---|
| 214 | {
|
---|
| 215 | $this->sessionInfo = $sessionInfo;
|
---|
| 216 | }
|
---|
| 217 | /**
|
---|
| 218 | * @return GoogleCloudDialogflowCxV3beta1SessionInfo
|
---|
| 219 | */
|
---|
| 220 | public function getSessionInfo()
|
---|
| 221 | {
|
---|
| 222 | return $this->sessionInfo;
|
---|
| 223 | }
|
---|
| 224 | /**
|
---|
| 225 | * @param string
|
---|
| 226 | */
|
---|
| 227 | public function setText($text)
|
---|
| 228 | {
|
---|
| 229 | $this->text = $text;
|
---|
| 230 | }
|
---|
| 231 | /**
|
---|
| 232 | * @return string
|
---|
| 233 | */
|
---|
| 234 | public function getText()
|
---|
| 235 | {
|
---|
| 236 | return $this->text;
|
---|
| 237 | }
|
---|
| 238 | /**
|
---|
| 239 | * @param string
|
---|
| 240 | */
|
---|
| 241 | public function setTranscript($transcript)
|
---|
| 242 | {
|
---|
| 243 | $this->transcript = $transcript;
|
---|
| 244 | }
|
---|
| 245 | /**
|
---|
| 246 | * @return string
|
---|
| 247 | */
|
---|
| 248 | public function getTranscript()
|
---|
| 249 | {
|
---|
| 250 | return $this->transcript;
|
---|
| 251 | }
|
---|
| 252 | /**
|
---|
| 253 | * @param string
|
---|
| 254 | */
|
---|
| 255 | public function setTriggerEvent($triggerEvent)
|
---|
| 256 | {
|
---|
| 257 | $this->triggerEvent = $triggerEvent;
|
---|
| 258 | }
|
---|
| 259 | /**
|
---|
| 260 | * @return string
|
---|
| 261 | */
|
---|
| 262 | public function getTriggerEvent()
|
---|
| 263 | {
|
---|
| 264 | return $this->triggerEvent;
|
---|
| 265 | }
|
---|
| 266 | /**
|
---|
| 267 | * @param string
|
---|
| 268 | */
|
---|
| 269 | public function setTriggerIntent($triggerIntent)
|
---|
| 270 | {
|
---|
| 271 | $this->triggerIntent = $triggerIntent;
|
---|
| 272 | }
|
---|
| 273 | /**
|
---|
| 274 | * @return string
|
---|
| 275 | */
|
---|
| 276 | public function getTriggerIntent()
|
---|
| 277 | {
|
---|
| 278 | return $this->triggerIntent;
|
---|
| 279 | }
|
---|
| 280 | }
|
---|
| 281 |
|
---|
| 282 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 283 | class_alias(GoogleCloudDialogflowCxV3beta1WebhookRequest::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3beta1WebhookRequest');
|
---|