# Google Cloud Dialogflow V2 Client - Class ConversationModel (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ConversationModel.

Represents a conversation model.

Generated from protobuf message `google.cloud.dialogflow.v2.ConversationModel`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` ConversationModel resource name. Format: `projects/<Project ID>/conversationModels/<Conversation Model ID>` |
| `↳ display_name` | `string` Required. The display name of the model. At most 64 bytes long. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Creation time of this model. |
| `↳ datasets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.InputDataset>` Required. Datasets used to create model. |
| `↳ state` | `int` Output only. State of the model. A model can only serve prediction requests after it gets deployed. |
| `↳ language_code` | `string` Language code for the conversation model. If not specified, the language is en-US. Language at ConversationModel should be set for all non en-us languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". |
| `↳ article_suggestion_model_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ArticleSuggestionModelMetadata` Metadata for article suggestion models. |
| `↳ smart_reply_model_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SmartReplyModelMetadata` Metadata for smart reply models. |
| `↳ satisfies_pzs` | `bool` Output only. A read only boolean field reflecting Zone Separation status of the model. |
| `↳ satisfies_pzi` | `bool` Output only. A read only boolean field reflecting Zone Isolation status of the model. |

### getName

ConversationModel resource name. Format:
`projects/<Project ID>/conversationModels/<Conversation Model ID>`

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

### setName

ConversationModel resource name. Format:
`projects/<Project ID>/conversationModels/<Conversation Model ID>`

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

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

### getDisplayName

Required. The display name of the model. At most 64 bytes long.

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

### setDisplayName

Required. The display name of the model. At most 64 bytes long.

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

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

### getCreateTime

Output only. Creation time of this model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Creation time of this model.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getDatasets

Required. Datasets used to create model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.InputDataset>` |   |

### setDatasets

Required. Datasets used to create model.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.InputDataset>` |

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

### getState

Output only. State of the model. A model can only serve prediction requests
after it gets deployed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationModel.State). |

### setState

Output only. State of the model. A model can only serve prediction requests
after it gets deployed.

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

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

### getLanguageCode

Language code for the conversation model. If not specified, the language
is en-US. Language at ConversationModel should be set for all non en-us
languages.

This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
language tag. Example: "en-US".

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

### setLanguageCode

Language code for the conversation model. If not specified, the language
is en-US. Language at ConversationModel should be set for all non en-us
languages.

This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
language tag. Example: "en-US".

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

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

### getArticleSuggestionModelMetadata

Metadata for article suggestion models.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ArticleSuggestionModelMetadata|null` |   |

### hasArticleSuggestionModelMetadata

### setArticleSuggestionModelMetadata

Metadata for article suggestion models.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ArticleSuggestionModelMetadata` |

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

### getSmartReplyModelMetadata

Metadata for smart reply models.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SmartReplyModelMetadata|null` |   |

### hasSmartReplyModelMetadata

### setSmartReplyModelMetadata

Metadata for smart reply models.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SmartReplyModelMetadata` |

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

### getSatisfiesPzs

Output only. A read only boolean field reflecting Zone Separation
status of the model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSatisfiesPzs

### clearSatisfiesPzs

### setSatisfiesPzs

Output only. A read only boolean field reflecting Zone Separation
status of the model.

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

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

### getSatisfiesPzi

Output only. A read only boolean field reflecting Zone Isolation status
of the model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSatisfiesPzi

### clearSatisfiesPzi

### setSatisfiesPzi

Output only. A read only boolean field reflecting Zone Isolation status
of the model.

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

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

### getModelMetadata

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