public static final class LoadBalancingPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder> implements LoadBalancingPolicyOrBuilder
[#not-implemented-hide:] Extensible load balancing policy configuration. Every LB policy defined via this mechanism will be identified via a unique name using reverse DNS notation. If the policy needs configuration parameters, it must define a message for its own configuration, which will be stored in the config field. The name of the policy will tell clients which type of message they should expect to see in the config field. Note that there are cases where it is useful to be able to independently select LB policies for choosing a locality and for choosing an endpoint within that locality. For example, a given deployment may always use the same policy to choose the locality, but for choosing the endpoint within the locality, some clusters may use weighted-round-robin, while others may use some sort of session-based balancing. This can be accomplished via hierarchical LB policies, where the parent LB policy creates a child LB policy for each locality. For each request, the parent chooses the locality and then delegates to the child policy for that locality to choose the endpoint within the locality. To facilitate this, the config message for the top-level LB policy may include a field of type LoadBalancingPolicy that specifies the child policy.Protobuf type
envoy.config.cluster.v3.LoadBalancingPolicy| Modifier and Type | Method and Description |
|---|---|
LoadBalancingPolicy.Builder |
addAllPolicies(Iterable<? extends LoadBalancingPolicy.Policy> values)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
addPolicies(int index,
LoadBalancingPolicy.Policy.Builder builderForValue)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
addPolicies(int index,
LoadBalancingPolicy.Policy value)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
addPolicies(LoadBalancingPolicy.Policy.Builder builderForValue)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
addPolicies(LoadBalancingPolicy.Policy value)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Policy.Builder |
addPoliciesBuilder()
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Policy.Builder |
addPoliciesBuilder(int index)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LoadBalancingPolicy |
build() |
LoadBalancingPolicy |
buildPartial() |
LoadBalancingPolicy.Builder |
clear() |
LoadBalancingPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LoadBalancingPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LoadBalancingPolicy.Builder |
clearPolicies()
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
clone() |
LoadBalancingPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LoadBalancingPolicy.Policy |
getPolicies(int index)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Policy.Builder |
getPoliciesBuilder(int index)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
List<LoadBalancingPolicy.Policy.Builder> |
getPoliciesBuilderList()
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
int |
getPoliciesCount()
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
List<LoadBalancingPolicy.Policy> |
getPoliciesList()
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.PolicyOrBuilder |
getPoliciesOrBuilder(int index)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
List<? extends LoadBalancingPolicy.PolicyOrBuilder> |
getPoliciesOrBuilderList()
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LoadBalancingPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LoadBalancingPolicy.Builder |
mergeFrom(LoadBalancingPolicy other) |
LoadBalancingPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
LoadBalancingPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LoadBalancingPolicy.Builder |
removePolicies(int index)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LoadBalancingPolicy.Builder |
setPolicies(int index,
LoadBalancingPolicy.Policy.Builder builderForValue)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
setPolicies(int index,
LoadBalancingPolicy.Policy value)
Each client will iterate over the list in order and stop at the first policy that it
supports.
|
LoadBalancingPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
LoadBalancingPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.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<LoadBalancingPolicy.Builder>public LoadBalancingPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LoadBalancingPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LoadBalancingPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LoadBalancingPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.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<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.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<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.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<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.Builder mergeFrom(LoadBalancingPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder>public LoadBalancingPolicy.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<LoadBalancingPolicy.Builder>IOExceptionpublic List<LoadBalancingPolicy.Policy> getPoliciesList()
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;getPoliciesList in interface LoadBalancingPolicyOrBuilderpublic int getPoliciesCount()
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;getPoliciesCount in interface LoadBalancingPolicyOrBuilderpublic LoadBalancingPolicy.Policy getPolicies(int index)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;getPolicies in interface LoadBalancingPolicyOrBuilderpublic LoadBalancingPolicy.Builder setPolicies(int index, LoadBalancingPolicy.Policy value)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder setPolicies(int index, LoadBalancingPolicy.Policy.Builder builderForValue)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder addPolicies(LoadBalancingPolicy.Policy value)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder addPolicies(int index, LoadBalancingPolicy.Policy value)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder addPolicies(LoadBalancingPolicy.Policy.Builder builderForValue)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder addPolicies(int index, LoadBalancingPolicy.Policy.Builder builderForValue)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder addAllPolicies(Iterable<? extends LoadBalancingPolicy.Policy> values)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder clearPolicies()
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Builder removePolicies(int index)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Policy.Builder getPoliciesBuilder(int index)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.PolicyOrBuilder getPoliciesOrBuilder(int index)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;getPoliciesOrBuilder in interface LoadBalancingPolicyOrBuilderpublic List<? extends LoadBalancingPolicy.PolicyOrBuilder> getPoliciesOrBuilderList()
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;getPoliciesOrBuilderList in interface LoadBalancingPolicyOrBuilderpublic LoadBalancingPolicy.Policy.Builder addPoliciesBuilder()
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public LoadBalancingPolicy.Policy.Builder addPoliciesBuilder(int index)
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public List<LoadBalancingPolicy.Policy.Builder> getPoliciesBuilderList()
Each client will iterate over the list in order and stop at the first policy that it supports. This provides a mechanism for starting to use new LB policies that are not yet supported by all clients.
repeated .envoy.config.cluster.v3.LoadBalancingPolicy.Policy policies = 1;public final LoadBalancingPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder>public final LoadBalancingPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LoadBalancingPolicy.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.