Interface ClusterLoadAssignmentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ClusterLoadAssignment
,ClusterLoadAssignment.Builder
public interface ClusterLoadAssignmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Map of named endpoints that can be referenced in LocalityLbEndpoints.Name of the cluster.com.google.protobuf.ByteString
Name of the cluster.getEndpoints
(int index) List of endpoints to load balance to.int
List of endpoints to load balance to.List of endpoints to load balance to.getEndpointsOrBuilder
(int index) List of endpoints to load balance to.List
<? extends LocalityLbEndpointsOrBuilder> List of endpoints to load balance to.Deprecated.int
Map of named endpoints that can be referenced in LocalityLbEndpoints.Map of named endpoints that can be referenced in LocalityLbEndpoints.getNamedEndpointsOrDefault
(String key, Endpoint defaultValue) Map of named endpoints that can be referenced in LocalityLbEndpoints.Map of named endpoints that can be referenced in LocalityLbEndpoints.Load balancing policy settings.Load balancing policy settings.boolean
Load balancing policy settings.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getClusterName
String getClusterName()Name of the cluster. This will be the :ref:`service_name <envoy_v3_api_field_config.cluster.v3.Cluster.EdsClusterConfig.service_name>` value if specified in the cluster :ref:`EdsClusterConfig <envoy_v3_api_msg_config.cluster.v3.Cluster.EdsClusterConfig>`.
string cluster_name = 1 [(.validate.rules) = { ... }
- Returns:
- The clusterName.
-
getClusterNameBytes
com.google.protobuf.ByteString getClusterNameBytes()Name of the cluster. This will be the :ref:`service_name <envoy_v3_api_field_config.cluster.v3.Cluster.EdsClusterConfig.service_name>` value if specified in the cluster :ref:`EdsClusterConfig <envoy_v3_api_msg_config.cluster.v3.Cluster.EdsClusterConfig>`.
string cluster_name = 1 [(.validate.rules) = { ... }
- Returns:
- The bytes for clusterName.
-
getEndpointsList
List<LocalityLbEndpoints> getEndpointsList()List of endpoints to load balance to.
repeated .envoy.config.endpoint.v3.LocalityLbEndpoints endpoints = 2;
-
getEndpoints
List of endpoints to load balance to.
repeated .envoy.config.endpoint.v3.LocalityLbEndpoints endpoints = 2;
-
getEndpointsCount
int getEndpointsCount()List of endpoints to load balance to.
repeated .envoy.config.endpoint.v3.LocalityLbEndpoints endpoints = 2;
-
getEndpointsOrBuilderList
List<? extends LocalityLbEndpointsOrBuilder> getEndpointsOrBuilderList()List of endpoints to load balance to.
repeated .envoy.config.endpoint.v3.LocalityLbEndpoints endpoints = 2;
-
getEndpointsOrBuilder
List of endpoints to load balance to.
repeated .envoy.config.endpoint.v3.LocalityLbEndpoints endpoints = 2;
-
getNamedEndpointsCount
int getNamedEndpointsCount()Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.config.endpoint.v3.Endpoint> named_endpoints = 5;
-
containsNamedEndpoints
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.config.endpoint.v3.Endpoint> named_endpoints = 5;
-
getNamedEndpoints
Deprecated.UsegetNamedEndpointsMap()
instead. -
getNamedEndpointsMap
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.config.endpoint.v3.Endpoint> named_endpoints = 5;
-
getNamedEndpointsOrDefault
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.config.endpoint.v3.Endpoint> named_endpoints = 5;
-
getNamedEndpointsOrThrow
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.config.endpoint.v3.Endpoint> named_endpoints = 5;
-
hasPolicy
boolean hasPolicy()Load balancing policy settings.
.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 4;
- Returns:
- Whether the policy field is set.
-
getPolicy
ClusterLoadAssignment.Policy getPolicy()Load balancing policy settings.
.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 4;
- Returns:
- The policy.
-
getPolicyOrBuilder
ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder()Load balancing policy settings.
.envoy.config.endpoint.v3.ClusterLoadAssignment.Policy policy = 4;
-