Package io.envoyproxy.envoy.api.v2
Class ClusterLoadAssignment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
- io.envoyproxy.envoy.api.v2.ClusterLoadAssignment.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ClusterLoadAssignmentOrBuilder,Cloneable
- Enclosing class:
- ClusterLoadAssignment
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 typeenvoy.api.v2.ClusterLoadAssignment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClusterLoadAssignment.BuilderaddAllEndpoints(Iterable<? extends LocalityLbEndpoints> values)List of endpoints to load balance to.ClusterLoadAssignment.BuilderaddEndpoints(int index, LocalityLbEndpoints value)List of endpoints to load balance to.ClusterLoadAssignment.BuilderaddEndpoints(int index, LocalityLbEndpoints.Builder builderForValue)List of endpoints to load balance to.ClusterLoadAssignment.BuilderaddEndpoints(LocalityLbEndpoints value)List of endpoints to load balance to.ClusterLoadAssignment.BuilderaddEndpoints(LocalityLbEndpoints.Builder builderForValue)List of endpoints to load balance to.LocalityLbEndpoints.BuilderaddEndpointsBuilder()List of endpoints to load balance to.LocalityLbEndpoints.BuilderaddEndpointsBuilder(int index)List of endpoints to load balance to.ClusterLoadAssignment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ClusterLoadAssignmentbuild()ClusterLoadAssignmentbuildPartial()ClusterLoadAssignment.Builderclear()ClusterLoadAssignment.BuilderclearClusterName()Name of the cluster.ClusterLoadAssignment.BuilderclearEndpoints()List of endpoints to load balance to.ClusterLoadAssignment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ClusterLoadAssignment.BuilderclearNamedEndpoints()ClusterLoadAssignment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ClusterLoadAssignment.BuilderclearPolicy()Load balancing policy settings.ClusterLoadAssignment.Builderclone()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.ClusterLoadAssignmentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LocalityLbEndpointsgetEndpoints(int index)List of endpoints to load balance to.LocalityLbEndpoints.BuildergetEndpointsBuilder(int index)List of endpoints to load balance to.List<LocalityLbEndpoints.Builder>getEndpointsBuilderList()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>getMutableNamedEndpoints()Deprecated.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.Policy.BuildergetPolicyBuilder()Load balancing policy settings.ClusterLoadAssignment.PolicyOrBuildergetPolicyOrBuilder()Load balancing policy settings.booleanhasPolicy()Load balancing policy settings.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ClusterLoadAssignment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ClusterLoadAssignment.BuildermergeFrom(com.google.protobuf.Message other)ClusterLoadAssignment.BuildermergeFrom(ClusterLoadAssignment other)ClusterLoadAssignment.BuildermergePolicy(ClusterLoadAssignment.Policy value)Load balancing policy settings.ClusterLoadAssignment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ClusterLoadAssignment.BuilderputAllNamedEndpoints(Map<String,Endpoint> values)Map of named endpoints that can be referenced in LocalityLbEndpoints.ClusterLoadAssignment.BuilderputNamedEndpoints(String key, Endpoint value)Map of named endpoints that can be referenced in LocalityLbEndpoints.ClusterLoadAssignment.BuilderremoveEndpoints(int index)List of endpoints to load balance to.ClusterLoadAssignment.BuilderremoveNamedEndpoints(String key)Map of named endpoints that can be referenced in LocalityLbEndpoints.ClusterLoadAssignment.BuildersetClusterName(String value)Name of the cluster.ClusterLoadAssignment.BuildersetClusterNameBytes(com.google.protobuf.ByteString value)Name of the cluster.ClusterLoadAssignment.BuildersetEndpoints(int index, LocalityLbEndpoints value)List of endpoints to load balance to.ClusterLoadAssignment.BuildersetEndpoints(int index, LocalityLbEndpoints.Builder builderForValue)List of endpoints to load balance to.ClusterLoadAssignment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ClusterLoadAssignment.BuildersetPolicy(ClusterLoadAssignment.Policy value)Load balancing policy settings.ClusterLoadAssignment.BuildersetPolicy(ClusterLoadAssignment.Policy.Builder builderForValue)Load balancing policy settings.ClusterLoadAssignment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ClusterLoadAssignment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
clear
public ClusterLoadAssignment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
getDefaultInstanceForType
public ClusterLoadAssignment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClusterLoadAssignment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClusterLoadAssignment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClusterLoadAssignment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
setField
public ClusterLoadAssignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
clearField
public ClusterLoadAssignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
clearOneof
public ClusterLoadAssignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
setRepeatedField
public ClusterLoadAssignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
addRepeatedField
public ClusterLoadAssignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
mergeFrom
public ClusterLoadAssignment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClusterLoadAssignment.Builder>
-
mergeFrom
public ClusterLoadAssignment.Builder mergeFrom(ClusterLoadAssignment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
mergeFrom
public ClusterLoadAssignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClusterLoadAssignment.Builder>- Throws:
IOException
-
getClusterName
public 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) = { ... }- Specified by:
getClusterNamein interfaceClusterLoadAssignmentOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public 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) = { ... }- Specified by:
getClusterNameBytesin interfaceClusterLoadAssignmentOrBuilder- Returns:
- The bytes for clusterName.
-
setClusterName
public 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) = { ... }- Parameters:
value- The clusterName to set.- Returns:
- This builder for chaining.
-
clearClusterName
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) = { ... }- Returns:
- This builder for chaining.
-
setClusterNameBytes
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) = { ... }- Parameters:
value- The bytes for clusterName to set.- Returns:
- This builder for chaining.
-
getEndpointsList
public List<LocalityLbEndpoints> getEndpointsList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;- Specified by:
getEndpointsListin interfaceClusterLoadAssignmentOrBuilder
-
getEndpointsCount
public int getEndpointsCount()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;- Specified by:
getEndpointsCountin interfaceClusterLoadAssignmentOrBuilder
-
getEndpoints
public LocalityLbEndpoints getEndpoints(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;- Specified by:
getEndpointsin interfaceClusterLoadAssignmentOrBuilder
-
setEndpoints
public ClusterLoadAssignment.Builder setEndpoints(int index, LocalityLbEndpoints value)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
setEndpoints
public ClusterLoadAssignment.Builder setEndpoints(int index, LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
addEndpoints
public ClusterLoadAssignment.Builder addEndpoints(LocalityLbEndpoints value)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
addEndpoints
public ClusterLoadAssignment.Builder addEndpoints(int index, LocalityLbEndpoints value)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
addEndpoints
public ClusterLoadAssignment.Builder addEndpoints(LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
addEndpoints
public ClusterLoadAssignment.Builder addEndpoints(int index, LocalityLbEndpoints.Builder builderForValue)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
addAllEndpoints
public ClusterLoadAssignment.Builder addAllEndpoints(Iterable<? extends LocalityLbEndpoints> values)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
clearEndpoints
public ClusterLoadAssignment.Builder clearEndpoints()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
removeEndpoints
public ClusterLoadAssignment.Builder removeEndpoints(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getEndpointsBuilder
public LocalityLbEndpoints.Builder getEndpointsBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getEndpointsOrBuilder
public LocalityLbEndpointsOrBuilder getEndpointsOrBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;- Specified by:
getEndpointsOrBuilderin interfaceClusterLoadAssignmentOrBuilder
-
getEndpointsOrBuilderList
public List<? extends LocalityLbEndpointsOrBuilder> getEndpointsOrBuilderList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;- Specified by:
getEndpointsOrBuilderListin interfaceClusterLoadAssignmentOrBuilder
-
addEndpointsBuilder
public LocalityLbEndpoints.Builder addEndpointsBuilder()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
addEndpointsBuilder
public LocalityLbEndpoints.Builder addEndpointsBuilder(int index)
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getEndpointsBuilderList
public List<LocalityLbEndpoints.Builder> getEndpointsBuilderList()
List of endpoints to load balance to.
repeated .envoy.api.v2.endpoint.LocalityLbEndpoints endpoints = 2;
-
getNamedEndpointsCount
public int getNamedEndpointsCount()
Description copied from interface:ClusterLoadAssignmentOrBuilderMap of named endpoints that can be referenced in LocalityLbEndpoints. [#not-implemented-hide:]
map<string, .envoy.api.v2.endpoint.Endpoint> named_endpoints = 5;- Specified by:
getNamedEndpointsCountin interfaceClusterLoadAssignmentOrBuilder
-
containsNamedEndpoints
public 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;- Specified by:
containsNamedEndpointsin interfaceClusterLoadAssignmentOrBuilder
-
getNamedEndpoints
@Deprecated public Map<String,Endpoint> getNamedEndpoints()
Deprecated.UsegetNamedEndpointsMap()instead.- Specified by:
getNamedEndpointsin interfaceClusterLoadAssignmentOrBuilder
-
getNamedEndpointsMap
public 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;- Specified by:
getNamedEndpointsMapin interfaceClusterLoadAssignmentOrBuilder
-
getNamedEndpointsOrDefault
public 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;- Specified by:
getNamedEndpointsOrDefaultin interfaceClusterLoadAssignmentOrBuilder
-
getNamedEndpointsOrThrow
public 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;- Specified by:
getNamedEndpointsOrThrowin interfaceClusterLoadAssignmentOrBuilder
-
clearNamedEndpoints
public ClusterLoadAssignment.Builder clearNamedEndpoints()
-
removeNamedEndpoints
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;
-
getMutableNamedEndpoints
@Deprecated public Map<String,Endpoint> getMutableNamedEndpoints()
Deprecated.Use alternate mutation accessors instead.
-
putNamedEndpoints
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;
-
putAllNamedEndpoints
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;
-
hasPolicy
public boolean hasPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;- Specified by:
hasPolicyin interfaceClusterLoadAssignmentOrBuilder- Returns:
- Whether the policy field is set.
-
getPolicy
public ClusterLoadAssignment.Policy getPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;- Specified by:
getPolicyin interfaceClusterLoadAssignmentOrBuilder- Returns:
- The policy.
-
setPolicy
public ClusterLoadAssignment.Builder setPolicy(ClusterLoadAssignment.Policy value)
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
-
setPolicy
public ClusterLoadAssignment.Builder setPolicy(ClusterLoadAssignment.Policy.Builder builderForValue)
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
-
mergePolicy
public ClusterLoadAssignment.Builder mergePolicy(ClusterLoadAssignment.Policy value)
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
-
clearPolicy
public ClusterLoadAssignment.Builder clearPolicy()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
-
getPolicyBuilder
public ClusterLoadAssignment.Policy.Builder getPolicyBuilder()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;
-
getPolicyOrBuilder
public ClusterLoadAssignment.PolicyOrBuilder getPolicyOrBuilder()
Load balancing policy settings.
.envoy.api.v2.ClusterLoadAssignment.Policy policy = 4;- Specified by:
getPolicyOrBuilderin interfaceClusterLoadAssignmentOrBuilder
-
setUnknownFields
public final ClusterLoadAssignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
mergeUnknownFields
public final ClusterLoadAssignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClusterLoadAssignment.Builder>
-
-