Package io.envoyproxy.envoy.type.v3
Class RateLimitStrategy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.type.v3.RateLimitStrategy
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitStrategyOrBuilder,Serializable
public final class RateLimitStrategy extends com.google.protobuf.GeneratedMessageV3 implements RateLimitStrategyOrBuilder
Protobuf typeenvoy.type.v3.RateLimitStrategy- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRateLimitStrategy.BlanketRuleChoose between allow all and deny all.static classRateLimitStrategy.BuilderProtobuf typeenvoy.type.v3.RateLimitStrategystatic classRateLimitStrategy.RequestsPerTimeUnitBest-effort limit of the number of requests per time unit.static interfaceRateLimitStrategy.RequestsPerTimeUnitOrBuilderstatic classRateLimitStrategy.StrategyCase-
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 intBLANKET_RULE_FIELD_NUMBERstatic intREQUESTS_PER_TIME_UNIT_FIELD_NUMBERstatic intTOKEN_BUCKET_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)RateLimitStrategy.BlanketRulegetBlanketRule()Allow or Deny the requests.intgetBlanketRuleValue()Allow or Deny the requests.static RateLimitStrategygetDefaultInstance()RateLimitStrategygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<RateLimitStrategy>getParserForType()RateLimitStrategy.RequestsPerTimeUnitgetRequestsPerTimeUnit()Best-effort limit of the number of requests per time unit, f.e. requests per second.RateLimitStrategy.RequestsPerTimeUnitOrBuildergetRequestsPerTimeUnitOrBuilder()Best-effort limit of the number of requests per time unit, f.e. requests per second.intgetSerializedSize()RateLimitStrategy.StrategyCasegetStrategyCase()TokenBucketgetTokenBucket()Limit the requests by consuming tokens from the Token Bucket.TokenBucketOrBuildergetTokenBucketOrBuilder()Limit the requests by consuming tokens from the Token Bucket.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBlanketRule()Allow or Deny the requests.inthashCode()booleanhasRequestsPerTimeUnit()Best-effort limit of the number of requests per time unit, f.e. requests per second.booleanhasTokenBucket()Limit the requests by consuming tokens from the Token Bucket.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RateLimitStrategy.BuildernewBuilder()static RateLimitStrategy.BuildernewBuilder(RateLimitStrategy prototype)RateLimitStrategy.BuildernewBuilderForType()protected RateLimitStrategy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RateLimitStrategyparseDelimitedFrom(InputStream input)static RateLimitStrategyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitStrategyparseFrom(byte[] data)static RateLimitStrategyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitStrategyparseFrom(com.google.protobuf.ByteString data)static RateLimitStrategyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitStrategyparseFrom(com.google.protobuf.CodedInputStream input)static RateLimitStrategyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitStrategyparseFrom(InputStream input)static RateLimitStrategyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RateLimitStrategyparseFrom(ByteBuffer data)static RateLimitStrategyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RateLimitStrategy>parser()RateLimitStrategy.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
-
BLANKET_RULE_FIELD_NUMBER
public static final int BLANKET_RULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTS_PER_TIME_UNIT_FIELD_NUMBER
public static final int REQUESTS_PER_TIME_UNIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOKEN_BUCKET_FIELD_NUMBER
public static final int TOKEN_BUCKET_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
-
getStrategyCase
public RateLimitStrategy.StrategyCase getStrategyCase()
- Specified by:
getStrategyCasein interfaceRateLimitStrategyOrBuilder
-
hasBlanketRule
public boolean hasBlanketRule()
Allow or Deny the requests. If unset, allow all.
.envoy.type.v3.RateLimitStrategy.BlanketRule blanket_rule = 1 [(.validate.rules) = { ... }- Specified by:
hasBlanketRulein interfaceRateLimitStrategyOrBuilder- Returns:
- Whether the blanketRule field is set.
-
getBlanketRuleValue
public int getBlanketRuleValue()
Allow or Deny the requests. If unset, allow all.
.envoy.type.v3.RateLimitStrategy.BlanketRule blanket_rule = 1 [(.validate.rules) = { ... }- Specified by:
getBlanketRuleValuein interfaceRateLimitStrategyOrBuilder- Returns:
- The enum numeric value on the wire for blanketRule.
-
getBlanketRule
public RateLimitStrategy.BlanketRule getBlanketRule()
Allow or Deny the requests. If unset, allow all.
.envoy.type.v3.RateLimitStrategy.BlanketRule blanket_rule = 1 [(.validate.rules) = { ... }- Specified by:
getBlanketRulein interfaceRateLimitStrategyOrBuilder- Returns:
- The blanketRule.
-
hasRequestsPerTimeUnit
public boolean hasRequestsPerTimeUnit()
Best-effort limit of the number of requests per time unit, f.e. requests per second. Does not prescribe any specific rate limiting algorithm, see :ref:`RequestsPerTimeUnit <envoy_v3_api_msg_type.v3.RateLimitStrategy.RequestsPerTimeUnit>` for details.
.envoy.type.v3.RateLimitStrategy.RequestsPerTimeUnit requests_per_time_unit = 2;- Specified by:
hasRequestsPerTimeUnitin interfaceRateLimitStrategyOrBuilder- Returns:
- Whether the requestsPerTimeUnit field is set.
-
getRequestsPerTimeUnit
public RateLimitStrategy.RequestsPerTimeUnit getRequestsPerTimeUnit()
Best-effort limit of the number of requests per time unit, f.e. requests per second. Does not prescribe any specific rate limiting algorithm, see :ref:`RequestsPerTimeUnit <envoy_v3_api_msg_type.v3.RateLimitStrategy.RequestsPerTimeUnit>` for details.
.envoy.type.v3.RateLimitStrategy.RequestsPerTimeUnit requests_per_time_unit = 2;- Specified by:
getRequestsPerTimeUnitin interfaceRateLimitStrategyOrBuilder- Returns:
- The requestsPerTimeUnit.
-
getRequestsPerTimeUnitOrBuilder
public RateLimitStrategy.RequestsPerTimeUnitOrBuilder getRequestsPerTimeUnitOrBuilder()
Best-effort limit of the number of requests per time unit, f.e. requests per second. Does not prescribe any specific rate limiting algorithm, see :ref:`RequestsPerTimeUnit <envoy_v3_api_msg_type.v3.RateLimitStrategy.RequestsPerTimeUnit>` for details.
.envoy.type.v3.RateLimitStrategy.RequestsPerTimeUnit requests_per_time_unit = 2;- Specified by:
getRequestsPerTimeUnitOrBuilderin interfaceRateLimitStrategyOrBuilder
-
hasTokenBucket
public boolean hasTokenBucket()
Limit the requests by consuming tokens from the Token Bucket. Allow the same number of requests as the number of tokens available in the token bucket.
.envoy.type.v3.TokenBucket token_bucket = 3;- Specified by:
hasTokenBucketin interfaceRateLimitStrategyOrBuilder- Returns:
- Whether the tokenBucket field is set.
-
getTokenBucket
public TokenBucket getTokenBucket()
Limit the requests by consuming tokens from the Token Bucket. Allow the same number of requests as the number of tokens available in the token bucket.
.envoy.type.v3.TokenBucket token_bucket = 3;- Specified by:
getTokenBucketin interfaceRateLimitStrategyOrBuilder- Returns:
- The tokenBucket.
-
getTokenBucketOrBuilder
public TokenBucketOrBuilder getTokenBucketOrBuilder()
Limit the requests by consuming tokens from the Token Bucket. Allow the same number of requests as the number of tokens available in the token bucket.
.envoy.type.v3.TokenBucket token_bucket = 3;- Specified by:
getTokenBucketOrBuilderin interfaceRateLimitStrategyOrBuilder
-
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 RateLimitStrategy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitStrategy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitStrategy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitStrategy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitStrategy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitStrategy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitStrategy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimitStrategy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimitStrategy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitStrategy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RateLimitStrategy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RateLimitStrategy.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RateLimitStrategy.Builder newBuilder()
-
newBuilder
public static RateLimitStrategy.Builder newBuilder(RateLimitStrategy prototype)
-
toBuilder
public RateLimitStrategy.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RateLimitStrategy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RateLimitStrategy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RateLimitStrategy> parser()
-
getParserForType
public com.google.protobuf.Parser<RateLimitStrategy> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RateLimitStrategy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-