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 GoogleCloudDialogflowCxV3beta1ResponseMessage extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $channel;
|
---|
26 | protected $conversationSuccessType = GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess::class;
|
---|
27 | protected $conversationSuccessDataType = '';
|
---|
28 | protected $endInteractionType = GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction::class;
|
---|
29 | protected $endInteractionDataType = '';
|
---|
30 | protected $knowledgeInfoCardType = GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard::class;
|
---|
31 | protected $knowledgeInfoCardDataType = '';
|
---|
32 | protected $liveAgentHandoffType = GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff::class;
|
---|
33 | protected $liveAgentHandoffDataType = '';
|
---|
34 | protected $mixedAudioType = GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio::class;
|
---|
35 | protected $mixedAudioDataType = '';
|
---|
36 | protected $outputAudioTextType = GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText::class;
|
---|
37 | protected $outputAudioTextDataType = '';
|
---|
38 | /**
|
---|
39 | * @var array[]
|
---|
40 | */
|
---|
41 | public $payload;
|
---|
42 | protected $playAudioType = GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio::class;
|
---|
43 | protected $playAudioDataType = '';
|
---|
44 | protected $telephonyTransferCallType = GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall::class;
|
---|
45 | protected $telephonyTransferCallDataType = '';
|
---|
46 | protected $textType = GoogleCloudDialogflowCxV3beta1ResponseMessageText::class;
|
---|
47 | protected $textDataType = '';
|
---|
48 | protected $toolCallType = GoogleCloudDialogflowCxV3beta1ToolCall::class;
|
---|
49 | protected $toolCallDataType = '';
|
---|
50 |
|
---|
51 | /**
|
---|
52 | * @param string
|
---|
53 | */
|
---|
54 | public function setChannel($channel)
|
---|
55 | {
|
---|
56 | $this->channel = $channel;
|
---|
57 | }
|
---|
58 | /**
|
---|
59 | * @return string
|
---|
60 | */
|
---|
61 | public function getChannel()
|
---|
62 | {
|
---|
63 | return $this->channel;
|
---|
64 | }
|
---|
65 | /**
|
---|
66 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
|
---|
67 | */
|
---|
68 | public function setConversationSuccess(GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess $conversationSuccess)
|
---|
69 | {
|
---|
70 | $this->conversationSuccess = $conversationSuccess;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
|
---|
74 | */
|
---|
75 | public function getConversationSuccess()
|
---|
76 | {
|
---|
77 | return $this->conversationSuccess;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction
|
---|
81 | */
|
---|
82 | public function setEndInteraction(GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction $endInteraction)
|
---|
83 | {
|
---|
84 | $this->endInteraction = $endInteraction;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction
|
---|
88 | */
|
---|
89 | public function getEndInteraction()
|
---|
90 | {
|
---|
91 | return $this->endInteraction;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard
|
---|
95 | */
|
---|
96 | public function setKnowledgeInfoCard(GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard $knowledgeInfoCard)
|
---|
97 | {
|
---|
98 | $this->knowledgeInfoCard = $knowledgeInfoCard;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard
|
---|
102 | */
|
---|
103 | public function getKnowledgeInfoCard()
|
---|
104 | {
|
---|
105 | return $this->knowledgeInfoCard;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
|
---|
109 | */
|
---|
110 | public function setLiveAgentHandoff(GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff $liveAgentHandoff)
|
---|
111 | {
|
---|
112 | $this->liveAgentHandoff = $liveAgentHandoff;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
|
---|
116 | */
|
---|
117 | public function getLiveAgentHandoff()
|
---|
118 | {
|
---|
119 | return $this->liveAgentHandoff;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
|
---|
123 | */
|
---|
124 | public function setMixedAudio(GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio $mixedAudio)
|
---|
125 | {
|
---|
126 | $this->mixedAudio = $mixedAudio;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
|
---|
130 | */
|
---|
131 | public function getMixedAudio()
|
---|
132 | {
|
---|
133 | return $this->mixedAudio;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
|
---|
137 | */
|
---|
138 | public function setOutputAudioText(GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText $outputAudioText)
|
---|
139 | {
|
---|
140 | $this->outputAudioText = $outputAudioText;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
|
---|
144 | */
|
---|
145 | public function getOutputAudioText()
|
---|
146 | {
|
---|
147 | return $this->outputAudioText;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @param array[]
|
---|
151 | */
|
---|
152 | public function setPayload($payload)
|
---|
153 | {
|
---|
154 | $this->payload = $payload;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @return array[]
|
---|
158 | */
|
---|
159 | public function getPayload()
|
---|
160 | {
|
---|
161 | return $this->payload;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
|
---|
165 | */
|
---|
166 | public function setPlayAudio(GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio $playAudio)
|
---|
167 | {
|
---|
168 | $this->playAudio = $playAudio;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
|
---|
172 | */
|
---|
173 | public function getPlayAudio()
|
---|
174 | {
|
---|
175 | return $this->playAudio;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
|
---|
179 | */
|
---|
180 | public function setTelephonyTransferCall(GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall $telephonyTransferCall)
|
---|
181 | {
|
---|
182 | $this->telephonyTransferCall = $telephonyTransferCall;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
|
---|
186 | */
|
---|
187 | public function getTelephonyTransferCall()
|
---|
188 | {
|
---|
189 | return $this->telephonyTransferCall;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @param GoogleCloudDialogflowCxV3beta1ResponseMessageText
|
---|
193 | */
|
---|
194 | public function setText(GoogleCloudDialogflowCxV3beta1ResponseMessageText $text)
|
---|
195 | {
|
---|
196 | $this->text = $text;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @return GoogleCloudDialogflowCxV3beta1ResponseMessageText
|
---|
200 | */
|
---|
201 | public function getText()
|
---|
202 | {
|
---|
203 | return $this->text;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @param GoogleCloudDialogflowCxV3beta1ToolCall
|
---|
207 | */
|
---|
208 | public function setToolCall(GoogleCloudDialogflowCxV3beta1ToolCall $toolCall)
|
---|
209 | {
|
---|
210 | $this->toolCall = $toolCall;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @return GoogleCloudDialogflowCxV3beta1ToolCall
|
---|
214 | */
|
---|
215 | public function getToolCall()
|
---|
216 | {
|
---|
217 | return $this->toolCall;
|
---|
218 | }
|
---|
219 | }
|
---|
220 |
|
---|
221 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
222 | class_alias(GoogleCloudDialogflowCxV3beta1ResponseMessage::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3beta1ResponseMessage');
|
---|