Class Maglev.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
- io.envoyproxy.envoy.extensions.load_balancing_policies.maglev.v3.Maglev.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MaglevOrBuilder,Cloneable
- Enclosing class:
- Maglev
public static final class Maglev.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder> implements MaglevOrBuilder
This configuration allows the built-in Maglev LB policy to be configured via the LB policy extension point. See the :ref:`load balancing architecture overview <arch_overview_load_balancing_types>` and :ref:`Maglev<arch_overview_load_balancing_types_maglev>` for more information.
Protobuf typeenvoy.extensions.load_balancing_policies.maglev.v3.Maglev
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Maglev.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Maglevbuild()MaglevbuildPartial()Maglev.Builderclear()Maglev.BuilderclearConsistentHashingLbConfig()Common configuration for hashing-based load balancing policies.Maglev.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Maglev.BuilderclearLocalityWeightedLbConfig()Enable locality weighted load balancing for maglev lb explicitly.Maglev.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Maglev.BuilderclearTableSize()The table size for Maglev hashing.Maglev.Builderclone()ConsistentHashingLbConfiggetConsistentHashingLbConfig()Common configuration for hashing-based load balancing policies.ConsistentHashingLbConfig.BuildergetConsistentHashingLbConfigBuilder()Common configuration for hashing-based load balancing policies.ConsistentHashingLbConfigOrBuildergetConsistentHashingLbConfigOrBuilder()Common configuration for hashing-based load balancing policies.MaglevgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LocalityLbConfig.LocalityWeightedLbConfiggetLocalityWeightedLbConfig()Enable locality weighted load balancing for maglev lb explicitly.LocalityLbConfig.LocalityWeightedLbConfig.BuildergetLocalityWeightedLbConfigBuilder()Enable locality weighted load balancing for maglev lb explicitly.LocalityLbConfig.LocalityWeightedLbConfigOrBuildergetLocalityWeightedLbConfigOrBuilder()Enable locality weighted load balancing for maglev lb explicitly.com.google.protobuf.UInt64ValuegetTableSize()The table size for Maglev hashing.com.google.protobuf.UInt64Value.BuildergetTableSizeBuilder()The table size for Maglev hashing.com.google.protobuf.UInt64ValueOrBuildergetTableSizeOrBuilder()The table size for Maglev hashing.booleanhasConsistentHashingLbConfig()Common configuration for hashing-based load balancing policies.booleanhasLocalityWeightedLbConfig()Enable locality weighted load balancing for maglev lb explicitly.booleanhasTableSize()The table size for Maglev hashing.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Maglev.BuildermergeConsistentHashingLbConfig(ConsistentHashingLbConfig value)Common configuration for hashing-based load balancing policies.Maglev.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Maglev.BuildermergeFrom(com.google.protobuf.Message other)Maglev.BuildermergeFrom(Maglev other)Maglev.BuildermergeLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig value)Enable locality weighted load balancing for maglev lb explicitly.Maglev.BuildermergeTableSize(com.google.protobuf.UInt64Value value)The table size for Maglev hashing.Maglev.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Maglev.BuildersetConsistentHashingLbConfig(ConsistentHashingLbConfig value)Common configuration for hashing-based load balancing policies.Maglev.BuildersetConsistentHashingLbConfig(ConsistentHashingLbConfig.Builder builderForValue)Common configuration for hashing-based load balancing policies.Maglev.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Maglev.BuildersetLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig value)Enable locality weighted load balancing for maglev lb explicitly.Maglev.BuildersetLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig.Builder builderForValue)Enable locality weighted load balancing for maglev lb explicitly.Maglev.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Maglev.BuildersetTableSize(com.google.protobuf.UInt64Value value)The table size for Maglev hashing.Maglev.BuildersetTableSize(com.google.protobuf.UInt64Value.Builder builderForValue)The table size for Maglev hashing.Maglev.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<Maglev.Builder>
-
clear
public Maglev.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<Maglev.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<Maglev.Builder>
-
getDefaultInstanceForType
public Maglev getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Maglev build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Maglev buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Maglev.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<Maglev.Builder>
-
setField
public Maglev.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<Maglev.Builder>
-
clearField
public Maglev.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
clearOneof
public Maglev.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
setRepeatedField
public Maglev.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<Maglev.Builder>
-
addRepeatedField
public Maglev.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<Maglev.Builder>
-
mergeFrom
public Maglev.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Maglev.Builder>
-
mergeFrom
public Maglev.Builder mergeFrom(Maglev other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
mergeFrom
public Maglev.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<Maglev.Builder>- Throws:
IOException
-
hasTableSize
public boolean hasTableSize()
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }- Specified by:
hasTableSizein interfaceMaglevOrBuilder- Returns:
- Whether the tableSize field is set.
-
getTableSize
public com.google.protobuf.UInt64Value getTableSize()
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }- Specified by:
getTableSizein interfaceMaglevOrBuilder- Returns:
- The tableSize.
-
setTableSize
public Maglev.Builder setTableSize(com.google.protobuf.UInt64Value value)
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }
-
setTableSize
public Maglev.Builder setTableSize(com.google.protobuf.UInt64Value.Builder builderForValue)
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }
-
mergeTableSize
public Maglev.Builder mergeTableSize(com.google.protobuf.UInt64Value value)
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }
-
clearTableSize
public Maglev.Builder clearTableSize()
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }
-
getTableSizeBuilder
public com.google.protobuf.UInt64Value.Builder getTableSizeBuilder()
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }
-
getTableSizeOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getTableSizeOrBuilder()
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }- Specified by:
getTableSizeOrBuilderin interfaceMaglevOrBuilder
-
hasConsistentHashingLbConfig
public boolean hasConsistentHashingLbConfig()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;- Specified by:
hasConsistentHashingLbConfigin interfaceMaglevOrBuilder- Returns:
- Whether the consistentHashingLbConfig field is set.
-
getConsistentHashingLbConfig
public ConsistentHashingLbConfig getConsistentHashingLbConfig()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;- Specified by:
getConsistentHashingLbConfigin interfaceMaglevOrBuilder- Returns:
- The consistentHashingLbConfig.
-
setConsistentHashingLbConfig
public Maglev.Builder setConsistentHashingLbConfig(ConsistentHashingLbConfig value)
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;
-
setConsistentHashingLbConfig
public Maglev.Builder setConsistentHashingLbConfig(ConsistentHashingLbConfig.Builder builderForValue)
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;
-
mergeConsistentHashingLbConfig
public Maglev.Builder mergeConsistentHashingLbConfig(ConsistentHashingLbConfig value)
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;
-
clearConsistentHashingLbConfig
public Maglev.Builder clearConsistentHashingLbConfig()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;
-
getConsistentHashingLbConfigBuilder
public ConsistentHashingLbConfig.Builder getConsistentHashingLbConfigBuilder()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;
-
getConsistentHashingLbConfigOrBuilder
public ConsistentHashingLbConfigOrBuilder getConsistentHashingLbConfigOrBuilder()
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;- Specified by:
getConsistentHashingLbConfigOrBuilderin interfaceMaglevOrBuilder
-
hasLocalityWeightedLbConfig
public boolean hasLocalityWeightedLbConfig()
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
hasLocalityWeightedLbConfigin interfaceMaglevOrBuilder- Returns:
- Whether the localityWeightedLbConfig field is set.
-
getLocalityWeightedLbConfig
public LocalityLbConfig.LocalityWeightedLbConfig getLocalityWeightedLbConfig()
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
getLocalityWeightedLbConfigin interfaceMaglevOrBuilder- Returns:
- The localityWeightedLbConfig.
-
setLocalityWeightedLbConfig
public Maglev.Builder setLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig value)
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
setLocalityWeightedLbConfig
public Maglev.Builder setLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig.Builder builderForValue)
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
mergeLocalityWeightedLbConfig
public Maglev.Builder mergeLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig value)
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
clearLocalityWeightedLbConfig
public Maglev.Builder clearLocalityWeightedLbConfig()
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
getLocalityWeightedLbConfigBuilder
public LocalityLbConfig.LocalityWeightedLbConfig.Builder getLocalityWeightedLbConfigBuilder()
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
getLocalityWeightedLbConfigOrBuilder
public LocalityLbConfig.LocalityWeightedLbConfigOrBuilder getLocalityWeightedLbConfigOrBuilder()
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
getLocalityWeightedLbConfigOrBuilderin interfaceMaglevOrBuilder
-
setUnknownFields
public final Maglev.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
mergeUnknownFields
public final Maglev.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
-