Class BandwidthLimit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BandwidthLimit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BandwidthLimitbuild()BandwidthLimitbuildPartial()BandwidthLimit.Builderclear()BandwidthLimit.BuilderclearEnableMode()The enable mode for the bandwidth limit filter.BandwidthLimit.BuilderclearEnableResponseTrailers()Enable response trailers. .. note:: * If set true, the response trailers ``bandwidth-request-delay-ms`` and ``bandwidth-response-delay-ms`` will be added, prefixed by ``response_trailer_prefix``BandwidthLimit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BandwidthLimit.BuilderclearFillInterval()Optional Fill interval in milliseconds for the token refills.BandwidthLimit.BuilderclearLimitKbps()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.BandwidthLimit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BandwidthLimit.BuilderclearResponseTrailerPrefix()Optional The prefix for the response trailers.BandwidthLimit.BuilderclearRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.BandwidthLimit.BuilderclearStatPrefix()The human readable prefix to use when emitting stats.BandwidthLimit.Builderclone()BandwidthLimitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()BandwidthLimit.EnableModegetEnableMode()The enable mode for the bandwidth limit filter.intgetEnableModeValue()The enable mode for the bandwidth limit filter.booleangetEnableResponseTrailers()Enable response trailers. .. note:: * If set true, the response trailers ``bandwidth-request-delay-ms`` and ``bandwidth-response-delay-ms`` will be added, prefixed by ``response_trailer_prefix``com.google.protobuf.DurationgetFillInterval()Optional Fill interval in milliseconds for the token refills.com.google.protobuf.Duration.BuildergetFillIntervalBuilder()Optional Fill interval in milliseconds for the token refills.com.google.protobuf.DurationOrBuildergetFillIntervalOrBuilder()Optional Fill interval in milliseconds for the token refills.com.google.protobuf.UInt64ValuegetLimitKbps()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.com.google.protobuf.UInt64Value.BuildergetLimitKbpsBuilder()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.com.google.protobuf.UInt64ValueOrBuildergetLimitKbpsOrBuilder()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.StringgetResponseTrailerPrefix()Optional The prefix for the response trailers.com.google.protobuf.ByteStringgetResponseTrailerPrefixBytes()Optional The prefix for the response trailers.RuntimeFeatureFlaggetRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.RuntimeFeatureFlag.BuildergetRuntimeEnabledBuilder()Runtime flag that controls whether the filter is enabled or not.RuntimeFeatureFlagOrBuildergetRuntimeEnabledOrBuilder()Runtime flag that controls whether the filter is enabled or not.StringgetStatPrefix()The human readable prefix to use when emitting stats.com.google.protobuf.ByteStringgetStatPrefixBytes()The human readable prefix to use when emitting stats.booleanhasFillInterval()Optional Fill interval in milliseconds for the token refills.booleanhasLimitKbps()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.booleanhasRuntimeEnabled()Runtime flag that controls whether the filter is enabled or not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BandwidthLimit.BuildermergeFillInterval(com.google.protobuf.Duration value)Optional Fill interval in milliseconds for the token refills.BandwidthLimit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BandwidthLimit.BuildermergeFrom(com.google.protobuf.Message other)BandwidthLimit.BuildermergeFrom(BandwidthLimit other)BandwidthLimit.BuildermergeLimitKbps(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.BandwidthLimit.BuildermergeRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.BandwidthLimit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BandwidthLimit.BuildersetEnableMode(BandwidthLimit.EnableMode value)The enable mode for the bandwidth limit filter.BandwidthLimit.BuildersetEnableModeValue(int value)The enable mode for the bandwidth limit filter.BandwidthLimit.BuildersetEnableResponseTrailers(boolean value)Enable response trailers. .. note:: * If set true, the response trailers ``bandwidth-request-delay-ms`` and ``bandwidth-response-delay-ms`` will be added, prefixed by ``response_trailer_prefix``BandwidthLimit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BandwidthLimit.BuildersetFillInterval(com.google.protobuf.Duration value)Optional Fill interval in milliseconds for the token refills.BandwidthLimit.BuildersetFillInterval(com.google.protobuf.Duration.Builder builderForValue)Optional Fill interval in milliseconds for the token refills.BandwidthLimit.BuildersetLimitKbps(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.BandwidthLimit.BuildersetLimitKbps(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.BandwidthLimit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BandwidthLimit.BuildersetResponseTrailerPrefix(String value)Optional The prefix for the response trailers.BandwidthLimit.BuildersetResponseTrailerPrefixBytes(com.google.protobuf.ByteString value)Optional The prefix for the response trailers.BandwidthLimit.BuildersetRuntimeEnabled(RuntimeFeatureFlag value)Runtime flag that controls whether the filter is enabled or not.BandwidthLimit.BuildersetRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)Runtime flag that controls whether the filter is enabled or not.BandwidthLimit.BuildersetStatPrefix(String value)The human readable prefix to use when emitting stats.BandwidthLimit.BuildersetStatPrefixBytes(com.google.protobuf.ByteString value)The human readable prefix to use when emitting stats.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, 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<BandwidthLimit.Builder>
-
clear
public 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
public BandwidthLimit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BandwidthLimit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BandwidthLimit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BandwidthLimit.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
public BandwidthLimit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BandwidthLimit.Builder>
-
clearOneof
public BandwidthLimit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public BandwidthLimit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BandwidthLimit.Builder>
-
mergeFrom
public BandwidthLimit.Builder mergeFrom(BandwidthLimit other)
-
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
public String 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
public BandwidthLimit.Builder setStatPrefix(String value)
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
public BandwidthLimit.Builder clearStatPrefix()
The human readable prefix to use when emitting stats.
string stat_prefix = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setStatPrefixBytes
public BandwidthLimit.Builder setStatPrefixBytes(com.google.protobuf.ByteString value)
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
public BandwidthLimit.Builder setEnableModeValue(int value)
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
public BandwidthLimit.EnableMode 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
public BandwidthLimit.Builder setEnableMode(BandwidthLimit.EnableMode value)
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
public BandwidthLimit.Builder 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
public BandwidthLimit.Builder 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. 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
public BandwidthLimit.Builder 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. 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
public BandwidthLimit.Builder 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. 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
public BandwidthLimit.Builder 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
public BandwidthLimit.Builder setFillInterval(com.google.protobuf.Duration value)
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
public BandwidthLimit.Builder setFillInterval(com.google.protobuf.Duration.Builder builderForValue)
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
public BandwidthLimit.Builder mergeFillInterval(com.google.protobuf.Duration value)
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
public BandwidthLimit.Builder 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
public RuntimeFeatureFlag 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
public BandwidthLimit.Builder setRuntimeEnabled(RuntimeFeatureFlag value)
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
public BandwidthLimit.Builder setRuntimeEnabled(RuntimeFeatureFlag.Builder builderForValue)
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
public BandwidthLimit.Builder mergeRuntimeEnabled(RuntimeFeatureFlag value)
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
public BandwidthLimit.Builder 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
public RuntimeFeatureFlag.Builder 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
public RuntimeFeatureFlagOrBuilder 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 response trailers ``bandwidth-request-delay-ms`` and ``bandwidth-response-delay-ms`` will be added, prefixed by ``response_trailer_prefix``. * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer. * bandwidth-response-delay-ms: delay time in milliseconds it took for the response stream transfer. * 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
public BandwidthLimit.Builder setEnableResponseTrailers(boolean value)
Enable response trailers. .. note:: * If set true, the response trailers ``bandwidth-request-delay-ms`` and ``bandwidth-response-delay-ms`` will be added, prefixed by ``response_trailer_prefix``. * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer. * bandwidth-response-delay-ms: delay time in milliseconds it took for the response stream transfer. * 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
public BandwidthLimit.Builder clearEnableResponseTrailers()
Enable response trailers. .. note:: * If set true, the response trailers ``bandwidth-request-delay-ms`` and ``bandwidth-response-delay-ms`` will be added, prefixed by ``response_trailer_prefix``. * bandwidth-request-delay-ms: delay time in milliseconds it took for the request stream transfer. * bandwidth-response-delay-ms: delay time in milliseconds it took for the response stream transfer. * 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
public String 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
public BandwidthLimit.Builder setResponseTrailerPrefix(String value)
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
public BandwidthLimit.Builder clearResponseTrailerPrefix()
Optional The prefix for the response trailers.
string response_trailer_prefix = 7 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setResponseTrailerPrefixBytes
public BandwidthLimit.Builder setResponseTrailerPrefixBytes(com.google.protobuf.ByteString value)
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>
-
-