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 GoogleCloudDialogflowV2WebhookResponse extends \Google\Collection
21{
22  protected $collection_key = 'sessionEntityTypes';
23  protected $followupEventInputType = GoogleCloudDialogflowV2EventInput::class;
24  protected $followupEventInputDataType = '';
25  protected $fulfillmentMessagesType = GoogleCloudDialogflowV2IntentMessage::class;
26  protected $fulfillmentMessagesDataType = 'array';
27  /**
28   * @var string
29   */
30  public $fulfillmentText;
31  protected $outputContextsType = GoogleCloudDialogflowV2Context::class;
32  protected $outputContextsDataType = 'array';
33  /**
34   * @var array[]
35   */
36  public $payload;
37  protected $sessionEntityTypesType = GoogleCloudDialogflowV2SessionEntityType::class;
38  protected $sessionEntityTypesDataType = 'array';
39  /**
40   * @var string
41   */
42  public $source;
43
44  /**
45   * @param GoogleCloudDialogflowV2EventInput
46   */
47  public function setFollowupEventInput(GoogleCloudDialogflowV2EventInput $followupEventInput)
48  {
49    $this->followupEventInput = $followupEventInput;
50  }
51  /**
52   * @return GoogleCloudDialogflowV2EventInput
53   */
54  public function getFollowupEventInput()
55  {
56    return $this->followupEventInput;
57  }
58  /**
59   * @param GoogleCloudDialogflowV2IntentMessage[]
60   */
61  public function setFulfillmentMessages($fulfillmentMessages)
62  {
63    $this->fulfillmentMessages = $fulfillmentMessages;
64  }
65  /**
66   * @return GoogleCloudDialogflowV2IntentMessage[]
67   */
68  public function getFulfillmentMessages()
69  {
70    return $this->fulfillmentMessages;
71  }
72  /**
73   * @param string
74   */
75  public function setFulfillmentText($fulfillmentText)
76  {
77    $this->fulfillmentText = $fulfillmentText;
78  }
79  /**
80   * @return string
81   */
82  public function getFulfillmentText()
83  {
84    return $this->fulfillmentText;
85  }
86  /**
87   * @param GoogleCloudDialogflowV2Context[]
88   */
89  public function setOutputContexts($outputContexts)
90  {
91    $this->outputContexts = $outputContexts;
92  }
93  /**
94   * @return GoogleCloudDialogflowV2Context[]
95   */
96  public function getOutputContexts()
97  {
98    return $this->outputContexts;
99  }
100  /**
101   * @param array[]
102   */
103  public function setPayload($payload)
104  {
105    $this->payload = $payload;
106  }
107  /**
108   * @return array[]
109   */
110  public function getPayload()
111  {
112    return $this->payload;
113  }
114  /**
115   * @param GoogleCloudDialogflowV2SessionEntityType[]
116   */
117  public function setSessionEntityTypes($sessionEntityTypes)
118  {
119    $this->sessionEntityTypes = $sessionEntityTypes;
120  }
121  /**
122   * @return GoogleCloudDialogflowV2SessionEntityType[]
123   */
124  public function getSessionEntityTypes()
125  {
126    return $this->sessionEntityTypes;
127  }
128  /**
129   * @param string
130   */
131  public function setSource($source)
132  {
133    $this->source = $source;
134  }
135  /**
136   * @return string
137   */
138  public function getSource()
139  {
140    return $this->source;
141  }
142}
143
144// Adding a class alias for backwards compatibility with the previous class name.
145class_alias(GoogleCloudDialogflowV2WebhookResponse::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowV2WebhookResponse');
146