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 GoogleCloudDialogflowCxV3QueryResult extends \Google\Collection
21{
22  protected $collection_key = 'webhookStatuses';
23  protected $currentPageType = GoogleCloudDialogflowCxV3Page::class;
24  protected $currentPageDataType = '';
25  /**
26   * @var array[]
27   */
28  public $diagnosticInfo;
29  protected $dtmfType = GoogleCloudDialogflowCxV3DtmfInput::class;
30  protected $dtmfDataType = '';
31  protected $intentType = GoogleCloudDialogflowCxV3Intent::class;
32  protected $intentDataType = '';
33  /**
34   * @var float
35   */
36  public $intentDetectionConfidence;
37  /**
38   * @var string
39   */
40  public $languageCode;
41  protected $matchType = GoogleCloudDialogflowCxV3Match::class;
42  protected $matchDataType = '';
43  /**
44   * @var array[]
45   */
46  public $parameters;
47  protected $responseMessagesType = GoogleCloudDialogflowCxV3ResponseMessage::class;
48  protected $responseMessagesDataType = 'array';
49  protected $sentimentAnalysisResultType = GoogleCloudDialogflowCxV3SentimentAnalysisResult::class;
50  protected $sentimentAnalysisResultDataType = '';
51  /**
52   * @var string
53   */
54  public $text;
55  /**
56   * @var string
57   */
58  public $transcript;
59  /**
60   * @var string
61   */
62  public $triggerEvent;
63  /**
64   * @var string
65   */
66  public $triggerIntent;
67  /**
68   * @var array[]
69   */
70  public $webhookPayloads;
71  protected $webhookStatusesType = GoogleRpcStatus::class;
72  protected $webhookStatusesDataType = 'array';
73
74  /**
75   * @param GoogleCloudDialogflowCxV3Page
76   */
77  public function setCurrentPage(GoogleCloudDialogflowCxV3Page $currentPage)
78  {
79    $this->currentPage = $currentPage;
80  }
81  /**
82   * @return GoogleCloudDialogflowCxV3Page
83   */
84  public function getCurrentPage()
85  {
86    return $this->currentPage;
87  }
88  /**
89   * @param array[]
90   */
91  public function setDiagnosticInfo($diagnosticInfo)
92  {
93    $this->diagnosticInfo = $diagnosticInfo;
94  }
95  /**
96   * @return array[]
97   */
98  public function getDiagnosticInfo()
99  {
100    return $this->diagnosticInfo;
101  }
102  /**
103   * @param GoogleCloudDialogflowCxV3DtmfInput
104   */
105  public function setDtmf(GoogleCloudDialogflowCxV3DtmfInput $dtmf)
106  {
107    $this->dtmf = $dtmf;
108  }
109  /**
110   * @return GoogleCloudDialogflowCxV3DtmfInput
111   */
112  public function getDtmf()
113  {
114    return $this->dtmf;
115  }
116  /**
117   * @param GoogleCloudDialogflowCxV3Intent
118   */
119  public function setIntent(GoogleCloudDialogflowCxV3Intent $intent)
120  {
121    $this->intent = $intent;
122  }
123  /**
124   * @return GoogleCloudDialogflowCxV3Intent
125   */
126  public function getIntent()
127  {
128    return $this->intent;
129  }
130  /**
131   * @param float
132   */
133  public function setIntentDetectionConfidence($intentDetectionConfidence)
134  {
135    $this->intentDetectionConfidence = $intentDetectionConfidence;
136  }
137  /**
138   * @return float
139   */
140  public function getIntentDetectionConfidence()
141  {
142    return $this->intentDetectionConfidence;
143  }
144  /**
145   * @param string
146   */
147  public function setLanguageCode($languageCode)
148  {
149    $this->languageCode = $languageCode;
150  }
151  /**
152   * @return string
153   */
154  public function getLanguageCode()
155  {
156    return $this->languageCode;
157  }
158  /**
159   * @param GoogleCloudDialogflowCxV3Match
160   */
161  public function setMatch(GoogleCloudDialogflowCxV3Match $match)
162  {
163    $this->match = $match;
164  }
165  /**
166   * @return GoogleCloudDialogflowCxV3Match
167   */
168  public function getMatch()
169  {
170    return $this->match;
171  }
172  /**
173   * @param array[]
174   */
175  public function setParameters($parameters)
176  {
177    $this->parameters = $parameters;
178  }
179  /**
180   * @return array[]
181   */
182  public function getParameters()
183  {
184    return $this->parameters;
185  }
186  /**
187   * @param GoogleCloudDialogflowCxV3ResponseMessage[]
188   */
189  public function setResponseMessages($responseMessages)
190  {
191    $this->responseMessages = $responseMessages;
192  }
193  /**
194   * @return GoogleCloudDialogflowCxV3ResponseMessage[]
195   */
196  public function getResponseMessages()
197  {
198    return $this->responseMessages;
199  }
200  /**
201   * @param GoogleCloudDialogflowCxV3SentimentAnalysisResult
202   */
203  public function setSentimentAnalysisResult(GoogleCloudDialogflowCxV3SentimentAnalysisResult $sentimentAnalysisResult)
204  {
205    $this->sentimentAnalysisResult = $sentimentAnalysisResult;
206  }
207  /**
208   * @return GoogleCloudDialogflowCxV3SentimentAnalysisResult
209   */
210  public function getSentimentAnalysisResult()
211  {
212    return $this->sentimentAnalysisResult;
213  }
214  /**
215   * @param string
216   */
217  public function setText($text)
218  {
219    $this->text = $text;
220  }
221  /**
222   * @return string
223   */
224  public function getText()
225  {
226    return $this->text;
227  }
228  /**
229   * @param string
230   */
231  public function setTranscript($transcript)
232  {
233    $this->transcript = $transcript;
234  }
235  /**
236   * @return string
237   */
238  public function getTranscript()
239  {
240    return $this->transcript;
241  }
242  /**
243   * @param string
244   */
245  public function setTriggerEvent($triggerEvent)
246  {
247    $this->triggerEvent = $triggerEvent;
248  }
249  /**
250   * @return string
251   */
252  public function getTriggerEvent()
253  {
254    return $this->triggerEvent;
255  }
256  /**
257   * @param string
258   */
259  public function setTriggerIntent($triggerIntent)
260  {
261    $this->triggerIntent = $triggerIntent;
262  }
263  /**
264   * @return string
265   */
266  public function getTriggerIntent()
267  {
268    return $this->triggerIntent;
269  }
270  /**
271   * @param array[]
272   */
273  public function setWebhookPayloads($webhookPayloads)
274  {
275    $this->webhookPayloads = $webhookPayloads;
276  }
277  /**
278   * @return array[]
279   */
280  public function getWebhookPayloads()
281  {
282    return $this->webhookPayloads;
283  }
284  /**
285   * @param GoogleRpcStatus[]
286   */
287  public function setWebhookStatuses($webhookStatuses)
288  {
289    $this->webhookStatuses = $webhookStatuses;
290  }
291  /**
292   * @return GoogleRpcStatus[]
293   */
294  public function getWebhookStatuses()
295  {
296    return $this->webhookStatuses;
297  }
298}
299
300// Adding a class alias for backwards compatibility with the previous class name.
301class_alias(GoogleCloudDialogflowCxV3QueryResult::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3QueryResult');
302