Package io.envoyproxy.envoy.api.v2
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 booleancontainsNamedEndpoints(String key)Map of named endpoints that can be referenced in LocalityLbEndpoints.StringgetClusterName()Name of the cluster.com.google.protobuf.ByteStringgetClusterNameBytes()Name of the cluster.LocalityLbEndpointsgetEndpoints(int index)List of endpoints to load balance to.intgetEndpointsCount()List of endpoints to load balance to.List<LocalityLbEndpoints>getEndpointsList()List of endpoints to load balance to.LocalityLbEndpointsOrBuildergetEndpointsOrBuilder(int index)List of endpoints to load balance to.List<? extends LocalityLbEndpointsOrBuilder>getEndpointsOrBuilderList()List of endpoints to load balance to.Map<String,Endpoint>getNamedEndpoints()Deprecated.intgetNamedEndpointsCount()Map of named endpoints that can be referenced in LocalityLbEndpoints.Map<String,Endpoint>getNamedEndpointsMap()Map of named endpoints that can be referenced in LocalityLbEndpoints.EndpointgetNamedEndpointsOrDefault(String key, Endpoint defaultValue)Map of named endpoints that can be referenced in LocalityLbEndpoints.EndpointgetNamedEndpointsOrThrow(String key)Map of named endpoints that can be referenced in LocalityLbEndpoints.ClusterLoadAssignment.PolicygetPolicy()Load balancing policy settings.ClusterLoadAssignment.PolicyOrBuildergetPolicyOrBuilder()Load balancing policy settings.booleanhasPolicy()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
String getClusterName()
Name of the cluster. This will be the :ref:`service_name <envoy_api_field_Cluster.EdsClusterConfig.service_name>` value if specified in the cluster :ref:`EdsClusterConfig <envoy_api_msg_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_api_field_Cluster.EdsClusterConfig.service_name>` value if specified in the cluster :ref:`EdsClusterConfig <envoy_api_msg_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.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getEndpoints
LocalityLbEndpoints getEndpoints(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getEndpointsCount
int getEndpointsCount()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getEndpointsOrBuilderList
List<? extends LocalityLbEndpointsOrBuilder> getEndpointsOrBuilderList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getEndpointsOrBuilder
LocalityLbEndpointsOrBuilder getEndpointsOrBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getNamedEndpointsCount
int getNamedEndpointsCount()
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
-
containsNamedEndpoints
boolean containsNamedEndpoints(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
-
getNamedEndpoints
@Deprecated Map<String,Endpoint> getNamedEndpoints()
Deprecated.UsegetNamedEndpointsMap()instead.
-
getNamedEndpointsMap
Map<String,Endpoint> getNamedEndpointsMap()
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
-
getNamedEndpointsOrDefault
Endpoint getNamedEndpointsOrDefault(String key, Endpoint defaultValue)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
-
getNamedEndpointsOrThrow
Endpoint getNamedEndpointsOrThrow(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;
-
hasPolicy
boolean hasPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;- Returns:
- Whether the policy field is set.
-
getPolicy
ClusterLoadAssignment.Policy getPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;- Returns:
- The policy.
-
getPolicyOrBuilder
ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
-
-