Class Router.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
- io.envoyproxy.envoy.config.filter.http.router.v2.Router.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouterOrBuilder,Cloneable
- Enclosing class:
- Router
public static final class Router.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Router.Builder> implements RouterOrBuilder
[#next-free-field: 7]
Protobuf typeenvoy.config.filter.http.router.v2.Router
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Router.BuilderaddAllStrictCheckHeaders(Iterable<String> values)Specifies a list of HTTP headers to strictly validate.Router.BuilderaddAllUpstreamLog(Iterable<? extends AccessLog> values)Configuration for HTTP upstream logs emitted by the router.Router.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Router.BuilderaddStrictCheckHeaders(String value)Specifies a list of HTTP headers to strictly validate.Router.BuilderaddStrictCheckHeadersBytes(com.google.protobuf.ByteString value)Specifies a list of HTTP headers to strictly validate.Router.BuilderaddUpstreamLog(int index, AccessLog value)Configuration for HTTP upstream logs emitted by the router.Router.BuilderaddUpstreamLog(int index, AccessLog.Builder builderForValue)Configuration for HTTP upstream logs emitted by the router.Router.BuilderaddUpstreamLog(AccessLog value)Configuration for HTTP upstream logs emitted by the router.Router.BuilderaddUpstreamLog(AccessLog.Builder builderForValue)Configuration for HTTP upstream logs emitted by the router.AccessLog.BuilderaddUpstreamLogBuilder()Configuration for HTTP upstream logs emitted by the router.AccessLog.BuilderaddUpstreamLogBuilder(int index)Configuration for HTTP upstream logs emitted by the router.Routerbuild()RouterbuildPartial()Router.Builderclear()Router.BuilderclearDynamicStats()Whether the router generates dynamic cluster statistics.Router.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Router.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Router.BuilderclearRespectExpectedRqTimeout()If not set, ingress Envoy will ignore :ref:`config_http_filters_router_x-envoy-expected-rq-timeout-ms` header, populated by egress Envoy, when deriving timeout for upstream cluster.Router.BuilderclearStartChildSpan()Whether to start a child span for egress routed calls.Router.BuilderclearStrictCheckHeaders()Specifies a list of HTTP headers to strictly validate.Router.BuilderclearSuppressEnvoyHeaders()Do not add any additional *x-envoy-* headers to requests or responses.Router.BuilderclearUpstreamLog()Configuration for HTTP upstream logs emitted by the router.Router.Builderclone()RoutergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.BoolValuegetDynamicStats()Whether the router generates dynamic cluster statistics.com.google.protobuf.BoolValue.BuildergetDynamicStatsBuilder()Whether the router generates dynamic cluster statistics.com.google.protobuf.BoolValueOrBuildergetDynamicStatsOrBuilder()Whether the router generates dynamic cluster statistics.booleangetRespectExpectedRqTimeout()If not set, ingress Envoy will ignore :ref:`config_http_filters_router_x-envoy-expected-rq-timeout-ms` header, populated by egress Envoy, when deriving timeout for upstream cluster.booleangetStartChildSpan()Whether to start a child span for egress routed calls.StringgetStrictCheckHeaders(int index)Specifies a list of HTTP headers to strictly validate.com.google.protobuf.ByteStringgetStrictCheckHeadersBytes(int index)Specifies a list of HTTP headers to strictly validate.intgetStrictCheckHeadersCount()Specifies a list of HTTP headers to strictly validate.com.google.protobuf.ProtocolStringListgetStrictCheckHeadersList()Specifies a list of HTTP headers to strictly validate.booleangetSuppressEnvoyHeaders()Do not add any additional *x-envoy-* headers to requests or responses.AccessLoggetUpstreamLog(int index)Configuration for HTTP upstream logs emitted by the router.AccessLog.BuildergetUpstreamLogBuilder(int index)Configuration for HTTP upstream logs emitted by the router.List<AccessLog.Builder>getUpstreamLogBuilderList()Configuration for HTTP upstream logs emitted by the router.intgetUpstreamLogCount()Configuration for HTTP upstream logs emitted by the router.List<AccessLog>getUpstreamLogList()Configuration for HTTP upstream logs emitted by the router.AccessLogOrBuildergetUpstreamLogOrBuilder(int index)Configuration for HTTP upstream logs emitted by the router.List<? extends AccessLogOrBuilder>getUpstreamLogOrBuilderList()Configuration for HTTP upstream logs emitted by the router.booleanhasDynamicStats()Whether the router generates dynamic cluster statistics.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Router.BuildermergeDynamicStats(com.google.protobuf.BoolValue value)Whether the router generates dynamic cluster statistics.Router.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Router.BuildermergeFrom(com.google.protobuf.Message other)Router.BuildermergeFrom(Router other)Router.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Router.BuilderremoveUpstreamLog(int index)Configuration for HTTP upstream logs emitted by the router.Router.BuildersetDynamicStats(com.google.protobuf.BoolValue value)Whether the router generates dynamic cluster statistics.Router.BuildersetDynamicStats(com.google.protobuf.BoolValue.Builder builderForValue)Whether the router generates dynamic cluster statistics.Router.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Router.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Router.BuildersetRespectExpectedRqTimeout(boolean value)If not set, ingress Envoy will ignore :ref:`config_http_filters_router_x-envoy-expected-rq-timeout-ms` header, populated by egress Envoy, when deriving timeout for upstream cluster.Router.BuildersetStartChildSpan(boolean value)Whether to start a child span for egress routed calls.Router.BuildersetStrictCheckHeaders(int index, String value)Specifies a list of HTTP headers to strictly validate.Router.BuildersetSuppressEnvoyHeaders(boolean value)Do not add any additional *x-envoy-* headers to requests or responses.Router.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Router.BuildersetUpstreamLog(int index, AccessLog value)Configuration for HTTP upstream logs emitted by the router.Router.BuildersetUpstreamLog(int index, AccessLog.Builder builderForValue)Configuration for HTTP upstream logs emitted by the router.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clear
public Router.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
getDefaultInstanceForType
public Router getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Router build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Router buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Router.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
setField
public Router.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clearField
public Router.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
clearOneof
public Router.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
setRepeatedField
public Router.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
addRepeatedField
public Router.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeFrom
public Router.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Router.Builder>
-
mergeFrom
public Router.Builder mergeFrom(Router other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeFrom
public Router.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Router.Builder>- Throws:
IOException
-
hasDynamicStats
public boolean hasDynamicStats()
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;- Specified by:
hasDynamicStatsin interfaceRouterOrBuilder- Returns:
- Whether the dynamicStats field is set.
-
getDynamicStats
public com.google.protobuf.BoolValue getDynamicStats()
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;- Specified by:
getDynamicStatsin interfaceRouterOrBuilder- Returns:
- The dynamicStats.
-
setDynamicStats
public Router.Builder setDynamicStats(com.google.protobuf.BoolValue value)
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;
-
setDynamicStats
public Router.Builder setDynamicStats(com.google.protobuf.BoolValue.Builder builderForValue)
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;
-
mergeDynamicStats
public Router.Builder mergeDynamicStats(com.google.protobuf.BoolValue value)
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;
-
clearDynamicStats
public Router.Builder clearDynamicStats()
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;
-
getDynamicStatsBuilder
public com.google.protobuf.BoolValue.Builder getDynamicStatsBuilder()
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;
-
getDynamicStatsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getDynamicStatsOrBuilder()
Whether the router generates dynamic cluster statistics. Defaults to true. Can be disabled in high performance scenarios.
.google.protobuf.BoolValue dynamic_stats = 1;- Specified by:
getDynamicStatsOrBuilderin interfaceRouterOrBuilder
-
getStartChildSpan
public boolean getStartChildSpan()
Whether to start a child span for egress routed calls. This can be useful in scenarios where other filters (auth, ratelimit, etc.) make outbound calls and have child spans rooted at the same ingress parent. Defaults to false.
bool start_child_span = 2;- Specified by:
getStartChildSpanin interfaceRouterOrBuilder- Returns:
- The startChildSpan.
-
setStartChildSpan
public Router.Builder setStartChildSpan(boolean value)
Whether to start a child span for egress routed calls. This can be useful in scenarios where other filters (auth, ratelimit, etc.) make outbound calls and have child spans rooted at the same ingress parent. Defaults to false.
bool start_child_span = 2;- Parameters:
value- The startChildSpan to set.- Returns:
- This builder for chaining.
-
clearStartChildSpan
public Router.Builder clearStartChildSpan()
Whether to start a child span for egress routed calls. This can be useful in scenarios where other filters (auth, ratelimit, etc.) make outbound calls and have child spans rooted at the same ingress parent. Defaults to false.
bool start_child_span = 2;- Returns:
- This builder for chaining.
-
getUpstreamLogList
public List<AccessLog> getUpstreamLogList()
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;- Specified by:
getUpstreamLogListin interfaceRouterOrBuilder
-
getUpstreamLogCount
public int getUpstreamLogCount()
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;- Specified by:
getUpstreamLogCountin interfaceRouterOrBuilder
-
getUpstreamLog
public AccessLog getUpstreamLog(int index)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;- Specified by:
getUpstreamLogin interfaceRouterOrBuilder
-
setUpstreamLog
public Router.Builder setUpstreamLog(int index, AccessLog value)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
setUpstreamLog
public Router.Builder setUpstreamLog(int index, AccessLog.Builder builderForValue)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
addUpstreamLog
public Router.Builder addUpstreamLog(AccessLog value)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
addUpstreamLog
public Router.Builder addUpstreamLog(int index, AccessLog value)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
addUpstreamLog
public Router.Builder addUpstreamLog(AccessLog.Builder builderForValue)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
addUpstreamLog
public Router.Builder addUpstreamLog(int index, AccessLog.Builder builderForValue)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
addAllUpstreamLog
public Router.Builder addAllUpstreamLog(Iterable<? extends AccessLog> values)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
clearUpstreamLog
public Router.Builder clearUpstreamLog()
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
removeUpstreamLog
public Router.Builder removeUpstreamLog(int index)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
getUpstreamLogBuilder
public AccessLog.Builder getUpstreamLogBuilder(int index)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
getUpstreamLogOrBuilder
public AccessLogOrBuilder getUpstreamLogOrBuilder(int index)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;- Specified by:
getUpstreamLogOrBuilderin interfaceRouterOrBuilder
-
getUpstreamLogOrBuilderList
public List<? extends AccessLogOrBuilder> getUpstreamLogOrBuilderList()
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;- Specified by:
getUpstreamLogOrBuilderListin interfaceRouterOrBuilder
-
addUpstreamLogBuilder
public AccessLog.Builder addUpstreamLogBuilder()
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
addUpstreamLogBuilder
public AccessLog.Builder addUpstreamLogBuilder(int index)
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
getUpstreamLogBuilderList
public List<AccessLog.Builder> getUpstreamLogBuilderList()
Configuration for HTTP upstream logs emitted by the router. Upstream logs are configured in the same way as access logs, but each log entry represents an upstream request. Presuming retries are configured, multiple upstream requests may be made for each downstream (inbound) request.
repeated .envoy.config.filter.accesslog.v2.AccessLog upstream_log = 3;
-
getSuppressEnvoyHeaders
public boolean getSuppressEnvoyHeaders()
Do not add any additional *x-envoy-* headers to requests or responses. This only affects the :ref:`router filter generated *x-envoy-* headers <config_http_filters_router_headers_set>`, other Envoy filters and the HTTP connection manager may continue to set *x-envoy-* headers.
bool suppress_envoy_headers = 4;- Specified by:
getSuppressEnvoyHeadersin interfaceRouterOrBuilder- Returns:
- The suppressEnvoyHeaders.
-
setSuppressEnvoyHeaders
public Router.Builder setSuppressEnvoyHeaders(boolean value)
Do not add any additional *x-envoy-* headers to requests or responses. This only affects the :ref:`router filter generated *x-envoy-* headers <config_http_filters_router_headers_set>`, other Envoy filters and the HTTP connection manager may continue to set *x-envoy-* headers.
bool suppress_envoy_headers = 4;- Parameters:
value- The suppressEnvoyHeaders to set.- Returns:
- This builder for chaining.
-
clearSuppressEnvoyHeaders
public Router.Builder clearSuppressEnvoyHeaders()
Do not add any additional *x-envoy-* headers to requests or responses. This only affects the :ref:`router filter generated *x-envoy-* headers <config_http_filters_router_headers_set>`, other Envoy filters and the HTTP connection manager may continue to set *x-envoy-* headers.
bool suppress_envoy_headers = 4;- Returns:
- This builder for chaining.
-
getStrictCheckHeadersList
public com.google.protobuf.ProtocolStringList getStrictCheckHeadersList()
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Specified by:
getStrictCheckHeadersListin interfaceRouterOrBuilder- Returns:
- A list containing the strictCheckHeaders.
-
getStrictCheckHeadersCount
public int getStrictCheckHeadersCount()
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Specified by:
getStrictCheckHeadersCountin interfaceRouterOrBuilder- Returns:
- The count of strictCheckHeaders.
-
getStrictCheckHeaders
public String getStrictCheckHeaders(int index)
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Specified by:
getStrictCheckHeadersin interfaceRouterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The strictCheckHeaders at the given index.
-
getStrictCheckHeadersBytes
public com.google.protobuf.ByteString getStrictCheckHeadersBytes(int index)
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Specified by:
getStrictCheckHeadersBytesin interfaceRouterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the strictCheckHeaders at the given index.
-
setStrictCheckHeaders
public Router.Builder setStrictCheckHeaders(int index, String value)
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The strictCheckHeaders to set.- Returns:
- This builder for chaining.
-
addStrictCheckHeaders
public Router.Builder addStrictCheckHeaders(String value)
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Parameters:
value- The strictCheckHeaders to add.- Returns:
- This builder for chaining.
-
addAllStrictCheckHeaders
public Router.Builder addAllStrictCheckHeaders(Iterable<String> values)
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Parameters:
values- The strictCheckHeaders to add.- Returns:
- This builder for chaining.
-
clearStrictCheckHeaders
public Router.Builder clearStrictCheckHeaders()
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
addStrictCheckHeadersBytes
public Router.Builder addStrictCheckHeadersBytes(com.google.protobuf.ByteString value)
Specifies a list of HTTP headers to strictly validate. Envoy will reject a request and respond with HTTP status 400 if the request contains an invalid value for any of the headers listed in this field. Strict header checking is only supported for the following headers: Value must be a ','-delimited list (i.e. no spaces) of supported retry policy values: * :ref:`config_http_filters_router_x-envoy-retry-grpc-on` * :ref:`config_http_filters_router_x-envoy-retry-on` Value must be an integer: * :ref:`config_http_filters_router_x-envoy-max-retries` * :ref:`config_http_filters_router_x-envoy-upstream-rq-timeout-ms` * :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms`
repeated string strict_check_headers = 5 [(.validate.rules) = { ... }- Parameters:
value- The bytes of the strictCheckHeaders to add.- Returns:
- This builder for chaining.
-
getRespectExpectedRqTimeout
public boolean getRespectExpectedRqTimeout()
If not set, ingress Envoy will ignore :ref:`config_http_filters_router_x-envoy-expected-rq-timeout-ms` header, populated by egress Envoy, when deriving timeout for upstream cluster.
bool respect_expected_rq_timeout = 6;- Specified by:
getRespectExpectedRqTimeoutin interfaceRouterOrBuilder- Returns:
- The respectExpectedRqTimeout.
-
setRespectExpectedRqTimeout
public Router.Builder setRespectExpectedRqTimeout(boolean value)
If not set, ingress Envoy will ignore :ref:`config_http_filters_router_x-envoy-expected-rq-timeout-ms` header, populated by egress Envoy, when deriving timeout for upstream cluster.
bool respect_expected_rq_timeout = 6;- Parameters:
value- The respectExpectedRqTimeout to set.- Returns:
- This builder for chaining.
-
clearRespectExpectedRqTimeout
public Router.Builder clearRespectExpectedRqTimeout()
If not set, ingress Envoy will ignore :ref:`config_http_filters_router_x-envoy-expected-rq-timeout-ms` header, populated by egress Envoy, when deriving timeout for upstream cluster.
bool respect_expected_rq_timeout = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Router.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
mergeUnknownFields
public final Router.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Router.Builder>
-
-