Class RouteAction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
-
- io.envoyproxy.envoy.config.filter.network.thrift_proxy.v2alpha1.RouteAction.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouteActionOrBuilder,Cloneable
- Enclosing class:
- RouteAction
public static final class RouteAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder> implements RouteActionOrBuilder
[#next-free-field: 7]
Protobuf typeenvoy.config.filter.network.thrift_proxy.v2alpha1.RouteAction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteAction.BuilderaddAllRateLimits(Iterable<? extends RateLimit> values)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuilderaddRateLimits(int index, RateLimit value)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuilderaddRateLimits(int index, RateLimit.Builder builderForValue)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuilderaddRateLimits(RateLimit value)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuilderaddRateLimits(RateLimit.Builder builderForValue)Specifies a set of rate limit configurations that could be applied to the route.RateLimit.BuilderaddRateLimitsBuilder()Specifies a set of rate limit configurations that could be applied to the route.RateLimit.BuilderaddRateLimitsBuilder(int index)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteActionbuild()RouteActionbuildPartial()RouteAction.Builderclear()RouteAction.BuilderclearCluster()Indicates a single upstream cluster to which the request should be routed to.RouteAction.BuilderclearClusterHeader()Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers.RouteAction.BuilderclearClusterSpecifier()RouteAction.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouteAction.BuilderclearMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.RouteAction.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouteAction.BuilderclearRateLimits()Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuilderclearStripServiceName()Strip the service prefix from the method name, if there's a prefix.RouteAction.BuilderclearWeightedClusters()Multiple upstream clusters can be specified for a given route.RouteAction.Builderclone()StringgetCluster()Indicates a single upstream cluster to which the request should be routed to.com.google.protobuf.ByteStringgetClusterBytes()Indicates a single upstream cluster to which the request should be routed to.StringgetClusterHeader()Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers.com.google.protobuf.ByteStringgetClusterHeaderBytes()Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers.RouteAction.ClusterSpecifierCasegetClusterSpecifierCase()RouteActiongetDefaultInstanceForType()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.RateLimitgetRateLimits(int index)Specifies a set of rate limit configurations that could be applied to the route.RateLimit.BuildergetRateLimitsBuilder(int index)Specifies a set of rate limit configurations that could be applied to the route.List<RateLimit.Builder>getRateLimitsBuilderList()Specifies a set of rate limit configurations that could be applied to the route.intgetRateLimitsCount()Specifies a set of rate limit configurations that could be applied to the route.List<RateLimit>getRateLimitsList()Specifies a set of rate limit configurations that could be applied to the route.RateLimitOrBuildergetRateLimitsOrBuilder(int index)Specifies a set of rate limit configurations that could be applied to the route.List<? extends RateLimitOrBuilder>getRateLimitsOrBuilderList()Specifies a set of rate limit configurations that could be applied to the route.booleangetStripServiceName()Strip the service prefix from the method name, if there's a prefix.WeightedClustergetWeightedClusters()Multiple upstream clusters can be specified for a given route.WeightedCluster.BuildergetWeightedClustersBuilder()Multiple upstream clusters can be specified for a given route.WeightedClusterOrBuildergetWeightedClustersOrBuilder()Multiple upstream clusters can be specified for a given route.booleanhasCluster()Indicates a single upstream cluster to which the request should be routed to.booleanhasClusterHeader()Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers.booleanhasMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.booleanhasWeightedClusters()Multiple upstream clusters can be specified for a given route.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouteAction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouteAction.BuildermergeFrom(com.google.protobuf.Message other)RouteAction.BuildermergeFrom(RouteAction other)RouteAction.BuildermergeMetadataMatch(Metadata value)Optional endpoint metadata match criteria used by the subset load balancer.RouteAction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouteAction.BuildermergeWeightedClusters(WeightedCluster value)Multiple upstream clusters can be specified for a given route.RouteAction.BuilderremoveRateLimits(int index)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuildersetCluster(String value)Indicates a single upstream cluster to which the request should be routed to.RouteAction.BuildersetClusterBytes(com.google.protobuf.ByteString value)Indicates a single upstream cluster to which the request should be routed to.RouteAction.BuildersetClusterHeader(String value)Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers.RouteAction.BuildersetClusterHeaderBytes(com.google.protobuf.ByteString value)Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers.RouteAction.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteAction.BuildersetMetadataMatch(Metadata value)Optional endpoint metadata match criteria used by the subset load balancer.RouteAction.BuildersetMetadataMatch(Metadata.Builder builderForValue)Optional endpoint metadata match criteria used by the subset load balancer.RouteAction.BuildersetRateLimits(int index, RateLimit value)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuildersetRateLimits(int index, RateLimit.Builder builderForValue)Specifies a set of rate limit configurations that could be applied to the route.RouteAction.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouteAction.BuildersetStripServiceName(boolean value)Strip the service prefix from the method name, if there's a prefix.RouteAction.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouteAction.BuildersetWeightedClusters(WeightedCluster value)Multiple upstream clusters can be specified for a given route.RouteAction.BuildersetWeightedClusters(WeightedCluster.Builder builderForValue)Multiple upstream clusters can be specified for a given route.-
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<RouteAction.Builder>
-
clear
public RouteAction.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<RouteAction.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<RouteAction.Builder>
-
getDefaultInstanceForType
public RouteAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteAction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteAction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteAction.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<RouteAction.Builder>
-
setField
public RouteAction.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<RouteAction.Builder>
-
clearField
public RouteAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
-
clearOneof
public RouteAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
-
setRepeatedField
public RouteAction.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<RouteAction.Builder>
-
addRepeatedField
public RouteAction.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<RouteAction.Builder>
-
mergeFrom
public RouteAction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteAction.Builder>
-
mergeFrom
public RouteAction.Builder mergeFrom(RouteAction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
-
mergeFrom
public RouteAction.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<RouteAction.Builder>- Throws:
IOException
-
getClusterSpecifierCase
public RouteAction.ClusterSpecifierCase getClusterSpecifierCase()
- Specified by:
getClusterSpecifierCasein interfaceRouteActionOrBuilder
-
clearClusterSpecifier
public RouteAction.Builder clearClusterSpecifier()
-
hasCluster
public boolean hasCluster()
Indicates a single upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }- Specified by:
hasClusterin interfaceRouteActionOrBuilder- Returns:
- Whether the cluster field is set.
-
getCluster
public String getCluster()
Indicates a single upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }- Specified by:
getClusterin interfaceRouteActionOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()
Indicates a single upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }- Specified by:
getClusterBytesin interfaceRouteActionOrBuilder- Returns:
- The bytes for cluster.
-
setCluster
public RouteAction.Builder setCluster(String value)
Indicates a single upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }- Parameters:
value- The cluster to set.- Returns:
- This builder for chaining.
-
clearCluster
public RouteAction.Builder clearCluster()
Indicates a single upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setClusterBytes
public RouteAction.Builder setClusterBytes(com.google.protobuf.ByteString value)
Indicates a single upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for cluster to set.- Returns:
- This builder for chaining.
-
hasWeightedClusters
public boolean hasWeightedClusters()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;- Specified by:
hasWeightedClustersin interfaceRouteActionOrBuilder- Returns:
- Whether the weightedClusters field is set.
-
getWeightedClusters
public WeightedCluster getWeightedClusters()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;- Specified by:
getWeightedClustersin interfaceRouteActionOrBuilder- Returns:
- The weightedClusters.
-
setWeightedClusters
public RouteAction.Builder setWeightedClusters(WeightedCluster value)
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;
-
setWeightedClusters
public RouteAction.Builder setWeightedClusters(WeightedCluster.Builder builderForValue)
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;
-
mergeWeightedClusters
public RouteAction.Builder mergeWeightedClusters(WeightedCluster value)
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;
-
clearWeightedClusters
public RouteAction.Builder clearWeightedClusters()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;
-
getWeightedClustersBuilder
public WeightedCluster.Builder getWeightedClustersBuilder()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;
-
getWeightedClustersOrBuilder
public WeightedClusterOrBuilder getWeightedClustersOrBuilder()
Multiple upstream clusters can be specified for a given route. The request is routed to one of the upstream clusters based on weights assigned to each cluster.
.envoy.config.filter.network.thrift_proxy.v2alpha1.WeightedCluster weighted_clusters = 2;- Specified by:
getWeightedClustersOrBuilderin interfaceRouteActionOrBuilder
-
hasClusterHeader
public boolean hasClusterHeader()
Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist Envoy will respond with an unknown method exception or an internal error exception, respectively.
string cluster_header = 6 [(.validate.rules) = { ... }- Specified by:
hasClusterHeaderin interfaceRouteActionOrBuilder- Returns:
- Whether the clusterHeader field is set.
-
getClusterHeader
public String getClusterHeader()
Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist Envoy will respond with an unknown method exception or an internal error exception, respectively.
string cluster_header = 6 [(.validate.rules) = { ... }- Specified by:
getClusterHeaderin interfaceRouteActionOrBuilder- Returns:
- The clusterHeader.
-
getClusterHeaderBytes
public com.google.protobuf.ByteString getClusterHeaderBytes()
Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist Envoy will respond with an unknown method exception or an internal error exception, respectively.
string cluster_header = 6 [(.validate.rules) = { ... }- Specified by:
getClusterHeaderBytesin interfaceRouteActionOrBuilder- Returns:
- The bytes for clusterHeader.
-
setClusterHeader
public RouteAction.Builder setClusterHeader(String value)
Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist Envoy will respond with an unknown method exception or an internal error exception, respectively.
string cluster_header = 6 [(.validate.rules) = { ... }- Parameters:
value- The clusterHeader to set.- Returns:
- This builder for chaining.
-
clearClusterHeader
public RouteAction.Builder clearClusterHeader()
Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist Envoy will respond with an unknown method exception or an internal error exception, respectively.
string cluster_header = 6 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setClusterHeaderBytes
public RouteAction.Builder setClusterHeaderBytes(com.google.protobuf.ByteString value)
Envoy will determine the cluster to route to by reading the value of the Thrift header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist Envoy will respond with an unknown method exception or an internal error exception, respectively.
string cluster_header = 6 [(.validate.rules) = { ... }- Parameters:
value- The bytes for clusterHeader to set.- 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. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
hasMetadataMatchin interfaceRouteActionOrBuilder- 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. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchin interfaceRouteActionOrBuilder- Returns:
- The metadataMatch.
-
setMetadataMatch
public RouteAction.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. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;
-
setMetadataMatch
public RouteAction.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. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;
-
mergeMetadataMatch
public RouteAction.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. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;
-
clearMetadataMatch
public RouteAction.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. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking 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 will be considered. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking 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 will be considered. Note that this will be merged with what's provided in :ref:`WeightedCluster.metadata_match <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.WeightedCluster.ClusterWeight.metadata_match>`, with values there taking precedence. Keys and values should be provided under the "envoy.lb" metadata key.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchOrBuilderin interfaceRouteActionOrBuilder
-
getRateLimitsList
public List<RateLimit> getRateLimitsList()
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;- Specified by:
getRateLimitsListin interfaceRouteActionOrBuilder
-
getRateLimitsCount
public int getRateLimitsCount()
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;- Specified by:
getRateLimitsCountin interfaceRouteActionOrBuilder
-
getRateLimits
public RateLimit getRateLimits(int index)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;- Specified by:
getRateLimitsin interfaceRouteActionOrBuilder
-
setRateLimits
public RouteAction.Builder setRateLimits(int index, RateLimit value)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
setRateLimits
public RouteAction.Builder setRateLimits(int index, RateLimit.Builder builderForValue)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
addRateLimits
public RouteAction.Builder addRateLimits(RateLimit value)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
addRateLimits
public RouteAction.Builder addRateLimits(int index, RateLimit value)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
addRateLimits
public RouteAction.Builder addRateLimits(RateLimit.Builder builderForValue)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
addRateLimits
public RouteAction.Builder addRateLimits(int index, RateLimit.Builder builderForValue)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
addAllRateLimits
public RouteAction.Builder addAllRateLimits(Iterable<? extends RateLimit> values)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
clearRateLimits
public RouteAction.Builder clearRateLimits()
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
removeRateLimits
public RouteAction.Builder removeRateLimits(int index)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
getRateLimitsBuilder
public RateLimit.Builder getRateLimitsBuilder(int index)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
getRateLimitsOrBuilder
public RateLimitOrBuilder getRateLimitsOrBuilder(int index)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;- Specified by:
getRateLimitsOrBuilderin interfaceRouteActionOrBuilder
-
getRateLimitsOrBuilderList
public List<? extends RateLimitOrBuilder> getRateLimitsOrBuilderList()
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;- Specified by:
getRateLimitsOrBuilderListin interfaceRouteActionOrBuilder
-
addRateLimitsBuilder
public RateLimit.Builder addRateLimitsBuilder()
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
addRateLimitsBuilder
public RateLimit.Builder addRateLimitsBuilder(int index)
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
getRateLimitsBuilderList
public List<RateLimit.Builder> getRateLimitsBuilderList()
Specifies a set of rate limit configurations that could be applied to the route. N.B. Thrift service or method name matching can be achieved by specifying a RequestHeaders action with the header name ":method-name".
repeated .envoy.api.v2.route.RateLimit rate_limits = 4;
-
getStripServiceName
public boolean getStripServiceName()
Strip the service prefix from the method name, if there's a prefix. For example, the method call Service:method would end up being just method.
bool strip_service_name = 5;- Specified by:
getStripServiceNamein interfaceRouteActionOrBuilder- Returns:
- The stripServiceName.
-
setStripServiceName
public RouteAction.Builder setStripServiceName(boolean value)
Strip the service prefix from the method name, if there's a prefix. For example, the method call Service:method would end up being just method.
bool strip_service_name = 5;- Parameters:
value- The stripServiceName to set.- Returns:
- This builder for chaining.
-
clearStripServiceName
public RouteAction.Builder clearStripServiceName()
Strip the service prefix from the method name, if there's a prefix. For example, the method call Service:method would end up being just method.
bool strip_service_name = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final RouteAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
-
mergeUnknownFields
public final RouteAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteAction.Builder>
-
-