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 GoogleCloudDialogflowV2beta1WebhookResponse extends \Google\Collection
21{
22  protected $collection_key = 'sessionEntityTypes';
23  /**
24   * @var bool
25   */
26  public $endInteraction;
27  protected $followupEventInputType = GoogleCloudDialogflowV2beta1EventInput::class;
28  protected $followupEventInputDataType = '';
29  protected $fulfillmentMessagesType = GoogleCloudDialogflowV2beta1IntentMessage::class;
30  protected $fulfillmentMessagesDataType = 'array';
31  /**
32   * @var string
33   */
34  public $fulfillmentText;
35  /**
36   * @var bool
37   */
38  public $liveAgentHandoff;
39  protected $outputContextsType = GoogleCloudDialogflowV2beta1Context::class;
40  protected $outputContextsDataType = 'array';
41  /**
42   * @var array[]
43   */
44  public $payload;
45  protected $sessionEntityTypesType = GoogleCloudDialogflowV2beta1SessionEntityType::class;
46  protected $sessionEntityTypesDataType = 'array';
47  /**
48   * @var string
49   */
50  public $source;
51
52  /**
53   * @param bool
54   */
55  public function setEndInteraction($endInteraction)
56  {
57    $this->endInteraction = $endInteraction;
58  }
59  /**
60   * @return bool
61   */
62  public function getEndInteraction()
63  {
64    return $this->endInteraction;
65  }
66  /**
67   * @param GoogleCloudDialogflowV2beta1EventInput
68   */
69  public function setFollowupEventInput(GoogleCloudDialogflowV2beta1EventInput $followupEventInput)
70  {
71    $this->followupEventInput = $followupEventInput;
72  }
73  /**
74   * @return GoogleCloudDialogflowV2beta1EventInput
75   */
76  public function getFollowupEventInput()
77  {
78    return $this->followupEventInput;
79  }
80  /**
81   * @param GoogleCloudDialogflowV2beta1IntentMessage[]
82   */
83  public function setFulfillmentMessages($fulfillmentMessages)
84  {
85    $this->fulfillmentMessages = $fulfillmentMessages;
86  }
87  /**
88   * @return GoogleCloudDialogflowV2beta1IntentMessage[]
89   */
90  public function getFulfillmentMessages()
91  {
92    return $this->fulfillmentMessages;
93  }
94  /**
95   * @param string
96   */
97  public function setFulfillmentText($fulfillmentText)
98  {
99    $this->fulfillmentText = $fulfillmentText;
100  }
101  /**
102   * @return string
103   */
104  public function getFulfillmentText()
105  {
106    return $this->fulfillmentText;
107  }
108  /**
109   * @param bool
110   */
111  public function setLiveAgentHandoff($liveAgentHandoff)
112  {
113    $this->liveAgentHandoff = $liveAgentHandoff;
114  }
115  /**
116   * @return bool
117   */
118  public function getLiveAgentHandoff()
119  {
120    return $this->liveAgentHandoff;
121  }
122  /**
123   * @param GoogleCloudDialogflowV2beta1Context[]
124   */
125  public function setOutputContexts($outputContexts)
126  {
127    $this->outputContexts = $outputContexts;
128  }
129  /**
130   * @return GoogleCloudDialogflowV2beta1Context[]
131   */
132  public function getOutputContexts()
133  {
134    return $this->outputContexts;
135  }
136  /**
137   * @param array[]
138   */
139  public function setPayload($payload)
140  {
141    $this->payload = $payload;
142  }
143  /**
144   * @return array[]
145   */
146  public function getPayload()
147  {
148    return $this->payload;
149  }
150  /**
151   * @param GoogleCloudDialogflowV2beta1SessionEntityType[]
152   */
153  public function setSessionEntityTypes($sessionEntityTypes)
154  {
155    $this->sessionEntityTypes = $sessionEntityTypes;
156  }
157  /**
158   * @return GoogleCloudDialogflowV2beta1SessionEntityType[]
159   */
160  public function getSessionEntityTypes()
161  {
162    return $this->sessionEntityTypes;
163  }
164  /**
165   * @param string
166   */
167  public function setSource($source)
168  {
169    $this->source = $source;
170  }
171  /**
172   * @return string
173   */
174  public function getSource()
175  {
176    return $this->source;
177  }
178}
179
180// Adding a class alias for backwards compatibility with the previous class name.
181class_alias(GoogleCloudDialogflowV2beta1WebhookResponse::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2beta1WebhookResponse');
182