Class CircuitBreakers.Thresholds.RetryBudget.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
io.envoyproxy.envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,CircuitBreakers.Thresholds.RetryBudgetOrBuilder
,Cloneable
- Enclosing class:
CircuitBreakers.Thresholds.RetryBudget
public static final class CircuitBreakers.Thresholds.RetryBudget.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
implements CircuitBreakers.Thresholds.RetryBudgetOrBuilder
Protobuf type
envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Percent
private com.google.protobuf.SingleFieldBuilder
<Percent, Percent.Builder, PercentOrBuilder> private com.google.protobuf.UInt32Value
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.Specifies the minimum retry concurrency allowed for the retry budget.Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.private com.google.protobuf.SingleFieldBuilder
<Percent, Percent.Builder, PercentOrBuilder> Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.UInt32Value
Specifies the minimum retry concurrency allowed for the retry budget.com.google.protobuf.UInt32Value.Builder
Specifies the minimum retry concurrency allowed for the retry budget.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> Specifies the minimum retry concurrency allowed for the retry budget.com.google.protobuf.UInt32ValueOrBuilder
Specifies the minimum retry concurrency allowed for the retry budget.boolean
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.boolean
Specifies the minimum retry concurrency allowed for the retry budget.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeBudgetPercent
(Percent value) Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeMinRetryConcurrency
(com.google.protobuf.UInt32Value value) Specifies the minimum retry concurrency allowed for the retry budget.setBudgetPercent
(Percent value) Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.setBudgetPercent
(Percent.Builder builderForValue) Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests.setMinRetryConcurrency
(com.google.protobuf.UInt32Value value) Specifies the minimum retry concurrency allowed for the retry budget.setMinRetryConcurrency
(com.google.protobuf.UInt32Value.Builder builderForValue) Specifies the minimum retry concurrency allowed for the retry budget.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
budgetPercent_
-
budgetPercentBuilder_
private com.google.protobuf.SingleFieldBuilder<Percent,Percent.Builder, budgetPercentBuilder_PercentOrBuilder> -
minRetryConcurrency_
private com.google.protobuf.UInt32Value minRetryConcurrency_ -
minRetryConcurrencyBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, minRetryConcurrencyBuilder_com.google.protobuf.UInt32ValueOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
-
mergeFrom
public CircuitBreakers.Thresholds.RetryBudget.Builder mergeFrom(CircuitBreakers.Thresholds.RetryBudget other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
-
mergeFrom
public CircuitBreakers.Thresholds.RetryBudget.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Thresholds.RetryBudget.Builder>
- Throws:
IOException
-
hasBudgetPercent
public boolean hasBudgetPercent()Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
- Specified by:
hasBudgetPercent
in interfaceCircuitBreakers.Thresholds.RetryBudgetOrBuilder
- Returns:
- Whether the budgetPercent field is set.
-
getBudgetPercent
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
- Specified by:
getBudgetPercent
in interfaceCircuitBreakers.Thresholds.RetryBudgetOrBuilder
- Returns:
- The budgetPercent.
-
setBudgetPercent
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
-
setBudgetPercent
public CircuitBreakers.Thresholds.RetryBudget.Builder setBudgetPercent(Percent.Builder builderForValue) Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
-
mergeBudgetPercent
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
-
clearBudgetPercent
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
-
getBudgetPercentBuilder
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
-
getBudgetPercentOrBuilder
Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
- Specified by:
getBudgetPercentOrBuilder
in interfaceCircuitBreakers.Thresholds.RetryBudgetOrBuilder
-
getBudgetPercentFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Percent,Percent.Builder, getBudgetPercentFieldBuilder()PercentOrBuilder> Specifies the limit on concurrent retries as a percentage of the sum of active requests and active pending requests. For example, if there are 100 active requests and the budget_percent is set to 25, there may be 25 active retries. This parameter is optional. Defaults to 20%.
.envoy.type.v3.Percent budget_percent = 1;
-
hasMinRetryConcurrency
public boolean hasMinRetryConcurrency()Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
- Specified by:
hasMinRetryConcurrency
in interfaceCircuitBreakers.Thresholds.RetryBudgetOrBuilder
- Returns:
- Whether the minRetryConcurrency field is set.
-
getMinRetryConcurrency
public com.google.protobuf.UInt32Value getMinRetryConcurrency()Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
- Specified by:
getMinRetryConcurrency
in interfaceCircuitBreakers.Thresholds.RetryBudgetOrBuilder
- Returns:
- The minRetryConcurrency.
-
setMinRetryConcurrency
public CircuitBreakers.Thresholds.RetryBudget.Builder setMinRetryConcurrency(com.google.protobuf.UInt32Value value) Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
-
setMinRetryConcurrency
public CircuitBreakers.Thresholds.RetryBudget.Builder setMinRetryConcurrency(com.google.protobuf.UInt32Value.Builder builderForValue) Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
-
mergeMinRetryConcurrency
public CircuitBreakers.Thresholds.RetryBudget.Builder mergeMinRetryConcurrency(com.google.protobuf.UInt32Value value) Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
-
clearMinRetryConcurrency
Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
-
getMinRetryConcurrencyBuilder
public com.google.protobuf.UInt32Value.Builder getMinRetryConcurrencyBuilder()Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
-
getMinRetryConcurrencyOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMinRetryConcurrencyOrBuilder()Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
- Specified by:
getMinRetryConcurrencyOrBuilder
in interfaceCircuitBreakers.Thresholds.RetryBudgetOrBuilder
-
getMinRetryConcurrencyFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder, getMinRetryConcurrencyFieldBuilder()com.google.protobuf.UInt32ValueOrBuilder> Specifies the minimum retry concurrency allowed for the retry budget. The limit on the number of active retries may never go below this number. This parameter is optional. Defaults to 3.
.google.protobuf.UInt32Value min_retry_concurrency = 2;
-