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.v2.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.
Protobuf typeenvoy.service.ratelimit.v2.RateLimitResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RateLimitResponse.BuilderaddAllHeaders(Iterable<? extends HeaderValue> values)A list of headers to add to the responseRateLimitResponse.BuilderaddAllRequestHeadersToAdd(Iterable<? extends HeaderValue> values)A list of headers to add to the request when forwardedRateLimitResponse.BuilderaddAllStatuses(Iterable<? extends RateLimitResponse.DescriptorStatus> values)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuilderaddHeaders(int index, HeaderValue value)A list of headers to add to the responseRateLimitResponse.BuilderaddHeaders(int index, HeaderValue.Builder builderForValue)A list of headers to add to the responseRateLimitResponse.BuilderaddHeaders(HeaderValue value)A list of headers to add to the responseRateLimitResponse.BuilderaddHeaders(HeaderValue.Builder builderForValue)A list of headers to add to the responseHeaderValue.BuilderaddHeadersBuilder()A list of headers to add to the responseHeaderValue.BuilderaddHeadersBuilder(int index)A list of headers to add to the responseRateLimitResponse.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.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.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RateLimitResponse.BuilderclearHeaders()A list of headers to add to the responseRateLimitResponse.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.BuilderclearRequestHeadersToAdd()A list of headers to add to the request when forwardedRateLimitResponse.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()HeaderValuegetHeaders(int index)A list of headers to add to the responseHeaderValue.BuildergetHeadersBuilder(int index)A list of headers to add to the responseList<HeaderValue.Builder>getHeadersBuilderList()A list of headers to add to the responseintgetHeadersCount()A list of headers to add to the responseList<HeaderValue>getHeadersList()A list of headers to add to the responseHeaderValueOrBuildergetHeadersOrBuilder(int index)A list of headers to add to the responseList<? extends HeaderValueOrBuilder>getHeadersOrBuilderList()A list of headers to add to the responseRateLimitResponse.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.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 forwardedRateLimitResponse.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RateLimitResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RateLimitResponse.BuildermergeFrom(com.google.protobuf.Message other)RateLimitResponse.BuildermergeFrom(RateLimitResponse other)RateLimitResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RateLimitResponse.BuilderremoveHeaders(int index)A list of headers to add to the responseRateLimitResponse.BuilderremoveRequestHeadersToAdd(int index)A list of headers to add to the request when forwardedRateLimitResponse.BuilderremoveStatuses(int index)A list of DescriptorStatus messages which matches the length of the descriptor list passed in the RateLimitRequest.RateLimitResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitResponse.BuildersetHeaders(int index, HeaderValue value)A list of headers to add to the responseRateLimitResponse.BuildersetHeaders(int index, HeaderValue.Builder builderForValue)A list of headers to add to the responseRateLimitResponse.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.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.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.RateLimitResponse.DescriptorStatus statuses = 2;
-
getHeadersList
public List<HeaderValue> getHeadersList()
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersListin interfaceRateLimitResponseOrBuilder
-
getHeadersCount
public int getHeadersCount()
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersCountin interfaceRateLimitResponseOrBuilder
-
getHeaders
public HeaderValue getHeaders(int index)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersin interfaceRateLimitResponseOrBuilder
-
setHeaders
public RateLimitResponse.Builder setHeaders(int index, HeaderValue value)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
setHeaders
public RateLimitResponse.Builder setHeaders(int index, HeaderValue.Builder builderForValue)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
addHeaders
public RateLimitResponse.Builder addHeaders(HeaderValue value)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
addHeaders
public RateLimitResponse.Builder addHeaders(int index, HeaderValue value)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
addHeaders
public RateLimitResponse.Builder addHeaders(HeaderValue.Builder builderForValue)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
addHeaders
public RateLimitResponse.Builder addHeaders(int index, HeaderValue.Builder builderForValue)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
addAllHeaders
public RateLimitResponse.Builder addAllHeaders(Iterable<? extends HeaderValue> values)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
clearHeaders
public RateLimitResponse.Builder clearHeaders()
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
removeHeaders
public RateLimitResponse.Builder removeHeaders(int index)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
getHeadersBuilder
public HeaderValue.Builder getHeadersBuilder(int index)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
getHeadersOrBuilder
public HeaderValueOrBuilder getHeadersOrBuilder(int index)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersOrBuilderin interfaceRateLimitResponseOrBuilder
-
getHeadersOrBuilderList
public List<? extends HeaderValueOrBuilder> getHeadersOrBuilderList()
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getHeadersOrBuilderListin interfaceRateLimitResponseOrBuilder
-
addHeadersBuilder
public HeaderValue.Builder addHeadersBuilder()
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
addHeadersBuilder
public HeaderValue.Builder addHeadersBuilder(int index)
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
getHeadersBuilderList
public List<HeaderValue.Builder> getHeadersBuilderList()
A list of headers to add to the response
repeated .envoy.api.v2.core.HeaderValue headers = 3 [(.udpa.annotations.field_migrate) = { ... }
-
getRequestHeadersToAddList
public List<HeaderValue> getRequestHeadersToAddList()
A list of headers to add to the request when forwarded
repeated .envoy.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.HeaderValue request_headers_to_add = 4;
-
clearRequestHeadersToAdd
public RateLimitResponse.Builder clearRequestHeadersToAdd()
A list of headers to add to the request when forwarded
repeated .envoy.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.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.api.v2.core.HeaderValue request_headers_to_add = 4;
-
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>
-
-