public sealed class GetDeviceRequest : IMessage<GetDeviceRequest>, IEquatable<GetDeviceRequest>, IDeepCloneable<GetDeviceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class GetDeviceRequest.
The fields of the Device resource to be returned in the response. If the
field mask is unset or empty, all fields are returned. Fields have to be
provided in snake_case format, for example: last_heartbeat_time.
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}.
[[["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 documentation for the \u003ccode\u003eGetDeviceRequest\u003c/code\u003e class within the Google Cloud IoT v1 API, detailing its structure and usage.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetDeviceRequest\u003c/code\u003e is used to request information about a specific device, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces like \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 latest version of the \u003ccode\u003eGetDeviceRequest\u003c/code\u003e class is 2.2.0, with previous versions also available for reference, ranging down to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eDeviceName\u003c/code\u003e, \u003ccode\u003eFieldMask\u003c/code\u003e, and \u003ccode\u003eName\u003c/code\u003e, allowing for specification of the target device and the requested data fields.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors, one empty and one to copy an existing \u003ccode\u003eGetDeviceRequest\u003c/code\u003e, and it is part of the namespace \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class GetDeviceRequest (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.GetDeviceRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.GetDeviceRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.GetDeviceRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.GetDeviceRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.GetDeviceRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.GetDeviceRequest) \n\n public sealed class GetDeviceRequest : IMessage\u003cGetDeviceRequest\u003e, IEquatable\u003cGetDeviceRequest\u003e, IDeepCloneable\u003cGetDeviceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class GetDeviceRequest.\n\nRequest for `GetDevice`. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetDeviceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetDeviceRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GetDeviceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetDeviceRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GetDeviceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetDeviceRequest](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GetDeviceRequest), [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### GetDeviceRequest()\n\n public GetDeviceRequest()\n\n### GetDeviceRequest(GetDeviceRequest)\n\n public GetDeviceRequest(GetDeviceRequest other)\n\nProperties\n----------\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.GetDeviceRequest#Google_Cloud_Iot_V1_GetDeviceRequest_Name) resource name property.\n\n### FieldMask\n\n public FieldMask FieldMask { get; set; }\n\nThe fields of the `Device` resource to be returned in the response. If the\nfield mask is unset or empty, all fields are returned. Fields have to be\nprovided in snake_case format, for example: `last_heartbeat_time`.\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}`."]]