Class Route
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.envoyproxy.envoy.config.route.v3.Route
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouteOrBuilder,java.io.Serializable
public final class Route extends com.google.protobuf.GeneratedMessage implements RouteOrBuilder
A route is both a specification of how to match a request as well as an indication of what to do next (e.g., redirect, forward, rewrite, etc.). .. attention:: Envoy supports routing on HTTP method via :ref:`header matching <envoy_v3_api_msg_config.route.v3.HeaderMatcher>`. [#next-free-field: 20]
Protobuf typeenvoy.config.route.v3.Route- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoute.ActionCasestatic classRoute.BuilderA route is both a specification of how to match a request as well as an indication of what to do next (e.g., redirect, forward, rewrite, etc.).private static classRoute.TypedPerFilterConfigDefaultEntryHolder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsTypedPerFilterConfig(java.lang.String key)This field can be used to provide route specific per filter config.booleanequals(java.lang.Object obj)Route.ActionCasegetActionCase()DecoratorgetDecorator()Decorator for the matched route.DecoratorOrBuildergetDecoratorOrBuilder()Decorator for the matched route.static RoutegetDefaultInstance()RoutegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DirectResponseActiongetDirectResponse()Return an arbitrary HTTP response directly, without proxying.DirectResponseActionOrBuildergetDirectResponseOrBuilder()Return an arbitrary HTTP response directly, without proxying.FilterActiongetFilterAction()[#not-implemented-hide:] A filter-defined action (e.g., it could dynamically generate the RouteAction).FilterActionOrBuildergetFilterActionOrBuilder()[#not-implemented-hide:] A filter-defined action (e.g., it could dynamically generate the RouteAction).RouteMatchgetMatch()Route matching parameters.RouteMatchOrBuildergetMatchOrBuilder()Route matching parameters.MetadatagetMetadata()The Metadata field can be used to provide additional information about the route.MetadataOrBuildergetMetadataOrBuilder()The Metadata field can be used to provide additional information about the route.java.lang.StringgetName()Name for the route.com.google.protobuf.ByteStringgetNameBytes()Name for the route.NonForwardingActiongetNonForwardingAction()[#not-implemented-hide:] An action used when the route will generate a response directly, without forwarding to an upstream host.NonForwardingActionOrBuildergetNonForwardingActionOrBuilder()[#not-implemented-hide:] An action used when the route will generate a response directly, without forwarding to an upstream host.com.google.protobuf.Parser<Route>getParserForType()com.google.protobuf.UInt32ValuegetPerRequestBufferLimitBytes()The maximum bytes which will be buffered for retries and shadowing.com.google.protobuf.UInt32ValueOrBuildergetPerRequestBufferLimitBytesOrBuilder()The maximum bytes which will be buffered for retries and shadowing.RedirectActiongetRedirect()Return a redirect.RedirectActionOrBuildergetRedirectOrBuilder()Return a redirect.HeaderValueOptiongetRequestHeadersToAdd(int index)Specifies a set of headers that will be added to requests matching this route.intgetRequestHeadersToAddCount()Specifies a set of headers that will be added to requests matching this route.java.util.List<HeaderValueOption>getRequestHeadersToAddList()Specifies a set of headers that will be added to requests matching this route.HeaderValueOptionOrBuildergetRequestHeadersToAddOrBuilder(int index)Specifies a set of headers that will be added to requests matching this route.java.util.List<? extends HeaderValueOptionOrBuilder>getRequestHeadersToAddOrBuilderList()Specifies a set of headers that will be added to requests matching this route.java.lang.StringgetRequestHeadersToRemove(int index)Specifies a list of HTTP headers that should be removed from each request matching this route.com.google.protobuf.ByteStringgetRequestHeadersToRemoveBytes(int index)Specifies a list of HTTP headers that should be removed from each request matching this route.intgetRequestHeadersToRemoveCount()Specifies a list of HTTP headers that should be removed from each request matching this route.com.google.protobuf.ProtocolStringListgetRequestHeadersToRemoveList()Specifies a list of HTTP headers that should be removed from each request matching this route.HeaderValueOptiongetResponseHeadersToAdd(int index)Specifies a set of headers that will be added to responses to requests matching this route.intgetResponseHeadersToAddCount()Specifies a set of headers that will be added to responses to requests matching this route.java.util.List<HeaderValueOption>getResponseHeadersToAddList()Specifies a set of headers that will be added to responses to requests matching this route.HeaderValueOptionOrBuildergetResponseHeadersToAddOrBuilder(int index)Specifies a set of headers that will be added to responses to requests matching this route.java.util.List<? extends HeaderValueOptionOrBuilder>getResponseHeadersToAddOrBuilderList()Specifies a set of headers that will be added to responses to requests matching this route.java.lang.StringgetResponseHeadersToRemove(int index)Specifies a list of HTTP headers that should be removed from each response to requests matching this route.com.google.protobuf.ByteStringgetResponseHeadersToRemoveBytes(int index)Specifies a list of HTTP headers that should be removed from each response to requests matching this route.intgetResponseHeadersToRemoveCount()Specifies a list of HTTP headers that should be removed from each response to requests matching this route.com.google.protobuf.ProtocolStringListgetResponseHeadersToRemoveList()Specifies a list of HTTP headers that should be removed from each response to requests matching this route.RouteActiongetRoute()Route request to some upstream cluster.RouteActionOrBuildergetRouteOrBuilder()Route request to some upstream cluster.intgetSerializedSize()java.lang.StringgetStatPrefix()The human readable prefix to use when emitting statistics for this endpoint.com.google.protobuf.ByteStringgetStatPrefixBytes()The human readable prefix to use when emitting statistics for this endpoint.TracinggetTracing()Presence of the object defines whether the connection manager's tracing configuration is overridden by this route specific instance.TracingOrBuildergetTracingOrBuilder()Presence of the object defines whether the connection manager's tracing configuration is overridden by this route specific instance.java.util.Map<java.lang.String,com.google.protobuf.Any>getTypedPerFilterConfig()Deprecated.intgetTypedPerFilterConfigCount()This field can be used to provide route specific per filter config.java.util.Map<java.lang.String,com.google.protobuf.Any>getTypedPerFilterConfigMap()This field can be used to provide route specific per filter config.com.google.protobuf.AnygetTypedPerFilterConfigOrDefault(java.lang.String key, com.google.protobuf.Any defaultValue)This field can be used to provide route specific per filter config.com.google.protobuf.AnygetTypedPerFilterConfigOrThrow(java.lang.String key)This field can be used to provide route specific per filter config.booleanhasDecorator()Decorator for the matched route.booleanhasDirectResponse()Return an arbitrary HTTP response directly, without proxying.booleanhasFilterAction()[#not-implemented-hide:] A filter-defined action (e.g., it could dynamically generate the RouteAction).inthashCode()booleanhasMatch()Route matching parameters.booleanhasMetadata()The Metadata field can be used to provide additional information about the route.booleanhasNonForwardingAction()[#not-implemented-hide:] An action used when the route will generate a response directly, without forwarding to an upstream host.booleanhasPerRequestBufferLimitBytes()The maximum bytes which will be buffered for retries and shadowing.booleanhasRedirect()Return a redirect.booleanhasRoute()Route request to some upstream cluster.booleanhasTracing()Presence of the object defines whether the connection manager's tracing configuration is overridden by this route specific instance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)private com.google.protobuf.MapField<java.lang.String,com.google.protobuf.Any>internalGetTypedPerFilterConfig()booleanisInitialized()static Route.BuildernewBuilder()static Route.BuildernewBuilder(Route prototype)Route.BuildernewBuilderForType()protected Route.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static RouteparseDelimitedFrom(java.io.InputStream input)static RouteparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteparseFrom(byte[] data)static RouteparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteparseFrom(com.google.protobuf.ByteString data)static RouteparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteparseFrom(com.google.protobuf.CodedInputStream input)static RouteparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteparseFrom(java.io.InputStream input)static RouteparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteparseFrom(java.nio.ByteBuffer data)static RouteparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Route>parser()Route.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
actionCase_
private int actionCase_
-
action_
private java.lang.Object action_
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
name_
private volatile java.lang.Object name_
-
MATCH_FIELD_NUMBER
public static final int MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
match_
private RouteMatch match_
-
ROUTE_FIELD_NUMBER
public static final int ROUTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REDIRECT_FIELD_NUMBER
public static final int REDIRECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIRECT_RESPONSE_FIELD_NUMBER
public static final int DIRECT_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILTER_ACTION_FIELD_NUMBER
public static final int FILTER_ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NON_FORWARDING_ACTION_FIELD_NUMBER
public static final int NON_FORWARDING_ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
metadata_
private Metadata metadata_
-
DECORATOR_FIELD_NUMBER
public static final int DECORATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
decorator_
private Decorator decorator_
-
TYPED_PER_FILTER_CONFIG_FIELD_NUMBER
public static final int TYPED_PER_FILTER_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
typedPerFilterConfig_
private com.google.protobuf.MapField<java.lang.String,com.google.protobuf.Any> typedPerFilterConfig_
-
REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
public static final int REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
requestHeadersToAdd_
private java.util.List<HeaderValueOption> requestHeadersToAdd_
-
REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
public static final int REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
requestHeadersToRemove_
private com.google.protobuf.LazyStringArrayList requestHeadersToRemove_
-
RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
responseHeadersToAdd_
private java.util.List<HeaderValueOption> responseHeadersToAdd_
-
RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
responseHeadersToRemove_
private com.google.protobuf.LazyStringArrayList responseHeadersToRemove_
-
TRACING_FIELD_NUMBER
public static final int TRACING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tracing_
private Tracing tracing_
-
PER_REQUEST_BUFFER_LIMIT_BYTES_FIELD_NUMBER
public static final int PER_REQUEST_BUFFER_LIMIT_BYTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
perRequestBufferLimitBytes_
private com.google.protobuf.UInt32Value perRequestBufferLimitBytes_
-
STAT_PREFIX_FIELD_NUMBER
public static final int STAT_PREFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
statPrefix_
private volatile java.lang.Object statPrefix_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Route DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Route> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getActionCase
public Route.ActionCase getActionCase()
- Specified by:
getActionCasein interfaceRouteOrBuilder
-
getName
public java.lang.String getName()
Name for the route.
string name = 14;- Specified by:
getNamein interfaceRouteOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name for the route.
string name = 14;- Specified by:
getNameBytesin interfaceRouteOrBuilder- Returns:
- The bytes for name.
-
hasMatch
public boolean hasMatch()
Route matching parameters.
.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... }- Specified by:
hasMatchin interfaceRouteOrBuilder- Returns:
- Whether the match field is set.
-
getMatch
public RouteMatch getMatch()
Route matching parameters.
.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... }- Specified by:
getMatchin interfaceRouteOrBuilder- Returns:
- The match.
-
getMatchOrBuilder
public RouteMatchOrBuilder getMatchOrBuilder()
Route matching parameters.
.envoy.config.route.v3.RouteMatch match = 1 [(.validate.rules) = { ... }- Specified by:
getMatchOrBuilderin interfaceRouteOrBuilder
-
hasRoute
public boolean hasRoute()
Route request to some upstream cluster.
.envoy.config.route.v3.RouteAction route = 2;- Specified by:
hasRoutein interfaceRouteOrBuilder- Returns:
- Whether the route field is set.
-
getRoute
public RouteAction getRoute()
Route request to some upstream cluster.
.envoy.config.route.v3.RouteAction route = 2;- Specified by:
getRoutein interfaceRouteOrBuilder- Returns:
- The route.
-
getRouteOrBuilder
public RouteActionOrBuilder getRouteOrBuilder()
Route request to some upstream cluster.
.envoy.config.route.v3.RouteAction route = 2;- Specified by:
getRouteOrBuilderin interfaceRouteOrBuilder
-
hasRedirect
public boolean hasRedirect()
Return a redirect.
.envoy.config.route.v3.RedirectAction redirect = 3;- Specified by:
hasRedirectin interfaceRouteOrBuilder- Returns:
- Whether the redirect field is set.
-
getRedirect
public RedirectAction getRedirect()
Return a redirect.
.envoy.config.route.v3.RedirectAction redirect = 3;- Specified by:
getRedirectin interfaceRouteOrBuilder- Returns:
- The redirect.
-
getRedirectOrBuilder
public RedirectActionOrBuilder getRedirectOrBuilder()
Return a redirect.
.envoy.config.route.v3.RedirectAction redirect = 3;- Specified by:
getRedirectOrBuilderin interfaceRouteOrBuilder
-
hasDirectResponse
public boolean hasDirectResponse()
Return an arbitrary HTTP response directly, without proxying.
.envoy.config.route.v3.DirectResponseAction direct_response = 7;- Specified by:
hasDirectResponsein interfaceRouteOrBuilder- Returns:
- Whether the directResponse field is set.
-
getDirectResponse
public DirectResponseAction getDirectResponse()
Return an arbitrary HTTP response directly, without proxying.
.envoy.config.route.v3.DirectResponseAction direct_response = 7;- Specified by:
getDirectResponsein interfaceRouteOrBuilder- Returns:
- The directResponse.
-
getDirectResponseOrBuilder
public DirectResponseActionOrBuilder getDirectResponseOrBuilder()
Return an arbitrary HTTP response directly, without proxying.
.envoy.config.route.v3.DirectResponseAction direct_response = 7;- Specified by:
getDirectResponseOrBuilderin interfaceRouteOrBuilder
-
hasFilterAction
public boolean hasFilterAction()
[#not-implemented-hide:] A filter-defined action (e.g., it could dynamically generate the RouteAction). [#comment: TODO(samflattery): Remove cleanup in route_fuzz_test.cc when implemented]
.envoy.config.route.v3.FilterAction filter_action = 17;- Specified by:
hasFilterActionin interfaceRouteOrBuilder- Returns:
- Whether the filterAction field is set.
-
getFilterAction
public FilterAction getFilterAction()
[#not-implemented-hide:] A filter-defined action (e.g., it could dynamically generate the RouteAction). [#comment: TODO(samflattery): Remove cleanup in route_fuzz_test.cc when implemented]
.envoy.config.route.v3.FilterAction filter_action = 17;- Specified by:
getFilterActionin interfaceRouteOrBuilder- Returns:
- The filterAction.
-
getFilterActionOrBuilder
public FilterActionOrBuilder getFilterActionOrBuilder()
[#not-implemented-hide:] A filter-defined action (e.g., it could dynamically generate the RouteAction). [#comment: TODO(samflattery): Remove cleanup in route_fuzz_test.cc when implemented]
.envoy.config.route.v3.FilterAction filter_action = 17;- Specified by:
getFilterActionOrBuilderin interfaceRouteOrBuilder
-
hasNonForwardingAction
public boolean hasNonForwardingAction()
[#not-implemented-hide:] An action used when the route will generate a response directly, without forwarding to an upstream host. This will be used in non-proxy xDS clients like the gRPC server. It could also be used in the future in Envoy for a filter that directly generates responses for requests.
.envoy.config.route.v3.NonForwardingAction non_forwarding_action = 18;- Specified by:
hasNonForwardingActionin interfaceRouteOrBuilder- Returns:
- Whether the nonForwardingAction field is set.
-
getNonForwardingAction
public NonForwardingAction getNonForwardingAction()
[#not-implemented-hide:] An action used when the route will generate a response directly, without forwarding to an upstream host. This will be used in non-proxy xDS clients like the gRPC server. It could also be used in the future in Envoy for a filter that directly generates responses for requests.
.envoy.config.route.v3.NonForwardingAction non_forwarding_action = 18;- Specified by:
getNonForwardingActionin interfaceRouteOrBuilder- Returns:
- The nonForwardingAction.
-
getNonForwardingActionOrBuilder
public NonForwardingActionOrBuilder getNonForwardingActionOrBuilder()
[#not-implemented-hide:] An action used when the route will generate a response directly, without forwarding to an upstream host. This will be used in non-proxy xDS clients like the gRPC server. It could also be used in the future in Envoy for a filter that directly generates responses for requests.
.envoy.config.route.v3.NonForwardingAction non_forwarding_action = 18;- Specified by:
getNonForwardingActionOrBuilderin interfaceRouteOrBuilder
-
hasMetadata
public boolean hasMetadata()
The Metadata field can be used to provide additional information about the route. It can be used for configuration, stats, and logging. The metadata should go under the filter namespace that will need it. For instance, if the metadata is intended for the Router filter, the filter name should be specified as ``envoy.filters.http.router``.
.envoy.config.core.v3.Metadata metadata = 4;- Specified by:
hasMetadatain interfaceRouteOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
The Metadata field can be used to provide additional information about the route. It can be used for configuration, stats, and logging. The metadata should go under the filter namespace that will need it. For instance, if the metadata is intended for the Router filter, the filter name should be specified as ``envoy.filters.http.router``.
.envoy.config.core.v3.Metadata metadata = 4;- Specified by:
getMetadatain interfaceRouteOrBuilder- Returns:
- The metadata.
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
The Metadata field can be used to provide additional information about the route. It can be used for configuration, stats, and logging. The metadata should go under the filter namespace that will need it. For instance, if the metadata is intended for the Router filter, the filter name should be specified as ``envoy.filters.http.router``.
.envoy.config.core.v3.Metadata metadata = 4;- Specified by:
getMetadataOrBuilderin interfaceRouteOrBuilder
-
hasDecorator
public boolean hasDecorator()
Decorator for the matched route.
.envoy.config.route.v3.Decorator decorator = 5;- Specified by:
hasDecoratorin interfaceRouteOrBuilder- Returns:
- Whether the decorator field is set.
-
getDecorator
public Decorator getDecorator()
Decorator for the matched route.
.envoy.config.route.v3.Decorator decorator = 5;- Specified by:
getDecoratorin interfaceRouteOrBuilder- Returns:
- The decorator.
-
getDecoratorOrBuilder
public DecoratorOrBuilder getDecoratorOrBuilder()
Decorator for the matched route.
.envoy.config.route.v3.Decorator decorator = 5;- Specified by:
getDecoratorOrBuilderin interfaceRouteOrBuilder
-
internalGetTypedPerFilterConfig
private com.google.protobuf.MapField<java.lang.String,com.google.protobuf.Any> internalGetTypedPerFilterConfig()
-
getTypedPerFilterConfigCount
public int getTypedPerFilterConfigCount()
Description copied from interface:RouteOrBuilderThis field can be used to provide route specific per filter config. The key should match the :ref:`filter config name <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpFilter.name>`. See :ref:`Http filter route specific config <arch_overview_http_filters_per_filter_config>` for details. [#comment: An entry's value may be wrapped in a :ref:`FilterConfig<envoy_v3_api_msg_config.route.v3.FilterConfig>` message to specify additional options.]
map<string, .google.protobuf.Any> typed_per_filter_config = 13;- Specified by:
getTypedPerFilterConfigCountin interfaceRouteOrBuilder
-
containsTypedPerFilterConfig
public boolean containsTypedPerFilterConfig(java.lang.String key)
This field can be used to provide route specific per filter config. The key should match the :ref:`filter config name <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpFilter.name>`. See :ref:`Http filter route specific config <arch_overview_http_filters_per_filter_config>` for details. [#comment: An entry's value may be wrapped in a :ref:`FilterConfig<envoy_v3_api_msg_config.route.v3.FilterConfig>` message to specify additional options.]
map<string, .google.protobuf.Any> typed_per_filter_config = 13;- Specified by:
containsTypedPerFilterConfigin interfaceRouteOrBuilder
-
getTypedPerFilterConfig
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Any> getTypedPerFilterConfig()
Deprecated.UsegetTypedPerFilterConfigMap()instead.- Specified by:
getTypedPerFilterConfigin interfaceRouteOrBuilder
-
getTypedPerFilterConfigMap
public java.util.Map<java.lang.String,com.google.protobuf.Any> getTypedPerFilterConfigMap()
This field can be used to provide route specific per filter config. The key should match the :ref:`filter config name <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpFilter.name>`. See :ref:`Http filter route specific config <arch_overview_http_filters_per_filter_config>` for details. [#comment: An entry's value may be wrapped in a :ref:`FilterConfig<envoy_v3_api_msg_config.route.v3.FilterConfig>` message to specify additional options.]
map<string, .google.protobuf.Any> typed_per_filter_config = 13;- Specified by:
getTypedPerFilterConfigMapin interfaceRouteOrBuilder
-
getTypedPerFilterConfigOrDefault
public com.google.protobuf.Any getTypedPerFilterConfigOrDefault(java.lang.String key, com.google.protobuf.Any defaultValue)This field can be used to provide route specific per filter config. The key should match the :ref:`filter config name <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpFilter.name>`. See :ref:`Http filter route specific config <arch_overview_http_filters_per_filter_config>` for details. [#comment: An entry's value may be wrapped in a :ref:`FilterConfig<envoy_v3_api_msg_config.route.v3.FilterConfig>` message to specify additional options.]
map<string, .google.protobuf.Any> typed_per_filter_config = 13;- Specified by:
getTypedPerFilterConfigOrDefaultin interfaceRouteOrBuilder
-
getTypedPerFilterConfigOrThrow
public com.google.protobuf.Any getTypedPerFilterConfigOrThrow(java.lang.String key)
This field can be used to provide route specific per filter config. The key should match the :ref:`filter config name <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpFilter.name>`. See :ref:`Http filter route specific config <arch_overview_http_filters_per_filter_config>` for details. [#comment: An entry's value may be wrapped in a :ref:`FilterConfig<envoy_v3_api_msg_config.route.v3.FilterConfig>` message to specify additional options.]
map<string, .google.protobuf.Any> typed_per_filter_config = 13;- Specified by:
getTypedPerFilterConfigOrThrowin interfaceRouteOrBuilder
-
getRequestHeadersToAddList
public java.util.List<HeaderValueOption> getRequestHeadersToAddList()
Specifies a set of headers that will be added to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 9 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddListin interfaceRouteOrBuilder
-
getRequestHeadersToAddOrBuilderList
public java.util.List<? extends HeaderValueOptionOrBuilder> getRequestHeadersToAddOrBuilderList()
Specifies a set of headers that will be added to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 9 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddOrBuilderListin interfaceRouteOrBuilder
-
getRequestHeadersToAddCount
public int getRequestHeadersToAddCount()
Specifies a set of headers that will be added to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 9 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddCountin interfaceRouteOrBuilder
-
getRequestHeadersToAdd
public HeaderValueOption getRequestHeadersToAdd(int index)
Specifies a set of headers that will be added to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 9 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddin interfaceRouteOrBuilder
-
getRequestHeadersToAddOrBuilder
public HeaderValueOptionOrBuilder getRequestHeadersToAddOrBuilder(int index)
Specifies a set of headers that will be added to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 9 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddOrBuilderin interfaceRouteOrBuilder
-
getRequestHeadersToRemoveList
public com.google.protobuf.ProtocolStringList getRequestHeadersToRemoveList()
Specifies a list of HTTP headers that should be removed from each request matching this route.
repeated string request_headers_to_remove = 12 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToRemoveListin interfaceRouteOrBuilder- Returns:
- A list containing the requestHeadersToRemove.
-
getRequestHeadersToRemoveCount
public int getRequestHeadersToRemoveCount()
Specifies a list of HTTP headers that should be removed from each request matching this route.
repeated string request_headers_to_remove = 12 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToRemoveCountin interfaceRouteOrBuilder- Returns:
- The count of requestHeadersToRemove.
-
getRequestHeadersToRemove
public java.lang.String getRequestHeadersToRemove(int index)
Specifies a list of HTTP headers that should be removed from each request matching this route.
repeated string request_headers_to_remove = 12 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToRemovein interfaceRouteOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The requestHeadersToRemove at the given index.
-
getRequestHeadersToRemoveBytes
public com.google.protobuf.ByteString getRequestHeadersToRemoveBytes(int index)
Specifies a list of HTTP headers that should be removed from each request matching this route.
repeated string request_headers_to_remove = 12 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToRemoveBytesin interfaceRouteOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the requestHeadersToRemove at the given index.
-
getResponseHeadersToAddList
public java.util.List<HeaderValueOption> getResponseHeadersToAddList()
Specifies a set of headers that will be added to responses to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 10 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddListin interfaceRouteOrBuilder
-
getResponseHeadersToAddOrBuilderList
public java.util.List<? extends HeaderValueOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
Specifies a set of headers that will be added to responses to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 10 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderListin interfaceRouteOrBuilder
-
getResponseHeadersToAddCount
public int getResponseHeadersToAddCount()
Specifies a set of headers that will be added to responses to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 10 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddCountin interfaceRouteOrBuilder
-
getResponseHeadersToAdd
public HeaderValueOption getResponseHeadersToAdd(int index)
Specifies a set of headers that will be added to responses to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 10 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddin interfaceRouteOrBuilder
-
getResponseHeadersToAddOrBuilder
public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
Specifies a set of headers that will be added to responses to requests matching this route. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_v3_api_msg_config.route.v3.VirtualHost` and :ref:`envoy_v3_api_msg_config.route.v3.RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 10 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderin interfaceRouteOrBuilder
-
getResponseHeadersToRemoveList
public com.google.protobuf.ProtocolStringList getResponseHeadersToRemoveList()
Specifies a list of HTTP headers that should be removed from each response to requests matching this route.
repeated string response_headers_to_remove = 11 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToRemoveListin interfaceRouteOrBuilder- Returns:
- A list containing the responseHeadersToRemove.
-
getResponseHeadersToRemoveCount
public int getResponseHeadersToRemoveCount()
Specifies a list of HTTP headers that should be removed from each response to requests matching this route.
repeated string response_headers_to_remove = 11 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToRemoveCountin interfaceRouteOrBuilder- Returns:
- The count of responseHeadersToRemove.
-
getResponseHeadersToRemove
public java.lang.String getResponseHeadersToRemove(int index)
Specifies a list of HTTP headers that should be removed from each response to requests matching this route.
repeated string response_headers_to_remove = 11 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToRemovein interfaceRouteOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The responseHeadersToRemove at the given index.
-
getResponseHeadersToRemoveBytes
public com.google.protobuf.ByteString getResponseHeadersToRemoveBytes(int index)
Specifies a list of HTTP headers that should be removed from each response to requests matching this route.
repeated string response_headers_to_remove = 11 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToRemoveBytesin interfaceRouteOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the responseHeadersToRemove at the given index.
-
hasTracing
public boolean hasTracing()
Presence of the object defines whether the connection manager's tracing configuration is overridden by this route specific instance.
.envoy.config.route.v3.Tracing tracing = 15;- Specified by:
hasTracingin interfaceRouteOrBuilder- Returns:
- Whether the tracing field is set.
-
getTracing
public Tracing getTracing()
Presence of the object defines whether the connection manager's tracing configuration is overridden by this route specific instance.
.envoy.config.route.v3.Tracing tracing = 15;- Specified by:
getTracingin interfaceRouteOrBuilder- Returns:
- The tracing.
-
getTracingOrBuilder
public TracingOrBuilder getTracingOrBuilder()
Presence of the object defines whether the connection manager's tracing configuration is overridden by this route specific instance.
.envoy.config.route.v3.Tracing tracing = 15;- Specified by:
getTracingOrBuilderin interfaceRouteOrBuilder
-
hasPerRequestBufferLimitBytes
public boolean hasPerRequestBufferLimitBytes()
The maximum bytes which will be buffered for retries and shadowing. If set, the bytes actually buffered will be the minimum value of this and the listener per_connection_buffer_limit_bytes.
.google.protobuf.UInt32Value per_request_buffer_limit_bytes = 16;- Specified by:
hasPerRequestBufferLimitBytesin interfaceRouteOrBuilder- Returns:
- Whether the perRequestBufferLimitBytes field is set.
-
getPerRequestBufferLimitBytes
public com.google.protobuf.UInt32Value getPerRequestBufferLimitBytes()
The maximum bytes which will be buffered for retries and shadowing. If set, the bytes actually buffered will be the minimum value of this and the listener per_connection_buffer_limit_bytes.
.google.protobuf.UInt32Value per_request_buffer_limit_bytes = 16;- Specified by:
getPerRequestBufferLimitBytesin interfaceRouteOrBuilder- Returns:
- The perRequestBufferLimitBytes.
-
getPerRequestBufferLimitBytesOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getPerRequestBufferLimitBytesOrBuilder()
The maximum bytes which will be buffered for retries and shadowing. If set, the bytes actually buffered will be the minimum value of this and the listener per_connection_buffer_limit_bytes.
.google.protobuf.UInt32Value per_request_buffer_limit_bytes = 16;- Specified by:
getPerRequestBufferLimitBytesOrBuilderin interfaceRouteOrBuilder
-
getStatPrefix
public java.lang.String getStatPrefix()
The human readable prefix to use when emitting statistics for this endpoint. The statistics are rooted at vhost.<virtual host name>.route.<stat_prefix>. This should be set for highly critical endpoints that one wishes to get “per-route” statistics on. If not set, endpoint statistics are not generated. The emitted statistics are the same as those documented for :ref:`virtual clusters <config_http_filters_router_vcluster_stats>`. .. warning:: We do not recommend setting up a stat prefix for every application endpoint. This is both not easily maintainable and statistics use a non-trivial amount of memory(approximately 1KiB per route).
string stat_prefix = 19;- Specified by:
getStatPrefixin interfaceRouteOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()
The human readable prefix to use when emitting statistics for this endpoint. The statistics are rooted at vhost.<virtual host name>.route.<stat_prefix>. This should be set for highly critical endpoints that one wishes to get “per-route” statistics on. If not set, endpoint statistics are not generated. The emitted statistics are the same as those documented for :ref:`virtual clusters <config_http_filters_router_vcluster_stats>`. .. warning:: We do not recommend setting up a stat prefix for every application endpoint. This is both not easily maintainable and statistics use a non-trivial amount of memory(approximately 1KiB per route).
string stat_prefix = 19;- Specified by:
getStatPrefixBytesin interfaceRouteOrBuilder- Returns:
- The bytes for statPrefix.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Route parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Route parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Route parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Route parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Route parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Route parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Route.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Route.Builder newBuilder()
-
newBuilder
public static Route.Builder newBuilder(Route prototype)
-
toBuilder
public Route.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Route.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static Route getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Route> parser()
-
getParserForType
public com.google.protobuf.Parser<Route> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public Route getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-