# Google Cloud Security Command Center V2 Client - Class AiModel (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class AiModel.

Contains information about the AI model associated with the finding.

Generated from protobuf message `google.cloud.securitycenter.v2.AiModel`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the AI model, for example, "gemini:1.0.0". |
| `↳ domain` | `string` The domain of the model, for example, "image-classification". |
| `↳ library` | `string` The name of the model library, for example, "transformers". |
| `↳ location` | `string` The region in which the model is used, for example, "us-central1". |
| `↳ publisher` | `string` The publisher of the model, for example, "google" or "nvidia". |
| `↳ deployment_platform` | `int` The platform on which the model is deployed. |
| `↳ display_name` | `string` The user defined display name of model. Ex. baseline-classification-model |

### getName

The name of the AI model, for example, "gemini:1.0.0".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The name of the AI model, for example, "gemini:1.0.0".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDomain

The domain of the model, for example, "image-classification".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDomain

The domain of the model, for example, "image-classification".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLibrary

The name of the model library, for example, "transformers".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLibrary

The name of the model library, for example, "transformers".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLocation

The region in which the model is used, for example, "us-central1".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLocation

The region in which the model is used, for example, "us-central1".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublisher

The publisher of the model, for example, "google" or "nvidia".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPublisher

The publisher of the model, for example, "google" or "nvidia".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeploymentPlatform

The platform on which the model is deployed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DeploymentPlatform](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.AiModel.DeploymentPlatform). |

### setDeploymentPlatform

The platform on which the model is deployed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DeploymentPlatform](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.AiModel.DeploymentPlatform). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

The user defined display name of model. Ex. baseline-classification-model

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

The user defined display name of model. Ex. baseline-classification-model

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |