public sealed class CreateDeviceRegistryRequest : IMessage<CreateDeviceRegistryRequest>, IEquatable<CreateDeviceRegistryRequest>, IDeepCloneable<CreateDeviceRegistryRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class CreateDeviceRegistryRequest.
public DeviceRegistry DeviceRegistry { get; set; }
Required. The device registry. The field name must be empty. The server will
generate that field from the device registry id provided and the
parent field.
[[["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\u003eCreateDeviceRegistryRequest\u003c/code\u003e class is used to request the creation of a new device registry within the Cloud IoT v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, indicating its role in message handling and data management.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eCreateDeviceRegistryRequest\u003c/code\u003e is 2.2.0, and older versions back to 1.0.0 are also available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eDeviceRegistry\u003c/code\u003e and \u003ccode\u003eParent\u003c/code\u003e, which are required to specify the details of the device registry and its location.\u003c/p\u003e\n"],["\u003cp\u003eThere are 2 constructors for creating an instance of \u003ccode\u003eCreateDeviceRegistryRequest\u003c/code\u003e, one of them creating a deep copy from another instance of the class.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class CreateDeviceRegistryRequest (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.CreateDeviceRegistryRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest) \n\n public sealed class CreateDeviceRegistryRequest : IMessage\u003cCreateDeviceRegistryRequest\u003e, IEquatable\u003cCreateDeviceRegistryRequest\u003e, IDeepCloneable\u003cCreateDeviceRegistryRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class CreateDeviceRegistryRequest.\n\nRequest for `CreateDeviceRegistry`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateDeviceRegistryRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateDeviceRegistryRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateDeviceRegistryRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateDeviceRegistryRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest), [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### CreateDeviceRegistryRequest()\n\n public CreateDeviceRegistryRequest()\n\n### CreateDeviceRegistryRequest(CreateDeviceRegistryRequest)\n\n public CreateDeviceRegistryRequest(CreateDeviceRegistryRequest other)\n\nProperties\n----------\n\n### DeviceRegistry\n\n public DeviceRegistry DeviceRegistry { get; set; }\n\nRequired. The device registry. The field `name` must be empty. The server will\ngenerate that field from the device registry `id` provided and the\n`parent` field.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project and cloud region where this device registry must be created.\nFor example, `projects/example-project/locations/us-central1`.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://github.com/googleapis/gax-dotnet/blob/6f2d3e64dd92f0f7a4f02a7db56cf6ed409615f2/Google.Api.Gax/ResourceNames/LocationName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.CreateDeviceRegistryRequest#Google_Cloud_Iot_V1_CreateDeviceRegistryRequest_Parent) resource name property."]]