Class BandwidthLimit
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BandwidthLimitOrBuilder,Serializable
public final class BandwidthLimit
extends com.google.protobuf.GeneratedMessageV3
implements BandwidthLimitOrBuilder
[#next-free-field: 8]Protobuf type
envoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class[#next-free-field: 8]static enumDefines the mode for the bandwidth limit filter.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BandwidthLimitstatic final com.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.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.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.com.google.protobuf.Parser<BandwidthLimit>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.intThe 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.inthashCode()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 booleanstatic BandwidthLimit.Builderstatic BandwidthLimit.BuildernewBuilder(BandwidthLimit prototype) protected BandwidthLimit.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static BandwidthLimitparseDelimitedFrom(InputStream input) static BandwidthLimitparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BandwidthLimitparseFrom(byte[] data) static BandwidthLimitparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BandwidthLimitparseFrom(com.google.protobuf.ByteString data) static BandwidthLimitparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BandwidthLimitparseFrom(com.google.protobuf.CodedInputStream input) static BandwidthLimitparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BandwidthLimitparseFrom(InputStream input) static BandwidthLimitparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BandwidthLimitparseFrom(ByteBuffer data) static BandwidthLimitparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BandwidthLimit>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
STAT_PREFIX_FIELD_NUMBER
public static final int STAT_PREFIX_FIELD_NUMBER- See Also:
-
ENABLE_MODE_FIELD_NUMBER
public static final int ENABLE_MODE_FIELD_NUMBER- See Also:
-
LIMIT_KBPS_FIELD_NUMBER
public static final int LIMIT_KBPS_FIELD_NUMBER- See Also:
-
FILL_INTERVAL_FIELD_NUMBER
public static final int FILL_INTERVAL_FIELD_NUMBER- See Also:
-
RUNTIME_ENABLED_FIELD_NUMBER
public static final int RUNTIME_ENABLED_FIELD_NUMBER- See Also:
-
ENABLE_RESPONSE_TRAILERS_FIELD_NUMBER
public static final int ENABLE_RESPONSE_TRAILERS_FIELD_NUMBER- See Also:
-
RESPONSE_TRAILER_PREFIX_FIELD_NUMBER
public static final int RESPONSE_TRAILER_PREFIX_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BandwidthLimit parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BandwidthLimit parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BandwidthLimit parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BandwidthLimit parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BandwidthLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BandwidthLimit parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BandwidthLimit parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BandwidthLimit parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BandwidthLimit parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BandwidthLimit parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BandwidthLimit.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-