# Google Cloud Dialogflow Cx V3 Client - Class PersonalizationSettings (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class PersonalizationSettings.

Settings for end user personalization.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Agent.PersonalizationSettings`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3 \\ Agent

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ default_end_user_metadata` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the [QueryParameters.end_user_metadata](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryParameters#_Google_Cloud_Dialogflow_Cx_V3_QueryParameters__getEndUserMetadata__) in [DetectIntentRequest.query_params](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getQueryParams__) during query processing. |

### getDefaultEndUserMetadata

Optional. Default end user metadata, used when processing DetectIntent
requests. Recommended to be filled as a template instead of hard-coded
value, for example { "age": "$session.params.age" }. The data will be
merged with the
[QueryParameters.end_user_metadata](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryParameters#_Google_Cloud_Dialogflow_Cx_V3_QueryParameters__getEndUserMetadata__)
in
[DetectIntentRequest.query_params](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getQueryParams__)
during query processing.

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

### hasDefaultEndUserMetadata

### clearDefaultEndUserMetadata

### setDefaultEndUserMetadata

Optional. Default end user metadata, used when processing DetectIntent
requests. Recommended to be filled as a template instead of hard-coded
value, for example { "age": "$session.params.age" }. The data will be
merged with the
[QueryParameters.end_user_metadata](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryParameters#_Google_Cloud_Dialogflow_Cx_V3_QueryParameters__getEndUserMetadata__)
in
[DetectIntentRequest.query_params](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getQueryParams__)
during query processing.

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

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