Class RateLimitResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 type
envoy.service.ratelimit.v3.RateLimitResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllRequestHeadersToAdd(Iterable<? extends HeaderValue> values) A list of headers to add to the request when forwardedaddAllResponseHeadersToAdd(Iterable<? extends HeaderValue> values) A list of headers to add to the responseaddAllStatuses(Iterable<? extends RateLimitResponse.DescriptorStatus> values) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRequestHeadersToAdd(int index, HeaderValue value) A list of headers to add to the request when forwardedaddRequestHeadersToAdd(int index, HeaderValue.Builder builderForValue) A list of headers to add to the request when forwardedA list of headers to add to the request when forwardedaddRequestHeadersToAdd(HeaderValue.Builder builderForValue) A list of headers to add to the request when forwardedA list of headers to add to the request when forwardedaddRequestHeadersToAddBuilder(int index) A list of headers to add to the request when forwardedaddResponseHeadersToAdd(int index, HeaderValue value) A list of headers to add to the responseaddResponseHeadersToAdd(int index, HeaderValue.Builder builderForValue) A list of headers to add to the responseA list of headers to add to the responseaddResponseHeadersToAdd(HeaderValue.Builder builderForValue) A list of headers to add to the responseA list of headers to add to the responseaddResponseHeadersToAddBuilder(int index) A list of headers to add to the responseaddStatuses(int index, RateLimitResponse.DescriptorStatus value) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.addStatuses(int index, RateLimitResponse.DescriptorStatus.Builder builderForValue) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.addStatuses(RateLimitResponse.DescriptorStatus.Builder builderForValue) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.addStatusesBuilder(int index) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.build()clear()Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.Quota is available for a request if its entire descriptor set has cached quota available.A response body to send to the downstream client when the response code is not OK.A list of headers to add to the request when forwardedA list of headers to add to the responseA list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.com.google.protobuf.Struct.BuilderOptional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.com.google.protobuf.StructOrBuilderOptional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.intThe overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.getQuota()Quota is available for a request if its entire descriptor set has cached quota available.Quota is available for a request if its entire descriptor set has cached quota available.Quota is available for a request if its entire descriptor set has cached quota available.com.google.protobuf.ByteStringA response body to send to the downstream client when the response code is not OK.getRequestHeadersToAdd(int index) A list of headers to add to the request when forwardedgetRequestHeadersToAddBuilder(int index) A list of headers to add to the request when forwardedA list of headers to add to the request when forwardedintA list of headers to add to the request when forwardedA list of headers to add to the request when forwardedgetRequestHeadersToAddOrBuilder(int index) A list of headers to add to the request when forwardedList<? extends HeaderValueOrBuilder>A list of headers to add to the request when forwardedgetResponseHeadersToAdd(int index) A list of headers to add to the responsegetResponseHeadersToAddBuilder(int index) A list of headers to add to the responseA list of headers to add to the responseintA list of headers to add to the responseA list of headers to add to the responsegetResponseHeadersToAddOrBuilder(int index) A list of headers to add to the responseList<? extends HeaderValueOrBuilder>A list of headers to add to the responsegetStatuses(int index) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.getStatusesBuilder(int index) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.intA list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.getStatusesOrBuilder(int index) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.List<? extends RateLimitResponse.DescriptorStatusOrBuilder>A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.booleanOptional 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.FieldAccessorTablefinal booleanmergeDynamicMetadata(com.google.protobuf.Struct value) Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RateLimitResponse other) Quota is available for a request if its entire descriptor set has cached quota available.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeRequestHeadersToAdd(int index) A list of headers to add to the request when forwardedremoveResponseHeadersToAdd(int index) A list of headers to add to the responseremoveStatuses(int index) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.setDynamicMetadata(com.google.protobuf.Struct value) Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.setDynamicMetadata(com.google.protobuf.Struct.Builder builderForValue) Optional response metadata that will be emitted as dynamic metadata to be consumed by the next filter.The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.setOverallCodeValue(int value) The overall response code which takes into account all of the descriptors that were passed in the RateLimitRequest message.setQuota(RateLimitResponse.Quota value) Quota is available for a request if its entire descriptor set has cached quota available.setQuota(RateLimitResponse.Quota.Builder builderForValue) Quota is available for a request if its entire descriptor set has cached quota available.setRawBody(com.google.protobuf.ByteString value) A response body to send to the downstream client when the response code is not OK.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestHeadersToAdd(int index, HeaderValue value) A list of headers to add to the request when forwardedsetRequestHeadersToAdd(int index, HeaderValue.Builder builderForValue) A list of headers to add to the request when forwardedsetResponseHeadersToAdd(int index, HeaderValue value) A list of headers to add to the responsesetResponseHeadersToAdd(int index, HeaderValue.Builder builderForValue) A list of headers to add to the responsesetStatuses(int index, RateLimitResponse.DescriptorStatus value) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.setStatuses(int index, RateLimitResponse.DescriptorStatus.Builder builderForValue) A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimitResponse.Builder>
-
mergeFrom
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
addResponseHeadersToAdd
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
addResponseHeadersToAdd
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
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
clearResponseHeadersToAdd
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
removeResponseHeadersToAdd
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
getResponseHeadersToAddBuilder
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
getResponseHeadersToAddOrBuilder
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
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
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
addResponseHeadersToAddBuilder
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
getResponseHeadersToAddBuilderList
A list of headers to add to the response
repeated .envoy.config.core.v3.HeaderValue response_headers_to_add = 3; -
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
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
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
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
addRequestHeadersToAdd
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
addRequestHeadersToAdd
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
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
clearRequestHeadersToAdd
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
removeRequestHeadersToAdd
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
getRequestHeadersToAddBuilder
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
getRequestHeadersToAddOrBuilder
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
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
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
addRequestHeadersToAddBuilder
A list of headers to add to the request when forwarded
repeated .envoy.config.core.v3.HeaderValue request_headers_to_add = 4; -
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
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
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
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
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
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
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
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
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
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
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
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
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>
-