public final class RetryInfo extends com.google.protobuf.GeneratedMessageV3 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| 限定符和类型 | 类和说明 |
|---|---|
static class |
RetryInfo.Builder
Describes when the clients can retry a failed request.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 限定符和类型 | 字段和说明 |
|---|---|
static int |
RETRY_DELAY_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
static RetryInfo |
getDefaultInstance() |
RetryInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<RetryInfo> |
getParserForType() |
com.google.protobuf.Duration |
getRetryDelay()
Clients should wait at least this long between retrying the same request.
|
com.google.protobuf.DurationOrBuilder |
getRetryDelayOrBuilder()
Clients should wait at least this long between retrying the same request.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasRetryDelay()
Clients should wait at least this long between retrying the same request.
|
boolean |
isInitialized() |
static RetryInfo.Builder |
newBuilder() |
static RetryInfo.Builder |
newBuilder(RetryInfo prototype) |
RetryInfo.Builder |
newBuilderForType() |
static RetryInfo |
parseDelimitedFrom(InputStream input) |
static RetryInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryInfo |
parseFrom(byte[] data) |
static RetryInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryInfo |
parseFrom(ByteBuffer data) |
static RetryInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryInfo |
parseFrom(com.google.protobuf.ByteString data) |
static RetryInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RetryInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryInfo |
parseFrom(InputStream input) |
static RetryInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RetryInfo> |
parser() |
RetryInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoffindInitializationErrors, getInitializationErrorString, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int RETRY_DELAY_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public boolean hasRetryDelay()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;hasRetryDelay 在接口中 RetryInfoOrBuilderpublic com.google.protobuf.Duration getRetryDelay()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;getRetryDelay 在接口中 RetryInfoOrBuilderpublic com.google.protobuf.DurationOrBuilder getRetryDelayOrBuilder()
Clients should wait at least this long between retrying the same request.
.google.protobuf.Duration retry_delay = 1;getRetryDelayOrBuilder 在接口中 RetryInfoOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static RetryInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RetryInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RetryInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RetryInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RetryInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RetryInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RetryInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static RetryInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RetryInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RetryInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RetryInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RetryInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RetryInfo.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static RetryInfo.Builder newBuilder()
public static RetryInfo.Builder newBuilder(RetryInfo prototype)
public RetryInfo.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLitepublic static RetryInfo getDefaultInstance()
public static com.google.protobuf.Parser<RetryInfo> parser()
public com.google.protobuf.Parser<RetryInfo> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public RetryInfo getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.