NAME
Google::Cloud::Networkservices::V1::ServiceLbPolicy - Compiled Protocol Buffers messages for google/cloud/networkservices/v1/service_lb_policy.proto
SYNOPSIS
use Google::Cloud::Networkservices::V1::ServiceLbPolicy;
my $msg = Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy->new({
name => $name,
create_time => $create_time,
update_time => $update_time,
labels => $labels,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networkservices/v1/service_lb_policy.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy
ServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when this resource was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when this resource was last updated.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy::LabelsEntry)Optional. Set of label tags associated with the ServiceLbPolicy resource.
$msg->description()/$msg->description($value)Type:
StringOptional. A free-text description of the resource. Max length 1024 characters.
$msg->load_balancing_algorithm()/$msg->load_balancing_algorithm($value)Type:
Enum(Google::Cloud::Networkservices::V1::ServiceLbPolicy::LoadBalancingAlgorithm)Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.
$msg->auto_capacity_drain()/$msg->auto_capacity_drain($value)Type:
Message(Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy::AutoCapacityDrain)Optional. Configuration to automatically move traffic away for unhealthy IG/NEG for the associated Backend Service.
$msg->failover_config()/$msg->failover_config($value)Type:
Message(Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy::FailoverConfig)Optional. Configuration related to health based failover.
$msg->isolation_config()/$msg->isolation_config($value)Type:
Message(Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy::IsolationConfig)Optional. Configuration to provide isolation support for the associated Backend Service.
Enum: ServiceLbPolicy::LoadBalancingAlgorithm
LOAD_BALANCING_ALGORITHM_UNSPECIFIED=>0SPRAY_TO_WORLD=>3SPRAY_TO_REGION=>4WATERFALL_BY_REGION=>5WATERFALL_BY_ZONE=>6
Enum: ServiceLbPolicy::IsolationGranularity
ISOLATION_GRANULARITY_UNSPECIFIED=>0REGION=>1
Enum: ServiceLbPolicy::IsolationMode
ISOLATION_MODE_UNSPECIFIED=>0NEAREST=>1STRICT=>2
Google::Cloud::Networkservices::V1::ServiceLbPolicy::ListServiceLbPoliciesRequest
Request used with the ListServiceLbPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which the ServiceLbPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of ServiceLbPolicies to return per call.
$msg->page_token()/$msg->page_token($value)Type:
StringThe value returned by the last `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.
Google::Cloud::Networkservices::V1::ServiceLbPolicy::ListServiceLbPoliciesResponse
Response returned by the ListServiceLbPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->service_lb_policies()/$msg->service_lb_policies($value)Type:
Message(Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy)List of ServiceLbPolicy resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.
Google::Cloud::Networkservices::V1::ServiceLbPolicy::GetServiceLbPolicyRequest
Request used by the GetServiceLbPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the ServiceLbPolicy to get. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.
Google::Cloud::Networkservices::V1::ServiceLbPolicy::CreateServiceLbPolicyRequest
Request used by the ServiceLbPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the ServiceLbPolicy. Must be in the format `projects/{project}/locations/{location}`.
$msg->service_lb_policy_id()/$msg->service_lb_policy_id($value)Type:
StringRequired. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the id is value of {service_lb_policy_name}
$msg->service_lb_policy()/$msg->service_lb_policy($value)Type:
Message(Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy)Required. ServiceLbPolicy resource to be created.
Google::Cloud::Networkservices::V1::ServiceLbPolicy::UpdateServiceLbPolicyRequest
Request used by the UpdateServiceLbPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Field mask is used to specify the fields to be overwritten in the ServiceLbPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
$msg->service_lb_policy()/$msg->service_lb_policy($value)Type:
Message(Google::Cloud::Networkservices::V1::ServiceLbPolicy::ServiceLbPolicy)Required. Updated ServiceLbPolicy resource.
Google::Cloud::Networkservices::V1::ServiceLbPolicy::DeleteServiceLbPolicyRequest
Request used by the DeleteServiceLbPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the ServiceLbPolicy to delete. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networkservices::V1::ServiceLbPolicy::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.