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.
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
↳ 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
↳ smart_reply_model_metadata
getName
ConversationModel resource name. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>
Generated from protobuf field string name = 1;
string
setName
ConversationModel resource name. Format: projects/<Project ID>/conversationModels/<Conversation Model ID>
Generated from protobuf field string name = 1;
var
string
$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];
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];
var
string
$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];
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];
var
Google\Protobuf\Timestamp
$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];
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];
$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];
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];
var
int
$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;
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;
var
string
$this
getArticleSuggestionModelMetadata
Metadata for article suggestion models.
Generated from protobuf field .google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
hasArticleSuggestionModelMetadata
setArticleSuggestionModelMetadata
Metadata for article suggestion models.
Generated from protobuf field .google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata article_suggestion_model_metadata = 8;
$this
getSmartReplyModelMetadata
Metadata for smart reply models.
Generated from protobuf field .google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
hasSmartReplyModelMetadata
setSmartReplyModelMetadata
Metadata for smart reply models.
Generated from protobuf field .google.cloud.dialogflow.v2.SmartReplyModelMetadata smart_reply_model_metadata = 9;
$this
getModelMetadata
string