# Google Cloud Dialogflow v2 API - Class NotificationConfig (4.30.0)

4.30.0 (latest) 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0

    public sealed class NotificationConfig : IMessage<NotificationConfig>, IEquatable<NotificationConfig>, IDeepCloneable<NotificationConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class NotificationConfig.

Defines notification behavior.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> NotificationConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.NotificationConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.NotificationConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[NotificationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.NotificationConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2)

## Assembly

Google.Cloud.Dialogflow.V2.dll

## Constructors

### NotificationConfig()

    public NotificationConfig()

### NotificationConfig(NotificationConfig)

    public NotificationConfig(NotificationConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.NotificationConfig` |

## Properties

### MessageFormat

    public NotificationConfig.Types.MessageFormat MessageFormat { get; set; }

Format of message.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.NotificationConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.NotificationConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.NotificationConfig.Types.MessageFormat` |   |

### Topic

    public string Topic { get; set; }

Name of the Pub/Sub topic to publish conversation
events like
\[CONVERSATION_STARTED\]\[google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED\]
as serialized
\[ConversationEvent\]\[google.cloud.dialogflow.v2.ConversationEvent\] protos.

For telephony integration to receive notification, make sure either this
topic is in the same project as the conversation or you grant
`service-<Conversation Project
Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
Agent` role in the topic project.

For chat integration to receive notification, make sure API caller has been
granted the `Dialogflow Service Agent` role for the topic.

Format: `projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |