Class RateLimitResponse.DescriptorStatus.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.DescriptorStatus.Builder>
-
- io.envoyproxy.envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RateLimitResponse.DescriptorStatusOrBuilder,Cloneable
- Enclosing class:
- RateLimitResponse.DescriptorStatus
public static final class RateLimitResponse.DescriptorStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.DescriptorStatus.Builder> implements RateLimitResponse.DescriptorStatusOrBuilder
[#next-free-field: 6]
Protobuf typeenvoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RateLimitResponse.DescriptorStatus.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitResponse.DescriptorStatusbuild()RateLimitResponse.DescriptorStatusbuildPartial()RateLimitResponse.DescriptorStatus.Builderclear()RateLimitResponse.DescriptorStatus.BuilderclearCode()The response code for an individual descriptor.RateLimitResponse.DescriptorStatus.BuilderclearCurrentLimit()The current limit as configured by the server.RateLimitResponse.DescriptorStatus.BuilderclearDurationUntilReset()Duration until reset of the current limit window.RateLimitResponse.DescriptorStatus.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RateLimitResponse.DescriptorStatus.BuilderclearLimitRemaining()The limit remaining in the current time unit.RateLimitResponse.DescriptorStatus.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RateLimitResponse.DescriptorStatus.BuilderclearQuota()Quota is available for a request if its descriptor set has cached quota available for all descriptors.RateLimitResponse.DescriptorStatus.Builderclone()RateLimitResponse.CodegetCode()The response code for an individual descriptor.intgetCodeValue()The response code for an individual descriptor.RateLimitResponse.RateLimitgetCurrentLimit()The current limit as configured by the server.RateLimitResponse.RateLimit.BuildergetCurrentLimitBuilder()The current limit as configured by the server.RateLimitResponse.RateLimitOrBuildergetCurrentLimitOrBuilder()The current limit as configured by the server.RateLimitResponse.DescriptorStatusgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetDurationUntilReset()Duration until reset of the current limit window.com.google.protobuf.Duration.BuildergetDurationUntilResetBuilder()Duration until reset of the current limit window.com.google.protobuf.DurationOrBuildergetDurationUntilResetOrBuilder()Duration until reset of the current limit window.intgetLimitRemaining()The limit remaining in the current time unit.RateLimitResponse.QuotagetQuota()Quota is available for a request if its descriptor set has cached quota available for all descriptors.RateLimitResponse.Quota.BuildergetQuotaBuilder()Quota is available for a request if its descriptor set has cached quota available for all descriptors.RateLimitResponse.QuotaOrBuildergetQuotaOrBuilder()Quota is available for a request if its descriptor set has cached quota available for all descriptors.booleanhasCurrentLimit()The current limit as configured by the server.booleanhasDurationUntilReset()Duration until reset of the current limit window.booleanhasQuota()Quota is available for a request if its descriptor set has cached quota available for all descriptors.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RateLimitResponse.DescriptorStatus.BuildermergeCurrentLimit(RateLimitResponse.RateLimit value)The current limit as configured by the server.RateLimitResponse.DescriptorStatus.BuildermergeDurationUntilReset(com.google.protobuf.Duration value)Duration until reset of the current limit window.RateLimitResponse.DescriptorStatus.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RateLimitResponse.DescriptorStatus.BuildermergeFrom(com.google.protobuf.Message other)RateLimitResponse.DescriptorStatus.BuildermergeFrom(RateLimitResponse.DescriptorStatus other)RateLimitResponse.DescriptorStatus.BuildermergeQuota(RateLimitResponse.Quota value)Quota is available for a request if its descriptor set has cached quota available for all descriptors.RateLimitResponse.DescriptorStatus.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RateLimitResponse.DescriptorStatus.BuildersetCode(RateLimitResponse.Code value)The response code for an individual descriptor.RateLimitResponse.DescriptorStatus.BuildersetCodeValue(int value)The response code for an individual descriptor.RateLimitResponse.DescriptorStatus.BuildersetCurrentLimit(RateLimitResponse.RateLimit value)The current limit as configured by the server.RateLimitResponse.DescriptorStatus.BuildersetCurrentLimit(RateLimitResponse.RateLimit.Builder builderForValue)The current limit as configured by the server.RateLimitResponse.DescriptorStatus.BuildersetDurationUntilReset(com.google.protobuf.Duration value)Duration until reset of the current limit window.RateLimitResponse.DescriptorStatus.BuildersetDurationUntilReset(com.google.protobuf.Duration.Builder builderForValue)Duration until reset of the current limit window.RateLimitResponse.DescriptorStatus.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RateLimitResponse.DescriptorStatus.BuildersetLimitRemaining(int value)The limit remaining in the current time unit.RateLimitResponse.DescriptorStatus.BuildersetQuota(RateLimitResponse.Quota value)Quota is available for a request if its descriptor set has cached quota available for all descriptors.RateLimitResponse.DescriptorStatus.BuildersetQuota(RateLimitResponse.Quota.Builder builderForValue)Quota is available for a request if its descriptor set has cached quota available for all descriptors.RateLimitResponse.DescriptorStatus.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RateLimitResponse.DescriptorStatus.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.DescriptorStatus.Builder>
-
clear
public RateLimitResponse.DescriptorStatus.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.DescriptorStatus.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.DescriptorStatus.Builder>
-
getDefaultInstanceForType
public RateLimitResponse.DescriptorStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RateLimitResponse.DescriptorStatus build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RateLimitResponse.DescriptorStatus buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RateLimitResponse.DescriptorStatus.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.DescriptorStatus.Builder>
-
setField
public RateLimitResponse.DescriptorStatus.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.DescriptorStatus.Builder>
-
clearField
public RateLimitResponse.DescriptorStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.DescriptorStatus.Builder>
-
clearOneof
public RateLimitResponse.DescriptorStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.DescriptorStatus.Builder>
-
setRepeatedField
public RateLimitResponse.DescriptorStatus.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.DescriptorStatus.Builder>
-
addRepeatedField
public RateLimitResponse.DescriptorStatus.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.DescriptorStatus.Builder>
-
mergeFrom
public RateLimitResponse.DescriptorStatus.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RateLimitResponse.DescriptorStatus.Builder>
-
mergeFrom
public RateLimitResponse.DescriptorStatus.Builder mergeFrom(RateLimitResponse.DescriptorStatus other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.DescriptorStatus.Builder>
-
mergeFrom
public RateLimitResponse.DescriptorStatus.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.DescriptorStatus.Builder>- Throws:
IOException
-
getCodeValue
public int getCodeValue()
The response code for an individual descriptor.
.envoy.service.ratelimit.v3.RateLimitResponse.Code code = 1;- Specified by:
getCodeValuein interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
setCodeValue
public RateLimitResponse.DescriptorStatus.Builder setCodeValue(int value)
The response code for an individual descriptor.
.envoy.service.ratelimit.v3.RateLimitResponse.Code code = 1;- Parameters:
value- The enum numeric value on the wire for code to set.- Returns:
- This builder for chaining.
-
getCode
public RateLimitResponse.Code getCode()
The response code for an individual descriptor.
.envoy.service.ratelimit.v3.RateLimitResponse.Code code = 1;- Specified by:
getCodein interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- The code.
-
setCode
public RateLimitResponse.DescriptorStatus.Builder setCode(RateLimitResponse.Code value)
The response code for an individual descriptor.
.envoy.service.ratelimit.v3.RateLimitResponse.Code code = 1;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
public RateLimitResponse.DescriptorStatus.Builder clearCode()
The response code for an individual descriptor.
.envoy.service.ratelimit.v3.RateLimitResponse.Code code = 1;- Returns:
- This builder for chaining.
-
hasCurrentLimit
public boolean hasCurrentLimit()
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;- Specified by:
hasCurrentLimitin interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- Whether the currentLimit field is set.
-
getCurrentLimit
public RateLimitResponse.RateLimit getCurrentLimit()
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;- Specified by:
getCurrentLimitin interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- The currentLimit.
-
setCurrentLimit
public RateLimitResponse.DescriptorStatus.Builder setCurrentLimit(RateLimitResponse.RateLimit value)
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;
-
setCurrentLimit
public RateLimitResponse.DescriptorStatus.Builder setCurrentLimit(RateLimitResponse.RateLimit.Builder builderForValue)
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;
-
mergeCurrentLimit
public RateLimitResponse.DescriptorStatus.Builder mergeCurrentLimit(RateLimitResponse.RateLimit value)
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;
-
clearCurrentLimit
public RateLimitResponse.DescriptorStatus.Builder clearCurrentLimit()
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;
-
getCurrentLimitBuilder
public RateLimitResponse.RateLimit.Builder getCurrentLimitBuilder()
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;
-
getCurrentLimitOrBuilder
public RateLimitResponse.RateLimitOrBuilder getCurrentLimitOrBuilder()
The current limit as configured by the server. Useful for debugging, etc.
.envoy.service.ratelimit.v3.RateLimitResponse.RateLimit current_limit = 2;- Specified by:
getCurrentLimitOrBuilderin interfaceRateLimitResponse.DescriptorStatusOrBuilder
-
getLimitRemaining
public int getLimitRemaining()
The limit remaining in the current time unit.
uint32 limit_remaining = 3;- Specified by:
getLimitRemainingin interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- The limitRemaining.
-
setLimitRemaining
public RateLimitResponse.DescriptorStatus.Builder setLimitRemaining(int value)
The limit remaining in the current time unit.
uint32 limit_remaining = 3;- Parameters:
value- The limitRemaining to set.- Returns:
- This builder for chaining.
-
clearLimitRemaining
public RateLimitResponse.DescriptorStatus.Builder clearLimitRemaining()
The limit remaining in the current time unit.
uint32 limit_remaining = 3;- Returns:
- This builder for chaining.
-
hasDurationUntilReset
public boolean hasDurationUntilReset()
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;- Specified by:
hasDurationUntilResetin interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- Whether the durationUntilReset field is set.
-
getDurationUntilReset
public com.google.protobuf.Duration getDurationUntilReset()
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;- Specified by:
getDurationUntilResetin interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- The durationUntilReset.
-
setDurationUntilReset
public RateLimitResponse.DescriptorStatus.Builder setDurationUntilReset(com.google.protobuf.Duration value)
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;
-
setDurationUntilReset
public RateLimitResponse.DescriptorStatus.Builder setDurationUntilReset(com.google.protobuf.Duration.Builder builderForValue)
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;
-
mergeDurationUntilReset
public RateLimitResponse.DescriptorStatus.Builder mergeDurationUntilReset(com.google.protobuf.Duration value)
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;
-
clearDurationUntilReset
public RateLimitResponse.DescriptorStatus.Builder clearDurationUntilReset()
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;
-
getDurationUntilResetBuilder
public com.google.protobuf.Duration.Builder getDurationUntilResetBuilder()
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;
-
getDurationUntilResetOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationUntilResetOrBuilder()
Duration until reset of the current limit window.
.google.protobuf.Duration duration_until_reset = 4;- Specified by:
getDurationUntilResetOrBuilderin interfaceRateLimitResponse.DescriptorStatusOrBuilder
-
hasQuota
public boolean hasQuota()
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;- Specified by:
hasQuotain interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- Whether the quota field is set.
-
getQuota
public RateLimitResponse.Quota getQuota()
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;- Specified by:
getQuotain interfaceRateLimitResponse.DescriptorStatusOrBuilder- Returns:
- The quota.
-
setQuota
public RateLimitResponse.DescriptorStatus.Builder setQuota(RateLimitResponse.Quota value)
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;
-
setQuota
public RateLimitResponse.DescriptorStatus.Builder setQuota(RateLimitResponse.Quota.Builder builderForValue)
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;
-
mergeQuota
public RateLimitResponse.DescriptorStatus.Builder mergeQuota(RateLimitResponse.Quota value)
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;
-
clearQuota
public RateLimitResponse.DescriptorStatus.Builder clearQuota()
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;
-
getQuotaBuilder
public RateLimitResponse.Quota.Builder getQuotaBuilder()
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;
-
getQuotaOrBuilder
public RateLimitResponse.QuotaOrBuilder getQuotaOrBuilder()
Quota is available for a request if its descriptor set has cached quota available for all descriptors. This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota. If quota is available, a RLS request will not be made and the quota will be reduced by 1 for all matching descriptors. If there is not sufficient quota, there are three cases: 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired. In this case, the request will be treated as OVER_LIMIT. 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors have no cached entry. This will trigger a new RLS request. When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request, When the result is returned, a single unit will be consumed from the quota for all matching descriptors. If the server did not provide a quota, such as the quota message is empty for some of the descriptors, then the request admission is determined by the :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`. [#not-implemented-hide:].envoy.service.ratelimit.v3.RateLimitResponse.Quota quota = 5;- Specified by:
getQuotaOrBuilderin interfaceRateLimitResponse.DescriptorStatusOrBuilder
-
setUnknownFields
public final RateLimitResponse.DescriptorStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.DescriptorStatus.Builder>
-
mergeUnknownFields
public final RateLimitResponse.DescriptorStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RateLimitResponse.DescriptorStatus.Builder>
-
-