public static final class ClusterLoadAssignment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder> implements ClusterLoadAssignmentOrBuilder
Each route from RDS will map to a single cluster or traffic split across clusters using weights expressed in the RDS WeightedCluster. With EDS, each cluster is treated independently from a LB perspective, with LB taking place between the Localities within a cluster and at a finer granularity between the hosts within a locality. The percentage of traffic for each endpoint is determined by both its load_balancing_weight, and the load_balancing_weight of its locality. First, a locality will be selected, then an endpoint within that locality will be chose based on its weight. [#next-free-field: 6]Protobuf type
envoy.api.v2.ClusterLoadAssignment| Modifier and Type | Method and Description |
|---|---|
ClusterLoadAssignment.Builder |
addAllEndpoints(Iterable<? extends LocalityLbEndpoints> values)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
addEndpoints(int index,
LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
addEndpoints(int index,
LocalityLbEndpoints value)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
addEndpoints(LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
addEndpoints(LocalityLbEndpoints value)
List of endpoints to load balance to.
|
LocalityLbEndpoints.Builder |
addEndpointsBuilder()
List of endpoints to load balance to.
|
LocalityLbEndpoints.Builder |
addEndpointsBuilder(int index)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClusterLoadAssignment |
build() |
ClusterLoadAssignment |
buildPartial() |
ClusterLoadAssignment.Builder |
clear() |
ClusterLoadAssignment.Builder |
clearClusterName()
Name of the cluster.
|
ClusterLoadAssignment.Builder |
clearEndpoints()
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ClusterLoadAssignment.Builder |
clearNamedEndpoints() |
ClusterLoadAssignment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ClusterLoadAssignment.Builder |
clearPolicy()
Load balancing policy settings.
|
ClusterLoadAssignment.Builder |
clone() |
boolean |
containsNamedEndpoints(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
String |
getClusterName()
Name of the cluster.
|
com.google.protobuf.ByteString |
getClusterNameBytes()
Name of the cluster.
|
ClusterLoadAssignment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LocalityLbEndpoints |
getEndpoints(int index)
List of endpoints to load balance to.
|
LocalityLbEndpoints.Builder |
getEndpointsBuilder(int index)
List of endpoints to load balance to.
|
List<LocalityLbEndpoints.Builder> |
getEndpointsBuilderList()
List of endpoints to load balance to.
|
int |
getEndpointsCount()
List of endpoints to load balance to.
|
List<LocalityLbEndpoints> |
getEndpointsList()
List of endpoints to load balance to.
|
LocalityLbEndpointsOrBuilder |
getEndpointsOrBuilder(int index)
List of endpoints to load balance to.
|
List<? extends LocalityLbEndpointsOrBuilder> |
getEndpointsOrBuilderList()
List of endpoints to load balance to.
|
Map<String,Endpoint> |
getMutableNamedEndpoints()
Deprecated.
|
Map<String,Endpoint> |
getNamedEndpoints()
Deprecated.
|
int |
getNamedEndpointsCount()
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
Map<String,Endpoint> |
getNamedEndpointsMap()
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
Endpoint |
getNamedEndpointsOrDefault(String key,
Endpoint defaultValue)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
Endpoint |
getNamedEndpointsOrThrow(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
ClusterLoadAssignment.Policy |
getPolicy()
Load balancing policy settings.
|
ClusterLoadAssignment.Policy.Builder |
getPolicyBuilder()
Load balancing policy settings.
|
ClusterLoadAssignment.PolicyOrBuilder |
getPolicyOrBuilder()
Load balancing policy settings.
|
boolean |
hasPolicy()
Load balancing policy settings.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
ClusterLoadAssignment.Builder |
mergeFrom(ClusterLoadAssignment other) |
ClusterLoadAssignment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClusterLoadAssignment.Builder |
mergeFrom(com.google.protobuf.Message other) |
ClusterLoadAssignment.Builder |
mergePolicy(ClusterLoadAssignment.Policy value)
Load balancing policy settings.
|
ClusterLoadAssignment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClusterLoadAssignment.Builder |
putAllNamedEndpoints(Map<String,Endpoint> values)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
ClusterLoadAssignment.Builder |
putNamedEndpoints(String key,
Endpoint value)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
ClusterLoadAssignment.Builder |
removeEndpoints(int index)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
removeNamedEndpoints(String key)
Map of named endpoints that can be referenced in LocalityLbEndpoints.
|
ClusterLoadAssignment.Builder |
setClusterName(String value)
Name of the cluster.
|
ClusterLoadAssignment.Builder |
setClusterNameBytes(com.google.protobuf.ByteString value)
Name of the cluster.
|
ClusterLoadAssignment.Builder |
setEndpoints(int index,
LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
setEndpoints(int index,
LocalityLbEndpoints value)
List of endpoints to load balance to.
|
ClusterLoadAssignment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClusterLoadAssignment.Builder |
setPolicy(ClusterLoadAssignment.Policy.Builder builderForValue)
Load balancing policy settings.
|
ClusterLoadAssignment.Builder |
setPolicy(ClusterLoadAssignment.Policy value)
Load balancing policy settings.
|
ClusterLoadAssignment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ClusterLoadAssignment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ClusterLoadAssignment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ClusterLoadAssignment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ClusterLoadAssignment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder mergeFrom(ClusterLoadAssignment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public ClusterLoadAssignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClusterLoadAssignment.Builder>IOExceptionpublic 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) = { ... }getClusterName in interface ClusterLoadAssignmentOrBuilderpublic 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) = { ... }getClusterNameBytes in interface ClusterLoadAssignmentOrBuilderpublic ClusterLoadAssignment.Builder setClusterName(String value)
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) = { ... }public ClusterLoadAssignment.Builder clearClusterName()
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) = { ... }public ClusterLoadAssignment.Builder setClusterNameBytes(com.google.protobuf.ByteString value)
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) = { ... }public List<LocalityLbEndpoints> getEndpointsList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsList in interface ClusterLoadAssignmentOrBuilderpublic int getEndpointsCount()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsCount in interface ClusterLoadAssignmentOrBuilderpublic LocalityLbEndpoints getEndpoints(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpoints in interface ClusterLoadAssignmentOrBuilderpublic ClusterLoadAssignment.Builder setEndpoints(int index, LocalityLbEndpoints value)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder setEndpoints(int index, LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder addEndpoints(LocalityLbEndpoints value)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder addEndpoints(int index, LocalityLbEndpoints value)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder addEndpoints(LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder addEndpoints(int index, LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder addAllEndpoints(Iterable<? extends LocalityLbEndpoints> values)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder clearEndpoints()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public ClusterLoadAssignment.Builder removeEndpoints(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public LocalityLbEndpoints.Builder getEndpointsBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public LocalityLbEndpointsOrBuilder getEndpointsOrBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsOrBuilder in interface ClusterLoadAssignmentOrBuilderpublic List<? extends LocalityLbEndpointsOrBuilder> getEndpointsOrBuilderList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;getEndpointsOrBuilderList in interface ClusterLoadAssignmentOrBuilderpublic LocalityLbEndpoints.Builder addEndpointsBuilder()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public LocalityLbEndpoints.Builder addEndpointsBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public List<LocalityLbEndpoints.Builder> getEndpointsBuilderList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;public int getNamedEndpointsCount()
ClusterLoadAssignmentOrBuilderMap of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;getNamedEndpointsCount in interface ClusterLoadAssignmentOrBuilderpublic 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;containsNamedEndpoints in interface ClusterLoadAssignmentOrBuilder@Deprecated public Map<String,Endpoint> getNamedEndpoints()
getNamedEndpointsMap() instead.getNamedEndpoints in interface ClusterLoadAssignmentOrBuilderpublic 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;getNamedEndpointsMap in interface ClusterLoadAssignmentOrBuilderpublic 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;getNamedEndpointsOrDefault in interface ClusterLoadAssignmentOrBuilderpublic 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;getNamedEndpointsOrThrow in interface ClusterLoadAssignmentOrBuilderpublic ClusterLoadAssignment.Builder clearNamedEndpoints()
public ClusterLoadAssignment.Builder removeNamedEndpoints(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;@Deprecated public Map<String,Endpoint> getMutableNamedEndpoints()
public ClusterLoadAssignment.Builder putNamedEndpoints(String key, Endpoint value)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;public ClusterLoadAssignment.Builder putAllNamedEndpoints(Map<String,Endpoint> values)
Map of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;public boolean hasPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;hasPolicy in interface ClusterLoadAssignmentOrBuilderpublic ClusterLoadAssignment.Policy getPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;getPolicy in interface ClusterLoadAssignmentOrBuilderpublic ClusterLoadAssignment.Builder setPolicy(ClusterLoadAssignment.Policy value)
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;public ClusterLoadAssignment.Builder setPolicy(ClusterLoadAssignment.Policy.Builder builderForValue)
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;public ClusterLoadAssignment.Builder mergePolicy(ClusterLoadAssignment.Policy value)
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;public ClusterLoadAssignment.Builder clearPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;public ClusterLoadAssignment.Policy.Builder getPolicyBuilder()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;public ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;getPolicyOrBuilder in interface ClusterLoadAssignmentOrBuilderpublic final ClusterLoadAssignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>public final ClusterLoadAssignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.