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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsNamedEndpoints(java.lang.String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints.java.lang.String
getClusterName()
Name of the cluster.com.google.protobuf.ByteString
getClusterNameBytes()
Name of the cluster.LocalityLbEndpoints
getEndpoints(int index)
List of endpoints to load balance to.int
getEndpointsCount()
List of endpoints to load balance to.java.util.List<LocalityLbEndpoints>
getEndpointsList()
List of endpoints to load balance to.LocalityLbEndpointsOrBuilder
getEndpointsOrBuilder(int index)
List of endpoints to load balance to.java.util.List<? extends LocalityLbEndpointsOrBuilder>
getEndpointsOrBuilderList()
List of endpoints to load balance to.java.util.Map<java.lang.String,Endpoint>
getNamedEndpoints()
Deprecated.int
getNamedEndpointsCount()
Map of named endpoints that can be referenced in LocalityLbEndpoints.java.util.Map<java.lang.String,Endpoint>
getNamedEndpointsMap()
Map of named endpoints that can be referenced in LocalityLbEndpoints.Endpoint
getNamedEndpointsOrDefault(java.lang.String key, Endpoint defaultValue)
Map of named endpoints that can be referenced in LocalityLbEndpoints.Endpoint
getNamedEndpointsOrThrow(java.lang.String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints.ClusterLoadAssignment.Policy
getPolicy()
Load balancing policy settings.ClusterLoadAssignment.PolicyOrBuilder
getPolicyOrBuilder()
Load balancing policy settings.boolean
hasPolicy()
Load balancing policy settings.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getClusterName
java.lang.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
java.util.List<LocalityLbEndpoints> getEndpointsList()
List of endpoints to load balance to.
repeated .envoy.config.endpoint.v3.LocalityLbEndpoints endpoints = 2;
-
getEndpoints
LocalityLbEndpoints getEndpoints(int index)
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
java.util.List<? extends LocalityLbEndpointsOrBuilder> getEndpointsOrBuilderList()
List of endpoints to load balance to.
repeated .envoy.config.endpoint.v3.LocalityLbEndpoints endpoints = 2;
-
getEndpointsOrBuilder
LocalityLbEndpointsOrBuilder getEndpointsOrBuilder(int index)
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
boolean containsNamedEndpoints(java.lang.String key)
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 java.util.Map<java.lang.String,Endpoint> getNamedEndpoints()
Deprecated.UsegetNamedEndpointsMap()
instead.
-
getNamedEndpointsMap
java.util.Map<java.lang.String,Endpoint> 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
Endpoint getNamedEndpointsOrDefault(java.lang.String key, Endpoint defaultValue)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.config.endpoint.v3.Endpoint> named_endpoints = 5;
-
getNamedEndpointsOrThrow
Endpoint getNamedEndpointsOrThrow(java.lang.String key)
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;
-
-