Class BandwidthLimit.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
io.envoyproxy.envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BandwidthLimitOrBuilder,Cloneable
- Enclosing class:
- BandwidthLimit
public static final class BandwidthLimit.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
implements BandwidthLimitOrBuilder
[#next-free-field: 8]Protobuf type
envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The enable mode for the bandwidth limit filter.Enable response trailers. .. note:: If set true, the following 4 trailers will be added, prefixed by ``response_trailer_prefix``: * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer including request body transfer time and the time added by the filterclearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional Fill interval in milliseconds for the token refills.The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional The prefix for the response trailers.Runtime flag that controls whether the filter is enabled or not.The human readable prefix to use when emitting stats.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe enable mode for the bandwidth limit filter.intThe enable mode for the bandwidth limit filter.booleanEnable response trailers. .. note:: If set true, the following 4 trailers will be added, prefixed by ``response_trailer_prefix``: * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer including request body transfer time and the time added by the filtercom.google.protobuf.DurationOptional Fill interval in milliseconds for the token refills.com.google.protobuf.Duration.BuilderOptional Fill interval in milliseconds for the token refills.com.google.protobuf.DurationOrBuilderOptional Fill interval in milliseconds for the token refills.com.google.protobuf.UInt64ValueThe limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.com.google.protobuf.UInt64Value.BuilderThe limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.com.google.protobuf.UInt64ValueOrBuilderThe limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.Optional The prefix for the response trailers.com.google.protobuf.ByteStringOptional The prefix for the response trailers.Runtime flag that controls whether the filter is enabled or not.Runtime flag that controls whether the filter is enabled or not.Runtime flag that controls whether the filter is enabled or not.The human readable prefix to use when emitting stats.com.google.protobuf.ByteStringThe human readable prefix to use when emitting stats.booleanOptional Fill interval in milliseconds for the token refills.booleanThe limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.booleanRuntime flag that controls whether the filter is enabled or not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFillInterval(com.google.protobuf.Duration value) Optional Fill interval in milliseconds for the token refills.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(BandwidthLimit other) mergeLimitKbps(com.google.protobuf.UInt64Value value) The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.Runtime flag that controls whether the filter is enabled or not.final BandwidthLimit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The enable mode for the bandwidth limit filter.setEnableModeValue(int value) The enable mode for the bandwidth limit filter.setEnableResponseTrailers(boolean value) Enable response trailers. .. note:: If set true, the following 4 trailers will be added, prefixed by ``response_trailer_prefix``: * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer including request body transfer time and the time added by the filtersetFillInterval(com.google.protobuf.Duration value) Optional Fill interval in milliseconds for the token refills.setFillInterval(com.google.protobuf.Duration.Builder builderForValue) Optional Fill interval in milliseconds for the token refills.setLimitKbps(com.google.protobuf.UInt64Value value) The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.setLimitKbps(com.google.protobuf.UInt64Value.Builder builderForValue) The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResponseTrailerPrefix(String value) Optional The prefix for the response trailers.setResponseTrailerPrefixBytes(com.google.protobuf.ByteString value) Optional The prefix for the response trailers.Runtime flag that controls whether the filter is enabled or not.setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue) Runtime flag that controls whether the filter is enabled or not.setStatPrefix(String value) The human readable prefix to use when emitting stats.setStatPrefixBytes(com.google.protobuf.ByteString value) The human readable prefix to use when emitting stats.final BandwidthLimit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<BandwidthLimit.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<BandwidthLimit.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<BandwidthLimit.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<BandwidthLimit.Builder>
-
setField
public BandwidthLimit.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<BandwidthLimit.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
-
setRepeatedField
public BandwidthLimit.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<BandwidthLimit.Builder>
-
addRepeatedField
public BandwidthLimit.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<BandwidthLimit.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BandwidthLimit.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
-
mergeFrom
public BandwidthLimit.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<BandwidthLimit.Builder>- Throws:
IOException
-
getStatPrefix
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixin interfaceBandwidthLimitOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixBytesin interfaceBandwidthLimitOrBuilder- Returns:
- The bytes for statPrefix.
-
setStatPrefix
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }- Parameters:
value- The statPrefix to set.- Returns:
- This builder for chaining.
-
clearStatPrefix
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setStatPrefixBytes
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for statPrefix to set.- Returns:
- This builder for chaining.
-
getEnableModeValue
public int getEnableModeValue()The enable mode for the bandwidth limit filter. Default is Disabled.
.envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.EnableMode enable_mode = 2 [(.validate.rules) = { ... }- Specified by:
getEnableModeValuein interfaceBandwidthLimitOrBuilder- Returns:
- The enum numeric value on the wire for enableMode.
-
setEnableModeValue
The enable mode for the bandwidth limit filter. Default is Disabled.
.envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.EnableMode enable_mode = 2 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for enableMode to set.- Returns:
- This builder for chaining.
-
getEnableMode
The enable mode for the bandwidth limit filter. Default is Disabled.
.envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.EnableMode enable_mode = 2 [(.validate.rules) = { ... }- Specified by:
getEnableModein interfaceBandwidthLimitOrBuilder- Returns:
- The enableMode.
-
setEnableMode
The enable mode for the bandwidth limit filter. Default is Disabled.
.envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.EnableMode enable_mode = 2 [(.validate.rules) = { ... }- Parameters:
value- The enableMode to set.- Returns:
- This builder for chaining.
-
clearEnableMode
The enable mode for the bandwidth limit filter. Default is Disabled.
.envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.EnableMode enable_mode = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasLimitKbps
public boolean hasLimitKbps()The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... }- Specified by:
hasLimitKbpsin interfaceBandwidthLimitOrBuilder- Returns:
- Whether the limitKbps field is set.
-
getLimitKbps
public com.google.protobuf.UInt64Value getLimitKbps()The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... }- Specified by:
getLimitKbpsin interfaceBandwidthLimitOrBuilder- Returns:
- The limitKbps.
-
setLimitKbps
The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... } -
setLimitKbps
The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... } -
mergeLimitKbps
The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... } -
clearLimitKbps
The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... } -
getLimitKbpsBuilder
public com.google.protobuf.UInt64Value.Builder getLimitKbpsBuilder()The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... } -
getLimitKbpsOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getLimitKbpsOrBuilder()The limit supplied in KiB/s. .. note:: It's fine for the limit to be unset for the global configuration since the bandwidth limit can be applied at a the virtual host or route level. Thus, the limit must be set for the per route configuration otherwise the config will be rejected. .. note:: When using per route configuration, the limit becomes unique to that route.
.google.protobuf.UInt64Value limit_kbps = 3 [(.validate.rules) = { ... }- Specified by:
getLimitKbpsOrBuilderin interfaceBandwidthLimitOrBuilder
-
hasFillInterval
public boolean hasFillInterval()Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... }- Specified by:
hasFillIntervalin interfaceBandwidthLimitOrBuilder- Returns:
- Whether the fillInterval field is set.
-
getFillInterval
public com.google.protobuf.Duration getFillInterval()Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... }- Specified by:
getFillIntervalin interfaceBandwidthLimitOrBuilder- Returns:
- The fillInterval.
-
setFillInterval
Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... } -
setFillInterval
Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... } -
mergeFillInterval
Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... } -
clearFillInterval
Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... } -
getFillIntervalBuilder
public com.google.protobuf.Duration.Builder getFillIntervalBuilder()Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... } -
getFillIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getFillIntervalOrBuilder()Optional Fill interval in milliseconds for the token refills. Defaults to 50ms. It must be at least 20ms to avoid too aggressive refills.
.google.protobuf.Duration fill_interval = 4 [(.validate.rules) = { ... }- Specified by:
getFillIntervalOrBuilderin interfaceBandwidthLimitOrBuilder
-
hasRuntimeEnabled
public boolean hasRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5;- Specified by:
hasRuntimeEnabledin interfaceBandwidthLimitOrBuilder- Returns:
- Whether the runtimeEnabled field is set.
-
getRuntimeEnabled
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5;- Specified by:
getRuntimeEnabledin interfaceBandwidthLimitOrBuilder- Returns:
- The runtimeEnabled.
-
setRuntimeEnabled
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5; -
setRuntimeEnabled
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5; -
mergeRuntimeEnabled
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5; -
clearRuntimeEnabled
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5; -
getRuntimeEnabledBuilder
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5; -
getRuntimeEnabledOrBuilder
Runtime flag that controls whether the filter is enabled or not. If not specified, defaults to enabled.
.envoy.config.core.v3.RuntimeFeatureFlag runtime_enabled = 5;- Specified by:
getRuntimeEnabledOrBuilderin interfaceBandwidthLimitOrBuilder
-
getEnableResponseTrailers
public boolean getEnableResponseTrailers()Enable response trailers. .. note:: If set true, the following 4 trailers will be added, prefixed by ``response_trailer_prefix``: * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer including request body transfer time and the time added by the filter. * bandwidth-response-delay-ms: delay time in milliseconds it took for the response stream transfer including response body transfer time and the time added by the filter. * bandwidth-request-filter-delay-ms: delay time in milliseconds in request stream transfer added by the filter. * bandwidth-response-filter-delay-ms: delay time in milliseconds that added by the filter. If :ref:`enable_mode <envoy_v3_api_field_extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.enable_mode>` is ``DISABLED`` or ``REQUEST``, the trailers will not be set. If both the request and response delay time is 0, the trailers will not be set.
bool enable_response_trailers = 6;- Specified by:
getEnableResponseTrailersin interfaceBandwidthLimitOrBuilder- Returns:
- The enableResponseTrailers.
-
setEnableResponseTrailers
Enable response trailers. .. note:: If set true, the following 4 trailers will be added, prefixed by ``response_trailer_prefix``: * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer including request body transfer time and the time added by the filter. * bandwidth-response-delay-ms: delay time in milliseconds it took for the response stream transfer including response body transfer time and the time added by the filter. * bandwidth-request-filter-delay-ms: delay time in milliseconds in request stream transfer added by the filter. * bandwidth-response-filter-delay-ms: delay time in milliseconds that added by the filter. If :ref:`enable_mode <envoy_v3_api_field_extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.enable_mode>` is ``DISABLED`` or ``REQUEST``, the trailers will not be set. If both the request and response delay time is 0, the trailers will not be set.
bool enable_response_trailers = 6;- Parameters:
value- The enableResponseTrailers to set.- Returns:
- This builder for chaining.
-
clearEnableResponseTrailers
Enable response trailers. .. note:: If set true, the following 4 trailers will be added, prefixed by ``response_trailer_prefix``: * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer including request body transfer time and the time added by the filter. * bandwidth-response-delay-ms: delay time in milliseconds it took for the response stream transfer including response body transfer time and the time added by the filter. * bandwidth-request-filter-delay-ms: delay time in milliseconds in request stream transfer added by the filter. * bandwidth-response-filter-delay-ms: delay time in milliseconds that added by the filter. If :ref:`enable_mode <envoy_v3_api_field_extensions.filters.http.bandwidth_limit.v3.BandwidthLimit.enable_mode>` is ``DISABLED`` or ``REQUEST``, the trailers will not be set. If both the request and response delay time is 0, the trailers will not be set.
bool enable_response_trailers = 6;- Returns:
- This builder for chaining.
-
getResponseTrailerPrefix
Optional The prefix for the response trailers.
string response_trailer_prefix = 7 [(.validate.rules) = { ... }- Specified by:
getResponseTrailerPrefixin interfaceBandwidthLimitOrBuilder- Returns:
- The responseTrailerPrefix.
-
getResponseTrailerPrefixBytes
public com.google.protobuf.ByteString getResponseTrailerPrefixBytes()Optional The prefix for the response trailers.
string response_trailer_prefix = 7 [(.validate.rules) = { ... }- Specified by:
getResponseTrailerPrefixBytesin interfaceBandwidthLimitOrBuilder- Returns:
- The bytes for responseTrailerPrefix.
-
setResponseTrailerPrefix
Optional The prefix for the response trailers.
string response_trailer_prefix = 7 [(.validate.rules) = { ... }- Parameters:
value- The responseTrailerPrefix to set.- Returns:
- This builder for chaining.
-
clearResponseTrailerPrefix
Optional The prefix for the response trailers.
string response_trailer_prefix = 7 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setResponseTrailerPrefixBytes
Optional The prefix for the response trailers.
string response_trailer_prefix = 7 [(.validate.rules) = { ... }- Parameters:
value- The bytes for responseTrailerPrefix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BandwidthLimit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
-
mergeUnknownFields
public final BandwidthLimit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
-