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 GoogleCloudDialogflowCxV3beta1ResponseMessage extends \Google\Model
21{
22  protected $conversationSuccessType = GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess::class;
23  protected $conversationSuccessDataType = '';
24  protected $endInteractionType = GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction::class;
25  protected $endInteractionDataType = '';
26  protected $liveAgentHandoffType = GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff::class;
27  protected $liveAgentHandoffDataType = '';
28  protected $mixedAudioType = GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio::class;
29  protected $mixedAudioDataType = '';
30  protected $outputAudioTextType = GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText::class;
31  protected $outputAudioTextDataType = '';
32  /**
33   * @var array[]
34   */
35  public $payload;
36  protected $playAudioType = GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio::class;
37  protected $playAudioDataType = '';
38  protected $telephonyTransferCallType = GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall::class;
39  protected $telephonyTransferCallDataType = '';
40  protected $textType = GoogleCloudDialogflowCxV3beta1ResponseMessageText::class;
41  protected $textDataType = '';
42
43  /**
44   * @param GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
45   */
46  public function setConversationSuccess(GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess $conversationSuccess)
47  {
48    $this->conversationSuccess = $conversationSuccess;
49  }
50  /**
51   * @return GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
52   */
53  public function getConversationSuccess()
54  {
55    return $this->conversationSuccess;
56  }
57  /**
58   * @param GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction
59   */
60  public function setEndInteraction(GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction $endInteraction)
61  {
62    $this->endInteraction = $endInteraction;
63  }
64  /**
65   * @return GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction
66   */
67  public function getEndInteraction()
68  {
69    return $this->endInteraction;
70  }
71  /**
72   * @param GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
73   */
74  public function setLiveAgentHandoff(GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff $liveAgentHandoff)
75  {
76    $this->liveAgentHandoff = $liveAgentHandoff;
77  }
78  /**
79   * @return GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
80   */
81  public function getLiveAgentHandoff()
82  {
83    return $this->liveAgentHandoff;
84  }
85  /**
86   * @param GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
87   */
88  public function setMixedAudio(GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio $mixedAudio)
89  {
90    $this->mixedAudio = $mixedAudio;
91  }
92  /**
93   * @return GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
94   */
95  public function getMixedAudio()
96  {
97    return $this->mixedAudio;
98  }
99  /**
100   * @param GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
101   */
102  public function setOutputAudioText(GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText $outputAudioText)
103  {
104    $this->outputAudioText = $outputAudioText;
105  }
106  /**
107   * @return GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
108   */
109  public function getOutputAudioText()
110  {
111    return $this->outputAudioText;
112  }
113  /**
114   * @param array[]
115   */
116  public function setPayload($payload)
117  {
118    $this->payload = $payload;
119  }
120  /**
121   * @return array[]
122   */
123  public function getPayload()
124  {
125    return $this->payload;
126  }
127  /**
128   * @param GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
129   */
130  public function setPlayAudio(GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio $playAudio)
131  {
132    $this->playAudio = $playAudio;
133  }
134  /**
135   * @return GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
136   */
137  public function getPlayAudio()
138  {
139    return $this->playAudio;
140  }
141  /**
142   * @param GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
143   */
144  public function setTelephonyTransferCall(GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall $telephonyTransferCall)
145  {
146    $this->telephonyTransferCall = $telephonyTransferCall;
147  }
148  /**
149   * @return GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
150   */
151  public function getTelephonyTransferCall()
152  {
153    return $this->telephonyTransferCall;
154  }
155  /**
156   * @param GoogleCloudDialogflowCxV3beta1ResponseMessageText
157   */
158  public function setText(GoogleCloudDialogflowCxV3beta1ResponseMessageText $text)
159  {
160    $this->text = $text;
161  }
162  /**
163   * @return GoogleCloudDialogflowCxV3beta1ResponseMessageText
164   */
165  public function getText()
166  {
167    return $this->text;
168  }
169}
170
171// Adding a class alias for backwards compatibility with the previous class name.
172class_alias(GoogleCloudDialogflowCxV3beta1ResponseMessage::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3beta1ResponseMessage');
173