Interface ServiceConfig.RetryThrottlingPolicyOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getMaxTokens()
      The number of tokens starts at max_tokens.
      float getTokenRatio()
      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 Detail

      • 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.