[[["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."],[[["\u003cp\u003eThe \u003ccode\u003eDeviceState\u003c/code\u003e class represents the state of a device as reported to the Cloud IoT Core service within version 1 of the API, specifically in the Google.Cloud.Iot.V1 namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class is the latest version 2.2.0 but previous versions are available down to version 1.0.0 and it inherits from the object class while implementing several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeviceState\u003c/code\u003e class offers properties to manage the state data such as \u003ccode\u003eBinaryData\u003c/code\u003e, which stores the device's state, and \u003ccode\u003eUpdateTime\u003c/code\u003e, which records when the state was updated in Cloud IoT Core.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for \u003ccode\u003eDeviceState\u003c/code\u003e available: a default one and one that takes another \u003ccode\u003eDeviceState\u003c/code\u003e instance as a parameter to copy it.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides details about properties, inheritance, and assembly information for the DeviceState class, which helps users understand how to utilize it in their own work.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class DeviceState (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.DeviceState)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.DeviceState)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.DeviceState)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.DeviceState)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.DeviceState)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.DeviceState) \n\n public sealed class DeviceState : IMessage\u003cDeviceState\u003e, IEquatable\u003cDeviceState\u003e, IDeepCloneable\u003cDeviceState\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class DeviceState.\n\nThe device state, as reported by the device. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeviceState \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeviceState](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.DeviceState), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeviceState](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.DeviceState), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeviceState](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.DeviceState), [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### DeviceState()\n\n public DeviceState()\n\n### DeviceState(DeviceState)\n\n public DeviceState(DeviceState other)\n\nProperties\n----------\n\n### BinaryData\n\n public ByteString BinaryData { get; set; }\n\nThe device state data.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\n\\[Output only\\] The time at which this state version was updated in Cloud\nIoT Core."]]