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 GoogleCloudDialogflowCxV3beta1InputAudioConfig extends \Google\Collection
21{
22  protected $collection_key = 'phraseHints';
23  /**
24   * @var string
25   */
26  public $audioEncoding;
27  /**
28   * @var bool
29   */
30  public $enableWordInfo;
31  /**
32   * @var string
33   */
34  public $model;
35  /**
36   * @var string
37   */
38  public $modelVariant;
39  /**
40   * @var string[]
41   */
42  public $phraseHints;
43  /**
44   * @var int
45   */
46  public $sampleRateHertz;
47  /**
48   * @var bool
49   */
50  public $singleUtterance;
51
52  /**
53   * @param string
54   */
55  public function setAudioEncoding($audioEncoding)
56  {
57    $this->audioEncoding = $audioEncoding;
58  }
59  /**
60   * @return string
61   */
62  public function getAudioEncoding()
63  {
64    return $this->audioEncoding;
65  }
66  /**
67   * @param bool
68   */
69  public function setEnableWordInfo($enableWordInfo)
70  {
71    $this->enableWordInfo = $enableWordInfo;
72  }
73  /**
74   * @return bool
75   */
76  public function getEnableWordInfo()
77  {
78    return $this->enableWordInfo;
79  }
80  /**
81   * @param string
82   */
83  public function setModel($model)
84  {
85    $this->model = $model;
86  }
87  /**
88   * @return string
89   */
90  public function getModel()
91  {
92    return $this->model;
93  }
94  /**
95   * @param string
96   */
97  public function setModelVariant($modelVariant)
98  {
99    $this->modelVariant = $modelVariant;
100  }
101  /**
102   * @return string
103   */
104  public function getModelVariant()
105  {
106    return $this->modelVariant;
107  }
108  /**
109   * @param string[]
110   */
111  public function setPhraseHints($phraseHints)
112  {
113    $this->phraseHints = $phraseHints;
114  }
115  /**
116   * @return string[]
117   */
118  public function getPhraseHints()
119  {
120    return $this->phraseHints;
121  }
122  /**
123   * @param int
124   */
125  public function setSampleRateHertz($sampleRateHertz)
126  {
127    $this->sampleRateHertz = $sampleRateHertz;
128  }
129  /**
130   * @return int
131   */
132  public function getSampleRateHertz()
133  {
134    return $this->sampleRateHertz;
135  }
136  /**
137   * @param bool
138   */
139  public function setSingleUtterance($singleUtterance)
140  {
141    $this->singleUtterance = $singleUtterance;
142  }
143  /**
144   * @return bool
145   */
146  public function getSingleUtterance()
147  {
148    return $this->singleUtterance;
149  }
150}
151
152// Adding a class alias for backwards compatibility with the previous class name.
153class_alias(GoogleCloudDialogflowCxV3beta1InputAudioConfig::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3beta1InputAudioConfig');
154