public static final class MethodConfig.RetryPolicy extends com.google.protobuf.GeneratedMessageV3 implements MethodConfig.RetryPolicyOrBuilder
The retry policy for outgoing RPCs.Protobuf type
grpc.service_config.MethodConfig.RetryPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
MethodConfig.RetryPolicy.Builder
The retry policy for outgoing RPCs.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BACKOFF_MULTIPLIER_FIELD_NUMBER |
static int |
INITIAL_BACKOFF_FIELD_NUMBER |
static int |
MAX_ATTEMPTS_FIELD_NUMBER |
static int |
MAX_BACKOFF_FIELD_NUMBER |
static int |
RETRYABLE_STATUS_CODES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getBackoffMultiplier()
Required.
|
static MethodConfig.RetryPolicy |
getDefaultInstance() |
MethodConfig.RetryPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.protobuf.Parser<MethodConfig.RetryPolicy> |
getParserForType() |
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasInitialBackoff()
Exponential backoff parameters.
|
boolean |
hasMaxBackoff()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MethodConfig.RetryPolicy.Builder |
newBuilder() |
static MethodConfig.RetryPolicy.Builder |
newBuilder(MethodConfig.RetryPolicy prototype) |
MethodConfig.RetryPolicy.Builder |
newBuilderForType() |
protected MethodConfig.RetryPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MethodConfig.RetryPolicy |
parseDelimitedFrom(InputStream input) |
static MethodConfig.RetryPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.RetryPolicy |
parseFrom(byte[] data) |
static MethodConfig.RetryPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.RetryPolicy |
parseFrom(ByteBuffer data) |
static MethodConfig.RetryPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.RetryPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static MethodConfig.RetryPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.RetryPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MethodConfig.RetryPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.RetryPolicy |
parseFrom(InputStream input) |
static MethodConfig.RetryPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MethodConfig.RetryPolicy> |
parser() |
MethodConfig.RetryPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MAX_ATTEMPTS_FIELD_NUMBER
public static final int INITIAL_BACKOFF_FIELD_NUMBER
public static final int MAX_BACKOFF_FIELD_NUMBER
public static final int BACKOFF_MULTIPLIER_FIELD_NUMBER
public static final int RETRYABLE_STATUS_CODES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int 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;getMaxAttempts in interface MethodConfig.RetryPolicyOrBuilderpublic 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;hasInitialBackoff in interface MethodConfig.RetryPolicyOrBuilderpublic 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;getInitialBackoff in interface MethodConfig.RetryPolicyOrBuilderpublic 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;getInitialBackoffOrBuilder in interface MethodConfig.RetryPolicyOrBuilderpublic boolean hasMaxBackoff()
Required. Must be greater than zero.
.google.protobuf.Duration max_backoff = 3;hasMaxBackoff in interface MethodConfig.RetryPolicyOrBuilderpublic com.google.protobuf.Duration getMaxBackoff()
Required. Must be greater than zero.
.google.protobuf.Duration max_backoff = 3;getMaxBackoff in interface MethodConfig.RetryPolicyOrBuilderpublic com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder()
Required. Must be greater than zero.
.google.protobuf.Duration max_backoff = 3;getMaxBackoffOrBuilder in interface MethodConfig.RetryPolicyOrBuilderpublic float getBackoffMultiplier()
Required. Must be greater than zero.
float backoff_multiplier = 4;getBackoffMultiplier in interface MethodConfig.RetryPolicyOrBuilderpublic 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;getRetryableStatusCodesList in interface MethodConfig.RetryPolicyOrBuilderpublic 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;getRetryableStatusCodesCount in interface MethodConfig.RetryPolicyOrBuilderpublic 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;getRetryableStatusCodes in interface MethodConfig.RetryPolicyOrBuilderindex - The index of the element to return.public 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;getRetryableStatusCodesValueList in interface MethodConfig.RetryPolicyOrBuilderpublic 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;getRetryableStatusCodesValue in interface MethodConfig.RetryPolicyOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MethodConfig.RetryPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.RetryPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.RetryPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.RetryPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.RetryPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.RetryPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.RetryPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static MethodConfig.RetryPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MethodConfig.RetryPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MethodConfig.RetryPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MethodConfig.RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MethodConfig.RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MethodConfig.RetryPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MethodConfig.RetryPolicy.Builder newBuilder()
public static MethodConfig.RetryPolicy.Builder newBuilder(MethodConfig.RetryPolicy prototype)
public MethodConfig.RetryPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MethodConfig.RetryPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MethodConfig.RetryPolicy getDefaultInstance()
public static com.google.protobuf.Parser<MethodConfig.RetryPolicy> parser()
public com.google.protobuf.Parser<MethodConfig.RetryPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MethodConfig.RetryPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.