|
17 | 17 | namespace UCloud\UAIModelverse\Apis; |
18 | 18 |
|
19 | 19 | use UCloud\Core\Response\Response; |
| 20 | +use UCloud\UAIModelverse\Models\FilterOption; |
20 | 21 |
|
21 | 22 | class ListUFSquareModelFiltersAuthResponse extends Response |
22 | 23 | { |
23 | 24 |
|
24 | 25 |
|
| 26 | + /** |
| 27 | + * ModalTypes: 模型类型筛选(一级/二级分类树) |
| 28 | + * |
| 29 | + * @return FilterOption[]|null |
| 30 | + */ |
| 31 | + public function getModalTypes() |
| 32 | + { |
| 33 | + $items = $this->get("ModalTypes"); |
| 34 | + if ($items == null) { |
| 35 | + return []; |
| 36 | + } |
| 37 | + $result = []; |
| 38 | + foreach ($items as $i => $item) { |
| 39 | + array_push($result, new FilterOption($item)); |
| 40 | + } |
| 41 | + return $result; |
| 42 | + } |
25 | 43 |
|
| 44 | + /** |
| 45 | + * ModalTypes: 模型类型筛选(一级/二级分类树) |
| 46 | + * |
| 47 | + * @param FilterOption[] $modalTypes |
| 48 | + */ |
| 49 | + public function setModalTypes(array $modalTypes) |
| 50 | + { |
| 51 | + $result = []; |
| 52 | + foreach ($modalTypes as $i => $item) { |
| 53 | + array_push($result, $item->getAll()); |
| 54 | + } |
| 55 | + return $result; |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * Manufacturers: 厂商选项 |
| 60 | + * |
| 61 | + * @return FilterOption[]|null |
| 62 | + */ |
| 63 | + public function getManufacturers() |
| 64 | + { |
| 65 | + $items = $this->get("Manufacturers"); |
| 66 | + if ($items == null) { |
| 67 | + return []; |
| 68 | + } |
| 69 | + $result = []; |
| 70 | + foreach ($items as $i => $item) { |
| 71 | + array_push($result, new FilterOption($item)); |
| 72 | + } |
| 73 | + return $result; |
| 74 | + } |
| 75 | + |
| 76 | + /** |
| 77 | + * Manufacturers: 厂商选项 |
| 78 | + * |
| 79 | + * @param FilterOption[] $manufacturers |
| 80 | + */ |
| 81 | + public function setManufacturers(array $manufacturers) |
| 82 | + { |
| 83 | + $result = []; |
| 84 | + foreach ($manufacturers as $i => $item) { |
| 85 | + array_push($result, $item->getAll()); |
| 86 | + } |
| 87 | + return $result; |
| 88 | + } |
| 89 | + |
| 90 | + /** |
| 91 | + * MaxModelLens: 最大上下文长度选项 |
| 92 | + * |
| 93 | + * @return FilterOption[]|null |
| 94 | + */ |
| 95 | + public function getMaxModelLens() |
| 96 | + { |
| 97 | + $items = $this->get("MaxModelLens"); |
| 98 | + if ($items == null) { |
| 99 | + return []; |
| 100 | + } |
| 101 | + $result = []; |
| 102 | + foreach ($items as $i => $item) { |
| 103 | + array_push($result, new FilterOption($item)); |
| 104 | + } |
| 105 | + return $result; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * MaxModelLens: 最大上下文长度选项 |
| 110 | + * |
| 111 | + * @param FilterOption[] $maxModelLens |
| 112 | + */ |
| 113 | + public function setMaxModelLens(array $maxModelLens) |
| 114 | + { |
| 115 | + $result = []; |
| 116 | + foreach ($maxModelLens as $i => $item) { |
| 117 | + array_push($result, $item->getAll()); |
| 118 | + } |
| 119 | + return $result; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Capabilities: 能力选项 |
| 124 | + * |
| 125 | + * @return FilterOption[]|null |
| 126 | + */ |
| 127 | + public function getCapabilities() |
| 128 | + { |
| 129 | + $items = $this->get("Capabilities"); |
| 130 | + if ($items == null) { |
| 131 | + return []; |
| 132 | + } |
| 133 | + $result = []; |
| 134 | + foreach ($items as $i => $item) { |
| 135 | + array_push($result, new FilterOption($item)); |
| 136 | + } |
| 137 | + return $result; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * Capabilities: 能力选项 |
| 142 | + * |
| 143 | + * @param FilterOption[] $capabilities |
| 144 | + */ |
| 145 | + public function setCapabilities(array $capabilities) |
| 146 | + { |
| 147 | + $result = []; |
| 148 | + foreach ($capabilities as $i => $item) { |
| 149 | + array_push($result, $item->getAll()); |
| 150 | + } |
| 151 | + return $result; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * InputModalities: 输入模态选项 |
| 156 | + * |
| 157 | + * @return FilterOption[]|null |
| 158 | + */ |
| 159 | + public function getInputModalities() |
| 160 | + { |
| 161 | + $items = $this->get("InputModalities"); |
| 162 | + if ($items == null) { |
| 163 | + return []; |
| 164 | + } |
| 165 | + $result = []; |
| 166 | + foreach ($items as $i => $item) { |
| 167 | + array_push($result, new FilterOption($item)); |
| 168 | + } |
| 169 | + return $result; |
| 170 | + } |
| 171 | + |
| 172 | + /** |
| 173 | + * InputModalities: 输入模态选项 |
| 174 | + * |
| 175 | + * @param FilterOption[] $inputModalities |
| 176 | + */ |
| 177 | + public function setInputModalities(array $inputModalities) |
| 178 | + { |
| 179 | + $result = []; |
| 180 | + foreach ($inputModalities as $i => $item) { |
| 181 | + array_push($result, $item->getAll()); |
| 182 | + } |
| 183 | + return $result; |
| 184 | + } |
| 185 | + |
| 186 | + /** |
| 187 | + * OutputModalities: 输出模态选项 |
| 188 | + * |
| 189 | + * @return FilterOption[]|null |
| 190 | + */ |
| 191 | + public function getOutputModalities() |
| 192 | + { |
| 193 | + $items = $this->get("OutputModalities"); |
| 194 | + if ($items == null) { |
| 195 | + return []; |
| 196 | + } |
| 197 | + $result = []; |
| 198 | + foreach ($items as $i => $item) { |
| 199 | + array_push($result, new FilterOption($item)); |
| 200 | + } |
| 201 | + return $result; |
| 202 | + } |
| 203 | + |
| 204 | + /** |
| 205 | + * OutputModalities: 输出模态选项 |
| 206 | + * |
| 207 | + * @param FilterOption[] $outputModalities |
| 208 | + */ |
| 209 | + public function setOutputModalities(array $outputModalities) |
| 210 | + { |
| 211 | + $result = []; |
| 212 | + foreach ($outputModalities as $i => $item) { |
| 213 | + array_push($result, $item->getAll()); |
| 214 | + } |
| 215 | + return $result; |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * ApiProtocols: API协议选项 |
| 220 | + * |
| 221 | + * @return FilterOption[]|null |
| 222 | + */ |
| 223 | + public function getApiProtocols() |
| 224 | + { |
| 225 | + $items = $this->get("ApiProtocols"); |
| 226 | + if ($items == null) { |
| 227 | + return []; |
| 228 | + } |
| 229 | + $result = []; |
| 230 | + foreach ($items as $i => $item) { |
| 231 | + array_push($result, new FilterOption($item)); |
| 232 | + } |
| 233 | + return $result; |
| 234 | + } |
| 235 | + |
| 236 | + /** |
| 237 | + * ApiProtocols: API协议选项 |
| 238 | + * |
| 239 | + * @param FilterOption[] $apiProtocols |
| 240 | + */ |
| 241 | + public function setApiProtocols(array $apiProtocols) |
| 242 | + { |
| 243 | + $result = []; |
| 244 | + foreach ($apiProtocols as $i => $item) { |
| 245 | + array_push($result, $item->getAll()); |
| 246 | + } |
| 247 | + return $result; |
| 248 | + } |
| 249 | + |
| 250 | + /** |
| 251 | + * InferenceRegions: 推理地域选项 |
| 252 | + * |
| 253 | + * @return FilterOption[]|null |
| 254 | + */ |
| 255 | + public function getInferenceRegions() |
| 256 | + { |
| 257 | + $items = $this->get("InferenceRegions"); |
| 258 | + if ($items == null) { |
| 259 | + return []; |
| 260 | + } |
| 261 | + $result = []; |
| 262 | + foreach ($items as $i => $item) { |
| 263 | + array_push($result, new FilterOption($item)); |
| 264 | + } |
| 265 | + return $result; |
| 266 | + } |
| 267 | + |
| 268 | + /** |
| 269 | + * InferenceRegions: 推理地域选项 |
| 270 | + * |
| 271 | + * @param FilterOption[] $inferenceRegions |
| 272 | + */ |
| 273 | + public function setInferenceRegions(array $inferenceRegions) |
| 274 | + { |
| 275 | + $result = []; |
| 276 | + foreach ($inferenceRegions as $i => $item) { |
| 277 | + array_push($result, $item->getAll()); |
| 278 | + } |
| 279 | + return $result; |
| 280 | + } |
| 281 | + |
| 282 | + /** |
| 283 | + * IsComingOffline: 模型状态选项 |
| 284 | + * |
| 285 | + * @return FilterOption[]|null |
| 286 | + */ |
| 287 | + public function getIsComingOffline() |
| 288 | + { |
| 289 | + $items = $this->get("IsComingOffline"); |
| 290 | + if ($items == null) { |
| 291 | + return []; |
| 292 | + } |
| 293 | + $result = []; |
| 294 | + foreach ($items as $i => $item) { |
| 295 | + array_push($result, new FilterOption($item)); |
| 296 | + } |
| 297 | + return $result; |
| 298 | + } |
| 299 | + |
| 300 | + /** |
| 301 | + * IsComingOffline: 模型状态选项 |
| 302 | + * |
| 303 | + * @param FilterOption[] $isComingOffline |
| 304 | + */ |
| 305 | + public function setIsComingOffline(array $isComingOffline) |
| 306 | + { |
| 307 | + $result = []; |
| 308 | + foreach ($isComingOffline as $i => $item) { |
| 309 | + array_push($result, $item->getAll()); |
| 310 | + } |
| 311 | + return $result; |
| 312 | + } |
26 | 313 | } |
0 commit comments