# Google Cloud Dialogflow V2 Client - Class GenerateStatelessSuggestionRequest (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 GenerateStatelessSuggestionRequest.

The request message for
[Conversations.GenerateStatelessSuggestion](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Client.ConversationsClient#_Google_Cloud_Dialogflow_V2_Client_ConversationsClient__generateStatelessSuggestion__).

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

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource to charge for the Suggestion's generation. Format: `projects/<Project ID>/locations/<Location ID>`. |
| `↳ generator` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.Generator` Uncreated generator. It should be a complete generator that includes all information about the generator. |
| `↳ generator_name` | `string` The resource name of the existing created generator. Format: `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>` |
| `↳ context_references` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator. |
| `↳ conversation_context` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationContext` Optional. Context of the conversation, including transcripts. |
| `↳ trigger_events` | `int[]` Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here. |
| `↳ security_settings` | `string` Optional. Name of the CX SecuritySettings which is used to redact generated response. If this field is empty, try to fetch v2 security_settings, which is a project level setting. If this field is empty and no v2 security_settings set up in this project, no redaction will be done. Format: `projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`. |

### getParent

Required. The parent resource to charge for the Suggestion's generation.

Format: `projects/<Project ID>/locations/<Location ID>`.

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

### setParent

Required. The parent resource to charge for the Suggestion's generation.

Format: `projects/<Project ID>/locations/<Location ID>`.

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

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

### getGenerator

Uncreated generator. It should be a complete generator that includes all
information about the generator.

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

### hasGenerator

### setGenerator

Uncreated generator. It should be a complete generator that includes all
information about the generator.

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

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

### getGeneratorName

The resource name of the existing created generator. Format:
`projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`

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

### hasGeneratorName

### setGeneratorName

The resource name of the existing created generator. Format:
`projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`

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

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

### getContextReferences

Optional. A section of ingested context information. The key is the name of
the context reference and the value contains the contents of the context
reference. The key is used to incorporate ingested context references to
enhance the generator.

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

### setContextReferences

Optional. A section of ingested context information. The key is the name of
the context reference and the value contains the contents of the context
reference. The key is used to incorporate ingested context references to
enhance the generator.

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

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

### getConversationContext

Optional. Context of the conversation, including transcripts.

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

### hasConversationContext

### clearConversationContext

### setConversationContext

Optional. Context of the conversation, including transcripts.

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

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

### getTriggerEvents

Optional. A list of trigger events. Generator will be triggered only if
it's trigger event is included here.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setTriggerEvents

Optional. A list of trigger events. Generator will be triggered only if
it's trigger event is included here.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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

### getSecuritySettings

Optional. Name of the CX SecuritySettings which is used to redact generated
response. If this field is empty, try to fetch v2 security_settings, which
is a project level setting. If this field is empty and no v2
security_settings set up in this project, no redaction will be done.

Format:
`projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
Settings ID>`.

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

### setSecuritySettings

Optional. Name of the CX SecuritySettings which is used to redact generated
response. If this field is empty, try to fetch v2 security_settings, which
is a project level setting. If this field is empty and no v2
security_settings set up in this project, no redaction will be done.

Format:
`projects/<Project ID>/locations/<Location ID>/securitySettings/<Security
Settings ID>`.

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

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

### getGeneratorResource

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