Interface ServiceConfig.RetryThrottlingPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ServiceConfig.RetryThrottlingPolicy, ServiceConfig.RetryThrottlingPolicy.Builder
Enclosing class:
ServiceConfig

public static interface ServiceConfig.RetryThrottlingPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The number of tokens starts at max_tokens.
    float
    The amount of tokens to add on each successful RPC.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getMaxTokens

      int 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;
      Returns:
      The maxTokens.
    • getTokenRatio

      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;
      Returns:
      The tokenRatio.