Class FaultRateLimit
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.filter.fault.v2.FaultRateLimit
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FaultRateLimitOrBuilder,Serializable
public final class FaultRateLimit extends com.google.protobuf.GeneratedMessageV3 implements FaultRateLimitOrBuilder
Describes a rate limit to be applied.
Protobuf typeenvoy.config.filter.fault.v2.FaultRateLimit- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFaultRateLimit.BuilderDescribes a rate limit to be applied.static classFaultRateLimit.FixedLimitDescribes a fixed/constant rate limit.static interfaceFaultRateLimit.FixedLimitOrBuilderstatic classFaultRateLimit.HeaderLimitRate limits are controlled via an HTTP header (if applicable).static interfaceFaultRateLimit.HeaderLimitOrBuilderstatic classFaultRateLimit.LimitTypeCase-
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 intFIXED_LIMIT_FIELD_NUMBERstatic intHEADER_LIMIT_FIELD_NUMBERstatic intPERCENTAGE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static FaultRateLimitgetDefaultInstance()FaultRateLimitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()FaultRateLimit.FixedLimitgetFixedLimit()A fixed rate limit.FaultRateLimit.FixedLimitOrBuildergetFixedLimitOrBuilder()A fixed rate limit.FaultRateLimit.HeaderLimitgetHeaderLimit()Rate limits are controlled via an HTTP header (if applicable).FaultRateLimit.HeaderLimitOrBuildergetHeaderLimitOrBuilder()Rate limits are controlled via an HTTP header (if applicable).FaultRateLimit.LimitTypeCasegetLimitTypeCase()com.google.protobuf.Parser<FaultRateLimit>getParserForType()FractionalPercentgetPercentage()The percentage of operations/connections/requests on which the rate limit will be injected.FractionalPercentOrBuildergetPercentageOrBuilder()The percentage of operations/connections/requests on which the rate limit will be injected.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasFixedLimit()A fixed rate limit.inthashCode()booleanhasHeaderLimit()Rate limits are controlled via an HTTP header (if applicable).booleanhasPercentage()The percentage of operations/connections/requests on which the rate limit will be injected.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static FaultRateLimit.BuildernewBuilder()static FaultRateLimit.BuildernewBuilder(FaultRateLimit prototype)FaultRateLimit.BuildernewBuilderForType()protected FaultRateLimit.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static FaultRateLimitparseDelimitedFrom(InputStream input)static FaultRateLimitparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FaultRateLimitparseFrom(byte[] data)static FaultRateLimitparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FaultRateLimitparseFrom(com.google.protobuf.ByteString data)static FaultRateLimitparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FaultRateLimitparseFrom(com.google.protobuf.CodedInputStream input)static FaultRateLimitparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FaultRateLimitparseFrom(InputStream input)static FaultRateLimitparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FaultRateLimitparseFrom(ByteBuffer data)static FaultRateLimitparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<FaultRateLimit>parser()FaultRateLimit.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
-
FIXED_LIMIT_FIELD_NUMBER
public static final int FIXED_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEADER_LIMIT_FIELD_NUMBER
public static final int HEADER_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERCENTAGE_FIELD_NUMBER
public static final int PERCENTAGE_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
-
getLimitTypeCase
public FaultRateLimit.LimitTypeCase getLimitTypeCase()
- Specified by:
getLimitTypeCasein interfaceFaultRateLimitOrBuilder
-
hasFixedLimit
public boolean hasFixedLimit()
A fixed rate limit.
.envoy.config.filter.fault.v2.FaultRateLimit.FixedLimit fixed_limit = 1;- Specified by:
hasFixedLimitin interfaceFaultRateLimitOrBuilder- Returns:
- Whether the fixedLimit field is set.
-
getFixedLimit
public FaultRateLimit.FixedLimit getFixedLimit()
A fixed rate limit.
.envoy.config.filter.fault.v2.FaultRateLimit.FixedLimit fixed_limit = 1;- Specified by:
getFixedLimitin interfaceFaultRateLimitOrBuilder- Returns:
- The fixedLimit.
-
getFixedLimitOrBuilder
public FaultRateLimit.FixedLimitOrBuilder getFixedLimitOrBuilder()
A fixed rate limit.
.envoy.config.filter.fault.v2.FaultRateLimit.FixedLimit fixed_limit = 1;- Specified by:
getFixedLimitOrBuilderin interfaceFaultRateLimitOrBuilder
-
hasHeaderLimit
public boolean hasHeaderLimit()
Rate limits are controlled via an HTTP header (if applicable).
.envoy.config.filter.fault.v2.FaultRateLimit.HeaderLimit header_limit = 3;- Specified by:
hasHeaderLimitin interfaceFaultRateLimitOrBuilder- Returns:
- Whether the headerLimit field is set.
-
getHeaderLimit
public FaultRateLimit.HeaderLimit getHeaderLimit()
Rate limits are controlled via an HTTP header (if applicable).
.envoy.config.filter.fault.v2.FaultRateLimit.HeaderLimit header_limit = 3;- Specified by:
getHeaderLimitin interfaceFaultRateLimitOrBuilder- Returns:
- The headerLimit.
-
getHeaderLimitOrBuilder
public FaultRateLimit.HeaderLimitOrBuilder getHeaderLimitOrBuilder()
Rate limits are controlled via an HTTP header (if applicable).
.envoy.config.filter.fault.v2.FaultRateLimit.HeaderLimit header_limit = 3;- Specified by:
getHeaderLimitOrBuilderin interfaceFaultRateLimitOrBuilder
-
hasPercentage
public boolean hasPercentage()
The percentage of operations/connections/requests on which the rate limit will be injected.
.envoy.type.FractionalPercent percentage = 2;- Specified by:
hasPercentagein interfaceFaultRateLimitOrBuilder- Returns:
- Whether the percentage field is set.
-
getPercentage
public FractionalPercent getPercentage()
The percentage of operations/connections/requests on which the rate limit will be injected.
.envoy.type.FractionalPercent percentage = 2;- Specified by:
getPercentagein interfaceFaultRateLimitOrBuilder- Returns:
- The percentage.
-
getPercentageOrBuilder
public FractionalPercentOrBuilder getPercentageOrBuilder()
The percentage of operations/connections/requests on which the rate limit will be injected.
.envoy.type.FractionalPercent percentage = 2;- Specified by:
getPercentageOrBuilderin interfaceFaultRateLimitOrBuilder
-
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 FaultRateLimit parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FaultRateLimit parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FaultRateLimit parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FaultRateLimit parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FaultRateLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FaultRateLimit parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FaultRateLimit parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FaultRateLimit parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FaultRateLimit parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FaultRateLimit parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static FaultRateLimit parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FaultRateLimit parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public FaultRateLimit.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FaultRateLimit.Builder newBuilder()
-
newBuilder
public static FaultRateLimit.Builder newBuilder(FaultRateLimit prototype)
-
toBuilder
public FaultRateLimit.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FaultRateLimit.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static FaultRateLimit getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<FaultRateLimit> parser()
-
getParserForType
public com.google.protobuf.Parser<FaultRateLimit> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FaultRateLimit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-