Package com.google.rpc
Class RetryInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<RetryInfo,RetryInfo.Builder>
com.google.rpc.RetryInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,RetryInfoOrBuilder
,Cloneable
- Enclosing class:
- RetryInfo
public static final class RetryInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<RetryInfo,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 retries have been reached or a maximum retry delay cap has been reached.Protobuf type
google.rpc.RetryInfo
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionClients should wait at least this long between retrying the same request.com.google.protobuf.Duration
Clients should wait at least this long between retrying the same request.boolean
Clients should wait at least this long between retrying the same request.mergeRetryDelay
(com.google.protobuf.Duration value) Clients should wait at least this long between retrying the same request.setRetryDelay
(com.google.protobuf.Duration value) Clients should wait at least this long between retrying the same request.setRetryDelay
(com.google.protobuf.Duration.Builder builderForValue) Clients should wait at least this long between retrying the same request.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasRetryDelay
public boolean hasRetryDelay()Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"];
- Specified by:
hasRetryDelay
in interfaceRetryInfoOrBuilder
- Returns:
- Whether the retryDelay field is set.
-
getRetryDelay
public com.google.protobuf.Duration getRetryDelay()Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"];
- Specified by:
getRetryDelay
in interfaceRetryInfoOrBuilder
- Returns:
- The retryDelay.
-
setRetryDelay
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"];
-
setRetryDelay
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"];
-
mergeRetryDelay
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"];
-
clearRetryDelay
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1 [json_name = "retryDelay"];
-