Package com.google.cloud.managedkafka.v1
Class TaskRetryPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TaskRetryPolicy.Builder>
com.google.cloud.managedkafka.v1.TaskRetryPolicy.Builder
- All Implemented Interfaces:
TaskRetryPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TaskRetryPolicy
public static final class TaskRetryPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TaskRetryPolicy.Builder>
implements TaskRetryPolicyOrBuilder
Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. The default values for minimum and maximum backoffs are 60 seconds and 30 minutes respectively.Protobuf type
google.cloud.managedkafka.v1.TaskRetryPolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.com.google.protobuf.DurationOptional.com.google.protobuf.Duration.BuilderOptional.com.google.protobuf.DurationOrBuilderOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TaskRetryPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaximumBackoff(com.google.protobuf.Duration value) Optional.mergeMinimumBackoff(com.google.protobuf.Duration value) Optional.setMaximumBackoff(com.google.protobuf.Duration value) Optional.setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) Optional.setMinimumBackoff(com.google.protobuf.Duration value) Optional.setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) Optional.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
-
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<TaskRetryPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TaskRetryPolicy.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<TaskRetryPolicy.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskRetryPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TaskRetryPolicy.Builder>
-
mergeFrom
public TaskRetryPolicy.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<TaskRetryPolicy.Builder>- Throws:
IOException
-
hasMinimumBackoff
public boolean hasMinimumBackoff()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMinimumBackoffin interfaceTaskRetryPolicyOrBuilder- Returns:
- Whether the minimumBackoff field is set.
-
getMinimumBackoff
public com.google.protobuf.Duration getMinimumBackoff()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinimumBackoffin interfaceTaskRetryPolicyOrBuilder- Returns:
- The minimumBackoff.
-
setMinimumBackoff
Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; -
setMinimumBackoff
public TaskRetryPolicy.Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; -
mergeMinimumBackoff
Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; -
clearMinimumBackoff
Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getMinimumBackoffBuilder
public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getMinimumBackoffOrBuilder
public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder()Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
.google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMinimumBackoffOrBuilderin interfaceTaskRetryPolicyOrBuilder
-
hasMaximumBackoff
public boolean hasMaximumBackoff()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMaximumBackoffin interfaceTaskRetryPolicyOrBuilder- Returns:
- Whether the maximumBackoff field is set.
-
getMaximumBackoff
public com.google.protobuf.Duration getMaximumBackoff()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaximumBackoffin interfaceTaskRetryPolicyOrBuilder- Returns:
- The maximumBackoff.
-
setMaximumBackoff
Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setMaximumBackoff
public TaskRetryPolicy.Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeMaximumBackoff
Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearMaximumBackoff
Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMaximumBackoffBuilder
public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMaximumBackoffOrBuilder
public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder()Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
.google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaximumBackoffOrBuilderin interfaceTaskRetryPolicyOrBuilder
-