Compute V1 Client - Class BackendServiceLocalityLoadBalancingPolicyConfig (1.22.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 BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
↳ policy BackendServiceLocalityLoadBalancingPolicyConfigPolicy

getCustomPolicy

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

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy|null

hasCustomPolicy

clearCustomPolicy

setCustomPolicy

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

Parameter
Name Description
var BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns
Type Description
$this

getPolicy

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

Returns
Type Description
BackendServiceLocalityLoadBalancingPolicyConfigPolicy|null

hasPolicy

clearPolicy

setPolicy

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

Parameter
Name Description
var BackendServiceLocalityLoadBalancingPolicyConfigPolicy
Returns
Type Description
$this