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