Class RateLimitQuotaBucketSettings.DenyResponseSettings
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings.DenyResponseSettings
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder,Serializable
- Enclosing class:
RateLimitQuotaBucketSettings
public static final class RateLimitQuotaBucketSettings.DenyResponseSettings
extends com.google.protobuf.GeneratedMessage
implements RateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
Customize the deny response to the requests over the rate limit.Protobuf type
envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings.DenyResponseSettings- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCustomize the deny response to the requests over the rate limit.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final RateLimitQuotaBucketSettings.DenyResponseSettingsstatic final intprivate com.google.rpc.Statusstatic final intstatic final intprivate com.google.protobuf.BytesValueprivate HttpStatusprivate byteprivate static final com.google.protobuf.Parser<RateLimitQuotaBucketSettings.DenyResponseSettings> static final intprivate List<HeaderValueOption> private static final longFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateDenyResponseSettings(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.Descriptorcom.google.rpc.StatusConfigure the deny response for gRPC requests over the rate limit.com.google.rpc.StatusOrBuilderConfigure the deny response for gRPC requests over the rate limit.com.google.protobuf.BytesValueHTTP response body used to deny for HTTP requests (gRPC excluded).com.google.protobuf.BytesValueOrBuilderHTTP response body used to deny for HTTP requests (gRPC excluded).HTTP response code to deny for HTTP requests (gRPC excluded).HTTP response code to deny for HTTP requests (gRPC excluded).com.google.protobuf.Parser<RateLimitQuotaBucketSettings.DenyResponseSettings> getResponseHeadersToAdd(int index) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.intSpecifies a list of HTTP headers that should be added to each response for requests that have been rate limited.Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.getResponseHeadersToAddOrBuilder(int index) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.List<? extends HeaderValueOptionOrBuilder> Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.intbooleanConfigure the deny response for gRPC requests over the rate limit.inthashCode()booleanHTTP response body used to deny for HTTP requests (gRPC excluded).booleanHTTP response code to deny for HTTP requests (gRPC excluded).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RateLimitQuotaBucketSettings.DenyResponseSettings> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
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
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
HTTP_STATUS_FIELD_NUMBER
public static final int HTTP_STATUS_FIELD_NUMBER- See Also:
-
httpStatus_
-
HTTP_BODY_FIELD_NUMBER
public static final int HTTP_BODY_FIELD_NUMBER- See Also:
-
httpBody_
private com.google.protobuf.BytesValue httpBody_ -
GRPC_STATUS_FIELD_NUMBER
public static final int GRPC_STATUS_FIELD_NUMBER- See Also:
-
grpcStatus_
private com.google.rpc.Status grpcStatus_ -
RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER- See Also:
-
responseHeadersToAdd_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<RateLimitQuotaBucketSettings.DenyResponseSettings> PARSER
-
-
Constructor Details
-
DenyResponseSettings
private DenyResponseSettings(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
DenyResponseSettings
private DenyResponseSettings()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasHttpStatus
public boolean hasHttpStatus()HTTP response code to deny for HTTP requests (gRPC excluded). Defaults to 429 (:ref:`StatusCode.TooManyRequests<envoy_v3_api_enum_value_type.v3.StatusCode.TooManyRequests>`).
.envoy.type.v3.HttpStatus http_status = 1;- Specified by:
hasHttpStatusin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder- Returns:
- Whether the httpStatus field is set.
-
getHttpStatus
HTTP response code to deny for HTTP requests (gRPC excluded). Defaults to 429 (:ref:`StatusCode.TooManyRequests<envoy_v3_api_enum_value_type.v3.StatusCode.TooManyRequests>`).
.envoy.type.v3.HttpStatus http_status = 1;- Specified by:
getHttpStatusin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder- Returns:
- The httpStatus.
-
getHttpStatusOrBuilder
HTTP response code to deny for HTTP requests (gRPC excluded). Defaults to 429 (:ref:`StatusCode.TooManyRequests<envoy_v3_api_enum_value_type.v3.StatusCode.TooManyRequests>`).
.envoy.type.v3.HttpStatus http_status = 1;- Specified by:
getHttpStatusOrBuilderin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
hasHttpBody
public boolean hasHttpBody()HTTP response body used to deny for HTTP requests (gRPC excluded). If not set, an empty body is returned.
.google.protobuf.BytesValue http_body = 2;- Specified by:
hasHttpBodyin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder- Returns:
- Whether the httpBody field is set.
-
getHttpBody
public com.google.protobuf.BytesValue getHttpBody()HTTP response body used to deny for HTTP requests (gRPC excluded). If not set, an empty body is returned.
.google.protobuf.BytesValue http_body = 2;- Specified by:
getHttpBodyin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder- Returns:
- The httpBody.
-
getHttpBodyOrBuilder
public com.google.protobuf.BytesValueOrBuilder getHttpBodyOrBuilder()HTTP response body used to deny for HTTP requests (gRPC excluded). If not set, an empty body is returned.
.google.protobuf.BytesValue http_body = 2;- Specified by:
getHttpBodyOrBuilderin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
hasGrpcStatus
public boolean hasGrpcStatus()Configure the deny response for gRPC requests over the rate limit. Allows to specify the `RPC status code <https://cloud.google.com/natural-language/docs/reference/rpc/google.rpc#google.rpc.Code>`_, and the error message. Defaults to the Status with the RPC Code ``UNAVAILABLE`` and empty message. To identify gRPC requests, Envoy checks that the ``Content-Type`` header is ``application/grpc``, or one of the various ``application/grpc+`` values. .. note:: The HTTP code for a gRPC response is always 200.
.google.rpc.Status grpc_status = 3;- Specified by:
hasGrpcStatusin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder- Returns:
- Whether the grpcStatus field is set.
-
getGrpcStatus
public com.google.rpc.Status getGrpcStatus()Configure the deny response for gRPC requests over the rate limit. Allows to specify the `RPC status code <https://cloud.google.com/natural-language/docs/reference/rpc/google.rpc#google.rpc.Code>`_, and the error message. Defaults to the Status with the RPC Code ``UNAVAILABLE`` and empty message. To identify gRPC requests, Envoy checks that the ``Content-Type`` header is ``application/grpc``, or one of the various ``application/grpc+`` values. .. note:: The HTTP code for a gRPC response is always 200.
.google.rpc.Status grpc_status = 3;- Specified by:
getGrpcStatusin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder- Returns:
- The grpcStatus.
-
getGrpcStatusOrBuilder
public com.google.rpc.StatusOrBuilder getGrpcStatusOrBuilder()Configure the deny response for gRPC requests over the rate limit. Allows to specify the `RPC status code <https://cloud.google.com/natural-language/docs/reference/rpc/google.rpc#google.rpc.Code>`_, and the error message. Defaults to the Status with the RPC Code ``UNAVAILABLE`` and empty message. To identify gRPC requests, Envoy checks that the ``Content-Type`` header is ``application/grpc``, or one of the various ``application/grpc+`` values. .. note:: The HTTP code for a gRPC response is always 200.
.google.rpc.Status grpc_status = 3;- Specified by:
getGrpcStatusOrBuilderin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAddList
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited. Applies both to plain HTTP, and gRPC requests. The headers are added even when the rate limit quota was not enforced.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddListin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAddOrBuilderList
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited. Applies both to plain HTTP, and gRPC requests. The headers are added even when the rate limit quota was not enforced.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderListin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAddCount
public int getResponseHeadersToAddCount()Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited. Applies both to plain HTTP, and gRPC requests. The headers are added even when the rate limit quota was not enforced.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddCountin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAdd
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited. Applies both to plain HTTP, and gRPC requests. The headers are added even when the rate limit quota was not enforced.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAddOrBuilder
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited. Applies both to plain HTTP, and gRPC requests. The headers are added even when the rate limit quota was not enforced.
repeated .envoy.config.core.v3.HeaderValueOption response_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RateLimitQuotaBucketSettings.DenyResponseSettings 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
public static RateLimitQuotaBucketSettings.DenyResponseSettings.Builder newBuilder(RateLimitQuotaBucketSettings.DenyResponseSettings prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RateLimitQuotaBucketSettings.DenyResponseSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
public static com.google.protobuf.Parser<RateLimitQuotaBucketSettings.DenyResponseSettings> parser() -
getParserForType
public com.google.protobuf.Parser<RateLimitQuotaBucketSettings.DenyResponseSettings> getParserForType()- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-