|
| 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\AgentRegistry; |
| 19 | + |
| 20 | +class Agent extends \Google\Collection |
| 21 | +{ |
| 22 | + protected $collection_key = 'skills'; |
| 23 | + /** |
| 24 | + * Output only. A stable, globally unique identifier for agents. |
| 25 | + * |
| 26 | + * @var string |
| 27 | + */ |
| 28 | + public $agentId; |
| 29 | + /** |
| 30 | + * Output only. Attributes of the Agent. Valid values: * |
| 31 | + * `agentregistry.googleapis.com/system/Framework`: {"framework": "google- |
| 32 | + * adk"} - the agent framework used to develop the Agent. Example values: |
| 33 | + * "google-adk", "langchain", "custom". * |
| 34 | + * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal": |
| 35 | + * "principal://..."} - the runtime identity associated with the Agent. * |
| 36 | + * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."} - |
| 37 | + * the URI of the underlying resource hosting the Agent, for example, the |
| 38 | + * Reasoning Engine URI. |
| 39 | + * |
| 40 | + * @var array[] |
| 41 | + */ |
| 42 | + public $attributes; |
| 43 | + protected $cardType = Card::class; |
| 44 | + protected $cardDataType = ''; |
| 45 | + /** |
| 46 | + * Output only. Create time. |
| 47 | + * |
| 48 | + * @var string |
| 49 | + */ |
| 50 | + public $createTime; |
| 51 | + /** |
| 52 | + * Output only. The description of the Agent, often obtained from the A2A |
| 53 | + * Agent Card. Empty if Agent Card has no description. |
| 54 | + * |
| 55 | + * @var string |
| 56 | + */ |
| 57 | + public $description; |
| 58 | + /** |
| 59 | + * Output only. The display name of the agent, often obtained from the A2A |
| 60 | + * Agent Card. |
| 61 | + * |
| 62 | + * @var string |
| 63 | + */ |
| 64 | + public $displayName; |
| 65 | + /** |
| 66 | + * Output only. The location where agent is hosted. The value is defined by |
| 67 | + * the hosting environment (i.e. cloud provider). |
| 68 | + * |
| 69 | + * @var string |
| 70 | + */ |
| 71 | + public $location; |
| 72 | + /** |
| 73 | + * Identifier. The resource name of an Agent. Format: |
| 74 | + * `projects/{project}/locations/{location}/agents/{agent}`. |
| 75 | + * |
| 76 | + * @var string |
| 77 | + */ |
| 78 | + public $name; |
| 79 | + protected $protocolsType = Protocol::class; |
| 80 | + protected $protocolsDataType = 'array'; |
| 81 | + protected $skillsType = Skill::class; |
| 82 | + protected $skillsDataType = 'array'; |
| 83 | + /** |
| 84 | + * Output only. A universally unique identifier for the Agent. |
| 85 | + * |
| 86 | + * @var string |
| 87 | + */ |
| 88 | + public $uid; |
| 89 | + /** |
| 90 | + * Output only. Update time. |
| 91 | + * |
| 92 | + * @var string |
| 93 | + */ |
| 94 | + public $updateTime; |
| 95 | + /** |
| 96 | + * Output only. The version of the Agent, often obtained from the A2A Agent |
| 97 | + * Card. Empty if Agent Card has no version or agent is not an A2A Agent. |
| 98 | + * |
| 99 | + * @var string |
| 100 | + */ |
| 101 | + public $version; |
| 102 | + |
| 103 | + /** |
| 104 | + * Output only. A stable, globally unique identifier for agents. |
| 105 | + * |
| 106 | + * @param string $agentId |
| 107 | + */ |
| 108 | + public function setAgentId($agentId) |
| 109 | + { |
| 110 | + $this->agentId = $agentId; |
| 111 | + } |
| 112 | + /** |
| 113 | + * @return string |
| 114 | + */ |
| 115 | + public function getAgentId() |
| 116 | + { |
| 117 | + return $this->agentId; |
| 118 | + } |
| 119 | + /** |
| 120 | + * Output only. Attributes of the Agent. Valid values: * |
| 121 | + * `agentregistry.googleapis.com/system/Framework`: {"framework": "google- |
| 122 | + * adk"} - the agent framework used to develop the Agent. Example values: |
| 123 | + * "google-adk", "langchain", "custom". * |
| 124 | + * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal": |
| 125 | + * "principal://..."} - the runtime identity associated with the Agent. * |
| 126 | + * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."} - |
| 127 | + * the URI of the underlying resource hosting the Agent, for example, the |
| 128 | + * Reasoning Engine URI. |
| 129 | + * |
| 130 | + * @param array[] $attributes |
| 131 | + */ |
| 132 | + public function setAttributes($attributes) |
| 133 | + { |
| 134 | + $this->attributes = $attributes; |
| 135 | + } |
| 136 | + /** |
| 137 | + * @return array[] |
| 138 | + */ |
| 139 | + public function getAttributes() |
| 140 | + { |
| 141 | + return $this->attributes; |
| 142 | + } |
| 143 | + /** |
| 144 | + * Output only. Full Agent Card payload, when available. |
| 145 | + * |
| 146 | + * @param Card $card |
| 147 | + */ |
| 148 | + public function setCard(Card $card) |
| 149 | + { |
| 150 | + $this->card = $card; |
| 151 | + } |
| 152 | + /** |
| 153 | + * @return Card |
| 154 | + */ |
| 155 | + public function getCard() |
| 156 | + { |
| 157 | + return $this->card; |
| 158 | + } |
| 159 | + /** |
| 160 | + * Output only. Create time. |
| 161 | + * |
| 162 | + * @param string $createTime |
| 163 | + */ |
| 164 | + public function setCreateTime($createTime) |
| 165 | + { |
| 166 | + $this->createTime = $createTime; |
| 167 | + } |
| 168 | + /** |
| 169 | + * @return string |
| 170 | + */ |
| 171 | + public function getCreateTime() |
| 172 | + { |
| 173 | + return $this->createTime; |
| 174 | + } |
| 175 | + /** |
| 176 | + * Output only. The description of the Agent, often obtained from the A2A |
| 177 | + * Agent Card. Empty if Agent Card has no description. |
| 178 | + * |
| 179 | + * @param string $description |
| 180 | + */ |
| 181 | + public function setDescription($description) |
| 182 | + { |
| 183 | + $this->description = $description; |
| 184 | + } |
| 185 | + /** |
| 186 | + * @return string |
| 187 | + */ |
| 188 | + public function getDescription() |
| 189 | + { |
| 190 | + return $this->description; |
| 191 | + } |
| 192 | + /** |
| 193 | + * Output only. The display name of the agent, often obtained from the A2A |
| 194 | + * Agent Card. |
| 195 | + * |
| 196 | + * @param string $displayName |
| 197 | + */ |
| 198 | + public function setDisplayName($displayName) |
| 199 | + { |
| 200 | + $this->displayName = $displayName; |
| 201 | + } |
| 202 | + /** |
| 203 | + * @return string |
| 204 | + */ |
| 205 | + public function getDisplayName() |
| 206 | + { |
| 207 | + return $this->displayName; |
| 208 | + } |
| 209 | + /** |
| 210 | + * Output only. The location where agent is hosted. The value is defined by |
| 211 | + * the hosting environment (i.e. cloud provider). |
| 212 | + * |
| 213 | + * @param string $location |
| 214 | + */ |
| 215 | + public function setLocation($location) |
| 216 | + { |
| 217 | + $this->location = $location; |
| 218 | + } |
| 219 | + /** |
| 220 | + * @return string |
| 221 | + */ |
| 222 | + public function getLocation() |
| 223 | + { |
| 224 | + return $this->location; |
| 225 | + } |
| 226 | + /** |
| 227 | + * Identifier. The resource name of an Agent. Format: |
| 228 | + * `projects/{project}/locations/{location}/agents/{agent}`. |
| 229 | + * |
| 230 | + * @param string $name |
| 231 | + */ |
| 232 | + public function setName($name) |
| 233 | + { |
| 234 | + $this->name = $name; |
| 235 | + } |
| 236 | + /** |
| 237 | + * @return string |
| 238 | + */ |
| 239 | + public function getName() |
| 240 | + { |
| 241 | + return $this->name; |
| 242 | + } |
| 243 | + /** |
| 244 | + * Output only. The connection details for the Agent. |
| 245 | + * |
| 246 | + * @param Protocol[] $protocols |
| 247 | + */ |
| 248 | + public function setProtocols($protocols) |
| 249 | + { |
| 250 | + $this->protocols = $protocols; |
| 251 | + } |
| 252 | + /** |
| 253 | + * @return Protocol[] |
| 254 | + */ |
| 255 | + public function getProtocols() |
| 256 | + { |
| 257 | + return $this->protocols; |
| 258 | + } |
| 259 | + /** |
| 260 | + * Output only. Skills the agent possesses, often obtained from the A2A Agent |
| 261 | + * Card. |
| 262 | + * |
| 263 | + * @param Skill[] $skills |
| 264 | + */ |
| 265 | + public function setSkills($skills) |
| 266 | + { |
| 267 | + $this->skills = $skills; |
| 268 | + } |
| 269 | + /** |
| 270 | + * @return Skill[] |
| 271 | + */ |
| 272 | + public function getSkills() |
| 273 | + { |
| 274 | + return $this->skills; |
| 275 | + } |
| 276 | + /** |
| 277 | + * Output only. A universally unique identifier for the Agent. |
| 278 | + * |
| 279 | + * @param string $uid |
| 280 | + */ |
| 281 | + public function setUid($uid) |
| 282 | + { |
| 283 | + $this->uid = $uid; |
| 284 | + } |
| 285 | + /** |
| 286 | + * @return string |
| 287 | + */ |
| 288 | + public function getUid() |
| 289 | + { |
| 290 | + return $this->uid; |
| 291 | + } |
| 292 | + /** |
| 293 | + * Output only. Update time. |
| 294 | + * |
| 295 | + * @param string $updateTime |
| 296 | + */ |
| 297 | + public function setUpdateTime($updateTime) |
| 298 | + { |
| 299 | + $this->updateTime = $updateTime; |
| 300 | + } |
| 301 | + /** |
| 302 | + * @return string |
| 303 | + */ |
| 304 | + public function getUpdateTime() |
| 305 | + { |
| 306 | + return $this->updateTime; |
| 307 | + } |
| 308 | + /** |
| 309 | + * Output only. The version of the Agent, often obtained from the A2A Agent |
| 310 | + * Card. Empty if Agent Card has no version or agent is not an A2A Agent. |
| 311 | + * |
| 312 | + * @param string $version |
| 313 | + */ |
| 314 | + public function setVersion($version) |
| 315 | + { |
| 316 | + $this->version = $version; |
| 317 | + } |
| 318 | + /** |
| 319 | + * @return string |
| 320 | + */ |
| 321 | + public function getVersion() |
| 322 | + { |
| 323 | + return $this->version; |
| 324 | + } |
| 325 | +} |
| 326 | + |
| 327 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 328 | +class_alias(Agent::class, 'Google_Service_AgentRegistry_Agent'); |
0 commit comments