Interface WeightedCluster.ClusterWeightOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
WeightedCluster.ClusterWeight,WeightedCluster.ClusterWeight.Builder
- Enclosing class:
- WeightedCluster
public static interface WeightedCluster.ClusterWeightOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadatagetMetadataMatch()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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Name of the upstream cluster.
string name = 1 [(.validate.rules) = { ... }- Returns:
- The bytes for name.
-
hasWeight
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) = { ... }- Returns:
- Whether the weight field is set.
-
getWeight
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) = { ... }- Returns:
- The weight.
-
getWeightOrBuilder
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) = { ... }
-
hasMetadataMatch
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;- Returns:
- Whether the metadataMatch field is set.
-
getMetadataMatch
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;- Returns:
- The metadataMatch.
-
getMetadataMatchOrBuilder
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;
-
-