public static final class RetryPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder> implements RetryPolicyOrBuilder
A policy that specifies how Cloud Pub/Sub retries message delivery. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message. Retry Policy is implemented on a best effort basis. At times, the delay between consecutive deliveries may not match the configuration. That is, delay can be more or less than configured backoff.Protobuf type
google.pubsub.v1.RetryPolicy
Modifier and Type | Method and Description |
---|---|
RetryPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RetryPolicy |
build() |
RetryPolicy |
buildPartial() |
RetryPolicy.Builder |
clear() |
RetryPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RetryPolicy.Builder |
clearMaximumBackoff()
The maximum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
clearMinimumBackoff()
The minimum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RetryPolicy.Builder |
clone() |
RetryPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getMaximumBackoff()
The maximum delay between consecutive deliveries of a given message.
|
com.google.protobuf.Duration.Builder |
getMaximumBackoffBuilder()
The maximum delay between consecutive deliveries of a given message.
|
com.google.protobuf.DurationOrBuilder |
getMaximumBackoffOrBuilder()
The maximum delay between consecutive deliveries of a given message.
|
com.google.protobuf.Duration |
getMinimumBackoff()
The minimum delay between consecutive deliveries of a given message.
|
com.google.protobuf.Duration.Builder |
getMinimumBackoffBuilder()
The minimum delay between consecutive deliveries of a given message.
|
com.google.protobuf.DurationOrBuilder |
getMinimumBackoffOrBuilder()
The minimum delay between consecutive deliveries of a given message.
|
boolean |
hasMaximumBackoff()
The maximum delay between consecutive deliveries of a given message.
|
boolean |
hasMinimumBackoff()
The minimum delay between consecutive deliveries of a given message.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RetryPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RetryPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
RetryPolicy.Builder |
mergeFrom(RetryPolicy other) |
RetryPolicy.Builder |
mergeMaximumBackoff(com.google.protobuf.Duration value)
The maximum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
mergeMinimumBackoff(com.google.protobuf.Duration value)
The minimum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RetryPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RetryPolicy.Builder |
setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue)
The maximum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
setMaximumBackoff(com.google.protobuf.Duration value)
The maximum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue)
The minimum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
setMinimumBackoff(com.google.protobuf.Duration value)
The minimum delay between consecutive deliveries of a given message.
|
RetryPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RetryPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RetryPolicy build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RetryPolicy buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RetryPolicy.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder mergeFrom(RetryPolicy other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public RetryPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>
IOException
public boolean hasMinimumBackoff()
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
hasMinimumBackoff
in interface RetryPolicyOrBuilder
public com.google.protobuf.Duration getMinimumBackoff()
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
getMinimumBackoff
in interface RetryPolicyOrBuilder
public RetryPolicy.Builder setMinimumBackoff(com.google.protobuf.Duration value)
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
public RetryPolicy.Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue)
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
public RetryPolicy.Builder mergeMinimumBackoff(com.google.protobuf.Duration value)
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
public RetryPolicy.Builder clearMinimumBackoff()
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder()
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder()
The minimum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
.google.protobuf.Duration minimum_backoff = 1;
getMinimumBackoffOrBuilder
in interface RetryPolicyOrBuilder
public boolean hasMaximumBackoff()
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
hasMaximumBackoff
in interface RetryPolicyOrBuilder
public com.google.protobuf.Duration getMaximumBackoff()
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
getMaximumBackoff
in interface RetryPolicyOrBuilder
public RetryPolicy.Builder setMaximumBackoff(com.google.protobuf.Duration value)
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
public RetryPolicy.Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue)
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
public RetryPolicy.Builder mergeMaximumBackoff(com.google.protobuf.Duration value)
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
public RetryPolicy.Builder clearMaximumBackoff()
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder()
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder()
The maximum delay between consecutive deliveries of a given message. Value should be between 0 and 600 seconds. Defaults to 600 seconds.
.google.protobuf.Duration maximum_backoff = 2;
getMaximumBackoffOrBuilder
in interface RetryPolicyOrBuilder
public final RetryPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
public final RetryPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
Copyright © 2023 Google LLC. All rights reserved.