public sealed class GatewayListOptions : IMessage<GatewayListOptions>, IEquatable<GatewayListOptions>, IDeepCloneable<GatewayListOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class GatewayListOptions.
Options for limiting the list based on gateway type and associations.
If set, returns only the gateways with which the specified device is
associated. The device ID can be numeric (num_id) or the user-defined
string (id). For example, if 456 is specified, returns only the
gateways to which the device with num_id 456 is bound.
If set, only devices associated with the specified gateway are returned.
The gateway ID can be numeric (num_id) or the user-defined string
(id). For example, if 123 is specified, only devices bound to the
gateway with num_id 123 are returned.
If GATEWAY is specified, only gateways are returned. If NON_GATEWAY
is specified, only non-gateway devices are returned. If
GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.
[[["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 document provides reference information for the \u003ccode\u003eGatewayListOptions\u003c/code\u003e class within the Google Cloud IoT v1 API, detailing its functionalities and usage in .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGatewayListOptions\u003c/code\u003e class is used to refine device lists based on gateway type and associations, with version 2.2.0 being the latest release of this API.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class, providing methods like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt offers properties such as \u003ccode\u003eAssociationsDeviceId\u003c/code\u003e, \u003ccode\u003eAssociationsGatewayId\u003c/code\u003e, and \u003ccode\u003eGatewayType\u003c/code\u003e, which enable filtering based on associated devices, gateways, and the type of gateway, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class has multiple properties that have a boolean value to check if the associated field is set or not, such as \u003ccode\u003eHasAssociationsDeviceId\u003c/code\u003e, \u003ccode\u003eHasAssociationsGatewayId\u003c/code\u003e, and \u003ccode\u003eHasGatewayType\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class GatewayListOptions (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.GatewayListOptions)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.GatewayListOptions)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.GatewayListOptions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.GatewayListOptions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.GatewayListOptions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.GatewayListOptions) \n\n public sealed class GatewayListOptions : IMessage\u003cGatewayListOptions\u003e, IEquatable\u003cGatewayListOptions\u003e, IDeepCloneable\u003cGatewayListOptions\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class GatewayListOptions.\n\nOptions for limiting the list based on gateway type and associations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GatewayListOptions \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GatewayListOptions](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GatewayListOptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GatewayListOptions](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GatewayListOptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GatewayListOptions](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GatewayListOptions), [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### GatewayListOptions()\n\n public GatewayListOptions()\n\n### GatewayListOptions(GatewayListOptions)\n\n public GatewayListOptions(GatewayListOptions other)\n\nProperties\n----------\n\n### AssociationsDeviceId\n\n public string AssociationsDeviceId { get; set; }\n\nIf set, returns only the gateways with which the specified device is\nassociated. The device ID can be numeric (`num_id`) or the user-defined\nstring (`id`). For example, if `456` is specified, returns only the\ngateways to which the device with `num_id` 456 is bound.\n\n### AssociationsGatewayId\n\n public string AssociationsGatewayId { get; set; }\n\nIf set, only devices associated with the specified gateway are returned.\nThe gateway ID can be numeric (`num_id`) or the user-defined string\n(`id`). For example, if `123` is specified, only devices bound to the\ngateway with `num_id` 123 are returned.\n\n### FilterCase\n\n public GatewayListOptions.FilterOneofCase FilterCase { get; }\n\n### GatewayType\n\n public GatewayType GatewayType { get; set; }\n\nIf `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`\nis specified, only non-gateway devices are returned. If\n`GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned.\n\n### HasAssociationsDeviceId\n\n public bool HasAssociationsDeviceId { get; }\n\nGets whether the \"associations_device_id\" field is set\n\n### HasAssociationsGatewayId\n\n public bool HasAssociationsGatewayId { get; }\n\nGets whether the \"associations_gateway_id\" field is set\n\n### HasGatewayType\n\n public bool HasGatewayType { get; }\n\nGets whether the \"gateway_type\" field is set"]]