[[["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\u003eGatewayConfig\u003c/code\u003e class provides configuration and state information for gateway devices within the Cloud IoT v1 API, with the latest version being 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and 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\u003eThe class includes properties to manage gateway access and authorization, such as \u003ccode\u003eGatewayAuthMethod\u003c/code\u003e and \u003ccode\u003eGatewayType\u003c/code\u003e, as well as the tracking of the last accessed gateway via \u003ccode\u003eLastAccessedGatewayId\u003c/code\u003e and \u003ccode\u003eLastAccessedGatewayTime\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for the \u003ccode\u003eGatewayConfig\u003c/code\u003e class, one default constructor and one that takes another \u003ccode\u003eGatewayConfig\u003c/code\u003e instance as a parameter, which is used to create a new instance that mirrors the passed one.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e namespace and is located within the \u003ccode\u003eGoogle.Cloud.Iot.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Cloud IoT v1 API - Class GatewayConfig (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.GatewayConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.1.0/Google.Cloud.Iot.V1.GatewayConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/2.0.0/Google.Cloud.Iot.V1.GatewayConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.2.0/Google.Cloud.Iot.V1.GatewayConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.1.0/Google.Cloud.Iot.V1.GatewayConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iot.V1/1.0.0/Google.Cloud.Iot.V1.GatewayConfig) \n\n public sealed class GatewayConfig : IMessage\u003cGatewayConfig\u003e, IEquatable\u003cGatewayConfig\u003e, IDeepCloneable\u003cGatewayConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud IoT v1 API class GatewayConfig.\n\nGateway-related configuration and state. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GatewayConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GatewayConfig](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GatewayConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GatewayConfig](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GatewayConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GatewayConfig](/dotnet/docs/reference/Google.Cloud.Iot.V1/latest/Google.Cloud.Iot.V1.GatewayConfig), [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### GatewayConfig()\n\n public GatewayConfig()\n\n### GatewayConfig(GatewayConfig)\n\n public GatewayConfig(GatewayConfig other)\n\nProperties\n----------\n\n### GatewayAuthMethod\n\n public GatewayAuthMethod GatewayAuthMethod { get; set; }\n\nIndicates how to authorize and/or authenticate devices to access the\ngateway.\n\n### GatewayType\n\n public GatewayType GatewayType { get; set; }\n\nIndicates whether the device is a gateway.\n\n### LastAccessedGatewayId\n\n public string LastAccessedGatewayId { get; set; }\n\n\\[Output only\\] The ID of the gateway the device accessed most recently.\n\n### LastAccessedGatewayTime\n\n public Timestamp LastAccessedGatewayTime { get; set; }\n\n\\[Output only\\] The most recent time at which the device accessed the gateway\nspecified in `last_accessed_gateway`."]]