public static final class RetryInfo.Builder extends GeneratedMessageV3.Builder<RetryInfo.Builder> implements RetryInfoOrBuilder
Describes when the clients can retry a failed request. Clients could ignore the recommendation here or retry when this information is missing from error responses. It's always recommended that clients should use exponential backoff when retrying. Clients should wait until `retry_delay` amount of time has passed since receiving the error response before retrying. If retrying requests also fail, clients should use an exponential backoff scheme to gradually increase the delay between retries based on `retry_delay`, until either a maximum number of retires have been reached or a maximum retry delay cap has been reached.Protobuf type
google.rpc.RetryInfo
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public RetryInfo build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public RetryInfo buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public RetryInfo.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<RetryInfo.Builder>
public RetryInfo.Builder mergeFrom(RetryInfo other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public RetryInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<RetryInfo.Builder>
java.io.IOException
public boolean hasRetryDelay()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
hasRetryDelay
in interface RetryInfoOrBuilder
public Duration getRetryDelay()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
getRetryDelay
in interface RetryInfoOrBuilder
public RetryInfo.Builder setRetryDelay(Duration value)
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
public RetryInfo.Builder setRetryDelay(Duration.Builder builderForValue)
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
public RetryInfo.Builder mergeRetryDelay(Duration value)
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
public RetryInfo.Builder clearRetryDelay()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
public Duration.Builder getRetryDelayBuilder()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
public DurationOrBuilder getRetryDelayOrBuilder()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;
getRetryDelayOrBuilder
in interface RetryInfoOrBuilder
public final RetryInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<RetryInfo.Builder>
public final RetryInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<RetryInfo.Builder>