Class RateLimitQuotaBucketSettings.DenyResponseSettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderaddAllResponseHeadersToAdd(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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderaddResponseHeadersToAdd(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.BuilderaddResponseHeadersToAdd(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.BuilderaddResponseHeadersToAdd(HeaderValueOption value)Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderaddResponseHeadersToAdd(HeaderValueOption.Builder builderForValue)Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.HeaderValueOption.BuilderaddResponseHeadersToAddBuilder()Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.HeaderValueOption.BuilderaddResponseHeadersToAddBuilder(int index)Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.RateLimitQuotaBucketSettings.DenyResponseSettingsbuild()RateLimitQuotaBucketSettings.DenyResponseSettingsbuildPartial()RateLimitQuotaBucketSettings.DenyResponseSettings.Builderclear()RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderclearGrpcStatus()Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderclearHttpBody()HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderclearHttpStatus()HTTP response code to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderclearResponseHeadersToAdd()Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.RateLimitQuotaBucketSettings.DenyResponseSettings.Builderclone()RateLimitQuotaBucketSettings.DenyResponseSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StatusgetGrpcStatus()Configure the deny response for gRPC requests over the rate limit.Status.BuildergetGrpcStatusBuilder()Configure the deny response for gRPC requests over the rate limit.StatusOrBuildergetGrpcStatusOrBuilder()Configure the deny response for gRPC requests over the rate limit.com.google.protobuf.BytesValuegetHttpBody()HTTP response body used to deny for HTTP requests (gRPC excluded).com.google.protobuf.BytesValue.BuildergetHttpBodyBuilder()HTTP response body used to deny for HTTP requests (gRPC excluded).com.google.protobuf.BytesValueOrBuildergetHttpBodyOrBuilder()HTTP response body used to deny for HTTP requests (gRPC excluded).HttpStatusgetHttpStatus()HTTP response code to deny for HTTP requests (gRPC excluded).HttpStatus.BuildergetHttpStatusBuilder()HTTP response code to deny for HTTP requests (gRPC excluded).HttpStatusOrBuildergetHttpStatusOrBuilder()HTTP response code to deny for HTTP requests (gRPC excluded).HeaderValueOptiongetResponseHeadersToAdd(int index)Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.HeaderValueOption.BuildergetResponseHeadersToAddBuilder(int index)Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.List<HeaderValueOption.Builder>getResponseHeadersToAddBuilderList()Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.intgetResponseHeadersToAddCount()Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.List<HeaderValueOption>getResponseHeadersToAddList()Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.HeaderValueOptionOrBuildergetResponseHeadersToAddOrBuilder(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>getResponseHeadersToAddOrBuilderList()Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.booleanhasGrpcStatus()Configure the deny response for gRPC requests over the rate limit.booleanhasHttpBody()HTTP response body used to deny for HTTP requests (gRPC excluded).booleanhasHttpStatus()HTTP response code to deny for HTTP requests (gRPC excluded).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RateLimitQuotaBucketSettings.DenyResponseSettings.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RateLimitQuotaBucketSettings.DenyResponseSettings.BuildermergeFrom(com.google.protobuf.Message other)RateLimitQuotaBucketSettings.DenyResponseSettings.BuildermergeFrom(RateLimitQuotaBucketSettings.DenyResponseSettings other)RateLimitQuotaBucketSettings.DenyResponseSettings.BuildermergeGrpcStatus(Status value)Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.BuildermergeHttpBody(com.google.protobuf.BytesValue value)HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuildermergeHttpStatus(HttpStatus value)HTTP response code to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RateLimitQuotaBucketSettings.DenyResponseSettings.BuilderremoveResponseHeadersToAdd(int index)Specifies a list of HTTP headers that should be added to each response for requests that have been rate limited.RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetGrpcStatus(Status value)Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetGrpcStatus(Status.Builder builderForValue)Configure the deny response for gRPC requests over the rate limit.RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetHttpBody(com.google.protobuf.BytesValue value)HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetHttpBody(com.google.protobuf.BytesValue.Builder builderForValue)HTTP response body used to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetHttpStatus(HttpStatus value)HTTP response code to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetHttpStatus(HttpStatus.Builder builderForValue)HTTP response code to deny for HTTP requests (gRPC excluded).RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RateLimitQuotaBucketSettings.DenyResponseSettings.BuildersetResponseHeadersToAdd(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.BuildersetResponseHeadersToAdd(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.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
clear
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
getDefaultInstanceForType
public RateLimitQuotaBucketSettings.DenyResponseSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RateLimitQuotaBucketSettings.DenyResponseSettings build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RateLimitQuotaBucketSettings.DenyResponseSettings buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
setField
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
clearField
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
clearOneof
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
setRepeatedField
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
addRepeatedField
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
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
public RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeFrom(RateLimitQuotaBucketSettings.DenyResponseSettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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:
getHttpStatusin 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:
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.
-
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:
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 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(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(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(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 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 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
public 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:
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
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:
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
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:
getResponseHeadersToAddOrBuilderin interfaceRateLimitQuotaBucketSettings.DenyResponseSettingsOrBuilder
-
getResponseHeadersToAddOrBuilderList
public 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:
getResponseHeadersToAddOrBuilderListin 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 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) = { ... }
-
setUnknownFields
public final RateLimitQuotaBucketSettings.DenyResponseSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
mergeUnknownFields
public final RateLimitQuotaBucketSettings.DenyResponseSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitQuotaBucketSettings.DenyResponseSettings.Builder>
-
-