[e3d4e0a] | 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\Aiplatform;
|
---|
| 19 |
|
---|
| 20 | class GoogleCloudAiplatformV1GenerationConfig extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'stopSequences';
|
---|
| 23 | /**
|
---|
| 24 | * @var bool
|
---|
| 25 | */
|
---|
| 26 | public $audioTimestamp;
|
---|
| 27 | /**
|
---|
| 28 | * @var int
|
---|
| 29 | */
|
---|
| 30 | public $candidateCount;
|
---|
| 31 | /**
|
---|
| 32 | * @var float
|
---|
| 33 | */
|
---|
| 34 | public $frequencyPenalty;
|
---|
| 35 | /**
|
---|
| 36 | * @var int
|
---|
| 37 | */
|
---|
| 38 | public $logprobs;
|
---|
| 39 | /**
|
---|
| 40 | * @var int
|
---|
| 41 | */
|
---|
| 42 | public $maxOutputTokens;
|
---|
| 43 | /**
|
---|
| 44 | * @var float
|
---|
| 45 | */
|
---|
| 46 | public $presencePenalty;
|
---|
| 47 | /**
|
---|
| 48 | * @var bool
|
---|
| 49 | */
|
---|
| 50 | public $responseLogprobs;
|
---|
| 51 | /**
|
---|
| 52 | * @var string
|
---|
| 53 | */
|
---|
| 54 | public $responseMimeType;
|
---|
| 55 | protected $responseSchemaType = GoogleCloudAiplatformV1Schema::class;
|
---|
| 56 | protected $responseSchemaDataType = '';
|
---|
| 57 | protected $routingConfigType = GoogleCloudAiplatformV1GenerationConfigRoutingConfig::class;
|
---|
| 58 | protected $routingConfigDataType = '';
|
---|
| 59 | /**
|
---|
| 60 | * @var int
|
---|
| 61 | */
|
---|
| 62 | public $seed;
|
---|
| 63 | /**
|
---|
| 64 | * @var string[]
|
---|
| 65 | */
|
---|
| 66 | public $stopSequences;
|
---|
| 67 | /**
|
---|
| 68 | * @var float
|
---|
| 69 | */
|
---|
| 70 | public $temperature;
|
---|
| 71 | /**
|
---|
| 72 | * @var float
|
---|
| 73 | */
|
---|
| 74 | public $topK;
|
---|
| 75 | /**
|
---|
| 76 | * @var float
|
---|
| 77 | */
|
---|
| 78 | public $topP;
|
---|
| 79 |
|
---|
| 80 | /**
|
---|
| 81 | * @param bool
|
---|
| 82 | */
|
---|
| 83 | public function setAudioTimestamp($audioTimestamp)
|
---|
| 84 | {
|
---|
| 85 | $this->audioTimestamp = $audioTimestamp;
|
---|
| 86 | }
|
---|
| 87 | /**
|
---|
| 88 | * @return bool
|
---|
| 89 | */
|
---|
| 90 | public function getAudioTimestamp()
|
---|
| 91 | {
|
---|
| 92 | return $this->audioTimestamp;
|
---|
| 93 | }
|
---|
| 94 | /**
|
---|
| 95 | * @param int
|
---|
| 96 | */
|
---|
| 97 | public function setCandidateCount($candidateCount)
|
---|
| 98 | {
|
---|
| 99 | $this->candidateCount = $candidateCount;
|
---|
| 100 | }
|
---|
| 101 | /**
|
---|
| 102 | * @return int
|
---|
| 103 | */
|
---|
| 104 | public function getCandidateCount()
|
---|
| 105 | {
|
---|
| 106 | return $this->candidateCount;
|
---|
| 107 | }
|
---|
| 108 | /**
|
---|
| 109 | * @param float
|
---|
| 110 | */
|
---|
| 111 | public function setFrequencyPenalty($frequencyPenalty)
|
---|
| 112 | {
|
---|
| 113 | $this->frequencyPenalty = $frequencyPenalty;
|
---|
| 114 | }
|
---|
| 115 | /**
|
---|
| 116 | * @return float
|
---|
| 117 | */
|
---|
| 118 | public function getFrequencyPenalty()
|
---|
| 119 | {
|
---|
| 120 | return $this->frequencyPenalty;
|
---|
| 121 | }
|
---|
| 122 | /**
|
---|
| 123 | * @param int
|
---|
| 124 | */
|
---|
| 125 | public function setLogprobs($logprobs)
|
---|
| 126 | {
|
---|
| 127 | $this->logprobs = $logprobs;
|
---|
| 128 | }
|
---|
| 129 | /**
|
---|
| 130 | * @return int
|
---|
| 131 | */
|
---|
| 132 | public function getLogprobs()
|
---|
| 133 | {
|
---|
| 134 | return $this->logprobs;
|
---|
| 135 | }
|
---|
| 136 | /**
|
---|
| 137 | * @param int
|
---|
| 138 | */
|
---|
| 139 | public function setMaxOutputTokens($maxOutputTokens)
|
---|
| 140 | {
|
---|
| 141 | $this->maxOutputTokens = $maxOutputTokens;
|
---|
| 142 | }
|
---|
| 143 | /**
|
---|
| 144 | * @return int
|
---|
| 145 | */
|
---|
| 146 | public function getMaxOutputTokens()
|
---|
| 147 | {
|
---|
| 148 | return $this->maxOutputTokens;
|
---|
| 149 | }
|
---|
| 150 | /**
|
---|
| 151 | * @param float
|
---|
| 152 | */
|
---|
| 153 | public function setPresencePenalty($presencePenalty)
|
---|
| 154 | {
|
---|
| 155 | $this->presencePenalty = $presencePenalty;
|
---|
| 156 | }
|
---|
| 157 | /**
|
---|
| 158 | * @return float
|
---|
| 159 | */
|
---|
| 160 | public function getPresencePenalty()
|
---|
| 161 | {
|
---|
| 162 | return $this->presencePenalty;
|
---|
| 163 | }
|
---|
| 164 | /**
|
---|
| 165 | * @param bool
|
---|
| 166 | */
|
---|
| 167 | public function setResponseLogprobs($responseLogprobs)
|
---|
| 168 | {
|
---|
| 169 | $this->responseLogprobs = $responseLogprobs;
|
---|
| 170 | }
|
---|
| 171 | /**
|
---|
| 172 | * @return bool
|
---|
| 173 | */
|
---|
| 174 | public function getResponseLogprobs()
|
---|
| 175 | {
|
---|
| 176 | return $this->responseLogprobs;
|
---|
| 177 | }
|
---|
| 178 | /**
|
---|
| 179 | * @param string
|
---|
| 180 | */
|
---|
| 181 | public function setResponseMimeType($responseMimeType)
|
---|
| 182 | {
|
---|
| 183 | $this->responseMimeType = $responseMimeType;
|
---|
| 184 | }
|
---|
| 185 | /**
|
---|
| 186 | * @return string
|
---|
| 187 | */
|
---|
| 188 | public function getResponseMimeType()
|
---|
| 189 | {
|
---|
| 190 | return $this->responseMimeType;
|
---|
| 191 | }
|
---|
| 192 | /**
|
---|
| 193 | * @param GoogleCloudAiplatformV1Schema
|
---|
| 194 | */
|
---|
| 195 | public function setResponseSchema(GoogleCloudAiplatformV1Schema $responseSchema)
|
---|
| 196 | {
|
---|
| 197 | $this->responseSchema = $responseSchema;
|
---|
| 198 | }
|
---|
| 199 | /**
|
---|
| 200 | * @return GoogleCloudAiplatformV1Schema
|
---|
| 201 | */
|
---|
| 202 | public function getResponseSchema()
|
---|
| 203 | {
|
---|
| 204 | return $this->responseSchema;
|
---|
| 205 | }
|
---|
| 206 | /**
|
---|
| 207 | * @param GoogleCloudAiplatformV1GenerationConfigRoutingConfig
|
---|
| 208 | */
|
---|
| 209 | public function setRoutingConfig(GoogleCloudAiplatformV1GenerationConfigRoutingConfig $routingConfig)
|
---|
| 210 | {
|
---|
| 211 | $this->routingConfig = $routingConfig;
|
---|
| 212 | }
|
---|
| 213 | /**
|
---|
| 214 | * @return GoogleCloudAiplatformV1GenerationConfigRoutingConfig
|
---|
| 215 | */
|
---|
| 216 | public function getRoutingConfig()
|
---|
| 217 | {
|
---|
| 218 | return $this->routingConfig;
|
---|
| 219 | }
|
---|
| 220 | /**
|
---|
| 221 | * @param int
|
---|
| 222 | */
|
---|
| 223 | public function setSeed($seed)
|
---|
| 224 | {
|
---|
| 225 | $this->seed = $seed;
|
---|
| 226 | }
|
---|
| 227 | /**
|
---|
| 228 | * @return int
|
---|
| 229 | */
|
---|
| 230 | public function getSeed()
|
---|
| 231 | {
|
---|
| 232 | return $this->seed;
|
---|
| 233 | }
|
---|
| 234 | /**
|
---|
| 235 | * @param string[]
|
---|
| 236 | */
|
---|
| 237 | public function setStopSequences($stopSequences)
|
---|
| 238 | {
|
---|
| 239 | $this->stopSequences = $stopSequences;
|
---|
| 240 | }
|
---|
| 241 | /**
|
---|
| 242 | * @return string[]
|
---|
| 243 | */
|
---|
| 244 | public function getStopSequences()
|
---|
| 245 | {
|
---|
| 246 | return $this->stopSequences;
|
---|
| 247 | }
|
---|
| 248 | /**
|
---|
| 249 | * @param float
|
---|
| 250 | */
|
---|
| 251 | public function setTemperature($temperature)
|
---|
| 252 | {
|
---|
| 253 | $this->temperature = $temperature;
|
---|
| 254 | }
|
---|
| 255 | /**
|
---|
| 256 | * @return float
|
---|
| 257 | */
|
---|
| 258 | public function getTemperature()
|
---|
| 259 | {
|
---|
| 260 | return $this->temperature;
|
---|
| 261 | }
|
---|
| 262 | /**
|
---|
| 263 | * @param float
|
---|
| 264 | */
|
---|
| 265 | public function setTopK($topK)
|
---|
| 266 | {
|
---|
| 267 | $this->topK = $topK;
|
---|
| 268 | }
|
---|
| 269 | /**
|
---|
| 270 | * @return float
|
---|
| 271 | */
|
---|
| 272 | public function getTopK()
|
---|
| 273 | {
|
---|
| 274 | return $this->topK;
|
---|
| 275 | }
|
---|
| 276 | /**
|
---|
| 277 | * @param float
|
---|
| 278 | */
|
---|
| 279 | public function setTopP($topP)
|
---|
| 280 | {
|
---|
| 281 | $this->topP = $topP;
|
---|
| 282 | }
|
---|
| 283 | /**
|
---|
| 284 | * @return float
|
---|
| 285 | */
|
---|
| 286 | public function getTopP()
|
---|
| 287 | {
|
---|
| 288 | return $this->topP;
|
---|
| 289 | }
|
---|
| 290 | }
|
---|
| 291 |
|
---|
| 292 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 293 | class_alias(GoogleCloudAiplatformV1GenerationConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1GenerationConfig');
|
---|