# Compute Engine v1 API - Class ComputeEnumConstants.BackendService.LocalityLbPolicy (3.28.0)

3.28.0 (latest) 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public static class ComputeEnumConstants.BackendService.LocalityLbPolicy

Reference documentation and code samples for the Compute Engine v1 API class ComputeEnumConstants.BackendService.LocalityLbPolicy.

Constants for wire representations of the
[BackendService.Types.LocalityLbPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy) enum.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ComputeEnumConstants.BackendService.LocalityLbPolicy

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Compute.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1)

## Assembly

Google.Cloud.Compute.V1.dll

## Fields

### InvalidLbPolicy

    public const string InvalidLbPolicy = "INVALID_LB_POLICY"

Wire representation of
[InvalidLbPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_InvalidLbPolicy).

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### LeastRequest

    public const string LeastRequest = "LEAST_REQUEST"

Wire representation of
[LeastRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_LeastRequest).

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Maglev

    public const string Maglev = "MAGLEV"

Wire representation of
[Maglev](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_Maglev).

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### OriginalDestination

    public const string OriginalDestination = "ORIGINAL_DESTINATION"

Wire representation of
[OriginalDestination](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_OriginalDestination)
.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Random

    public const string Random = "RANDOM"

Wire representation of
[Random](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_Random).

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RingHash

    public const string RingHash = "RING_HASH"

Wire representation of
[RingHash](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_RingHash).

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RoundRobin

    public const string RoundRobin = "ROUND_ROBIN"

Wire representation of
[RoundRobin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_RoundRobin).

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### UndefinedLocalityLbPolicy

    public const string UndefinedLocalityLbPolicy = "UNDEFINED_LOCALITY_LB_POLICY"

Wire representation of
[UndefinedLocalityLbPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_UndefinedLocalityLbPolicy)
.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### WeightedGcpRendezvous

    public const string WeightedGcpRendezvous = "WEIGHTED_GCP_RENDEZVOUS"

Wire representation of
[WeightedGcpRendezvous](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_WeightedGcpRendezvous)
.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### WeightedMaglev

    public const string WeightedMaglev = "WEIGHTED_MAGLEV"

Wire representation of
[WeightedMaglev](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_WeightedMaglev).

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### WeightedRoundRobin

    public const string WeightedRoundRobin = "WEIGHTED_ROUND_ROBIN"

Wire representation of
[WeightedRoundRobin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Compute.V1/latest/Google.Cloud.Compute.V1.BackendService.Types.LocalityLbPolicy#Google_Cloud_Compute_V1_BackendService_Types_LocalityLbPolicy_WeightedRoundRobin)
.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |