Class RateLimitResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
-
- io.envoyproxy.envoy.service.ratelimit.v3.RateLimitResponse.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitResponseOrBuilder,Cloneable
- Enclosing class:
- RateLimitResponse
public static final class RateLimitResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder> implements RateLimitResponseOrBuilder
A response from a ShouldRateLimit call. [#next-free-field: 8]
Protobuf typeenvoy.service.ratelimit.v3.RateLimitResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RateLimitResponse.BuilderaddAllRequestHeadersToAdd(Iterable<? extends HeaderValue> values)A list of headers to add to the request when forwardedRateLimitResponse.BuilderaddAllResponseHeadersToAdd(Iterable<? extends HeaderValue> values)A list of headers to add to the responseRateLimitResponse.BuilderaddAllStatuses(Iterable<? extends RateLimitResponse.DescriptorStatus> values)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitResponse.BuilderaddRequestHeadersToAdd(int index, HeaderValue value)A list of headers to add to the request when forwardedRateLimitResponse.BuilderaddRequestHeadersToAdd(int index, HeaderValue.Builder builderForValue)A list of headers to add to the request when forwardedRateLimitResponse.BuilderaddRequestHeadersToAdd(HeaderValue value)A list of headers to add to the request when forwardedRateLimitResponse.BuilderaddRequestHeadersToAdd(HeaderValue.Builder builderForValue)A list of headers to add to the request when forwardedHeaderValue.BuilderaddRequestHeadersToAddBuilder()A list of headers to add to the request when forwardedHeaderValue.BuilderaddRequestHeadersToAddBuilder(int index)A list of headers to add to the request when forwardedRateLimitResponse.BuilderaddResponseHeadersToAdd(int index, HeaderValue value)A list of headers to add to the responseRateLimitResponse.BuilderaddResponseHeadersToAdd(int index, HeaderValue.Builder builderForValue)A list of headers to add to the responseRateLimitResponse.BuilderaddResponseHeadersToAdd(HeaderValue value)A list of headers to add to the responseRateLimitResponse.BuilderaddResponseHeadersToAdd(HeaderValue.Builder builderForValue)A list of headers to add to the responseHeaderValue.BuilderaddResponseHeadersToAddBuilder()A list of headers to add to the responseHeaderValue.BuilderaddResponseHeadersToAddBuilder(int index)A list of headers to add to the responseRateLimitResponse.BuilderaddStatuses(int index, RateLimitResponse.DescriptorStatus value)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuilderaddStatuses(int index, RateLimitResponse.DescriptorStatus.Builder builderForValue)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuilderaddStatuses(RateLimitResponse.DescriptorStatus value)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuilderaddStatuses(RateLimitResponse.DescriptorStatus.Builder builderForValue)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.DescriptorStatus.BuilderaddStatusesBuilder()A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.DescriptorStatus.BuilderaddStatusesBuilder(int index)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponsebuild()RateLimitResponsebuildPartial()RateLimitResponse.Builderclear()RateLimitResponse.BuilderclearDynamicMetadata()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.RateLimitResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RateLimitResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RateLimitResponse.BuilderclearOverallCode()The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.RateLimitResponse.BuilderclearQuota()Quota is available for a request if its entire descriptor set has cached quota available.RateLimitResponse.BuilderclearRawBody()A response body to send to the downstream client when the response code is not OK.RateLimitResponse.BuilderclearRequestHeadersToAdd()A list of headers to add to the request when forwardedRateLimitResponse.BuilderclearResponseHeadersToAdd()A list of headers to add to the responseRateLimitResponse.BuilderclearStatuses()A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.Builderclone()RateLimitResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.StructgetDynamicMetadata()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.com.google.protobuf.Struct.BuildergetDynamicMetadataBuilder()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.com.google.protobuf.StructOrBuildergetDynamicMetadataOrBuilder()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.RateLimitResponse.CodegetOverallCode()The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.intgetOverallCodeValue()The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.RateLimitResponse.QuotagetQuota()Quota is available for a request if its entire descriptor set has cached quota available.RateLimitResponse.Quota.BuildergetQuotaBuilder()Quota is available for a request if its entire descriptor set has cached quota available.RateLimitResponse.QuotaOrBuildergetQuotaOrBuilder()Quota is available for a request if its entire descriptor set has cached quota available.com.google.protobuf.ByteStringgetRawBody()A response body to send to the downstream client when the response code is not OK.HeaderValuegetRequestHeadersToAdd(int index)A list of headers to add to the request when forwardedHeaderValue.BuildergetRequestHeadersToAddBuilder(int index)A list of headers to add to the request when forwardedList<HeaderValue.Builder>getRequestHeadersToAddBuilderList()A list of headers to add to the request when forwardedintgetRequestHeadersToAddCount()A list of headers to add to the request when forwardedList<HeaderValue>getRequestHeadersToAddList()A list of headers to add to the request when forwardedHeaderValueOrBuildergetRequestHeadersToAddOrBuilder(int index)A list of headers to add to the request when forwardedList<? extends HeaderValueOrBuilder>getRequestHeadersToAddOrBuilderList()A list of headers to add to the request when forwardedHeaderValuegetResponseHeadersToAdd(int index)A list of headers to add to the responseHeaderValue.BuildergetResponseHeadersToAddBuilder(int index)A list of headers to add to the responseList<HeaderValue.Builder>getResponseHeadersToAddBuilderList()A list of headers to add to the responseintgetResponseHeadersToAddCount()A list of headers to add to the responseList<HeaderValue>getResponseHeadersToAddList()A list of headers to add to the responseHeaderValueOrBuildergetResponseHeadersToAddOrBuilder(int index)A list of headers to add to the responseList<? extends HeaderValueOrBuilder>getResponseHeadersToAddOrBuilderList()A list of headers to add to the responseRateLimitResponse.DescriptorStatusgetStatuses(int index)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.DescriptorStatus.BuildergetStatusesBuilder(int index)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.List<RateLimitResponse.DescriptorStatus.Builder>getStatusesBuilderList()A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.intgetStatusesCount()A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.List<RateLimitResponse.DescriptorStatus>getStatusesList()A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.DescriptorStatusOrBuildergetStatusesOrBuilder(int index)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.List<? extends RateLimitResponse.DescriptorStatusOrBuilder>getStatusesOrBuilderList()A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.booleanhasDynamicMetadata()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.booleanhasQuota()Quota is available for a request if its entire descriptor set has cached quota available.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RateLimitResponse.BuildermergeDynamicMetadata(com.google.protobuf.Struct value)Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.RateLimitResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RateLimitResponse.BuildermergeFrom(com.google.protobuf.Message other)RateLimitResponse.BuildermergeFrom(RateLimitResponse other)RateLimitResponse.BuildermergeQuota(RateLimitResponse.Quota value)Quota is available for a request if its entire descriptor set has cached quota available.RateLimitResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RateLimitResponse.BuilderremoveRequestHeadersToAdd(int index)A list of headers to add to the request when forwardedRateLimitResponse.BuilderremoveResponseHeadersToAdd(int index)A list of headers to add to the responseRateLimitResponse.BuilderremoveStatuses(int index)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuildersetDynamicMetadata(com.google.protobuf.Struct value)Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.RateLimitResponse.BuildersetDynamicMetadata(com.google.protobuf.Struct.Builder builderForValue)Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.RateLimitResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitResponse.BuildersetOverallCode(RateLimitResponse.Code value)The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.RateLimitResponse.BuildersetOverallCodeValue(int value)The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.RateLimitResponse.BuildersetQuota(RateLimitResponse.Quota value)Quota is available for a request if its entire descriptor set has cached quota available.RateLimitResponse.BuildersetQuota(RateLimitResponse.Quota.Builder builderForValue)Quota is available for a request if its entire descriptor set has cached quota available.RateLimitResponse.BuildersetRawBody(com.google.protobuf.ByteString value)A response body to send to the downstream client when the response code is not OK.RateLimitResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RateLimitResponse.BuildersetRequestHeadersToAdd(int index, HeaderValue value)A list of headers to add to the request when forwardedRateLimitResponse.BuildersetRequestHeadersToAdd(int index, HeaderValue.Builder builderForValue)A list of headers to add to the request when forwardedRateLimitResponse.BuildersetResponseHeadersToAdd(int index, HeaderValue value)A list of headers to add to the responseRateLimitResponse.BuildersetResponseHeadersToAdd(int index, HeaderValue.Builder builderForValue)A list of headers to add to the responseRateLimitResponse.BuildersetStatuses(int index, RateLimitResponse.DescriptorStatus value)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuildersetStatuses(int index, RateLimitResponse.DescriptorStatus.Builder builderForValue)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.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<RateLimitResponse.Builder>
-
clear
public RateLimitResponse.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<RateLimitResponse.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<RateLimitResponse.Builder>
-
getDefaultInstanceForType
public RateLimitResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RateLimitResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RateLimitResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RateLimitResponse.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<RateLimitResponse.Builder>
-
setField
public RateLimitResponse.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<RateLimitResponse.Builder>
-
clearField
public RateLimitResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
-
clearOneof
public RateLimitResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
-
setRepeatedField
public RateLimitResponse.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<RateLimitResponse.Builder>
-
addRepeatedField
public RateLimitResponse.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<RateLimitResponse.Builder>
-
mergeFrom
public RateLimitResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimitResponse.Builder>
-
mergeFrom
public RateLimitResponse.Builder mergeFrom(RateLimitResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
-
mergeFrom
public RateLimitResponse.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<RateLimitResponse.Builder>- Throws:
IOException
-
getOverallCodeValue
public int getOverallCodeValue()
The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.
.envoy.service.ratelimit.v3.RateLimitResponse.Code overall_code = 1;- Specified by:
getOverallCodeValuein interfaceRateLimitResponseOrBuilder- Returns:
- The enum numeric value on the wire for overallCode.
-
setOverallCodeValue
public RateLimitResponse.Builder setOverallCodeValue(int value)
The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.
.envoy.service.ratelimit.v3.RateLimitResponse.Code overall_code = 1;- Parameters:
value- The enum numeric value on the wire for overallCode to set.- Returns:
- This builder for chaining.
-
getOverallCode
public RateLimitResponse.Code getOverallCode()
The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.
.envoy.service.ratelimit.v3.RateLimitResponse.Code overall_code = 1;- Specified by:
getOverallCodein interfaceRateLimitResponseOrBuilder- Returns:
- The overallCode.
-
setOverallCode
public RateLimitResponse.Builder setOverallCode(RateLimitResponse.Code value)
The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.
.envoy.service.ratelimit.v3.RateLimitResponse.Code overall_code = 1;- Parameters:
value- The overallCode to set.- Returns:
- This builder for chaining.
-
clearOverallCode
public RateLimitResponse.Builder clearOverallCode()
The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.
.envoy.service.ratelimit.v3.RateLimitResponse.Code overall_code = 1;- Returns:
- This builder for chaining.
-
getStatusesList
public List<RateLimitResponse.DescriptorStatus> getStatusesList()
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesListin interfaceRateLimitResponseOrBuilder
-
getStatusesCount
public int getStatusesCount()
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesCountin interfaceRateLimitResponseOrBuilder
-
getStatuses
public RateLimitResponse.DescriptorStatus getStatuses(int index)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesin interfaceRateLimitResponseOrBuilder
-
setStatuses
public RateLimitResponse.Builder setStatuses(int index, RateLimitResponse.DescriptorStatus value)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
setStatuses
public RateLimitResponse.Builder setStatuses(int index, RateLimitResponse.DescriptorStatus.Builder builderForValue)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
addStatuses
public RateLimitResponse.Builder addStatuses(RateLimitResponse.DescriptorStatus value)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
addStatuses
public RateLimitResponse.Builder addStatuses(int index, RateLimitResponse.DescriptorStatus value)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
addStatuses
public RateLimitResponse.Builder addStatuses(RateLimitResponse.DescriptorStatus.Builder builderForValue)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
addStatuses
public RateLimitResponse.Builder addStatuses(int index, RateLimitResponse.DescriptorStatus.Builder builderForValue)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
addAllStatuses
public RateLimitResponse.Builder addAllStatuses(Iterable<? extends RateLimitResponse.DescriptorStatus> values)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
clearStatuses
public RateLimitResponse.Builder clearStatuses()
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
removeStatuses
public RateLimitResponse.Builder removeStatuses(int index)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
getStatusesBuilder
public RateLimitResponse.DescriptorStatus.Builder getStatusesBuilder(int index)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
getStatusesOrBuilder
public RateLimitResponse.DescriptorStatusOrBuilder getStatusesOrBuilder(int index)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesOrBuilderin interfaceRateLimitResponseOrBuilder
-
getStatusesOrBuilderList
public List<? extends RateLimitResponse.DescriptorStatusOrBuilder> getStatusesOrBuilderList()
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;- Specified by:
getStatusesOrBuilderListin interfaceRateLimitResponseOrBuilder
-
addStatusesBuilder
public RateLimitResponse.DescriptorStatus.Builder addStatusesBuilder()
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
addStatusesBuilder
public RateLimitResponse.DescriptorStatus.Builder addStatusesBuilder(int index)
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
getStatusesBuilderList
public List<RateLimitResponse.DescriptorStatus.Builder> getStatusesBuilderList()
A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest. This can be used by the caller to determine which individual descriptors failed and/or what the currently configured limits are for all of them.
repeated .envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus statuses = 2;
-
getResponseHeadersToAddList
public List<HeaderValue> getResponseHeadersToAddList()
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;- Specified by:
getResponseHeadersToAddListin interfaceRateLimitResponseOrBuilder
-
getResponseHeadersToAddCount
public int getResponseHeadersToAddCount()
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;- Specified by:
getResponseHeadersToAddCountin interfaceRateLimitResponseOrBuilder
-
getResponseHeadersToAdd
public HeaderValue getResponseHeadersToAdd(int index)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;- Specified by:
getResponseHeadersToAddin interfaceRateLimitResponseOrBuilder
-
setResponseHeadersToAdd
public RateLimitResponse.Builder setResponseHeadersToAdd(int index, HeaderValue value)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
setResponseHeadersToAdd
public RateLimitResponse.Builder setResponseHeadersToAdd(int index, HeaderValue.Builder builderForValue)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
addResponseHeadersToAdd
public RateLimitResponse.Builder addResponseHeadersToAdd(HeaderValue value)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
addResponseHeadersToAdd
public RateLimitResponse.Builder addResponseHeadersToAdd(int index, HeaderValue value)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
addResponseHeadersToAdd
public RateLimitResponse.Builder addResponseHeadersToAdd(HeaderValue.Builder builderForValue)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
addResponseHeadersToAdd
public RateLimitResponse.Builder addResponseHeadersToAdd(int index, HeaderValue.Builder builderForValue)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
addAllResponseHeadersToAdd
public RateLimitResponse.Builder addAllResponseHeadersToAdd(Iterable<? extends HeaderValue> values)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
clearResponseHeadersToAdd
public RateLimitResponse.Builder clearResponseHeadersToAdd()
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
removeResponseHeadersToAdd
public RateLimitResponse.Builder removeResponseHeadersToAdd(int index)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
getResponseHeadersToAddBuilder
public HeaderValue.Builder getResponseHeadersToAddBuilder(int index)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
getResponseHeadersToAddOrBuilder
public HeaderValueOrBuilder getResponseHeadersToAddOrBuilder(int index)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;- Specified by:
getResponseHeadersToAddOrBuilderin interfaceRateLimitResponseOrBuilder
-
getResponseHeadersToAddOrBuilderList
public List<? extends HeaderValueOrBuilder> getResponseHeadersToAddOrBuilderList()
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;- Specified by:
getResponseHeadersToAddOrBuilderListin interfaceRateLimitResponseOrBuilder
-
addResponseHeadersToAddBuilder
public HeaderValue.Builder addResponseHeadersToAddBuilder()
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
addResponseHeadersToAddBuilder
public HeaderValue.Builder addResponseHeadersToAddBuilder(int index)
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
getResponseHeadersToAddBuilderList
public List<HeaderValue.Builder> getResponseHeadersToAddBuilderList()
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3;
-
getRequestHeadersToAddList
public List<HeaderValue> getRequestHeadersToAddList()
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddListin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAddCount
public int getRequestHeadersToAddCount()
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddCountin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAdd
public HeaderValue getRequestHeadersToAdd(int index)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddin interfaceRateLimitResponseOrBuilder
-
setRequestHeadersToAdd
public RateLimitResponse.Builder setRequestHeadersToAdd(int index, HeaderValue value)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
setRequestHeadersToAdd
public RateLimitResponse.Builder setRequestHeadersToAdd(int index, HeaderValue.Builder builderForValue)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
addRequestHeadersToAdd
public RateLimitResponse.Builder addRequestHeadersToAdd(HeaderValue value)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
addRequestHeadersToAdd
public RateLimitResponse.Builder addRequestHeadersToAdd(int index, HeaderValue value)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
addRequestHeadersToAdd
public RateLimitResponse.Builder addRequestHeadersToAdd(HeaderValue.Builder builderForValue)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
addRequestHeadersToAdd
public RateLimitResponse.Builder addRequestHeadersToAdd(int index, HeaderValue.Builder builderForValue)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
addAllRequestHeadersToAdd
public RateLimitResponse.Builder addAllRequestHeadersToAdd(Iterable<? extends HeaderValue> values)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
clearRequestHeadersToAdd
public RateLimitResponse.Builder clearRequestHeadersToAdd()
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
removeRequestHeadersToAdd
public RateLimitResponse.Builder removeRequestHeadersToAdd(int index)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
getRequestHeadersToAddBuilder
public HeaderValue.Builder getRequestHeadersToAddBuilder(int index)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
getRequestHeadersToAddOrBuilder
public HeaderValueOrBuilder getRequestHeadersToAddOrBuilder(int index)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddOrBuilderin interfaceRateLimitResponseOrBuilder
-
getRequestHeadersToAddOrBuilderList
public List<? extends HeaderValueOrBuilder> getRequestHeadersToAddOrBuilderList()
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;- Specified by:
getRequestHeadersToAddOrBuilderListin interfaceRateLimitResponseOrBuilder
-
addRequestHeadersToAddBuilder
public HeaderValue.Builder addRequestHeadersToAddBuilder()
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
addRequestHeadersToAddBuilder
public HeaderValue.Builder addRequestHeadersToAddBuilder(int index)
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
getRequestHeadersToAddBuilderList
public List<HeaderValue.Builder> getRequestHeadersToAddBuilderList()
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4;
-
getRawBody
public com.google.protobuf.ByteString getRawBody()
A response body to send to the downstream client when the response code is not OK.
bytes raw_body = 5;- Specified by:
getRawBodyin interfaceRateLimitResponseOrBuilder- Returns:
- The rawBody.
-
setRawBody
public RateLimitResponse.Builder setRawBody(com.google.protobuf.ByteString value)
A response body to send to the downstream client when the response code is not OK.
bytes raw_body = 5;- Parameters:
value- The rawBody to set.- Returns:
- This builder for chaining.
-
clearRawBody
public RateLimitResponse.Builder clearRawBody()
A response body to send to the downstream client when the response code is not OK.
bytes raw_body = 5;- Returns:
- This builder for chaining.
-
hasDynamicMetadata
public boolean hasDynamicMetadata()
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;- Specified by:
hasDynamicMetadatain interfaceRateLimitResponseOrBuilder- Returns:
- Whether the dynamicMetadata field is set.
-
getDynamicMetadata
public com.google.protobuf.Struct getDynamicMetadata()
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;- Specified by:
getDynamicMetadatain interfaceRateLimitResponseOrBuilder- Returns:
- The dynamicMetadata.
-
setDynamicMetadata
public RateLimitResponse.Builder setDynamicMetadata(com.google.protobuf.Struct value)
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;
-
setDynamicMetadata
public RateLimitResponse.Builder setDynamicMetadata(com.google.protobuf.Struct.Builder builderForValue)
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;
-
mergeDynamicMetadata
public RateLimitResponse.Builder mergeDynamicMetadata(com.google.protobuf.Struct value)
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;
-
clearDynamicMetadata
public RateLimitResponse.Builder clearDynamicMetadata()
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;
-
getDynamicMetadataBuilder
public com.google.protobuf.Struct.Builder getDynamicMetadataBuilder()
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;
-
getDynamicMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getDynamicMetadataOrBuilder()
Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter. This metadata lives in a namespace specified by the canonical name of extension filter that requires it: - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter. - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter. - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
.google.protobuf.Struct dynamic_metadata = 6;- Specified by:
getDynamicMetadataOrBuilderin interfaceRateLimitResponseOrBuilder
-
hasQuota
public boolean hasQuota()
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;- Specified by:
hasQuotain interfaceRateLimitResponseOrBuilder- Returns:
- Whether the quota field is set.
-
getQuota
public RateLimitResponse.Quota getQuota()
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;- Specified by:
getQuotain interfaceRateLimitResponseOrBuilder- Returns:
- The quota.
-
setQuota
public RateLimitResponse.Builder setQuota(RateLimitResponse.Quota value)
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;
-
setQuota
public RateLimitResponse.Builder setQuota(RateLimitResponse.Quota.Builder builderForValue)
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;
-
mergeQuota
public RateLimitResponse.Builder mergeQuota(RateLimitResponse.Quota value)
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;
-
clearQuota
public RateLimitResponse.Builder clearQuota()
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;
-
getQuotaBuilder
public RateLimitResponse.Quota.Builder getQuotaBuilder()
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;
-
getQuotaOrBuilder
public RateLimitResponse.QuotaOrBuilder getQuotaOrBuilder()
Quota is available for a request if its entire descriptor set has cached quota available. This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response. If quota is available, a RLS request will not be made and the quota will be reduced by 1. If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered. If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired, the request will be treated as OVER_LIMIT. [#not-implemented-hide:]
.envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 7;- Specified by:
getQuotaOrBuilderin interfaceRateLimitResponseOrBuilder
-
setUnknownFields
public final RateLimitResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
-
mergeUnknownFields
public final RateLimitResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
-
-