public final class RouteAction extends com.google.protobuf.GeneratedMessageV3 implements RouteActionOrBuilder
[#comment:next free field: 27]Protobuf type
envoy.api.v2.route.RouteAction| Modifier and Type | Class and Description |
|---|---|
static class |
RouteAction.Builder
[#comment:next free field: 27]
Protobuf type
envoy.api.v2.route.RouteAction |
static class |
RouteAction.ClusterNotFoundResponseCode
Protobuf enum
envoy.api.v2.route.RouteAction.ClusterNotFoundResponseCode |
static class |
RouteAction.ClusterSpecifierCase |
static class |
RouteAction.HashPolicy
Specifies the route's hashing policy if the upstream cluster uses a hashing :ref:`load balancer
<arch_overview_load_balancing_types>`.
|
static interface |
RouteAction.HashPolicyOrBuilder |
static class |
RouteAction.HostRewriteSpecifierCase |
static class |
RouteAction.InternalRedirectAction
Configures :ref:`internal redirect <arch_overview_internal_redirects>` behavior.
|
static class |
RouteAction.RequestMirrorPolicy
The router is capable of shadowing traffic from one cluster to another.
|
static interface |
RouteAction.RequestMirrorPolicyOrBuilder |
static class |
RouteAction.UpgradeConfig
Allows enabling and disabling upgrades on a per-route basis.
|
static interface |
RouteAction.UpgradeConfigOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_HOST_REWRITE_FIELD_NUMBER |
static int |
CLUSTER_FIELD_NUMBER |
static int |
CLUSTER_HEADER_FIELD_NUMBER |
static int |
CLUSTER_NOT_FOUND_RESPONSE_CODE_FIELD_NUMBER |
static int |
CORS_FIELD_NUMBER |
static int |
HASH_POLICY_FIELD_NUMBER |
static int |
HOST_REWRITE_FIELD_NUMBER |
static int |
IDLE_TIMEOUT_FIELD_NUMBER |
static int |
INCLUDE_VH_RATE_LIMITS_FIELD_NUMBER |
static int |
INTERNAL_REDIRECT_ACTION_FIELD_NUMBER |
static int |
MAX_GRPC_TIMEOUT_FIELD_NUMBER |
static int |
METADATA_MATCH_FIELD_NUMBER |
static int |
PREFIX_REWRITE_FIELD_NUMBER |
static int |
PRIORITY_FIELD_NUMBER |
static int |
RATE_LIMITS_FIELD_NUMBER |
static int |
REQUEST_HEADERS_TO_ADD_FIELD_NUMBER |
static int |
REQUEST_MIRROR_POLICY_FIELD_NUMBER |
static int |
RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER |
static int |
RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER |
static int |
RETRY_POLICY_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
static int |
UPGRADE_CONFIGS_FIELD_NUMBER |
static int |
WEIGHTED_CLUSTERS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.BoolValue |
getAutoHostRewrite()
Indicates that during forwarding, the host header will be swapped with
the hostname of the upstream host chosen by the cluster manager.
|
com.google.protobuf.BoolValueOrBuilder |
getAutoHostRewriteOrBuilder()
Indicates that during forwarding, the host header will be swapped with
the hostname of the upstream host chosen by the cluster manager.
|
String |
getCluster()
Indicates the upstream cluster to which the request should be routed
to.
|
com.google.protobuf.ByteString |
getClusterBytes()
Indicates the upstream cluster to which the request should be routed
to.
|
String |
getClusterHeader()
Envoy will determine the cluster to route to by reading the value of the
HTTP header named by cluster_header from the request headers.
|
com.google.protobuf.ByteString |
getClusterHeaderBytes()
Envoy will determine the cluster to route to by reading the value of the
HTTP header named by cluster_header from the request headers.
|
RouteAction.ClusterNotFoundResponseCode |
getClusterNotFoundResponseCode()
The HTTP status code to use when configured cluster is not found.
|
int |
getClusterNotFoundResponseCodeValue()
The HTTP status code to use when configured cluster is not found.
|
RouteAction.ClusterSpecifierCase |
getClusterSpecifierCase() |
CorsPolicy |
getCors()
Indicates that the route has a CORS policy.
|
CorsPolicyOrBuilder |
getCorsOrBuilder()
Indicates that the route has a CORS policy.
|
static RouteAction |
getDefaultInstance() |
RouteAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RouteAction.HashPolicy |
getHashPolicy(int index)
Specifies a list of hash policies to use for ring hash load balancing.
|
int |
getHashPolicyCount()
Specifies a list of hash policies to use for ring hash load balancing.
|
List<RouteAction.HashPolicy> |
getHashPolicyList()
Specifies a list of hash policies to use for ring hash load balancing.
|
RouteAction.HashPolicyOrBuilder |
getHashPolicyOrBuilder(int index)
Specifies a list of hash policies to use for ring hash load balancing.
|
List<? extends RouteAction.HashPolicyOrBuilder> |
getHashPolicyOrBuilderList()
Specifies a list of hash policies to use for ring hash load balancing.
|
String |
getHostRewrite()
Indicates that during forwarding, the host header will be swapped with
this value.
|
com.google.protobuf.ByteString |
getHostRewriteBytes()
Indicates that during forwarding, the host header will be swapped with
this value.
|
RouteAction.HostRewriteSpecifierCase |
getHostRewriteSpecifierCase() |
com.google.protobuf.Duration |
getIdleTimeout()
Specifies the idle timeout for the route.
|
com.google.protobuf.DurationOrBuilder |
getIdleTimeoutOrBuilder()
Specifies the idle timeout for the route.
|
com.google.protobuf.BoolValue |
getIncludeVhRateLimits()
Specifies if the rate limit filter should include the virtual host rate
limits.
|
com.google.protobuf.BoolValueOrBuilder |
getIncludeVhRateLimitsOrBuilder()
Specifies if the rate limit filter should include the virtual host rate
limits.
|
RouteAction.InternalRedirectAction |
getInternalRedirectAction()
.envoy.api.v2.route.RouteAction.InternalRedirectAction internal_redirect_action = 26; |
int |
getInternalRedirectActionValue()
.envoy.api.v2.route.RouteAction.InternalRedirectAction internal_redirect_action = 26; |
com.google.protobuf.Duration |
getMaxGrpcTimeout()
If present, and the request is a gRPC request, use the
`grpc-timeout header <https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md>`_,
or its default value (infinity) instead of
:ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, but limit the applied timeout
to the maximum value specified here.
|
com.google.protobuf.DurationOrBuilder |
getMaxGrpcTimeoutOrBuilder()
If present, and the request is a gRPC request, use the
`grpc-timeout header <https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md>`_,
or its default value (infinity) instead of
:ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, but limit the applied timeout
to the maximum value specified here.
|
Metadata |
getMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer.
|
MetadataOrBuilder |
getMetadataMatchOrBuilder()
Optional endpoint metadata match criteria used by the subset load balancer.
|
com.google.protobuf.Parser<RouteAction> |
getParserForType() |
String |
getPrefixRewrite()
Indicates that during forwarding, the matched prefix (or path) should be
swapped with this value.
|
com.google.protobuf.ByteString |
getPrefixRewriteBytes()
Indicates that during forwarding, the matched prefix (or path) should be
swapped with this value.
|
RoutingPriority |
getPriority()
Optionally specifies the :ref:`routing priority <arch_overview_http_routing_priority>`.
|
int |
getPriorityValue()
Optionally specifies the :ref:`routing priority <arch_overview_http_routing_priority>`.
|
RateLimit |
getRateLimits(int index)
Specifies a set of rate limit configurations that could be applied to the
route.
|
int |
getRateLimitsCount()
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.
|
RateLimitOrBuilder |
getRateLimitsOrBuilder(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.
|
HeaderValueOption |
getRequestHeadersToAdd(int index)
Deprecated.
|
int |
getRequestHeadersToAddCount()
Deprecated.
|
List<HeaderValueOption> |
getRequestHeadersToAddList()
Deprecated.
|
HeaderValueOptionOrBuilder |
getRequestHeadersToAddOrBuilder(int index)
Deprecated.
|
List<? extends HeaderValueOptionOrBuilder> |
getRequestHeadersToAddOrBuilderList()
Deprecated.
|
RouteAction.RequestMirrorPolicy |
getRequestMirrorPolicy()
Indicates that the route has a request mirroring policy.
|
RouteAction.RequestMirrorPolicyOrBuilder |
getRequestMirrorPolicyOrBuilder()
Indicates that the route has a request mirroring policy.
|
HeaderValueOption |
getResponseHeadersToAdd(int index)
Deprecated.
|
int |
getResponseHeadersToAddCount()
Deprecated.
|
List<HeaderValueOption> |
getResponseHeadersToAddList()
Deprecated.
|
HeaderValueOptionOrBuilder |
getResponseHeadersToAddOrBuilder(int index)
Deprecated.
|
List<? extends HeaderValueOptionOrBuilder> |
getResponseHeadersToAddOrBuilderList()
Deprecated.
|
String |
getResponseHeadersToRemove(int index)
Deprecated.
|
com.google.protobuf.ByteString |
getResponseHeadersToRemoveBytes(int index)
Deprecated.
|
int |
getResponseHeadersToRemoveCount()
Deprecated.
|
com.google.protobuf.ProtocolStringList |
getResponseHeadersToRemoveList()
Deprecated.
|
RetryPolicy |
getRetryPolicy()
Indicates that the route has a retry policy.
|
RetryPolicyOrBuilder |
getRetryPolicyOrBuilder()
Indicates that the route has a retry policy.
|
int |
getSerializedSize() |
com.google.protobuf.Duration |
getTimeout()
Specifies the upstream timeout for the route.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Specifies the upstream timeout for the route.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
RouteAction.UpgradeConfig |
getUpgradeConfigs(int index)
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25; |
int |
getUpgradeConfigsCount()
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25; |
List<RouteAction.UpgradeConfig> |
getUpgradeConfigsList()
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25; |
RouteAction.UpgradeConfigOrBuilder |
getUpgradeConfigsOrBuilder(int index)
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25; |
List<? extends RouteAction.UpgradeConfigOrBuilder> |
getUpgradeConfigsOrBuilderList()
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25; |
WeightedCluster |
getWeightedClusters()
Multiple upstream clusters can be specified for a given route.
|
WeightedClusterOrBuilder |
getWeightedClustersOrBuilder()
Multiple upstream clusters can be specified for a given route.
|
boolean |
hasAutoHostRewrite()
Indicates that during forwarding, the host header will be swapped with
the hostname of the upstream host chosen by the cluster manager.
|
boolean |
hasCors()
Indicates that the route has a CORS policy.
|
int |
hashCode() |
boolean |
hasIdleTimeout()
Specifies the idle timeout for the route.
|
boolean |
hasIncludeVhRateLimits()
Specifies if the rate limit filter should include the virtual host rate
limits.
|
boolean |
hasMaxGrpcTimeout()
If present, and the request is a gRPC request, use the
`grpc-timeout header <https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md>`_,
or its default value (infinity) instead of
:ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, but limit the applied timeout
to the maximum value specified here.
|
boolean |
hasMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer.
|
boolean |
hasRequestMirrorPolicy()
Indicates that the route has a request mirroring policy.
|
boolean |
hasRetryPolicy()
Indicates that the route has a retry policy.
|
boolean |
hasTimeout()
Specifies the upstream timeout for the route.
|
boolean |
hasWeightedClusters()
Multiple upstream clusters can be specified for a given route.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouteAction.Builder |
newBuilder() |
static RouteAction.Builder |
newBuilder(RouteAction prototype) |
RouteAction.Builder |
newBuilderForType() |
protected RouteAction.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RouteAction |
parseDelimitedFrom(InputStream input) |
static RouteAction |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteAction |
parseFrom(byte[] data) |
static RouteAction |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteAction |
parseFrom(ByteBuffer data) |
static RouteAction |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteAction |
parseFrom(com.google.protobuf.ByteString data) |
static RouteAction |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteAction |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteAction |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteAction |
parseFrom(InputStream input) |
static RouteAction |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouteAction> |
parser() |
RouteAction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CLUSTER_FIELD_NUMBER
public static final int CLUSTER_HEADER_FIELD_NUMBER
public static final int WEIGHTED_CLUSTERS_FIELD_NUMBER
public static final int CLUSTER_NOT_FOUND_RESPONSE_CODE_FIELD_NUMBER
public static final int METADATA_MATCH_FIELD_NUMBER
public static final int PREFIX_REWRITE_FIELD_NUMBER
public static final int HOST_REWRITE_FIELD_NUMBER
public static final int AUTO_HOST_REWRITE_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public static final int IDLE_TIMEOUT_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER
public static final int REQUEST_MIRROR_POLICY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
public static final int REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
public static final int RATE_LIMITS_FIELD_NUMBER
public static final int INCLUDE_VH_RATE_LIMITS_FIELD_NUMBER
public static final int HASH_POLICY_FIELD_NUMBER
public static final int CORS_FIELD_NUMBER
public static final int MAX_GRPC_TIMEOUT_FIELD_NUMBER
public static final int UPGRADE_CONFIGS_FIELD_NUMBER
public static final int INTERNAL_REDIRECT_ACTION_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public RouteAction.ClusterSpecifierCase getClusterSpecifierCase()
getClusterSpecifierCase in interface RouteActionOrBuilderpublic RouteAction.HostRewriteSpecifierCase getHostRewriteSpecifierCase()
getHostRewriteSpecifierCase in interface RouteActionOrBuilderpublic String getCluster()
Indicates the upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }getCluster in interface RouteActionOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
Indicates the upstream cluster to which the request should be routed to.
string cluster = 1 [(.validate.rules) = { ... }getClusterBytes in interface RouteActionOrBuilderpublic String getClusterHeader()
Envoy will determine the cluster to route to by reading the value of the HTTP header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist, Envoy will return a 404 response. .. attention:: Internally, Envoy always uses the HTTP/2 *:authority* header to represent the HTTP/1 *Host* header. Thus, if attempting to match on *Host*, match on *:authority* instead.
string cluster_header = 2 [(.validate.rules) = { ... }getClusterHeader in interface RouteActionOrBuilderpublic com.google.protobuf.ByteString getClusterHeaderBytes()
Envoy will determine the cluster to route to by reading the value of the HTTP header named by cluster_header from the request headers. If the header is not found or the referenced cluster does not exist, Envoy will return a 404 response. .. attention:: Internally, Envoy always uses the HTTP/2 *:authority* header to represent the HTTP/1 *Host* header. Thus, if attempting to match on *Host*, match on *:authority* instead.
string cluster_header = 2 [(.validate.rules) = { ... }getClusterHeaderBytes in interface RouteActionOrBuilderpublic 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. See :ref:`traffic splitting <config_http_conn_man_route_table_traffic_splitting_split>` for additional documentation.
.envoy.api.v2.route.WeightedCluster weighted_clusters = 3;hasWeightedClusters in interface RouteActionOrBuilderpublic 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. See :ref:`traffic splitting <config_http_conn_man_route_table_traffic_splitting_split>` for additional documentation.
.envoy.api.v2.route.WeightedCluster weighted_clusters = 3;getWeightedClusters in interface RouteActionOrBuilderpublic 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. See :ref:`traffic splitting <config_http_conn_man_route_table_traffic_splitting_split>` for additional documentation.
.envoy.api.v2.route.WeightedCluster weighted_clusters = 3;getWeightedClustersOrBuilder in interface RouteActionOrBuilderpublic int getClusterNotFoundResponseCodeValue()
The HTTP status code to use when configured cluster is not found. The default response code is 503 Service Unavailable.
.envoy.api.v2.route.RouteAction.ClusterNotFoundResponseCode cluster_not_found_response_code = 20 [(.validate.rules) = { ... }getClusterNotFoundResponseCodeValue in interface RouteActionOrBuilderpublic RouteAction.ClusterNotFoundResponseCode getClusterNotFoundResponseCode()
The HTTP status code to use when configured cluster is not found. The default response code is 503 Service Unavailable.
.envoy.api.v2.route.RouteAction.ClusterNotFoundResponseCode cluster_not_found_response_code = 20 [(.validate.rules) = { ... }getClusterNotFoundResponseCode in interface RouteActionOrBuilderpublic boolean hasMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what's set in this field will be considered for load balancing. If using :ref:`weighted_clusters <envoy_api_field_route.RouteAction.weighted_clusters>`, metadata will be merged, with values provided there taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 4;hasMetadataMatch in interface RouteActionOrBuilderpublic Metadata getMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what's set in this field will be considered for load balancing. If using :ref:`weighted_clusters <envoy_api_field_route.RouteAction.weighted_clusters>`, metadata will be merged, with values provided there taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 4;getMetadataMatch in interface RouteActionOrBuilderpublic MetadataOrBuilder getMetadataMatchOrBuilder()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what's set in this field will be considered for load balancing. If using :ref:`weighted_clusters <envoy_api_field_route.RouteAction.weighted_clusters>`, metadata will be merged, with values provided there taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 4;getMetadataMatchOrBuilder in interface RouteActionOrBuilderpublic String getPrefixRewrite()
Indicates that during forwarding, the matched prefix (or path) should be
swapped with this value. This option allows application URLs to be rooted
at a different path from those exposed at the reverse proxy layer. The router filter will
place the original path before rewrite into the :ref:`x-envoy-original-path
<config_http_filters_router_x-envoy-original-path>` header.
.. attention::
Pay careful attention to the use of trailing slashes in the
:ref:`route's match <envoy_api_field_route.Route.match>` prefix value.
Stripping a prefix from a path requires multiple Routes to handle all cases. For example,
rewriting */prefix* to */* and */prefix/etc* to */etc* cannot be done in a single
:ref:`Route <envoy_api_msg_route.Route>`, as shown by the below config entries:
.. code-block:: yaml
- match:
prefix: "/prefix/"
route:
prefix_rewrite: "/"
- match:
prefix: "/prefix"
route:
prefix_rewrite: "/"
Having above entries in the config, requests to */prefix* will be stripped to */*, while
requests to */prefix/etc* will be stripped to */etc*.
string prefix_rewrite = 5;getPrefixRewrite in interface RouteActionOrBuilderpublic com.google.protobuf.ByteString getPrefixRewriteBytes()
Indicates that during forwarding, the matched prefix (or path) should be
swapped with this value. This option allows application URLs to be rooted
at a different path from those exposed at the reverse proxy layer. The router filter will
place the original path before rewrite into the :ref:`x-envoy-original-path
<config_http_filters_router_x-envoy-original-path>` header.
.. attention::
Pay careful attention to the use of trailing slashes in the
:ref:`route's match <envoy_api_field_route.Route.match>` prefix value.
Stripping a prefix from a path requires multiple Routes to handle all cases. For example,
rewriting */prefix* to */* and */prefix/etc* to */etc* cannot be done in a single
:ref:`Route <envoy_api_msg_route.Route>`, as shown by the below config entries:
.. code-block:: yaml
- match:
prefix: "/prefix/"
route:
prefix_rewrite: "/"
- match:
prefix: "/prefix"
route:
prefix_rewrite: "/"
Having above entries in the config, requests to */prefix* will be stripped to */*, while
requests to */prefix/etc* will be stripped to */etc*.
string prefix_rewrite = 5;getPrefixRewriteBytes in interface RouteActionOrBuilderpublic String getHostRewrite()
Indicates that during forwarding, the host header will be swapped with this value.
string host_rewrite = 6;getHostRewrite in interface RouteActionOrBuilderpublic com.google.protobuf.ByteString getHostRewriteBytes()
Indicates that during forwarding, the host header will be swapped with this value.
string host_rewrite = 6;getHostRewriteBytes in interface RouteActionOrBuilderpublic boolean hasAutoHostRewrite()
Indicates that during forwarding, the host header will be swapped with the hostname of the upstream host chosen by the cluster manager. This option is applicable only when the destination cluster for a route is of type *strict_dns* or *logical_dns*. Setting this to true with other cluster types has no effect.
.google.protobuf.BoolValue auto_host_rewrite = 7;hasAutoHostRewrite in interface RouteActionOrBuilderpublic com.google.protobuf.BoolValue getAutoHostRewrite()
Indicates that during forwarding, the host header will be swapped with the hostname of the upstream host chosen by the cluster manager. This option is applicable only when the destination cluster for a route is of type *strict_dns* or *logical_dns*. Setting this to true with other cluster types has no effect.
.google.protobuf.BoolValue auto_host_rewrite = 7;getAutoHostRewrite in interface RouteActionOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getAutoHostRewriteOrBuilder()
Indicates that during forwarding, the host header will be swapped with the hostname of the upstream host chosen by the cluster manager. This option is applicable only when the destination cluster for a route is of type *strict_dns* or *logical_dns*. Setting this to true with other cluster types has no effect.
.google.protobuf.BoolValue auto_host_rewrite = 7;getAutoHostRewriteOrBuilder in interface RouteActionOrBuilderpublic boolean hasTimeout()
Specifies the upstream timeout for the route. If not specified, the default is 15s. This spans between the point at which the entire downstream request (i.e. end-of-stream) has been processed and when the upstream response has been completely processed. .. note:: This timeout includes all retries. See also :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms`, :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`, and the :ref:`retry overview <arch_overview_http_routing_retry>`.
.google.protobuf.Duration timeout = 8 [(.gogoproto.stdduration) = true];hasTimeout in interface RouteActionOrBuilderpublic com.google.protobuf.Duration getTimeout()
Specifies the upstream timeout for the route. If not specified, the default is 15s. This spans between the point at which the entire downstream request (i.e. end-of-stream) has been processed and when the upstream response has been completely processed. .. note:: This timeout includes all retries. See also :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms`, :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`, and the :ref:`retry overview <arch_overview_http_routing_retry>`.
.google.protobuf.Duration timeout = 8 [(.gogoproto.stdduration) = true];getTimeout in interface RouteActionOrBuilderpublic com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Specifies the upstream timeout for the route. If not specified, the default is 15s. This spans between the point at which the entire downstream request (i.e. end-of-stream) has been processed and when the upstream response has been completely processed. .. note:: This timeout includes all retries. See also :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms`, :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`, and the :ref:`retry overview <arch_overview_http_routing_retry>`.
.google.protobuf.Duration timeout = 8 [(.gogoproto.stdduration) = true];getTimeoutOrBuilder in interface RouteActionOrBuilderpublic boolean hasIdleTimeout()
Specifies the idle timeout for the route. If not specified, there is no per-route idle timeout, although the connection manager wide :ref:`stream_idle_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.stream_idle_timeout>` will still apply. A value of 0 will completely disable the route's idle timeout, even if a connection manager stream idle timeout is configured. The idle timeout is distinct to :ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, which provides an upper bound on the upstream response time; :ref:`idle_timeout <envoy_api_field_route.RouteAction.idle_timeout>` instead bounds the amount of time the request's stream may be idle. After header decoding, the idle timeout will apply on downstream and upstream request events. Each time an encode/decode event for headers or data is processed for the stream, the timer will be reset. If the timeout fires, the stream is terminated with a 408 Request Timeout error code if no upstream response header has been received, otherwise a stream reset occurs.
.google.protobuf.Duration idle_timeout = 24 [(.gogoproto.stdduration) = true, (.validate.rules) = { ... }hasIdleTimeout in interface RouteActionOrBuilderpublic com.google.protobuf.Duration getIdleTimeout()
Specifies the idle timeout for the route. If not specified, there is no per-route idle timeout, although the connection manager wide :ref:`stream_idle_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.stream_idle_timeout>` will still apply. A value of 0 will completely disable the route's idle timeout, even if a connection manager stream idle timeout is configured. The idle timeout is distinct to :ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, which provides an upper bound on the upstream response time; :ref:`idle_timeout <envoy_api_field_route.RouteAction.idle_timeout>` instead bounds the amount of time the request's stream may be idle. After header decoding, the idle timeout will apply on downstream and upstream request events. Each time an encode/decode event for headers or data is processed for the stream, the timer will be reset. If the timeout fires, the stream is terminated with a 408 Request Timeout error code if no upstream response header has been received, otherwise a stream reset occurs.
.google.protobuf.Duration idle_timeout = 24 [(.gogoproto.stdduration) = true, (.validate.rules) = { ... }getIdleTimeout in interface RouteActionOrBuilderpublic com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
Specifies the idle timeout for the route. If not specified, there is no per-route idle timeout, although the connection manager wide :ref:`stream_idle_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.stream_idle_timeout>` will still apply. A value of 0 will completely disable the route's idle timeout, even if a connection manager stream idle timeout is configured. The idle timeout is distinct to :ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, which provides an upper bound on the upstream response time; :ref:`idle_timeout <envoy_api_field_route.RouteAction.idle_timeout>` instead bounds the amount of time the request's stream may be idle. After header decoding, the idle timeout will apply on downstream and upstream request events. Each time an encode/decode event for headers or data is processed for the stream, the timer will be reset. If the timeout fires, the stream is terminated with a 408 Request Timeout error code if no upstream response header has been received, otherwise a stream reset occurs.
.google.protobuf.Duration idle_timeout = 24 [(.gogoproto.stdduration) = true, (.validate.rules) = { ... }getIdleTimeoutOrBuilder in interface RouteActionOrBuilderpublic boolean hasRetryPolicy()
Indicates that the route has a retry policy. Note that if this is set, it'll take precedence over the virtual host level retry policy entirely (e.g.: policies are not merged, most internal one becomes the enforced policy).
.envoy.api.v2.route.RetryPolicy retry_policy = 9;hasRetryPolicy in interface RouteActionOrBuilderpublic RetryPolicy getRetryPolicy()
Indicates that the route has a retry policy. Note that if this is set, it'll take precedence over the virtual host level retry policy entirely (e.g.: policies are not merged, most internal one becomes the enforced policy).
.envoy.api.v2.route.RetryPolicy retry_policy = 9;getRetryPolicy in interface RouteActionOrBuilderpublic RetryPolicyOrBuilder getRetryPolicyOrBuilder()
Indicates that the route has a retry policy. Note that if this is set, it'll take precedence over the virtual host level retry policy entirely (e.g.: policies are not merged, most internal one becomes the enforced policy).
.envoy.api.v2.route.RetryPolicy retry_policy = 9;getRetryPolicyOrBuilder in interface RouteActionOrBuilderpublic boolean hasRequestMirrorPolicy()
Indicates that the route has a request mirroring policy.
.envoy.api.v2.route.RouteAction.RequestMirrorPolicy request_mirror_policy = 10;hasRequestMirrorPolicy in interface RouteActionOrBuilderpublic RouteAction.RequestMirrorPolicy getRequestMirrorPolicy()
Indicates that the route has a request mirroring policy.
.envoy.api.v2.route.RouteAction.RequestMirrorPolicy request_mirror_policy = 10;getRequestMirrorPolicy in interface RouteActionOrBuilderpublic RouteAction.RequestMirrorPolicyOrBuilder getRequestMirrorPolicyOrBuilder()
Indicates that the route has a request mirroring policy.
.envoy.api.v2.route.RouteAction.RequestMirrorPolicy request_mirror_policy = 10;getRequestMirrorPolicyOrBuilder in interface RouteActionOrBuilderpublic int getPriorityValue()
Optionally specifies the :ref:`routing priority <arch_overview_http_routing_priority>`. [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
.envoy.api.v2.core.RoutingPriority priority = 11;getPriorityValue in interface RouteActionOrBuilderpublic RoutingPriority getPriority()
Optionally specifies the :ref:`routing priority <arch_overview_http_routing_priority>`. [#comment:TODO(htuch): add (validate.rules).enum.defined_only = true once https://github.com/lyft/protoc-gen-validate/issues/42 is resolved.]
.envoy.api.v2.core.RoutingPriority priority = 11;getPriority in interface RouteActionOrBuilder@Deprecated public List<HeaderValueOption> getRequestHeadersToAddList()
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 12 [deprecated = true];getRequestHeadersToAddList in interface RouteActionOrBuilder@Deprecated public List<? extends HeaderValueOptionOrBuilder> getRequestHeadersToAddOrBuilderList()
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 12 [deprecated = true];getRequestHeadersToAddOrBuilderList in interface RouteActionOrBuilder@Deprecated public int getRequestHeadersToAddCount()
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 12 [deprecated = true];getRequestHeadersToAddCount in interface RouteActionOrBuilder@Deprecated public HeaderValueOption getRequestHeadersToAdd(int index)
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 12 [deprecated = true];getRequestHeadersToAdd in interface RouteActionOrBuilder@Deprecated public HeaderValueOptionOrBuilder getRequestHeadersToAddOrBuilder(int index)
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 12 [deprecated = true];getRequestHeadersToAddOrBuilder in interface RouteActionOrBuilder@Deprecated public List<HeaderValueOption> getResponseHeadersToAddList()
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 18 [deprecated = true];getResponseHeadersToAddList in interface RouteActionOrBuilder@Deprecated public List<? extends HeaderValueOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 18 [deprecated = true];getResponseHeadersToAddOrBuilderList in interface RouteActionOrBuilder@Deprecated public int getResponseHeadersToAddCount()
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 18 [deprecated = true];getResponseHeadersToAddCount in interface RouteActionOrBuilder@Deprecated public HeaderValueOption getResponseHeadersToAdd(int index)
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 18 [deprecated = true];getResponseHeadersToAdd in interface RouteActionOrBuilder@Deprecated public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
[#not-implemented-hide:]
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 18 [deprecated = true];getResponseHeadersToAddOrBuilder in interface RouteActionOrBuilder@Deprecated public com.google.protobuf.ProtocolStringList getResponseHeadersToRemoveList()
[#not-implemented-hide:]
repeated string response_headers_to_remove = 19 [deprecated = true];getResponseHeadersToRemoveList in interface RouteActionOrBuilder@Deprecated public int getResponseHeadersToRemoveCount()
[#not-implemented-hide:]
repeated string response_headers_to_remove = 19 [deprecated = true];getResponseHeadersToRemoveCount in interface RouteActionOrBuilder@Deprecated public String getResponseHeadersToRemove(int index)
[#not-implemented-hide:]
repeated string response_headers_to_remove = 19 [deprecated = true];getResponseHeadersToRemove in interface RouteActionOrBuilder@Deprecated public com.google.protobuf.ByteString getResponseHeadersToRemoveBytes(int index)
[#not-implemented-hide:]
repeated string response_headers_to_remove = 19 [deprecated = true];getResponseHeadersToRemoveBytes in interface RouteActionOrBuilderpublic List<RateLimit> getRateLimitsList()
Specifies a set of rate limit configurations that could be applied to the route.
repeated .envoy.api.v2.route.RateLimit rate_limits = 13;getRateLimitsList in interface RouteActionOrBuilderpublic List<? extends RateLimitOrBuilder> getRateLimitsOrBuilderList()
Specifies a set of rate limit configurations that could be applied to the route.
repeated .envoy.api.v2.route.RateLimit rate_limits = 13;getRateLimitsOrBuilderList in interface RouteActionOrBuilderpublic int getRateLimitsCount()
Specifies a set of rate limit configurations that could be applied to the route.
repeated .envoy.api.v2.route.RateLimit rate_limits = 13;getRateLimitsCount in interface RouteActionOrBuilderpublic RateLimit getRateLimits(int index)
Specifies a set of rate limit configurations that could be applied to the route.
repeated .envoy.api.v2.route.RateLimit rate_limits = 13;getRateLimits in interface RouteActionOrBuilderpublic RateLimitOrBuilder getRateLimitsOrBuilder(int index)
Specifies a set of rate limit configurations that could be applied to the route.
repeated .envoy.api.v2.route.RateLimit rate_limits = 13;getRateLimitsOrBuilder in interface RouteActionOrBuilderpublic boolean hasIncludeVhRateLimits()
Specifies if the rate limit filter should include the virtual host rate limits. By default, if the route configured rate limits, the virtual host :ref:`rate_limits <envoy_api_field_route.VirtualHost.rate_limits>` are not applied to the request.
.google.protobuf.BoolValue include_vh_rate_limits = 14;hasIncludeVhRateLimits in interface RouteActionOrBuilderpublic com.google.protobuf.BoolValue getIncludeVhRateLimits()
Specifies if the rate limit filter should include the virtual host rate limits. By default, if the route configured rate limits, the virtual host :ref:`rate_limits <envoy_api_field_route.VirtualHost.rate_limits>` are not applied to the request.
.google.protobuf.BoolValue include_vh_rate_limits = 14;getIncludeVhRateLimits in interface RouteActionOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getIncludeVhRateLimitsOrBuilder()
Specifies if the rate limit filter should include the virtual host rate limits. By default, if the route configured rate limits, the virtual host :ref:`rate_limits <envoy_api_field_route.VirtualHost.rate_limits>` are not applied to the request.
.google.protobuf.BoolValue include_vh_rate_limits = 14;getIncludeVhRateLimitsOrBuilder in interface RouteActionOrBuilderpublic List<RouteAction.HashPolicy> getHashPolicyList()
Specifies a list of hash policies to use for ring hash load balancing. Each hash policy is evaluated individually and the combined result is used to route the request. The method of combination is deterministic such that identical lists of hash policies will produce the same hash. Since a hash policy examines specific parts of a request, it can fail to produce a hash (i.e. if the hashed header is not present). If (and only if) all configured hash policies fail to generate a hash, no hash will be produced for the route. In this case, the behavior is the same as if no hash policies were specified (i.e. the ring hash load balancer will choose a random backend). If a hash policy has the "terminal" attribute set to true, and there is already a hash generated, the hash is returned immediately, ignoring the rest of the hash policy list.
repeated .envoy.api.v2.route.RouteAction.HashPolicy hash_policy = 15;getHashPolicyList in interface RouteActionOrBuilderpublic List<? extends RouteAction.HashPolicyOrBuilder> getHashPolicyOrBuilderList()
Specifies a list of hash policies to use for ring hash load balancing. Each hash policy is evaluated individually and the combined result is used to route the request. The method of combination is deterministic such that identical lists of hash policies will produce the same hash. Since a hash policy examines specific parts of a request, it can fail to produce a hash (i.e. if the hashed header is not present). If (and only if) all configured hash policies fail to generate a hash, no hash will be produced for the route. In this case, the behavior is the same as if no hash policies were specified (i.e. the ring hash load balancer will choose a random backend). If a hash policy has the "terminal" attribute set to true, and there is already a hash generated, the hash is returned immediately, ignoring the rest of the hash policy list.
repeated .envoy.api.v2.route.RouteAction.HashPolicy hash_policy = 15;getHashPolicyOrBuilderList in interface RouteActionOrBuilderpublic int getHashPolicyCount()
Specifies a list of hash policies to use for ring hash load balancing. Each hash policy is evaluated individually and the combined result is used to route the request. The method of combination is deterministic such that identical lists of hash policies will produce the same hash. Since a hash policy examines specific parts of a request, it can fail to produce a hash (i.e. if the hashed header is not present). If (and only if) all configured hash policies fail to generate a hash, no hash will be produced for the route. In this case, the behavior is the same as if no hash policies were specified (i.e. the ring hash load balancer will choose a random backend). If a hash policy has the "terminal" attribute set to true, and there is already a hash generated, the hash is returned immediately, ignoring the rest of the hash policy list.
repeated .envoy.api.v2.route.RouteAction.HashPolicy hash_policy = 15;getHashPolicyCount in interface RouteActionOrBuilderpublic RouteAction.HashPolicy getHashPolicy(int index)
Specifies a list of hash policies to use for ring hash load balancing. Each hash policy is evaluated individually and the combined result is used to route the request. The method of combination is deterministic such that identical lists of hash policies will produce the same hash. Since a hash policy examines specific parts of a request, it can fail to produce a hash (i.e. if the hashed header is not present). If (and only if) all configured hash policies fail to generate a hash, no hash will be produced for the route. In this case, the behavior is the same as if no hash policies were specified (i.e. the ring hash load balancer will choose a random backend). If a hash policy has the "terminal" attribute set to true, and there is already a hash generated, the hash is returned immediately, ignoring the rest of the hash policy list.
repeated .envoy.api.v2.route.RouteAction.HashPolicy hash_policy = 15;getHashPolicy in interface RouteActionOrBuilderpublic RouteAction.HashPolicyOrBuilder getHashPolicyOrBuilder(int index)
Specifies a list of hash policies to use for ring hash load balancing. Each hash policy is evaluated individually and the combined result is used to route the request. The method of combination is deterministic such that identical lists of hash policies will produce the same hash. Since a hash policy examines specific parts of a request, it can fail to produce a hash (i.e. if the hashed header is not present). If (and only if) all configured hash policies fail to generate a hash, no hash will be produced for the route. In this case, the behavior is the same as if no hash policies were specified (i.e. the ring hash load balancer will choose a random backend). If a hash policy has the "terminal" attribute set to true, and there is already a hash generated, the hash is returned immediately, ignoring the rest of the hash policy list.
repeated .envoy.api.v2.route.RouteAction.HashPolicy hash_policy = 15;getHashPolicyOrBuilder in interface RouteActionOrBuilderpublic boolean hasCors()
Indicates that the route has a CORS policy.
.envoy.api.v2.route.CorsPolicy cors = 17;hasCors in interface RouteActionOrBuilderpublic CorsPolicy getCors()
Indicates that the route has a CORS policy.
.envoy.api.v2.route.CorsPolicy cors = 17;getCors in interface RouteActionOrBuilderpublic CorsPolicyOrBuilder getCorsOrBuilder()
Indicates that the route has a CORS policy.
.envoy.api.v2.route.CorsPolicy cors = 17;getCorsOrBuilder in interface RouteActionOrBuilderpublic boolean hasMaxGrpcTimeout()
If present, and the request is a gRPC request, use the `grpc-timeout header <https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md>`_, or its default value (infinity) instead of :ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, but limit the applied timeout to the maximum value specified here. If configured as 0, the maximum allowed timeout for gRPC requests is infinity. If not configured at all, the `grpc-timeout` header is not used and gRPC requests time out like any other requests using :ref:`timeout <envoy_api_field_route.RouteAction.timeout>` or its default. This can be used to prevent unexpected upstream request timeouts due to potentially long time gaps between gRPC request and response in gRPC streaming mode.
.google.protobuf.Duration max_grpc_timeout = 23 [(.gogoproto.stdduration) = true];hasMaxGrpcTimeout in interface RouteActionOrBuilderpublic com.google.protobuf.Duration getMaxGrpcTimeout()
If present, and the request is a gRPC request, use the `grpc-timeout header <https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md>`_, or its default value (infinity) instead of :ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, but limit the applied timeout to the maximum value specified here. If configured as 0, the maximum allowed timeout for gRPC requests is infinity. If not configured at all, the `grpc-timeout` header is not used and gRPC requests time out like any other requests using :ref:`timeout <envoy_api_field_route.RouteAction.timeout>` or its default. This can be used to prevent unexpected upstream request timeouts due to potentially long time gaps between gRPC request and response in gRPC streaming mode.
.google.protobuf.Duration max_grpc_timeout = 23 [(.gogoproto.stdduration) = true];getMaxGrpcTimeout in interface RouteActionOrBuilderpublic com.google.protobuf.DurationOrBuilder getMaxGrpcTimeoutOrBuilder()
If present, and the request is a gRPC request, use the `grpc-timeout header <https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md>`_, or its default value (infinity) instead of :ref:`timeout <envoy_api_field_route.RouteAction.timeout>`, but limit the applied timeout to the maximum value specified here. If configured as 0, the maximum allowed timeout for gRPC requests is infinity. If not configured at all, the `grpc-timeout` header is not used and gRPC requests time out like any other requests using :ref:`timeout <envoy_api_field_route.RouteAction.timeout>` or its default. This can be used to prevent unexpected upstream request timeouts due to potentially long time gaps between gRPC request and response in gRPC streaming mode.
.google.protobuf.Duration max_grpc_timeout = 23 [(.gogoproto.stdduration) = true];getMaxGrpcTimeoutOrBuilder in interface RouteActionOrBuilderpublic List<RouteAction.UpgradeConfig> getUpgradeConfigsList()
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25;getUpgradeConfigsList in interface RouteActionOrBuilderpublic List<? extends RouteAction.UpgradeConfigOrBuilder> getUpgradeConfigsOrBuilderList()
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25;getUpgradeConfigsOrBuilderList in interface RouteActionOrBuilderpublic int getUpgradeConfigsCount()
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25;getUpgradeConfigsCount in interface RouteActionOrBuilderpublic RouteAction.UpgradeConfig getUpgradeConfigs(int index)
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25;getUpgradeConfigs in interface RouteActionOrBuilderpublic RouteAction.UpgradeConfigOrBuilder getUpgradeConfigsOrBuilder(int index)
repeated .envoy.api.v2.route.RouteAction.UpgradeConfig upgrade_configs = 25;getUpgradeConfigsOrBuilder in interface RouteActionOrBuilderpublic int getInternalRedirectActionValue()
.envoy.api.v2.route.RouteAction.InternalRedirectAction internal_redirect_action = 26;getInternalRedirectActionValue in interface RouteActionOrBuilderpublic RouteAction.InternalRedirectAction getInternalRedirectAction()
.envoy.api.v2.route.RouteAction.InternalRedirectAction internal_redirect_action = 26;getInternalRedirectAction in interface RouteActionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RouteAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteAction parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteAction parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteAction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteAction.Builder newBuilder()
public static RouteAction.Builder newBuilder(RouteAction prototype)
public RouteAction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteAction getDefaultInstance()
public static com.google.protobuf.Parser<RouteAction> parser()
public com.google.protobuf.Parser<RouteAction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2019 The Envoy Project. All rights reserved.