public sealed class StateNotificationConfig : IMessage<StateNotificationConfig>, IEquatable<StateNotificationConfig>, IDeepCloneable<StateNotificationConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class StateNotificationConfig.
The configuration for notification of new states received from the device.
[[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eStateNotificationConfig\u003c/code\u003e class, part of the Google Cloud IoT v1 API, is used to configure notifications for new device states.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eStateNotificationConfig\u003c/code\u003e is 2.2.0, with older versions available from 2.1.0 down to 1.0.0, each with their corresponding documentation.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, ensuring a large level of functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStateNotificationConfig\u003c/code\u003e class can be constructed with or without parameters, and it includes a \u003ccode\u003ePubsubTopicName\u003c/code\u003e property that specifies the Cloud Pub/Sub topic for receiving state notifications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStateNotificationConfig\u003c/code\u003e class exists within the \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e namespace and is contained in the \u003ccode\u003eGoogle.Cloud.Iot.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class StateNotificationConfig (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.StateNotificationConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.StateNotificationConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.StateNotificationConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.StateNotificationConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.StateNotificationConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.StateNotificationConfig) \n\n public sealed class StateNotificationConfig : IMessage\u003cStateNotificationConfig\u003e, IEquatable\u003cStateNotificationConfig\u003e, IDeepCloneable\u003cStateNotificationConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class StateNotificationConfig.\n\nThe configuration for notification of new states received from the device. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StateNotificationConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StateNotificationConfig](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.StateNotificationConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StateNotificationConfig](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.StateNotificationConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StateNotificationConfig](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.StateNotificationConfig), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Iot.V1](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Iot.V1.dll\n\nConstructors\n------------\n\n### StateNotificationConfig()\n\n public StateNotificationConfig()\n\n### StateNotificationConfig(StateNotificationConfig)\n\n public StateNotificationConfig(StateNotificationConfig other)\n\nProperties\n----------\n\n### PubsubTopicName\n\n public string PubsubTopicName { get; set; }\n\nA Cloud Pub/Sub topic name. For example,\n`projects/myProject/topics/deviceEvents`."]]