Class LbEndpoint.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder>
-
- io.envoyproxy.envoy.api.v2.endpoint.LbEndpoint.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LbEndpointOrBuilder,Cloneable
- Enclosing class:
- LbEndpoint
public static final class LbEndpoint.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder> implements LbEndpointOrBuilder
An Endpoint that Envoy can route traffic to. [#next-free-field: 6]
Protobuf typeenvoy.api.v2.endpoint.LbEndpoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LbEndpoint.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LbEndpointbuild()LbEndpointbuildPartial()LbEndpoint.Builderclear()LbEndpoint.BuilderclearEndpoint().envoy.api.v2.endpoint.Endpoint endpoint = 1;LbEndpoint.BuilderclearEndpointName()[#not-implemented-hide:]LbEndpoint.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LbEndpoint.BuilderclearHealthStatus()Optional health status when known and supplied by EDS server.LbEndpoint.BuilderclearHostIdentifier()LbEndpoint.BuilderclearLoadBalancingWeight()The optional load balancing weight of the upstream host; at least 1.LbEndpoint.BuilderclearMetadata()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.LbEndpoint.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LbEndpoint.Builderclone()LbEndpointgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EndpointgetEndpoint().envoy.api.v2.endpoint.Endpoint endpoint = 1;Endpoint.BuildergetEndpointBuilder().envoy.api.v2.endpoint.Endpoint endpoint = 1;StringgetEndpointName()[#not-implemented-hide:]com.google.protobuf.ByteStringgetEndpointNameBytes()[#not-implemented-hide:]EndpointOrBuildergetEndpointOrBuilder().envoy.api.v2.endpoint.Endpoint endpoint = 1;HealthStatusgetHealthStatus()Optional health status when known and supplied by EDS server.intgetHealthStatusValue()Optional health status when known and supplied by EDS server.LbEndpoint.HostIdentifierCasegetHostIdentifierCase()com.google.protobuf.UInt32ValuegetLoadBalancingWeight()The optional load balancing weight of the upstream host; at least 1.com.google.protobuf.UInt32Value.BuildergetLoadBalancingWeightBuilder()The optional load balancing weight of the upstream host; at least 1.com.google.protobuf.UInt32ValueOrBuildergetLoadBalancingWeightOrBuilder()The optional load balancing weight of the upstream host; at least 1.MetadatagetMetadata()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.Metadata.BuildergetMetadataBuilder()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.MetadataOrBuildergetMetadataOrBuilder()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.booleanhasEndpoint().envoy.api.v2.endpoint.Endpoint endpoint = 1;booleanhasEndpointName()[#not-implemented-hide:]booleanhasLoadBalancingWeight()The optional load balancing weight of the upstream host; at least 1.booleanhasMetadata()The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LbEndpoint.BuildermergeEndpoint(Endpoint value).envoy.api.v2.endpoint.Endpoint endpoint = 1;LbEndpoint.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LbEndpoint.BuildermergeFrom(com.google.protobuf.Message other)LbEndpoint.BuildermergeFrom(LbEndpoint other)LbEndpoint.BuildermergeLoadBalancingWeight(com.google.protobuf.UInt32Value value)The optional load balancing weight of the upstream host; at least 1.LbEndpoint.BuildermergeMetadata(Metadata value)The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.LbEndpoint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LbEndpoint.BuildersetEndpoint(Endpoint value).envoy.api.v2.endpoint.Endpoint endpoint = 1;LbEndpoint.BuildersetEndpoint(Endpoint.Builder builderForValue).envoy.api.v2.endpoint.Endpoint endpoint = 1;LbEndpoint.BuildersetEndpointName(String value)[#not-implemented-hide:]LbEndpoint.BuildersetEndpointNameBytes(com.google.protobuf.ByteString value)[#not-implemented-hide:]LbEndpoint.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LbEndpoint.BuildersetHealthStatus(HealthStatus value)Optional health status when known and supplied by EDS server.LbEndpoint.BuildersetHealthStatusValue(int value)Optional health status when known and supplied by EDS server.LbEndpoint.BuildersetLoadBalancingWeight(com.google.protobuf.UInt32Value value)The optional load balancing weight of the upstream host; at least 1.LbEndpoint.BuildersetLoadBalancingWeight(com.google.protobuf.UInt32Value.Builder builderForValue)The optional load balancing weight of the upstream host; at least 1.LbEndpoint.BuildersetMetadata(Metadata value)The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.LbEndpoint.BuildersetMetadata(Metadata.Builder builderForValue)The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request.LbEndpoint.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LbEndpoint.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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder>
-
clear
public LbEndpoint.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<LbEndpoint.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<LbEndpoint.Builder>
-
getDefaultInstanceForType
public LbEndpoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LbEndpoint build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LbEndpoint buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LbEndpoint.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<LbEndpoint.Builder>
-
setField
public LbEndpoint.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<LbEndpoint.Builder>
-
clearField
public LbEndpoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder>
-
clearOneof
public LbEndpoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder>
-
setRepeatedField
public LbEndpoint.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<LbEndpoint.Builder>
-
addRepeatedField
public LbEndpoint.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<LbEndpoint.Builder>
-
mergeFrom
public LbEndpoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LbEndpoint.Builder>
-
mergeFrom
public LbEndpoint.Builder mergeFrom(LbEndpoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder>
-
mergeFrom
public LbEndpoint.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<LbEndpoint.Builder>- Throws:
IOException
-
getHostIdentifierCase
public LbEndpoint.HostIdentifierCase getHostIdentifierCase()
- Specified by:
getHostIdentifierCasein interfaceLbEndpointOrBuilder
-
clearHostIdentifier
public LbEndpoint.Builder clearHostIdentifier()
-
hasEndpoint
public boolean hasEndpoint()
.envoy.api.v2.endpoint.Endpoint endpoint = 1;- Specified by:
hasEndpointin interfaceLbEndpointOrBuilder- Returns:
- Whether the endpoint field is set.
-
getEndpoint
public Endpoint getEndpoint()
.envoy.api.v2.endpoint.Endpoint endpoint = 1;- Specified by:
getEndpointin interfaceLbEndpointOrBuilder- Returns:
- The endpoint.
-
setEndpoint
public LbEndpoint.Builder setEndpoint(Endpoint value)
.envoy.api.v2.endpoint.Endpoint endpoint = 1;
-
setEndpoint
public LbEndpoint.Builder setEndpoint(Endpoint.Builder builderForValue)
.envoy.api.v2.endpoint.Endpoint endpoint = 1;
-
mergeEndpoint
public LbEndpoint.Builder mergeEndpoint(Endpoint value)
.envoy.api.v2.endpoint.Endpoint endpoint = 1;
-
clearEndpoint
public LbEndpoint.Builder clearEndpoint()
.envoy.api.v2.endpoint.Endpoint endpoint = 1;
-
getEndpointBuilder
public Endpoint.Builder getEndpointBuilder()
.envoy.api.v2.endpoint.Endpoint endpoint = 1;
-
getEndpointOrBuilder
public EndpointOrBuilder getEndpointOrBuilder()
.envoy.api.v2.endpoint.Endpoint endpoint = 1;- Specified by:
getEndpointOrBuilderin interfaceLbEndpointOrBuilder
-
hasEndpointName
public boolean hasEndpointName()
[#not-implemented-hide:]
string endpoint_name = 5;- Specified by:
hasEndpointNamein interfaceLbEndpointOrBuilder- Returns:
- Whether the endpointName field is set.
-
getEndpointName
public String getEndpointName()
[#not-implemented-hide:]
string endpoint_name = 5;- Specified by:
getEndpointNamein interfaceLbEndpointOrBuilder- Returns:
- The endpointName.
-
getEndpointNameBytes
public com.google.protobuf.ByteString getEndpointNameBytes()
[#not-implemented-hide:]
string endpoint_name = 5;- Specified by:
getEndpointNameBytesin interfaceLbEndpointOrBuilder- Returns:
- The bytes for endpointName.
-
setEndpointName
public LbEndpoint.Builder setEndpointName(String value)
[#not-implemented-hide:]
string endpoint_name = 5;- Parameters:
value- The endpointName to set.- Returns:
- This builder for chaining.
-
clearEndpointName
public LbEndpoint.Builder clearEndpointName()
[#not-implemented-hide:]
string endpoint_name = 5;- Returns:
- This builder for chaining.
-
setEndpointNameBytes
public LbEndpoint.Builder setEndpointNameBytes(com.google.protobuf.ByteString value)
[#not-implemented-hide:]
string endpoint_name = 5;- Parameters:
value- The bytes for endpointName to set.- Returns:
- This builder for chaining.
-
getHealthStatusValue
public int getHealthStatusValue()
Optional health status when known and supplied by EDS server.
.envoy.api.v2.core.HealthStatus health_status = 2;- Specified by:
getHealthStatusValuein interfaceLbEndpointOrBuilder- Returns:
- The enum numeric value on the wire for healthStatus.
-
setHealthStatusValue
public LbEndpoint.Builder setHealthStatusValue(int value)
Optional health status when known and supplied by EDS server.
.envoy.api.v2.core.HealthStatus health_status = 2;- Parameters:
value- The enum numeric value on the wire for healthStatus to set.- Returns:
- This builder for chaining.
-
getHealthStatus
public HealthStatus getHealthStatus()
Optional health status when known and supplied by EDS server.
.envoy.api.v2.core.HealthStatus health_status = 2;- Specified by:
getHealthStatusin interfaceLbEndpointOrBuilder- Returns:
- The healthStatus.
-
setHealthStatus
public LbEndpoint.Builder setHealthStatus(HealthStatus value)
Optional health status when known and supplied by EDS server.
.envoy.api.v2.core.HealthStatus health_status = 2;- Parameters:
value- The healthStatus to set.- Returns:
- This builder for chaining.
-
clearHealthStatus
public LbEndpoint.Builder clearHealthStatus()
Optional health status when known and supplied by EDS server.
.envoy.api.v2.core.HealthStatus health_status = 2;- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;- Specified by:
hasMetadatain interfaceLbEndpointOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;- Specified by:
getMetadatain interfaceLbEndpointOrBuilder- Returns:
- The metadata.
-
setMetadata
public LbEndpoint.Builder setMetadata(Metadata value)
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;
-
setMetadata
public LbEndpoint.Builder setMetadata(Metadata.Builder builderForValue)
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;
-
mergeMetadata
public LbEndpoint.Builder mergeMetadata(Metadata value)
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;
-
clearMetadata
public LbEndpoint.Builder clearMetadata()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;
-
getMetadataBuilder
public Metadata.Builder getMetadataBuilder()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
The endpoint metadata specifies values that may be used by the load balancer to select endpoints in a cluster for a given request. The filter name should be specified as *envoy.lb*. An example boolean key-value pair is *canary*, providing the optional canary status of the upstream host. This may be matched against in a route's :ref:`RouteAction <envoy_api_msg_route.RouteAction>` metadata_match field to subset the endpoints considered in cluster load balancing.
.envoy.api.v2.core.Metadata metadata = 3;- Specified by:
getMetadataOrBuilderin interfaceLbEndpointOrBuilder
-
hasLoadBalancingWeight
public boolean hasLoadBalancingWeight()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }- Specified by:
hasLoadBalancingWeightin interfaceLbEndpointOrBuilder- Returns:
- Whether the loadBalancingWeight field is set.
-
getLoadBalancingWeight
public com.google.protobuf.UInt32Value getLoadBalancingWeight()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }- Specified by:
getLoadBalancingWeightin interfaceLbEndpointOrBuilder- Returns:
- The loadBalancingWeight.
-
setLoadBalancingWeight
public LbEndpoint.Builder setLoadBalancingWeight(com.google.protobuf.UInt32Value value)
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }
-
setLoadBalancingWeight
public LbEndpoint.Builder setLoadBalancingWeight(com.google.protobuf.UInt32Value.Builder builderForValue)
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }
-
mergeLoadBalancingWeight
public LbEndpoint.Builder mergeLoadBalancingWeight(com.google.protobuf.UInt32Value value)
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }
-
clearLoadBalancingWeight
public LbEndpoint.Builder clearLoadBalancingWeight()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }
-
getLoadBalancingWeightBuilder
public com.google.protobuf.UInt32Value.Builder getLoadBalancingWeightBuilder()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }
-
getLoadBalancingWeightOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getLoadBalancingWeightOrBuilder()
The optional load balancing weight of the upstream host; at least 1. Envoy uses the load balancing weight in some of the built in load balancers. The load balancing weight for an endpoint is divided by the sum of the weights of all endpoints in the endpoint's locality to produce a percentage of traffic for the endpoint. This percentage is then further weighted by the endpoint's locality's load balancing weight from LocalityLbEndpoints. If unspecified, each host is presumed to have equal weight in a locality. The sum of the weights of all endpoints in the endpoint's locality must not exceed uint32_t maximal value (4294967295).
.google.protobuf.UInt32Value load_balancing_weight = 4 [(.validate.rules) = { ... }- Specified by:
getLoadBalancingWeightOrBuilderin interfaceLbEndpointOrBuilder
-
setUnknownFields
public final LbEndpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder>
-
mergeUnknownFields
public final LbEndpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LbEndpoint.Builder>
-
-