public sealed class ModifyCloudToDeviceConfigRequest : IMessage<ModifyCloudToDeviceConfigRequest>, IEquatable<ModifyCloudToDeviceConfigRequest>, IDeepCloneable<ModifyCloudToDeviceConfigRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class ModifyCloudToDeviceConfigRequest.
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0 or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.
The version number to update. If this value is zero, it will not check the
version number of the server and will always update the current version;
otherwise, this update will fail if the version number found on the server
does not match this version number. This is used to support multiple
simultaneous updates without losing data.
[[["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 latest version of the \u003ccode\u003eModifyCloudToDeviceConfigRequest\u003c/code\u003e class is 2.2.0, with previous versions available from 1.0.0 onwards.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eModifyCloudToDeviceConfigRequest\u003c/code\u003e is a class within the Google Cloud IoT v1 API, used for requesting modifications to the cloud-to-device configuration, and it 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.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes properties such as \u003ccode\u003eBinaryData\u003c/code\u003e, \u003ccode\u003eDeviceName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eVersionToUpdate\u003c/code\u003e, which are used to define the configuration data, device identifier, resource name, and the version to be updated respectively.\u003c/p\u003e\n"],["\u003cp\u003eIt is constructed in one of two ways, \u003ccode\u003eModifyCloudToDeviceConfigRequest()\u003c/code\u003e or by passing in an instance of the same class \u003ccode\u003eModifyCloudToDeviceConfigRequest(ModifyCloudToDeviceConfigRequest other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class belongs to the namespace \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e and is part of the \u003ccode\u003eGoogle.Cloud.Iot.V1.dll\u003c/code\u003e assembly, with inherited members from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class ModifyCloudToDeviceConfigRequest (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.ModifyCloudToDeviceConfigRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest) \n\n public sealed class ModifyCloudToDeviceConfigRequest : IMessage\u003cModifyCloudToDeviceConfigRequest\u003e, IEquatable\u003cModifyCloudToDeviceConfigRequest\u003e, IDeepCloneable\u003cModifyCloudToDeviceConfigRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class ModifyCloudToDeviceConfigRequest.\n\nRequest for `ModifyCloudToDeviceConfig`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ModifyCloudToDeviceConfigRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ModifyCloudToDeviceConfigRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ModifyCloudToDeviceConfigRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ModifyCloudToDeviceConfigRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest), [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### ModifyCloudToDeviceConfigRequest()\n\n public ModifyCloudToDeviceConfigRequest()\n\n### ModifyCloudToDeviceConfigRequest(ModifyCloudToDeviceConfigRequest)\n\n public ModifyCloudToDeviceConfigRequest(ModifyCloudToDeviceConfigRequest other)\n\nProperties\n----------\n\n### BinaryData\n\n public ByteString BinaryData { get; set; }\n\nRequired. The configuration data for the device.\n\n### DeviceName\n\n public DeviceName DeviceName { get; set; }\n\n[DeviceName](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.DeviceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.ModifyCloudToDeviceConfigRequest#Google_Cloud_Iot_V1_ModifyCloudToDeviceConfigRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.\n\n### VersionToUpdate\n\n public long VersionToUpdate { get; set; }\n\nThe version number to update. If this value is zero, it will not check the\nversion number of the server and will always update the current version;\notherwise, this update will fail if the version number found on the server\ndoes not match this version number. This is used to support multiple\nsimultaneous updates without losing data."]]