[[["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-08 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eComputeEnumConstants.BackendService.LocalityLbPolicy\u003c/code\u003e class in the Google Cloud Compute Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is 3.6.0, and it includes a list of different versions from 3.6.0 all the way back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eIt details the wire representations of the \u003ccode\u003eBackendService.Types.LocalityLbPolicy\u003c/code\u003e enum, showcasing the constants and their corresponding string values, such as "INVALID_LB_POLICY", "LEAST_REQUEST", "MAGLEV", and more.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines the inheritance structure of the class, showing it inherits from \u003ccode\u003eobject\u003c/code\u003e and also displays the inherited members.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace and is located within the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Compute Engine v1 API - Class ComputeEnumConstants.BackendService.LocalityLbPolicy (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.12.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.11.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.10.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.9.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.8.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.7.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.6.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.5.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.4.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.3.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.2.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.1.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/3.0.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.17.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.16.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.15.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.14.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.13.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.12.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.11.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.10.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.9.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.8.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.7.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.6.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.5.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.4.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.3.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.2.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.1.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/2.0.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.4.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.3.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.2.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.1.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Compute.V1/1.0.0/Google.Cloud.Compute.V1.ComputeEnumConstants.BackendService.LocalityLbPolicy) \n\n public static class ComputeEnumConstants.BackendService.LocalityLbPolicy\n\nReference documentation and code samples for the Compute Engine v1 API class ComputeEnumConstants.BackendService.LocalityLbPolicy.\n\nConstants for wire representations of the\n[BackendService.Types.LocalityLbPolicy](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy) enum. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ComputeEnumConstants.BackendService.LocalityLbPolicy \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Compute.V1](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Compute.V1.dll\n\nFields\n------\n\n### InvalidLbPolicy\n\n public const string InvalidLbPolicy = \"INVALID_LB_POLICY\"\n\nWire representation of\n[InvalidLbPolicy](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_InvalidLbPolicy).\n\n### LeastRequest\n\n public const string LeastRequest = \"LEAST_REQUEST\"\n\nWire representation of\n[LeastRequest](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_LeastRequest).\n\n### Maglev\n\n public const string Maglev = \"MAGLEV\"\n\nWire representation of\n[Maglev](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_Maglev).\n\n### OriginalDestination\n\n public const string OriginalDestination = \"ORIGINAL_DESTINATION\"\n\nWire representation of\n[OriginalDestination](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_OriginalDestination)\n.\n\n### Random\n\n public const string Random = \"RANDOM\"\n\nWire representation of\n[Random](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_Random).\n\n### RingHash\n\n public const string RingHash = \"RING_HASH\"\n\nWire representation of\n[RingHash](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_RingHash).\n\n### RoundRobin\n\n public const string RoundRobin = \"ROUND_ROBIN\"\n\nWire representation of\n[RoundRobin](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_RoundRobin).\n\n### UndefinedLocalityLbPolicy\n\n public const string UndefinedLocalityLbPolicy = \"UNDEFINED_LOCALITY_LB_POLICY\"\n\nWire representation of\n[UndefinedLocalityLbPolicy](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_UndefinedLocalityLbPolicy)\n.\n\n### WeightedMaglev\n\n public const string WeightedMaglev = \"WEIGHTED_MAGLEV\"\n\nWire representation of\n[WeightedMaglev](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_WeightedMaglev).\n\n### WeightedRoundRobin\n\n public const string WeightedRoundRobin = \"WEIGHTED_ROUND_ROBIN\"\n\nWire representation of\n[WeightedRoundRobin](/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_WeightedRoundRobin)\n."]]