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: |
↳ 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 |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time of this model.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDatasets
Required. Datasets used to create model.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setDatasets
Required. Datasets used to create model.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\InputDataset>
|
| 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 |
|
getArticleSuggestionModelMetadata
Metadata for article suggestion models.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Dialogflow\V2\ArticleSuggestionModelMetadata|null |
|
hasArticleSuggestionModelMetadata
setArticleSuggestionModelMetadata
Metadata for article suggestion models.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Dialogflow\V2\ArticleSuggestionModelMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSmartReplyModelMetadata
Metadata for smart reply models.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Dialogflow\V2\SmartReplyModelMetadata|null |
|
hasSmartReplyModelMetadata
setSmartReplyModelMetadata
Metadata for smart reply models.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Dialogflow\V2\SmartReplyModelMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getModelMetadata
| Returns | |
|---|---|
| Type | Description |
string |
|