Class TcpProxy.WeightedCluster.ClusterWeight.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
io.envoyproxy.envoy.config.filter.network.tcp_proxy.v2.TcpProxy.WeightedCluster.ClusterWeight.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TcpProxy.WeightedCluster.ClusterWeightOrBuilder,Cloneable
- Enclosing class:
- TcpProxy.WeightedCluster.ClusterWeight
public static final class TcpProxy.WeightedCluster.ClusterWeight.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
implements TcpProxy.WeightedCluster.ClusterWeightOrBuilder
Protobuf type
envoy.config.filter.network.tcp_proxy.v2.TcpProxy.WeightedCluster.ClusterWeight-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional endpoint metadata match criteria used by the subset load balancer.Name of the upstream cluster.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) When a request matches the route, the choice of an upstream cluster is determined by its weight.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional endpoint metadata match criteria used by the subset load balancer.Optional endpoint metadata match criteria used by the subset load balancer.Optional endpoint metadata match criteria used by the subset load balancer.getName()Name of the upstream cluster.com.google.protobuf.ByteStringName of the upstream cluster.intWhen a request matches the route, the choice of an upstream cluster is determined by its weight.booleanOptional endpoint metadata match criteria used by the subset load balancer.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetadataMatch(Metadata value) Optional endpoint metadata match criteria used by the subset load balancer.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMetadataMatch(Metadata value) Optional endpoint metadata match criteria used by the subset load balancer.setMetadataMatch(Metadata.Builder builderForValue) Optional endpoint metadata match criteria used by the subset load balancer.Name of the upstream cluster.setNameBytes(com.google.protobuf.ByteString value) Name of the upstream cluster.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWeight(int value) When a request matches the route, the choice of an upstream cluster is determined by its weight.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
setField
public TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
clearField
public TcpProxy.WeightedCluster.ClusterWeight.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
clearOneof
public TcpProxy.WeightedCluster.ClusterWeight.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
setRepeatedField
public TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
addRepeatedField
public TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
mergeFrom
public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeFrom(TcpProxy.WeightedCluster.ClusterWeight other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
mergeFrom
public TcpProxy.WeightedCluster.ClusterWeight.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<TcpProxy.WeightedCluster.ClusterWeight.Builder>- Throws:
IOException
-
getName
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceTcpProxy.WeightedCluster.ClusterWeightOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceTcpProxy.WeightedCluster.ClusterWeightOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public TcpProxy.WeightedCluster.ClusterWeight.Builder setNameBytes(com.google.protobuf.ByteString value) Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getWeight
public int getWeight()When a request matches the route, the choice of an upstream cluster is determined by its weight. The sum of weights across all entries in the clusters array determines the total weight.
uint32 weight = 2 [(.validate.rules) = { ... }- Specified by:
getWeightin interfaceTcpProxy.WeightedCluster.ClusterWeightOrBuilder- Returns:
- The weight.
-
setWeight
When a request matches the route, the choice of an upstream cluster is determined by its weight. The sum of weights across all entries in the clusters array determines the total weight.
uint32 weight = 2 [(.validate.rules) = { ... }- Parameters:
value- The weight to set.- Returns:
- This builder for chaining.
-
clearWeight
When a request matches the route, the choice of an upstream cluster is determined by its weight. The sum of weights across all entries in the clusters array determines the total weight.
uint32 weight = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasMetadataMatch
public boolean hasMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
hasMetadataMatchin interfaceTcpProxy.WeightedCluster.ClusterWeightOrBuilder- Returns:
- Whether the metadataMatch field is set.
-
getMetadataMatch
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchin interfaceTcpProxy.WeightedCluster.ClusterWeightOrBuilder- Returns:
- The metadataMatch.
-
setMetadataMatch
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3; -
setMetadataMatch
public TcpProxy.WeightedCluster.ClusterWeight.Builder setMetadataMatch(Metadata.Builder builderForValue) Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3; -
mergeMetadataMatch
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3; -
clearMetadataMatch
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3; -
getMetadataMatchBuilder
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3; -
getMetadataMatchOrBuilder
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`TcpProxy.metadata_match <envoy_api_field_config.filter.network.tcp_proxy.v2.TcpProxy.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchOrBuilderin interfaceTcpProxy.WeightedCluster.ClusterWeightOrBuilder
-
setUnknownFields
public final TcpProxy.WeightedCluster.ClusterWeight.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
mergeUnknownFields
public final TcpProxy.WeightedCluster.ClusterWeight.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-