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

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setName

ConversationModel resource name. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. The display name of the model. At most 64 bytes long.

Returns
TypeDescription
string

setDisplayName

Required. The display name of the model. At most 64 bytes long.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Creation time of this model.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation time of this model.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDatasets

Required. Datasets used to create model.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDatasets

Required. Datasets used to create model.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\V2\InputDataset>
Returns
TypeDescription
$this

getState

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

Returns
TypeDescription
int

setState

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

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getArticleSuggestionModelMetadata

Metadata for article suggestion models.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\ArticleSuggestionModelMetadata|null

hasArticleSuggestionModelMetadata

setArticleSuggestionModelMetadata

Metadata for article suggestion models.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\ArticleSuggestionModelMetadata
Returns
TypeDescription
$this

getSmartReplyModelMetadata

Metadata for smart reply models.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\SmartReplyModelMetadata|null

hasSmartReplyModelMetadata

setSmartReplyModelMetadata

Metadata for smart reply models.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\SmartReplyModelMetadata
Returns
TypeDescription
$this

getModelMetadata

Returns
TypeDescription
string