Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class GenerateStatelessSuggestionRequest.
The request message for Conversations.GenerateStatelessSuggestion.
Generated from protobuf message google.cloud.dialogflow.v2.GenerateStatelessSuggestionRequest
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__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: |
↳ generator |
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: |
↳ conversation_context |
ConversationContext
Optional. Context of the conversation, including transcripts. |
↳ trigger_events |
array
Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here. |
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 |
Generator|null |
hasGenerator
setGenerator
Uncreated generator. It should be a complete generator that includes all information about the generator.
Parameter | |
---|---|
Name | Description |
var |
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 |
getConversationContext
Optional. Context of the conversation, including transcripts.
Returns | |
---|---|
Type | Description |
ConversationContext|null |
hasConversationContext
clearConversationContext
setConversationContext
Optional. Context of the conversation, including transcripts.
Parameter | |
---|---|
Name | Description |
var |
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 |
Google\Protobuf\Internal\RepeatedField |
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 |
getGeneratorResource
Returns | |
---|---|
Type | Description |
string |