Google Cloud Dialogflow V2 Client - Class ConversationModel (1.0.1)

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

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

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

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

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

Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
string

setDisplayName

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

Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Creation time of this model.

Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation time of this model.

Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getDatasets

Required. Datasets used to create model.

Generated from protobuf field repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDatasets

Required. Datasets used to create model.

Generated from protobuf field repeated .google.cloud.dialogflow.v2.InputDataset datasets = 4 [(.google.api.field_behavior) = REQUIRED];

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.

Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

setState

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

Generated from protobuf field .google.cloud.dialogflow.v2.ConversationModel.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

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".

Generated from protobuf field string language_code = 19;

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".

Generated from protobuf field string language_code = 19;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArticleSuggestionModelMetadata

Metadata for article suggestion models.

Generated from protobuf field .google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;

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

hasArticleSuggestionModelMetadata

setArticleSuggestionModelMetadata

Metadata for article suggestion models.

Generated from protobuf field .google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;

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

getSmartReplyModelMetadata

Metadata for smart reply models.

Generated from protobuf field .google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;

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

hasSmartReplyModelMetadata

setSmartReplyModelMetadata

Metadata for smart reply models.

Generated from protobuf field .google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;

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

getModelMetadata

Returns
TypeDescription
string