Class RetryInfo.Builder (2.11.0)

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 retries have been reached or a maximum retry delay cap has been reached.

Protobuf type google.rpc.RetryInfo

Implements

RetryInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RetryInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RetryInfo.Builder
Overrides

build()

public RetryInfo build()
Returns
TypeDescription
RetryInfo

buildPartial()

public RetryInfo buildPartial()
Returns
TypeDescription
RetryInfo

clear()

public RetryInfo.Builder clear()
Returns
TypeDescription
RetryInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RetryInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RetryInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RetryInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RetryInfo.Builder
Overrides

clearRetryDelay()

public RetryInfo.Builder clearRetryDelay()

Clients should wait at least this long between retrying the same request.

.google.protobuf.Duration retry_delay = 1;

Returns
TypeDescription
RetryInfo.Builder

clone()

public RetryInfo.Builder clone()
Returns
TypeDescription
RetryInfo.Builder
Overrides

getDefaultInstanceForType()

public RetryInfo getDefaultInstanceForType()
Returns
TypeDescription
RetryInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRetryDelay()

public Duration getRetryDelay()

Clients should wait at least this long between retrying the same request.

.google.protobuf.Duration retry_delay = 1;

Returns
TypeDescription
Duration

The retryDelay.

getRetryDelayBuilder()

public Duration.Builder getRetryDelayBuilder()

Clients should wait at least this long between retrying the same request.

.google.protobuf.Duration retry_delay = 1;

Returns
TypeDescription
Builder

getRetryDelayOrBuilder()

public DurationOrBuilder getRetryDelayOrBuilder()

Clients should wait at least this long between retrying the same request.

.google.protobuf.Duration retry_delay = 1;

Returns
TypeDescription
DurationOrBuilder

hasRetryDelay()

public boolean hasRetryDelay()

Clients should wait at least this long between retrying the same request.

.google.protobuf.Duration retry_delay = 1;

Returns
TypeDescription
boolean

Whether the retryDelay field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RetryInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RetryInfo.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RetryInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RetryInfo.Builder
Overrides

mergeFrom(RetryInfo other)

public RetryInfo.Builder mergeFrom(RetryInfo other)
Parameter
NameDescription
otherRetryInfo
Returns
TypeDescription
RetryInfo.Builder

mergeRetryDelay(Duration value)

public RetryInfo.Builder mergeRetryDelay(Duration value)

Clients should wait at least this long between retrying the same request.

.google.protobuf.Duration retry_delay = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
RetryInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RetryInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RetryInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RetryInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RetryInfo.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RetryInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RetryInfo.Builder
Overrides

setRetryDelay(Duration value)

public RetryInfo.Builder setRetryDelay(Duration value)

Clients should wait at least this long between retrying the same request.

.google.protobuf.Duration retry_delay = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
RetryInfo.Builder

setRetryDelay(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
RetryInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RetryInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RetryInfo.Builder
Overrides