Google Cloud Dialogflow V2 Client - Class ConversationModel (1.2.0)

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

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
Google\Protobuf\Timestamp

Output only. Creation time of this model.

↳ datasets
array< Google\Cloud\Dialogflow\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 language tag. Example: "en-US".

↳ article_suggestion_model_metadata
Google\Cloud\Dialogflow\V2\ArticleSuggestionModelMetadata

Metadata for article suggestion models.

↳ smart_reply_model_metadata
Google\Cloud\Dialogflow\V2\SmartReplyModelMetadata

Metadata for smart reply models.

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

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation time of this model.

Parameter
Name
Description
Returns
Type
Description
$this

getDatasets

Required. Datasets used to create model.

Returns
Type
Description

setDatasets

Required. Datasets used to create model.

Parameter
Name
Description
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

setState

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

Parameter
Name
Description
var
int
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 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 language tag. Example: "en-US".

Parameter
Name
Description
var
string
Returns
Type
Description
$this

Metadata for article suggestion models.

Metadata for article suggestion models.

Returns
Type
Description
$this

Metadata for smart reply models.

Metadata for smart reply models.

Returns
Type
Description
$this
Returns
Type
Description
string