public sealed class BindDeviceToGatewayRequest : IMessage<BindDeviceToGatewayRequest>, IEquatable<BindDeviceToGatewayRequest>, IDeepCloneable<BindDeviceToGatewayRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class BindDeviceToGatewayRequest.
Required. The device to associate with the specified gateway. The value of
device_id can be either the device numeric ID or the user-defined device
identifier.
[[["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\u003eThis page provides reference documentation for the \u003ccode\u003eBindDeviceToGatewayRequest\u003c/code\u003e class within the Google Cloud IoT v1 API, used to associate a device with a specified gateway.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindDeviceToGatewayRequest\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.Iot.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe 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, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eDeviceId\u003c/code\u003e, \u003ccode\u003eGatewayId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, and \u003ccode\u003eParentAsRegistryName\u003c/code\u003e, all of which play a crucial part in associating a device with a gateway within a specified registry.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the \u003ccode\u003eBindDeviceToGatewayRequest\u003c/code\u003e class are available, with the latest being version 2.2.0.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class BindDeviceToGatewayRequest (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.BindDeviceToGatewayRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest) \n\n public sealed class BindDeviceToGatewayRequest : IMessage\u003cBindDeviceToGatewayRequest\u003e, IEquatable\u003cBindDeviceToGatewayRequest\u003e, IDeepCloneable\u003cBindDeviceToGatewayRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class BindDeviceToGatewayRequest.\n\nRequest for `BindDeviceToGateway`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BindDeviceToGatewayRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BindDeviceToGatewayRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BindDeviceToGatewayRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BindDeviceToGatewayRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest), [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### BindDeviceToGatewayRequest()\n\n public BindDeviceToGatewayRequest()\n\n### BindDeviceToGatewayRequest(BindDeviceToGatewayRequest)\n\n public BindDeviceToGatewayRequest(BindDeviceToGatewayRequest other)\n\nProperties\n----------\n\n### DeviceId\n\n public string DeviceId { get; set; }\n\nRequired. The device to associate with the specified gateway. The value of\n`device_id` can be either the device numeric ID or the user-defined device\nidentifier.\n\n### GatewayId\n\n public string GatewayId { get; set; }\n\nRequired. The value of `gateway_id` can be either the device numeric ID or the\nuser-defined device identifier.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The name of the registry. For example,\n`projects/example-project/locations/us-central1/registries/my-registry`.\n\n### ParentAsRegistryName\n\n public RegistryName ParentAsRegistryName { get; set; }\n\n[RegistryName](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.RegistryName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.BindDeviceToGatewayRequest#Google_Cloud_Iot_V1_BindDeviceToGatewayRequest_Parent) resource name property."]]