AiModel.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. namespace Google\Service\SecurityCommandCenter;
  18. class AiModel extends \Google\Model
  19. {
  20. /**
  21. * Unspecified deployment platform.
  22. */
  23. public const DEPLOYMENT_PLATFORM_DEPLOYMENT_PLATFORM_UNSPECIFIED = 'DEPLOYMENT_PLATFORM_UNSPECIFIED';
  24. /**
  25. * Vertex AI.
  26. */
  27. public const DEPLOYMENT_PLATFORM_VERTEX_AI = 'VERTEX_AI';
  28. /**
  29. * Google Kubernetes Engine.
  30. */
  31. public const DEPLOYMENT_PLATFORM_GKE = 'GKE';
  32. /**
  33. * Google Compute Engine.
  34. */
  35. public const DEPLOYMENT_PLATFORM_GCE = 'GCE';
  36. /**
  37. * Fine tuned model.
  38. */
  39. public const DEPLOYMENT_PLATFORM_FINE_TUNED_MODEL = 'FINE_TUNED_MODEL';
  40. /**
  41. * The platform on which the model is deployed.
  42. *
  43. * @var string
  44. */
  45. public $deploymentPlatform;
  46. /**
  47. * The user defined display name of model. Ex. baseline-classification-model
  48. *
  49. * @var string
  50. */
  51. public $displayName;
  52. /**
  53. * The domain of the model, for example, “image-classification”.
  54. *
  55. * @var string
  56. */
  57. public $domain;
  58. /**
  59. * The name of the model library, for example, “transformers”.
  60. *
  61. * @var string
  62. */
  63. public $library;
  64. /**
  65. * The region in which the model is used, for example, “us-central1”.
  66. *
  67. * @var string
  68. */
  69. public $location;
  70. /**
  71. * The name of the AI model, for example, "gemini:1.0.0".
  72. *
  73. * @var string
  74. */
  75. public $name;
  76. /**
  77. * The publisher of the model, for example, “google” or “nvidia”.
  78. *
  79. * @var string
  80. */
  81. public $publisher;
  82. /**
  83. * The purpose of the model, for example, "Inteference" or "Training".
  84. *
  85. * @var string
  86. */
  87. public $usageCategory;
  88. /**
  89. * The platform on which the model is deployed.
  90. *
  91. * Accepted values: DEPLOYMENT_PLATFORM_UNSPECIFIED, VERTEX_AI, GKE, GCE,
  92. * FINE_TUNED_MODEL
  93. *
  94. * @param self::DEPLOYMENT_PLATFORM_* $deploymentPlatform
  95. */
  96. public function setDeploymentPlatform($deploymentPlatform)
  97. {
  98. $this->deploymentPlatform = $deploymentPlatform;
  99. }
  100. /**
  101. * @return self::DEPLOYMENT_PLATFORM_*
  102. */
  103. public function getDeploymentPlatform()
  104. {
  105. return $this->deploymentPlatform;
  106. }
  107. /**
  108. * The user defined display name of model. Ex. baseline-classification-model
  109. *
  110. * @param string $displayName
  111. */
  112. public function setDisplayName($displayName)
  113. {
  114. $this->displayName = $displayName;
  115. }
  116. /**
  117. * @return string
  118. */
  119. public function getDisplayName()
  120. {
  121. return $this->displayName;
  122. }
  123. /**
  124. * The domain of the model, for example, “image-classification”.
  125. *
  126. * @param string $domain
  127. */
  128. public function setDomain($domain)
  129. {
  130. $this->domain = $domain;
  131. }
  132. /**
  133. * @return string
  134. */
  135. public function getDomain()
  136. {
  137. return $this->domain;
  138. }
  139. /**
  140. * The name of the model library, for example, “transformers”.
  141. *
  142. * @param string $library
  143. */
  144. public function setLibrary($library)
  145. {
  146. $this->library = $library;
  147. }
  148. /**
  149. * @return string
  150. */
  151. public function getLibrary()
  152. {
  153. return $this->library;
  154. }
  155. /**
  156. * The region in which the model is used, for example, “us-central1”.
  157. *
  158. * @param string $location
  159. */
  160. public function setLocation($location)
  161. {
  162. $this->location = $location;
  163. }
  164. /**
  165. * @return string
  166. */
  167. public function getLocation()
  168. {
  169. return $this->location;
  170. }
  171. /**
  172. * The name of the AI model, for example, "gemini:1.0.0".
  173. *
  174. * @param string $name
  175. */
  176. public function setName($name)
  177. {
  178. $this->name = $name;
  179. }
  180. /**
  181. * @return string
  182. */
  183. public function getName()
  184. {
  185. return $this->name;
  186. }
  187. /**
  188. * The publisher of the model, for example, “google” or “nvidia”.
  189. *
  190. * @param string $publisher
  191. */
  192. public function setPublisher($publisher)
  193. {
  194. $this->publisher = $publisher;
  195. }
  196. /**
  197. * @return string
  198. */
  199. public function getPublisher()
  200. {
  201. return $this->publisher;
  202. }
  203. /**
  204. * The purpose of the model, for example, "Inteference" or "Training".
  205. *
  206. * @param string $usageCategory
  207. */
  208. public function setUsageCategory($usageCategory)
  209. {
  210. $this->usageCategory = $usageCategory;
  211. }
  212. /**
  213. * @return string
  214. */
  215. public function getUsageCategory()
  216. {
  217. return $this->usageCategory;
  218. }
  219. }
  220. // Adding a class alias for backwards compatibility with the previous class name.
  221. class_alias(AiModel::class, 'Google_Service_SecurityCommandCenter_AiModel');