public static interface MethodConfig.RetryPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
float |
getBackoffMultiplier()
Required.
|
com.google.protobuf.Duration |
getInitialBackoff()
Exponential backoff parameters.
|
com.google.protobuf.DurationOrBuilder |
getInitialBackoffOrBuilder()
Exponential backoff parameters.
|
int |
getMaxAttempts()
The maximum number of RPC attempts, including the original attempt.
|
com.google.protobuf.Duration |
getMaxBackoff()
Required.
|
com.google.protobuf.DurationOrBuilder |
getMaxBackoffOrBuilder()
Required.
|
com.google.rpc.Code |
getRetryableStatusCodes(int index)
The set of status codes which may be retried.
|
int |
getRetryableStatusCodesCount()
The set of status codes which may be retried.
|
List<com.google.rpc.Code> |
getRetryableStatusCodesList()
The set of status codes which may be retried.
|
int |
getRetryableStatusCodesValue(int index)
The set of status codes which may be retried.
|
List<Integer> |
getRetryableStatusCodesValueList()
The set of status codes which may be retried.
|
boolean |
hasInitialBackoff()
Exponential backoff parameters.
|
boolean |
hasMaxBackoff()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getMaxAttempts()
The maximum number of RPC attempts, including the original attempt. This field is required and must be greater than 1. Any value greater than 5 will be treated as if it were 5.
uint32 max_attempts = 1;boolean hasInitialBackoff()
Exponential backoff parameters. The initial retry attempt will occur at random(0, initial_backoff). In general, the nth attempt will occur at random(0, min(initial_backoff*backoff_multiplier**(n-1), max_backoff)). Required. Must be greater than zero.
.google.protobuf.Duration initial_backoff = 2;com.google.protobuf.Duration getInitialBackoff()
Exponential backoff parameters. The initial retry attempt will occur at random(0, initial_backoff). In general, the nth attempt will occur at random(0, min(initial_backoff*backoff_multiplier**(n-1), max_backoff)). Required. Must be greater than zero.
.google.protobuf.Duration initial_backoff = 2;com.google.protobuf.DurationOrBuilder getInitialBackoffOrBuilder()
Exponential backoff parameters. The initial retry attempt will occur at random(0, initial_backoff). In general, the nth attempt will occur at random(0, min(initial_backoff*backoff_multiplier**(n-1), max_backoff)). Required. Must be greater than zero.
.google.protobuf.Duration initial_backoff = 2;boolean hasMaxBackoff()
Required. Must be greater than zero.
.google.protobuf.Duration max_backoff = 3;com.google.protobuf.Duration getMaxBackoff()
Required. Must be greater than zero.
.google.protobuf.Duration max_backoff = 3;com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder()
Required. Must be greater than zero.
.google.protobuf.Duration max_backoff = 3;float getBackoffMultiplier()
Required. Must be greater than zero.
float backoff_multiplier = 4;List<com.google.rpc.Code> getRetryableStatusCodesList()
The set of status codes which may be retried. This field is required and must be non-empty.
repeated .google.rpc.Code retryable_status_codes = 5;int getRetryableStatusCodesCount()
The set of status codes which may be retried. This field is required and must be non-empty.
repeated .google.rpc.Code retryable_status_codes = 5;com.google.rpc.Code getRetryableStatusCodes(int index)
The set of status codes which may be retried. This field is required and must be non-empty.
repeated .google.rpc.Code retryable_status_codes = 5;index - The index of the element to return.List<Integer> getRetryableStatusCodesValueList()
The set of status codes which may be retried. This field is required and must be non-empty.
repeated .google.rpc.Code retryable_status_codes = 5;int getRetryableStatusCodesValue(int index)
The set of status codes which may be retried. This field is required and must be non-empty.
repeated .google.rpc.Code retryable_status_codes = 5;index - The index of the value to return.Copyright © 2022 Google LLC. All rights reserved.