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 aBCP-47language tag. Example: "en-US".
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 aBCP-47language 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 aBCP-47language tag. Example: "en-US".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class ConversationModel (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.ConversationModel)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.ConversationModel)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.ConversationModel)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.ConversationModel)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.ConversationModel)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.ConversationModel)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.ConversationModel)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.ConversationModel)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.ConversationModel)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.ConversationModel)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.ConversationModel)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.ConversationModel)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.ConversationModel)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.ConversationModel)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.ConversationModel)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.ConversationModel)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.ConversationModel)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.ConversationModel)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.ConversationModel)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.ConversationModel)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.ConversationModel) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class ConversationModel.\n\nRepresents a conversation model.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.ConversationModel`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nConversationModel resource name. Format:\n`projects/\u003cProject ID\u003e/conversationModels/\u003cConversation Model ID\u003e`\n\n### setName\n\nConversationModel resource name. Format:\n`projects/\u003cProject ID\u003e/conversationModels/\u003cConversation Model ID\u003e`\n\n### getDisplayName\n\nRequired. The display name of the model. At most 64 bytes long.\n\n### setDisplayName\n\nRequired. The display name of the model. At most 64 bytes long.\n\n### getCreateTime\n\nOutput only. Creation time of this model.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Creation time of this model.\n\n### getDatasets\n\nRequired. Datasets used to create model.\n\n### setDatasets\n\nRequired. Datasets used to create model.\n\n### getState\n\nOutput only. State of the model. A model can only serve prediction requests\nafter it gets deployed.\n\n### setState\n\nOutput only. State of the model. A model can only serve prediction requests\nafter it gets deployed.\n\n### getLanguageCode\n\nLanguage code for the conversation model. If not specified, the language\nis en-US. Language at ConversationModel should be set for all non en-us\nlanguages.\n\nThis should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)\nlanguage tag. Example: \"en-US\".\n\n### setLanguageCode\n\nLanguage code for the conversation model. If not specified, the language\nis en-US. Language at ConversationModel should be set for all non en-us\nlanguages.\n\nThis should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)\nlanguage tag. Example: \"en-US\".\n\n### getArticleSuggestionModelMetadata\n\nMetadata for article suggestion models.\n\n### hasArticleSuggestionModelMetadata\n\n### setArticleSuggestionModelMetadata\n\nMetadata for article suggestion models.\n\n### getSmartReplyModelMetadata\n\nMetadata for smart reply models.\n\n### hasSmartReplyModelMetadata\n\n### setSmartReplyModelMetadata\n\nMetadata for smart reply models.\n\n### getSatisfiesPzs\n\nOutput only. A read only boolean field reflecting Zone Separation\nstatus of the model.\n\n### hasSatisfiesPzs\n\n### clearSatisfiesPzs\n\n### setSatisfiesPzs\n\nOutput only. A read only boolean field reflecting Zone Separation\nstatus of the model.\n\n### getSatisfiesPzi\n\nOutput only. A read only boolean field reflecting Zone Isolation status\nof the model.\n\n### hasSatisfiesPzi\n\n### clearSatisfiesPzi\n\n### setSatisfiesPzi\n\nOutput only. A read only boolean field reflecting Zone Isolation status\nof the model.\n\n### getModelMetadata"]]