Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class NotificationConfig.
Defines notification behavior.
Generated from protobuf messagegoogle.cloud.dialogflow.v2.NotificationConfig
Namespace
Google \ Cloud \ Dialogflow \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ topic
string
Name of the Pub/Sub topic to publish conversation events likeCONVERSATION_STARTEDas serializedConversationEventprotos. For telephony integration to receive notification, make sure either this topic is in the same project as the conversation or you grantservice-<Conversation Project Number>@gcp-sa-dialogflow.iam.gserviceaccount.comtheDialogflow Service Agentrole in the topic project. For chat integration to receive notification, make sure API caller has been granted theDialogflow Service Agentrole for the topic. Format:projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>.
For telephony integration to receive notification, make sure either this
topic is in the same project as the conversation or you grantservice-<Conversation Project
Number>@gcp-sa-dialogflow.iam.gserviceaccount.comtheDialogflow Service
Agentrole in the topic project.
For chat integration to receive notification, make sure API caller has been
granted theDialogflow Service Agentrole for the topic.
Format:projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>.
For telephony integration to receive notification, make sure either this
topic is in the same project as the conversation or you grantservice-<Conversation Project
Number>@gcp-sa-dialogflow.iam.gserviceaccount.comtheDialogflow Service
Agentrole in the topic project.
For chat integration to receive notification, make sure API caller has been
granted theDialogflow Service Agentrole for the topic.
Format:projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>.
[[["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 NotificationConfig (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.NotificationConfig)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.NotificationConfig)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.NotificationConfig)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.NotificationConfig)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.NotificationConfig)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.NotificationConfig)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.NotificationConfig)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.NotificationConfig)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.NotificationConfig)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.NotificationConfig)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.NotificationConfig)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.NotificationConfig)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.NotificationConfig)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.NotificationConfig)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.NotificationConfig)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.NotificationConfig)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.NotificationConfig)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.NotificationConfig)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.NotificationConfig)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.NotificationConfig)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.NotificationConfig) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class NotificationConfig.\n\nDefines notification behavior.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.NotificationConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTopic\n\nName of the Pub/Sub topic to publish conversation\nevents like\n[CONVERSATION_STARTED](/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent.Type#_Google_Cloud_Dialogflow_V2_ConversationEvent_Type__CONVERSATION_STARTED)\nas serialized\n[ConversationEvent](/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent) protos.\n\nFor telephony integration to receive notification, make sure either this\ntopic is in the same project as the conversation or you grant\n`service-\u003cConversation Project\nNumber\u003e@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service\nAgent` role in the topic project.\nFor chat integration to receive notification, make sure API caller has been\ngranted the `Dialogflow Service Agent` role for the topic.\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e/topics/\u003cTopic ID\u003e`.\n\n### setTopic\n\nName of the Pub/Sub topic to publish conversation\nevents like\n[CONVERSATION_STARTED](/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent.Type#_Google_Cloud_Dialogflow_V2_ConversationEvent_Type__CONVERSATION_STARTED)\nas serialized\n[ConversationEvent](/php/docs/reference/cloud-dialogflow/latest/V2.ConversationEvent) protos.\n\nFor telephony integration to receive notification, make sure either this\ntopic is in the same project as the conversation or you grant\n`service-\u003cConversation Project\nNumber\u003e@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service\nAgent` role in the topic project.\nFor chat integration to receive notification, make sure API caller has been\ngranted the `Dialogflow Service Agent` role for the topic.\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation ID\u003e/topics/\u003cTopic ID\u003e`.\n\n### getMessageFormat\n\nFormat of message.\n\n### setMessageFormat\n\nFormat of message."]]