Compute V1 Client - Class BackendServiceLocalityLoadBalancingPolicyConfig (1.18.0)

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

Container for either a built-in LB policy supported by gRPC or Envoy or a custom one implemented by the end user.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ custom_policy Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
↳ policy Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigPolicy

getCustomPolicy

Generated from protobuf field optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Returns
Type Description
Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy|null

hasCustomPolicy

clearCustomPolicy

setCustomPolicy

Generated from protobuf field optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy custom_policy = 4818368;

Parameter
Name Description
var Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns
Type Description
$this

getPolicy

Generated from protobuf field optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Returns
Type Description
Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigPolicy|null

hasPolicy

clearPolicy

setPolicy

Generated from protobuf field optional .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfigPolicy policy = 91071794;

Parameter
Name Description
var Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigPolicy
Returns
Type Description
$this