public sealed class ServiceLbPolicy : IMessage<ServiceLbPolicy>, IEquatable<ServiceLbPolicy>, IDeepCloneable<ServiceLbPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class ServiceLbPolicy.
ServiceLbPolicy holds global load balancing and traffic distribution
configuration that can be applied to a BackendService.
Identifier. Name of the ServiceLbPolicy resource. It matches pattern
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
[[["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."],[],[],null,["# Network Services v1 API - Class ServiceLbPolicy (1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceLbPolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.2.0/Google.Cloud.NetworkServices.V1.ServiceLbPolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.1.0/Google.Cloud.NetworkServices.V1.ServiceLbPolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/1.0.0/Google.Cloud.NetworkServices.V1.ServiceLbPolicy) \n\n public sealed class ServiceLbPolicy : IMessage\u003cServiceLbPolicy\u003e, IEquatable\u003cServiceLbPolicy\u003e, IDeepCloneable\u003cServiceLbPolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Services v1 API class ServiceLbPolicy.\n\nServiceLbPolicy holds global load balancing and traffic distribution\nconfiguration that can be applied to a BackendService. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceLbPolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServiceLbPolicy](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceLbPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceLbPolicy](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceLbPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServiceLbPolicy](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceLbPolicy), [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.NetworkServices.V1](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkServices.V1.dll\n\nConstructors\n------------\n\n### ServiceLbPolicy()\n\n public ServiceLbPolicy()\n\n### ServiceLbPolicy(ServiceLbPolicy)\n\n public ServiceLbPolicy(ServiceLbPolicy other)\n\nProperties\n----------\n\n### AutoCapacityDrain\n\n public ServiceLbPolicy.Types.AutoCapacityDrain AutoCapacityDrain { get; set; }\n\nOptional. Configuration to automatically move traffic away for unhealthy\nIG/NEG for the associated Backend Service.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The timestamp when this resource was created.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. A free-text description of the resource. Max length 1024\ncharacters.\n\n### FailoverConfig\n\n public ServiceLbPolicy.Types.FailoverConfig FailoverConfig { get; set; }\n\nOptional. Configuration related to health based failover.\n\n### IsolationConfig\n\n public ServiceLbPolicy.Types.IsolationConfig IsolationConfig { get; set; }\n\nOptional. Configuration to provide isolation support for the associated\nBackend Service.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nOptional. Set of label tags associated with the ServiceLbPolicy resource.\n\n### LoadBalancingAlgorithm\n\n public ServiceLbPolicy.Types.LoadBalancingAlgorithm LoadBalancingAlgorithm { get; set; }\n\nOptional. The type of load balancing algorithm to be used. The default\nbehavior is WATERFALL_BY_REGION.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Name of the ServiceLbPolicy resource. It matches pattern\n`projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.\n\n### ServiceLbPolicyName\n\n public ServiceLbPolicyName ServiceLbPolicyName { get; set; }\n\n[ServiceLbPolicyName](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceLbPolicyName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.ServiceLbPolicy#Google_Cloud_NetworkServices_V1_ServiceLbPolicy_Name) resource name property.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The timestamp when this resource was last updated."]]