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 typeenvoy.extensions.filters.http.bandwidth_limit.v3.BandwidthLimit- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBandwidthLimit.Builder[#next-free-field: 8]static classBandwidthLimit.EnableModeDefines 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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intENABLE_MODE_FIELD_NUMBERstatic intENABLE_RESPONSE_TRAILERS_FIELD_NUMBERstatic intFILL_INTERVAL_FIELD_NUMBERstatic intLIMIT_KBPS_FIELD_NUMBERstatic intRESPONSE_TRAILER_PREFIX_FIELD_NUMBERstatic intRUNTIME_ENABLED_FIELD_NUMBERstatic intSTAT_PREFIX_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static BandwidthLimitgetDefaultInstance()BandwidthLimitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.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.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.com.google.protobuf.Parser<BandwidthLimit>getParserForType()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.RuntimeFeatureFlagOrBuildergetRuntimeEnabledOrBuilder()Runtime flag that controls whether the filter is enabled or not.intgetSerializedSize()StringgetStatPrefix()The human readable prefix to use when emitting stats.com.google.protobuf.ByteStringgetStatPrefixBytes()The human readable prefix to use when emitting stats.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasFillInterval()Optional Fill interval in milliseconds for the token refills.inthashCode()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()static BandwidthLimit.BuildernewBuilder()static BandwidthLimit.BuildernewBuilder(BandwidthLimit prototype)BandwidthLimit.BuildernewBuilderForType()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()BandwidthLimit.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STAT_PREFIX_FIELD_NUMBER
public static final int STAT_PREFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_MODE_FIELD_NUMBER
public static final int ENABLE_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIMIT_KBPS_FIELD_NUMBER
public static final int LIMIT_KBPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILL_INTERVAL_FIELD_NUMBER
public static final int FILL_INTERVAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNTIME_ENABLED_FIELD_NUMBER
public static final int RUNTIME_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_RESPONSE_TRAILERS_FIELD_NUMBER
public static final int ENABLE_RESPONSE_TRAILERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_TRAILER_PREFIX_FIELD_NUMBER
public static final int RESPONSE_TRAILER_PREFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
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.
-
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
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.
-
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
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static 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
public static BandwidthLimit parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BandwidthLimit parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BandwidthLimit parseDelimitedFrom(InputStream input) throws IOException
- 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
public BandwidthLimit.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BandwidthLimit.Builder newBuilder()
-
newBuilder
public static BandwidthLimit.Builder newBuilder(BandwidthLimit prototype)
-
toBuilder
public BandwidthLimit.Builder 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
public static BandwidthLimit getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BandwidthLimit> parser()
-
getParserForType
public com.google.protobuf.Parser<BandwidthLimit> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BandwidthLimit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-