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