public static interface ServiceConfig.RetryThrottlingPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxTokens()
The number of tokens starts at max_tokens.
|
float |
getTokenRatio()
The amount of tokens to add on each successful RPC.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getMaxTokens()
The number of tokens starts at max_tokens. The token_count will always be between 0 and max_tokens. This field is required and must be greater than zero.
uint32 max_tokens = 1;float getTokenRatio()
The amount of tokens to add on each successful RPC. Typically this will be some number between 0 and 1, e.g., 0.1. This field is required and must be greater than zero. Up to 3 decimal places are supported.
float token_ratio = 2;Copyright © 2022 Google LLC. All rights reserved.