Google Cloud Dialogflow V2 Client - Class GenerateStatelessSuggestionRequest (2.1.0)

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 \ 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 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|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 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

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
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|Google\Protobuf\Internal\MapField
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