public sealed class AndroidKeyRestrictions : IMessage<AndroidKeyRestrictions>, IEquatable<AndroidKeyRestrictions>, IDeepCloneable<AndroidKeyRestrictions>, IBufferMessage, IMessage
Reference documentation and code samples for the API Keys v2 API class AndroidKeyRestrictions.
[[["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 webpage provides documentation for the \u003ccode\u003eAndroidKeyRestrictions\u003c/code\u003e class within the Google Cloud API Keys v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAndroidKeyRestrictions\u003c/code\u003e class defines the Android apps that are permitted to utilize a specific API key.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple 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 has properties such as \u003ccode\u003eAllowedApplications\u003c/code\u003e, which contains a list of \u003ccode\u003eAndroidApplication\u003c/code\u003e objects representing permitted apps.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API represented on the webpage is 1.4.0, with older versions available from 1.0.0.\u003c/p\u003e\n"]]],[],null,["# API Keys v2 API - Class AndroidKeyRestrictions (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/1.3.0/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/1.2.0/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/1.1.0/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/1.0.0/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions) \n\n public sealed class AndroidKeyRestrictions : IMessage\u003cAndroidKeyRestrictions\u003e, IEquatable\u003cAndroidKeyRestrictions\u003e, IDeepCloneable\u003cAndroidKeyRestrictions\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the API Keys v2 API class AndroidKeyRestrictions.\n\nThe Android apps that are allowed to use the key. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AndroidKeyRestrictions \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AndroidKeyRestrictions](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AndroidKeyRestrictions](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AndroidKeyRestrictions](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.AndroidKeyRestrictions), [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.ApiKeys.V2](/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.ApiKeys.V2.dll\n\nConstructors\n------------\n\n### AndroidKeyRestrictions()\n\n public AndroidKeyRestrictions()\n\n### AndroidKeyRestrictions(AndroidKeyRestrictions)\n\n public AndroidKeyRestrictions(AndroidKeyRestrictions other)\n\nProperties\n----------\n\n### AllowedApplications\n\n public RepeatedField\u003cAndroidApplication\u003e AllowedApplications { get; }\n\nA list of Android applications that are allowed to make API calls with\nthis key."]]