Class RateLimitResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.service.ratelimit.v2.RateLimitResponse
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitResponseOrBuilder,Serializable
public final class RateLimitResponse
extends com.google.protobuf.GeneratedMessageV3
implements RateLimitResponseOrBuilder
A response from a ShouldRateLimit call.Protobuf type
envoy.service.ratelimit.v2.RateLimitResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA response from a ShouldRateLimit call.static enumProtobuf enumenvoy.service.ratelimit.v2.RateLimitResponse.Codestatic final classProtobuf typeenvoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatusstatic interfacestatic final classDefines an actual rate limit in terms of requests per unit of time and the unit itself.static interfaceNested 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 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 RateLimitResponsestatic final com.google.protobuf.Descriptors.DescriptorgetHeaders(int index) A list of headers to add to the responseintA list of headers to add to the responseA list of headers to add to the responsegetHeadersOrBuilder(int index) A list of headers to add to the responseList<? extends HeaderValueOrBuilder>A list of headers to add to the responseThe overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.intThe overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.com.google.protobuf.Parser<RateLimitResponse>getRequestHeadersToAdd(int index) A list of headers to add to the request when forwardedintA list of headers to add to the request when forwardedA list of headers to add to the request when forwardedgetRequestHeadersToAddOrBuilder(int index) A list of headers to add to the request when forwardedList<? extends HeaderValueOrBuilder>A list of headers to add to the request when forwardedintgetStatuses(int index) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.intA list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.getStatusesOrBuilder(int index) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.List<? extends RateLimitResponse.DescriptorStatusOrBuilder>A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic RateLimitResponse.Builderstatic RateLimitResponse.BuildernewBuilder(RateLimitResponse prototype) protected RateLimitResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static RateLimitResponseparseDelimitedFrom(InputStream input) static RateLimitResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimitResponseparseFrom(byte[] data) static RateLimitResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimitResponseparseFrom(com.google.protobuf.ByteString data) static RateLimitResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimitResponseparseFrom(com.google.protobuf.CodedInputStream input) static RateLimitResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimitResponseparseFrom(InputStream input) static RateLimitResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RateLimitResponseparseFrom(ByteBuffer data) static RateLimitResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RateLimitResponse>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
-
OVERALL_CODE_FIELD_NUMBER
public static final int OVERALL_CODE_FIELD_NUMBER- See Also:
-
STATUSES_FIELD_NUMBER
public static final int STATUSES_FIELD_NUMBER- See Also:
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER- See Also:
-
REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
public static final int REQUEST_HEADERS_TO_ADD_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
-
getOverallCodeValue
public int getOverallCodeValue()The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.
.envoy.service.ratelimit.v2.RateLimitResponse.Code overall_code = 1;- Specified by:
getOverallCodeValuein interfaceRateLimitResponseOrBuilder- Returns:
- The enum numeric value on the wire for overallCode.
-
getOverallCode
The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.
.envoy.service.ratelimit.v2.RateLimitResponse.Code overall_code = 1;- Specified by:
getOverallCodein interfaceRateLimitResponseOrBuilder- Returns:
- The overallCode.
-
getStatusesList
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesListin interfaceRateLimitResponseOrBuilder
-
getStatusesOrBuilderList
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesOrBuilderListin interfaceRateLimitResponseOrBuilder
-
getStatusesCount
public int getStatusesCount()A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesCountin interfaceRateLimitResponseOrBuilder
-
getStatuses
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesin interfaceRateLimitResponseOrBuilder
-
getStatusesOrBuilder
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesOrBuilderin interfaceRateLimitResponseOrBuilder
-
getHeadersList
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersListin interfaceRateLimitResponseOrBuilder
-
getHeadersOrBuilderList
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersOrBuilderListin interfaceRateLimitResponseOrBuilder
-
getHeadersCount
public int getHeadersCount()A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersCountin interfaceRateLimitResponseOrBuilder
-
getHeaders
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersin interfaceRateLimitResponseOrBuilder
-
getHeadersOrBuilder
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersOrBuilderin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAddList
A list of headers to add to the request when forwarded
repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddListin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAddOrBuilderList
A list of headers to add to the request when forwarded
repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddOrBuilderListin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAddCount
public int getRequestHeadersToAddCount()A list of headers to add to the request when forwarded
repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddCountin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAdd
A list of headers to add to the request when forwarded
repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAddOrBuilder
A list of headers to add to the request when forwarded
repeated .envoy.api.v2.core.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddOrBuilderin interfaceRateLimitResponseOrBuilder
-
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 RateLimitResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RateLimitResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RateLimitResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RateLimitResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RateLimitResponse 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 RateLimitResponse.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
-