Class TcpProxy.WeightedCluster.ClusterWeight.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.config.filter.network.tcp_proxy.v2.TcpProxy.WeightedCluster.ClusterWeight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TcpProxy.WeightedCluster.ClusterWeight.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TcpProxy.WeightedCluster.ClusterWeightbuild()TcpProxy.WeightedCluster.ClusterWeightbuildPartial()TcpProxy.WeightedCluster.ClusterWeight.Builderclear()TcpProxy.WeightedCluster.ClusterWeight.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TcpProxy.WeightedCluster.ClusterWeight.BuilderclearMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.TcpProxy.WeightedCluster.ClusterWeight.BuilderclearName()Name of the upstream cluster.TcpProxy.WeightedCluster.ClusterWeight.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TcpProxy.WeightedCluster.ClusterWeight.BuilderclearWeight()When a request matches the route, the choice of an upstream cluster is determined by its weight.TcpProxy.WeightedCluster.ClusterWeight.Builderclone()TcpProxy.WeightedCluster.ClusterWeightgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MetadatagetMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.Metadata.BuildergetMetadataMatchBuilder()Optional endpoint metadata match criteria used by the subset load balancer.MetadataOrBuildergetMetadataMatchOrBuilder()Optional endpoint metadata match criteria used by the subset load balancer.StringgetName()Name of the upstream cluster.com.google.protobuf.ByteStringgetNameBytes()Name of the upstream cluster.intgetWeight()When a request matches the route, the choice of an upstream cluster is determined by its weight.booleanhasMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TcpProxy.WeightedCluster.ClusterWeight.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TcpProxy.WeightedCluster.ClusterWeight.BuildermergeFrom(com.google.protobuf.Message other)TcpProxy.WeightedCluster.ClusterWeight.BuildermergeFrom(TcpProxy.WeightedCluster.ClusterWeight other)TcpProxy.WeightedCluster.ClusterWeight.BuildermergeMetadataMatch(Metadata value)Optional endpoint metadata match criteria used by the subset load balancer.TcpProxy.WeightedCluster.ClusterWeight.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TcpProxy.WeightedCluster.ClusterWeight.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TcpProxy.WeightedCluster.ClusterWeight.BuildersetMetadataMatch(Metadata value)Optional endpoint metadata match criteria used by the subset load balancer.TcpProxy.WeightedCluster.ClusterWeight.BuildersetMetadataMatch(Metadata.Builder builderForValue)Optional endpoint metadata match criteria used by the subset load balancer.TcpProxy.WeightedCluster.ClusterWeight.BuildersetName(String value)Name of the upstream cluster.TcpProxy.WeightedCluster.ClusterWeight.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the upstream cluster.TcpProxy.WeightedCluster.ClusterWeight.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TcpProxy.WeightedCluster.ClusterWeight.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TcpProxy.WeightedCluster.ClusterWeight.BuildersetWeight(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, 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<TcpProxy.WeightedCluster.ClusterWeight.Builder>
-
clear
public 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
public TcpProxy.WeightedCluster.ClusterWeight getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TcpProxy.WeightedCluster.ClusterWeight build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TcpProxy.WeightedCluster.ClusterWeight buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TcpProxy.WeightedCluster.ClusterWeight.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
public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeFrom(com.google.protobuf.Message other)
- 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
public String 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
public TcpProxy.WeightedCluster.ClusterWeight.Builder setName(String value)
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public TcpProxy.WeightedCluster.ClusterWeight.Builder 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
public TcpProxy.WeightedCluster.ClusterWeight.Builder setWeight(int value)
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
public TcpProxy.WeightedCluster.ClusterWeight.Builder 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
public Metadata 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
public TcpProxy.WeightedCluster.ClusterWeight.Builder setMetadataMatch(Metadata value)
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
public TcpProxy.WeightedCluster.ClusterWeight.Builder mergeMetadataMatch(Metadata value)
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
public TcpProxy.WeightedCluster.ClusterWeight.Builder 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
public Metadata.Builder 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
public MetadataOrBuilder 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>
-
-