Compute V1 Client - Class BackendServiceLocalityLoadBalancingPolicyConfigPolicy (1.10.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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected. Check the Name enum for the list of possible values.

getName

The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.

Check the Name enum for the list of possible values.

Returns
TypeDescription
string

hasName

clearName

setName

The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.

Check the Name enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this