Class WeightedCluster.ClusterWeight.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.ClusterWeight.Builder>
-
- io.envoyproxy.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WeightedCluster.ClusterWeightOrBuilder,Cloneable
- Enclosing class:
- WeightedCluster.ClusterWeight
public static final class WeightedCluster.ClusterWeight.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.ClusterWeight.Builder> implements WeightedCluster.ClusterWeightOrBuilder
Protobuf typeenvoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightedCluster.ClusterWeight.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WeightedCluster.ClusterWeightbuild()WeightedCluster.ClusterWeightbuildPartial()WeightedCluster.ClusterWeight.Builderclear()WeightedCluster.ClusterWeight.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WeightedCluster.ClusterWeight.BuilderclearMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.WeightedCluster.ClusterWeight.BuilderclearName()Name of the upstream cluster.WeightedCluster.ClusterWeight.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WeightedCluster.ClusterWeight.BuilderclearWeight()When a request matches the route, the choice of an upstream cluster is determined by its weight.WeightedCluster.ClusterWeight.Builderclone()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.com.google.protobuf.UInt32ValuegetWeight()When a request matches the route, the choice of an upstream cluster is determined by its weight.com.google.protobuf.UInt32Value.BuildergetWeightBuilder()When a request matches the route, the choice of an upstream cluster is determined by its weight.com.google.protobuf.UInt32ValueOrBuildergetWeightOrBuilder()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.booleanhasWeight()When a request matches the route, the choice of an upstream cluster is determined by its weight.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WeightedCluster.ClusterWeight.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WeightedCluster.ClusterWeight.BuildermergeFrom(com.google.protobuf.Message other)WeightedCluster.ClusterWeight.BuildermergeFrom(WeightedCluster.ClusterWeight other)WeightedCluster.ClusterWeight.BuildermergeMetadataMatch(Metadata value)Optional endpoint metadata match criteria used by the subset load balancer.WeightedCluster.ClusterWeight.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WeightedCluster.ClusterWeight.BuildermergeWeight(com.google.protobuf.UInt32Value value)When a request matches the route, the choice of an upstream cluster is determined by its weight.WeightedCluster.ClusterWeight.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WeightedCluster.ClusterWeight.BuildersetMetadataMatch(Metadata value)Optional endpoint metadata match criteria used by the subset load balancer.WeightedCluster.ClusterWeight.BuildersetMetadataMatch(Metadata.Builder builderForValue)Optional endpoint metadata match criteria used by the subset load balancer.WeightedCluster.ClusterWeight.BuildersetName(String value)Name of the upstream cluster.WeightedCluster.ClusterWeight.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the upstream cluster.WeightedCluster.ClusterWeight.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)WeightedCluster.ClusterWeight.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WeightedCluster.ClusterWeight.BuildersetWeight(com.google.protobuf.UInt32Value value)When a request matches the route, the choice of an upstream cluster is determined by its weight.WeightedCluster.ClusterWeight.BuildersetWeight(com.google.protobuf.UInt32Value.Builder builderForValue)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<WeightedCluster.ClusterWeight.Builder>
-
clear
public 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<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<WeightedCluster.ClusterWeight.Builder>
-
getDefaultInstanceForType
public WeightedCluster.ClusterWeight getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WeightedCluster.ClusterWeight build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WeightedCluster.ClusterWeight buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public 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<WeightedCluster.ClusterWeight.Builder>
-
setField
public 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<WeightedCluster.ClusterWeight.Builder>
-
clearField
public 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<WeightedCluster.ClusterWeight.Builder>
-
clearOneof
public 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<WeightedCluster.ClusterWeight.Builder>
-
setRepeatedField
public 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<WeightedCluster.ClusterWeight.Builder>
-
addRepeatedField
public 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<WeightedCluster.ClusterWeight.Builder>
-
mergeFrom
public WeightedCluster.ClusterWeight.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WeightedCluster.ClusterWeight.Builder>
-
mergeFrom
public WeightedCluster.ClusterWeight.Builder mergeFrom(WeightedCluster.ClusterWeight other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.ClusterWeight.Builder>
-
mergeFrom
public 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<WeightedCluster.ClusterWeight.Builder>- Throws:
IOException
-
getName
public String getName()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The bytes for name.
-
setName
public 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 WeightedCluster.ClusterWeight.Builder clearName()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public 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.
-
hasWeight
public boolean hasWeight()
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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }- Specified by:
hasWeightin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- Whether the weight field is set.
-
getWeight
public com.google.protobuf.UInt32Value 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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }- Specified by:
getWeightin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The weight.
-
setWeight
public WeightedCluster.ClusterWeight.Builder setWeight(com.google.protobuf.UInt32Value 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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
-
setWeight
public WeightedCluster.ClusterWeight.Builder setWeight(com.google.protobuf.UInt32Value.Builder builderForValue)
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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
-
mergeWeight
public WeightedCluster.ClusterWeight.Builder mergeWeight(com.google.protobuf.UInt32Value 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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
-
clearWeight
public 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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
-
getWeightBuilder
public com.google.protobuf.UInt32Value.Builder getWeightBuilder()
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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }
-
getWeightOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder()
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.
.google.protobuf.UInt32Value weight = 2 [(.validate.rules) = { ... }- Specified by:
getWeightOrBuilderin interfaceWeightedCluster.ClusterWeightOrBuilder
-
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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
hasMetadataMatchin interfaceWeightedCluster.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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The metadataMatch.
-
setMetadataMatch
public 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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;
-
setMetadataMatch
public 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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;
-
mergeMetadataMatch
public 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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;
-
clearMetadataMatch
public 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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.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, combined with what's provided in :ref:`RouteAction's metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteAction.metadata_match>`, will be considered. Values here will take precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchOrBuilderin interfaceWeightedCluster.ClusterWeightOrBuilder
-
setUnknownFields
public final WeightedCluster.ClusterWeight.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.ClusterWeight.Builder>
-
mergeUnknownFields
public final WeightedCluster.ClusterWeight.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WeightedCluster.ClusterWeight.Builder>
-
-