Compute V1 Client - Class BackendServiceLocalityLoadBalancingPolicyConfig (1.8.3)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy|null

hasCustomPolicy

clearCustomPolicy

setCustomPolicy

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

Parameter
NameDescription
var Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Returns
TypeDescription
$this

getPolicy

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

Returns
TypeDescription
Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigPolicy|null

hasPolicy

clearPolicy

setPolicy

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

Parameter
NameDescription
var Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfigPolicy
Returns
TypeDescription
$this