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

Enum: ServiceLbPolicy::LoadBalancingAlgorithm

  • LOAD_BALANCING_ALGORITHM_UNSPECIFIED => 0

  • SPRAY_TO_WORLD => 3

  • SPRAY_TO_REGION => 4

  • WATERFALL_BY_REGION => 5

  • WATERFALL_BY_ZONE => 6

Enum: ServiceLbPolicy::IsolationGranularity

  • ISOLATION_GRANULARITY_UNSPECIFIED => 0

  • REGION => 1

Enum: ServiceLbPolicy::IsolationMode

  • ISOLATION_MODE_UNSPECIFIED => 0

  • NEAREST => 1

  • STRICT => 2

Google::Cloud::Networkservices::V1::ServiceLbPolicy::ListServiceLbPoliciesRequest

Request used with the ListServiceLbPolicies method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. 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: Int32

    Maximum number of ServiceLbPolicies to return per call.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The 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: String

    If 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: String

    Unreachable 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: String

    Required. 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: String

    Required. 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: String

    Required. 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: String

    Required. 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.