Compute V1 Client - Class BackendServiceLocalityLoadBalancingPolicyConfigPolicy (1.6.1)

Reference documentation and code samples for the Compute V1 Client class BackendServiceLocalityLoadBalancingPolicyConfigPolicy.

The configuration for a built-in load balancing policy.

Generated from protobuf message google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected. Check the Name enum for the list of possible values.

getName

The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.

Check the Name enum for the list of possible values.

Returns
TypeDescription
string

hasName

clearName

setName

The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid configuration and will be rejected.

Check the Name enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this