Class RetryPolicy.RetryBackOff.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RetryPolicy.RetryBackOff.Builder>
com.google.protobuf.GeneratedMessage.Builder<RetryPolicy.RetryBackOff.Builder>
io.envoyproxy.envoy.config.route.v3.RetryPolicy.RetryBackOff.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RetryPolicy.RetryBackOffOrBuilder,Cloneable
- Enclosing class:
RetryPolicy.RetryBackOff
public static final class RetryPolicy.RetryBackOff.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RetryPolicy.RetryBackOff.Builder>
implements RetryPolicy.RetryBackOffOrBuilder
Protobuf type
envoy.config.route.v3.RetryPolicy.RetryBackOff-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.Durationprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> private intprivate com.google.protobuf.Durationprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidclear()Specifies the base interval between retries.Specifies the maximum interval between retries.com.google.protobuf.DurationSpecifies the base interval between retries.com.google.protobuf.Duration.BuilderSpecifies the base interval between retries.com.google.protobuf.DurationOrBuilderSpecifies the base interval between retries.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationSpecifies the maximum interval between retries.com.google.protobuf.Duration.BuilderSpecifies the maximum interval between retries.com.google.protobuf.DurationOrBuilderSpecifies the maximum interval between retries.booleanSpecifies the base interval between retries.booleanSpecifies the maximum interval between retries.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> Specifies the base interval between retries.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> Specifies the maximum interval between retries.final booleanprivate voidmergeBaseInterval(com.google.protobuf.Duration value) Specifies the base interval between retries.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxInterval(com.google.protobuf.Duration value) Specifies the maximum interval between retries.setBaseInterval(com.google.protobuf.Duration value) Specifies the base interval between retries.setBaseInterval(com.google.protobuf.Duration.Builder builderForValue) Specifies the base interval between retries.setMaxInterval(com.google.protobuf.Duration value) Specifies the maximum interval between retries.setMaxInterval(com.google.protobuf.Duration.Builder builderForValue) Specifies the maximum interval between retries.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, 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
-
Field Details
-
bitField0_
private int bitField0_ -
baseInterval_
private com.google.protobuf.Duration baseInterval_ -
baseIntervalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, baseIntervalBuilder_com.google.protobuf.DurationOrBuilder> -
maxInterval_
private com.google.protobuf.Duration maxInterval_ -
maxIntervalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, maxIntervalBuilder_com.google.protobuf.DurationOrBuilder>
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RetryPolicy.RetryBackOff.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RetryPolicy.RetryBackOff.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.GeneratedMessage.Builder<RetryPolicy.RetryBackOff.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
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetryPolicy.RetryBackOff.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RetryPolicy.RetryBackOff.Builder>
-
mergeFrom
public RetryPolicy.RetryBackOff.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<RetryPolicy.RetryBackOff.Builder>- Throws:
IOException
-
hasBaseInterval
public boolean hasBaseInterval()Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }- Specified by:
hasBaseIntervalin interfaceRetryPolicy.RetryBackOffOrBuilder- Returns:
- Whether the baseInterval field is set.
-
getBaseInterval
public com.google.protobuf.Duration getBaseInterval()Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }- Specified by:
getBaseIntervalin interfaceRetryPolicy.RetryBackOffOrBuilder- Returns:
- The baseInterval.
-
setBaseInterval
Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... } -
setBaseInterval
public RetryPolicy.RetryBackOff.Builder setBaseInterval(com.google.protobuf.Duration.Builder builderForValue) Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... } -
mergeBaseInterval
Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... } -
clearBaseInterval
Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... } -
getBaseIntervalBuilder
public com.google.protobuf.Duration.Builder getBaseIntervalBuilder()Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... } -
getBaseIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getBaseIntervalOrBuilder()Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... }- Specified by:
getBaseIntervalOrBuilderin interfaceRetryPolicy.RetryBackOffOrBuilder
-
internalGetBaseIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, internalGetBaseIntervalFieldBuilder()com.google.protobuf.DurationOrBuilder> Specifies the base interval between retries. This parameter is required and must be greater than zero. Values less than 1 ms are rounded up to 1 ms. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration base_interval = 1 [(.validate.rules) = { ... } -
hasMaxInterval
public boolean hasMaxInterval()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }- Specified by:
hasMaxIntervalin interfaceRetryPolicy.RetryBackOffOrBuilder- Returns:
- Whether the maxInterval field is set.
-
getMaxInterval
public com.google.protobuf.Duration getMaxInterval()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }- Specified by:
getMaxIntervalin interfaceRetryPolicy.RetryBackOffOrBuilder- Returns:
- The maxInterval.
-
setMaxInterval
Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... } -
setMaxInterval
public RetryPolicy.RetryBackOff.Builder setMaxInterval(com.google.protobuf.Duration.Builder builderForValue) Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... } -
mergeMaxInterval
Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... } -
clearMaxInterval
Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... } -
getMaxIntervalBuilder
public com.google.protobuf.Duration.Builder getMaxIntervalBuilder()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... } -
getMaxIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxIntervalOrBuilder()Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }- Specified by:
getMaxIntervalOrBuilderin interfaceRetryPolicy.RetryBackOffOrBuilder
-
internalGetMaxIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, internalGetMaxIntervalFieldBuilder()com.google.protobuf.DurationOrBuilder> Specifies the maximum interval between retries. This parameter is optional, but must be greater than or equal to the ``base_interval`` if set. The default is 10 times the ``base_interval``. See :ref:`config_http_filters_router_x-envoy-max-retries` for a discussion of Envoy's back-off algorithm.
.google.protobuf.Duration max_interval = 2 [(.validate.rules) = { ... }
-