public sealed class AccessLocations : IMessage<AccessLocations>, IEquatable<AccessLocations>, IDeepCloneable<AccessLocations>, IBufferMessage, IMessage
Reference documentation and code samples for the Access Approval v1 API class AccessLocations.
Home office and physical location of the principal.
public string PrincipalOfficeCountry { get; set; }
The "home office" location of the principal. A two-letter country code
(ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some
limited situations Google systems may refer refer to a region code instead
of a country code.
Possible Region Codes:
public string PrincipalPhysicalLocationCountry { get; set; }
Physical location of the principal at the time of the access. A
two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or
a region code. In some limited situations Google systems may refer refer to
a region code instead of a country code.
Possible Region Codes:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eAccessLocations\u003c/code\u003e class within the Google Cloud Access Approval v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAccessLocations\u003c/code\u003e class is used to specify the home office and physical location of a principal, and it implements 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 API for this class is 2.5.0, and multiple versions, dating back to 1.0.0, are available with links to each of their documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAccessLocations\u003c/code\u003e has two properties: \u003ccode\u003ePrincipalOfficeCountry\u003c/code\u003e and \u003ccode\u003ePrincipalPhysicalLocationCountry\u003c/code\u003e, both of which are strings that represent a two-letter country code or a region code.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAccessLocations\u003c/code\u003e class can be constructed either without parameters or by passing another \u003ccode\u003eAccessLocations\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Access Approval v1 API - Class AccessLocations (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/latest/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/2.4.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/2.3.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/2.2.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/2.1.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/2.0.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/1.4.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/1.3.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/1.2.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/1.1.0/Google.Cloud.AccessApproval.V1.AccessLocations)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/1.0.0/Google.Cloud.AccessApproval.V1.AccessLocations) \n\n public sealed class AccessLocations : IMessage\u003cAccessLocations\u003e, IEquatable\u003cAccessLocations\u003e, IDeepCloneable\u003cAccessLocations\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Access Approval v1 API class AccessLocations.\n\nHome office and physical location of the principal. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AccessLocations \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AccessLocations](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/latest/Google.Cloud.AccessApproval.V1.AccessLocations), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AccessLocations](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/latest/Google.Cloud.AccessApproval.V1.AccessLocations), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AccessLocations](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/latest/Google.Cloud.AccessApproval.V1.AccessLocations), [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.AccessApproval.V1](/dotnet/docs/reference/Google.Cloud.AccessApproval.V1/latest/Google.Cloud.AccessApproval.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AccessApproval.V1.dll\n\nConstructors\n------------\n\n### AccessLocations()\n\n public AccessLocations()\n\n### AccessLocations(AccessLocations)\n\n public AccessLocations(AccessLocations other)\n\nProperties\n----------\n\n### PrincipalOfficeCountry\n\n public string PrincipalOfficeCountry { get; set; }\n\nThe \"home office\" location of the principal. A two-letter country code\n(ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or a region code. In some\nlimited situations Google systems may refer refer to a region code instead\nof a country code.\nPossible Region Codes:\n\n- ASI: Asia\n- EUR: Europe\n- OCE: Oceania\n- AFR: Africa\n- NAM: North America\n- SAM: South America\n- ANT: Antarctica\n- ANY: Any location\n\n### PrincipalPhysicalLocationCountry\n\n public string PrincipalPhysicalLocationCountry { get; set; }\n\nPhysical location of the principal at the time of the access. A\ntwo-letter country code (ISO 3166-1 alpha-2), such as \"US\", \"DE\" or \"GB\" or\na region code. In some limited situations Google systems may refer refer to\na region code instead of a country code.\nPossible Region Codes:\n\n- ASI: Asia\n- EUR: Europe\n- OCE: Oceania\n- AFR: Africa\n- NAM: North America\n- SAM: South America\n- ANT: Antarctica\n- ANY: Any location"]]