Class RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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
,java.lang.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 typeenvoy.extensions.filters.http.rate_limit_quota.v3.RateLimitQuotaBucketSettings.DenyResponseSettings
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private com.google.rpc.Status
grpcStatus_
private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder>
grpcStatusBuilder_
private com.google.protobuf.BytesValue
httpBody_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue,com.google.protobuf.BytesValue.Builder,com.google.protobuf.BytesValueOrBuilder>
httpBodyBuilder_
private HttpStatus
httpStatus_
private com.google.protobuf.SingleFieldBuilder<HttpStatus,HttpStatus.Builder,HttpStatusOrBuilder>
httpStatusBuilder_
private java.util.List<HeaderValueOption>
responseHeadersToAdd_
private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder,HeaderValueOptionOrBuilder>
responseHeadersToAddBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
addAllResponseHeadersToAdd(java.lang.Iterable<? extends HeaderValueOption> values)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.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.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.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.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.HeaderValueOption.Builder
addResponseHeadersToAddBuilder()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.HeaderValueOption.Builder
addResponseHeadersToAddBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.RateLimitQuotaBucketSettings.DenyResponseSettings
build()
RateLimitQuotaBucketSettings.DenyResponseSettings
buildPartial()
private void
buildPartial0(RateLimitQuotaBucketSettings.DenyResponseSettings result)
private void
buildPartialRepeatedFields(RateLimitQuotaBucketSettings.DenyResponseSettings result)
RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
clear()
RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
clearGrpcStatus()
Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
clearHttpBody()
HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
clearHttpStatus()
HTTP response code to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
clearResponseHeadersToAdd()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.private void
ensureResponseHeadersToAddIsMutable()
RateLimitQuotaBucketSettings.DenyResponseSettings
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.rpc.Status
getGrpcStatus()
Configure the deny response for gRPC requests over the rate limit.com.google.rpc.Status.Builder
getGrpcStatusBuilder()
Configure the deny response for gRPC requests over the rate limit.private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder>
getGrpcStatusFieldBuilder()
Configure the deny response for gRPC requests over the rate limit.com.google.rpc.StatusOrBuilder
getGrpcStatusOrBuilder()
Configure the deny response for gRPC requests over the rate limit.com.google.protobuf.BytesValue
getHttpBody()
HTTP response body used to deny for HTTP requests (gRPC excluded).com.google.protobuf.BytesValue.Builder
getHttpBodyBuilder()
HTTP response body used to deny for HTTP requests (gRPC excluded).private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue,com.google.protobuf.BytesValue.Builder,com.google.protobuf.BytesValueOrBuilder>
getHttpBodyFieldBuilder()
HTTP response body used to deny for HTTP requests (gRPC excluded).com.google.protobuf.BytesValueOrBuilder
getHttpBodyOrBuilder()
HTTP response body used to deny for HTTP requests (gRPC excluded).HttpStatus
getHttpStatus()
HTTP response code to deny for HTTP requests (gRPC excluded).HttpStatus.Builder
getHttpStatusBuilder()
HTTP response code to deny for HTTP requests (gRPC excluded).private com.google.protobuf.SingleFieldBuilder<HttpStatus,HttpStatus.Builder,HttpStatusOrBuilder>
getHttpStatusFieldBuilder()
HTTP response code to deny for HTTP requests (gRPC excluded).HttpStatusOrBuilder
getHttpStatusOrBuilder()
HTTP response code to deny for HTTP requests (gRPC excluded).HeaderValueOption
getResponseHeadersToAdd(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.HeaderValueOption.Builder
getResponseHeadersToAddBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.java.util.List<HeaderValueOption.Builder>
getResponseHeadersToAddBuilderList()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.int
getResponseHeadersToAddCount()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder,HeaderValueOptionOrBuilder>
getResponseHeadersToAddFieldBuilder()
java.util.List<HeaderValueOption>
getResponseHeadersToAddList()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.HeaderValueOptionOrBuilder
getResponseHeadersToAddOrBuilder(int index)
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.java.util.List<? extends HeaderValueOptionOrBuilder>
getResponseHeadersToAddOrBuilderList()
Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.boolean
hasGrpcStatus()
Configure the deny response for gRPC requests over the rate limit.boolean
hasHttpBody()
HTTP response body used to deny for HTTP requests (gRPC excluded).boolean
hasHttpStatus()
HTTP response code to deny for HTTP requests (gRPC excluded).protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
mergeFrom(com.google.protobuf.Message other)
RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
mergeFrom(RateLimitQuotaBucketSettings.DenyResponseSettings other)
RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
mergeGrpcStatus(com.google.rpc.Status value)
Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
mergeHttpBody(com.google.protobuf.BytesValue value)
HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
mergeHttpStatus(HttpStatus value)
HTTP response code to deny for HTTP requests (gRPC excluded).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.RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
setGrpcStatus(com.google.rpc.Status value)
Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
setGrpcStatus(com.google.rpc.Status.Builder builderForValue)
Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
setHttpBody(com.google.protobuf.BytesValue value)
HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
setHttpBody(com.google.protobuf.BytesValue.Builder builderForValue)
HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
setHttpStatus(HttpStatus value)
HTTP response code to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
setHttpStatus(HttpStatus.Builder builderForValue)
HTTP response code to deny for HTTP requests (gRPC excluded).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.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.-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
httpStatus_
private HttpStatus httpStatus_
-
httpStatusBuilder_
private com.google.protobuf.SingleFieldBuilder<HttpStatus,HttpStatus.Builder,HttpStatusOrBuilder> httpStatusBuilder_
-
httpBody_
private com.google.protobuf.BytesValue httpBody_
-
httpBodyBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue,com.google.protobuf.BytesValue.Builder,com.google.protobuf.BytesValueOrBuilder> httpBodyBuilder_
-
grpcStatus_
private com.google.rpc.Status grpcStatus_
-
grpcStatusBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder> grpcStatusBuilder_
-
responseHeadersToAdd_
private java.util.List<HeaderValueOption> responseHeadersToAdd_
-
responseHeadersToAddBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder,HeaderValueOptionOrBuilder> responseHeadersToAddBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
getDefaultInstanceForType
public RateLimitQuotaBucketSettings.DenyResponseSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RateLimitQuotaBucketSettings.DenyResponseSettings build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RateLimitQuotaBucketSettings.DenyResponseSettings buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(RateLimitQuotaBucketSettings.DenyResponseSettings result)
-
buildPartial0
private void buildPartial0(RateLimitQuotaBucketSettings.DenyResponseSettings result)
-
mergeFrom
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
mergeFrom
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeFrom(RateLimitQuotaBucketSettings.DenyResponseSettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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 java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
- Throws:
java.io.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:
hasHttpStatus
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
- Returns:
- Whether the httpStatus field is set.
-
getHttpStatus
public HttpStatus 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:
getHttpStatus
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
- Returns:
- The httpStatus.
-
setHttpStatus
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setHttpStatus(HttpStatus value)
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
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeHttpStatus(HttpStatus value)
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
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder 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
public HttpStatus.Builder 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
public HttpStatusOrBuilder 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:
getHttpStatusOrBuilder
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getHttpStatusFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HttpStatus,HttpStatus.Builder,HttpStatusOrBuilder> getHttpStatusFieldBuilder()
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:
hasHttpBody
in 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:
getHttpBody
in 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
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder 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:
getHttpBodyOrBuilder
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getHttpBodyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.BytesValue,com.google.protobuf.BytesValue.Builder,com.google.protobuf.BytesValueOrBuilder> getHttpBodyFieldBuilder()
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:
hasGrpcStatus
in 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:
getGrpcStatus
in 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
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder 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:
getGrpcStatusOrBuilder
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getGrpcStatusFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.rpc.Status,com.google.rpc.Status.Builder,com.google.rpc.StatusOrBuilder> getGrpcStatusFieldBuilder()
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
public java.util.List<HeaderValueOption> 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:
getResponseHeadersToAddList
in 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:
getResponseHeadersToAddCount
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAdd
public HeaderValueOption getResponseHeadersToAdd(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) = { ... }
- Specified by:
getResponseHeadersToAdd
in 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(java.lang.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
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder 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
public HeaderValueOption.Builder getResponseHeadersToAddBuilder(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) = { ... }
-
getResponseHeadersToAddOrBuilder
public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(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) = { ... }
- Specified by:
getResponseHeadersToAddOrBuilder
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAddOrBuilderList
public java.util.List<? extends HeaderValueOptionOrBuilder> 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:
getResponseHeadersToAddOrBuilderList
in interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
addResponseHeadersToAddBuilder
public HeaderValueOption.Builder 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
public HeaderValueOption.Builder addResponseHeadersToAddBuilder(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) = { ... }
-
getResponseHeadersToAddBuilderList
public java.util.List<HeaderValueOption.Builder> 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) = { ... }
-
getResponseHeadersToAddFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder,HeaderValueOptionOrBuilder> getResponseHeadersToAddFieldBuilder()
-
-