Class RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
com.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
io.envoyproxy.envoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder,Cloneable
- Enclosing class:
RateLimitQuotaBucketSettings.DenyResponseSettings
public static final class RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
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-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate com.google.rpc.Statusprivate com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> private com.google.protobuf.BytesValueprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> private HttpStatusprivate com.google.protobuf.SingleFieldBuilder<HttpStatus, HttpStatus.Builder, HttpStatusOrBuilder> private List<HeaderValueOption> private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption, HeaderValueOption.Builder, HeaderValueOptionOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.addResponseHeadersToAdd(int index, HeaderValueOption value) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.addResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Specifies 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.addResponseHeadersToAdd(HeaderValueOption.Builder builderForValue) Specifies 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.addResponseHeadersToAddBuilder(int index) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.build()private voidprivate voidclear()Configure the deny response for gRPC requests over the rate limit.HTTP response body used to deny for HTTP requests (gRPC excluded).HTTP response code to deny for HTTP requests (gRPC excluded).Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.private voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.rpc.StatusConfigure the deny response for gRPC requests over the rate limit.com.google.rpc.Status.BuilderConfigure 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.BytesValue.BuilderHTTP 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).HTTP response code to deny for HTTP requests (gRPC excluded).getResponseHeadersToAdd(int index) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.getResponseHeadersToAddBuilder(int index) Specifies 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.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.booleanConfigure the deny response for gRPC requests over the rate limit.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.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> Configure the deny response for gRPC requests over the rate limit.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> HTTP response body used to deny for HTTP requests (gRPC excluded).private com.google.protobuf.SingleFieldBuilder<HttpStatus, HttpStatus.Builder, HttpStatusOrBuilder> HTTP response code to deny for HTTP requests (gRPC excluded).private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption, HeaderValueOption.Builder, HeaderValueOptionOrBuilder> final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGrpcStatus(com.google.rpc.Status value) Configure the deny response for gRPC requests over the rate limit.mergeHttpBody(com.google.protobuf.BytesValue value) HTTP response body used to deny for HTTP requests (gRPC excluded).mergeHttpStatus(HttpStatus value) HTTP response code to deny for HTTP requests (gRPC excluded).removeResponseHeadersToAdd(int index) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.setGrpcStatus(com.google.rpc.Status value) Configure the deny response for gRPC requests over the rate limit.setGrpcStatus(com.google.rpc.Status.Builder builderForValue) Configure the deny response for gRPC requests over the rate limit.setHttpBody(com.google.protobuf.BytesValue value) HTTP response body used to deny for HTTP requests (gRPC excluded).setHttpBody(com.google.protobuf.BytesValue.Builder builderForValue) HTTP response body used to deny for HTTP requests (gRPC excluded).setHttpStatus(HttpStatus value) HTTP response code to deny for HTTP requests (gRPC excluded).setHttpStatus(HttpStatus.Builder builderForValue) HTTP response code to deny for HTTP requests (gRPC excluded).setResponseHeadersToAdd(int index, HeaderValueOption value) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.setResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
httpStatus_
-
httpStatusBuilder_
private com.google.protobuf.SingleFieldBuilder<HttpStatus,HttpStatus.Builder, httpStatusBuilder_HttpStatusOrBuilder> -
httpBody_
private com.google.protobuf.BytesValue httpBody_ -
httpBodyBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue,com.google.protobuf.BytesValue.Builder, httpBodyBuilder_com.google.protobuf.BytesValueOrBuilder> -
grpcStatus_
private com.google.rpc.Status grpcStatus_ -
grpcStatusBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder, grpcStatusBuilder_com.google.rpc.StatusOrBuilder> -
responseHeadersToAdd_
-
responseHeadersToAddBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder, responseHeadersToAddBuilder_HeaderValueOptionOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
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.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
mergeFrom
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>- Throws:
IOException
-
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.
-
setHttpStatus
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; -
setHttpStatus
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setHttpStatus(HttpStatus.Builder builderForValue) 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; -
mergeHttpStatus
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; -
clearHttpStatus
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; -
getHttpStatusBuilder
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; -
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
-
internalGetHttpStatusFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HttpStatus,HttpStatus.Builder, internalGetHttpStatusFieldBuilder()HttpStatusOrBuilder> 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; -
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.
-
setHttpBody
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setHttpBody(com.google.protobuf.BytesValue value) 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; -
setHttpBody
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setHttpBody(com.google.protobuf.BytesValue.Builder builderForValue) 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; -
mergeHttpBody
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeHttpBody(com.google.protobuf.BytesValue value) 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; -
clearHttpBody
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; -
getHttpBodyBuilder
public com.google.protobuf.BytesValue.Builder getHttpBodyBuilder()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; -
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
-
internalGetHttpBodyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue,com.google.protobuf.BytesValue.Builder, internalGetHttpBodyFieldBuilder()com.google.protobuf.BytesValueOrBuilder> 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; -
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.
-
setGrpcStatus
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setGrpcStatus(com.google.rpc.Status value) 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; -
setGrpcStatus
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setGrpcStatus(com.google.rpc.Status.Builder builderForValue) 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; -
mergeGrpcStatus
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeGrpcStatus(com.google.rpc.Status value) 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; -
clearGrpcStatus
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; -
getGrpcStatusBuilder
public com.google.rpc.Status.Builder getGrpcStatusBuilder()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; -
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
-
internalGetGrpcStatusFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder, internalGetGrpcStatusFieldBuilder()com.google.rpc.StatusOrBuilder> 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; -
ensureResponseHeadersToAddIsMutable
private void ensureResponseHeadersToAddIsMutable() -
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
-
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
-
setResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setResponseHeadersToAdd(int index, HeaderValueOption value) 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) = { ... } -
setResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) 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) = { ... } -
addResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder addResponseHeadersToAdd(HeaderValueOption value) 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) = { ... } -
addResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder addResponseHeadersToAdd(int index, HeaderValueOption value) 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) = { ... } -
addResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder addResponseHeadersToAdd(HeaderValueOption.Builder builderForValue) 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) = { ... } -
addResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder addResponseHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) 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) = { ... } -
addAllResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder addAllResponseHeadersToAdd(Iterable<? extends HeaderValueOption> values) 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) = { ... } -
clearResponseHeadersToAdd
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) = { ... } -
removeResponseHeadersToAdd
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder removeResponseHeadersToAdd(int index) 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) = { ... } -
getResponseHeadersToAddBuilder
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) = { ... } -
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
-
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
-
addResponseHeadersToAddBuilder
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) = { ... } -
addResponseHeadersToAddBuilder
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) = { ... } -
getResponseHeadersToAddBuilderList
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) = { ... } -
internalGetResponseHeadersToAddFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder, internalGetResponseHeadersToAddFieldBuilder()HeaderValueOptionOrBuilder>
-