Interface MetricRuleOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    MetricRule, MetricRule.Builder

    public interface MetricRuleOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsMetricCosts​(java.lang.String key)
      Metrics to update when the selected methods are called, and the associated cost applied to each metric.
      java.util.Map<java.lang.String,​java.lang.Long> getMetricCosts()
      Deprecated.
      int getMetricCostsCount()
      Metrics to update when the selected methods are called, and the associated cost applied to each metric.
      java.util.Map<java.lang.String,​java.lang.Long> getMetricCostsMap()
      Metrics to update when the selected methods are called, and the associated cost applied to each metric.
      long getMetricCostsOrDefault​(java.lang.String key, long defaultValue)
      Metrics to update when the selected methods are called, and the associated cost applied to each metric.
      long getMetricCostsOrThrow​(java.lang.String key)
      Metrics to update when the selected methods are called, and the associated cost applied to each metric.
      java.lang.String getSelector()
      Selects the methods to which this rule applies.
      com.google.protobuf.ByteString getSelectorBytes()
      Selects the methods to which this rule applies.
      • 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

      • getSelector

        java.lang.String getSelector()
         Selects the methods to which this rule applies.
        
         Refer to [selector][google.api.DocumentationRule.selector] for syntax
         details.
         
        string selector = 1;
        Returns:
        The selector.
      • getSelectorBytes

        com.google.protobuf.ByteString getSelectorBytes()
         Selects the methods to which this rule applies.
        
         Refer to [selector][google.api.DocumentationRule.selector] for syntax
         details.
         
        string selector = 1;
        Returns:
        The bytes for selector.
      • getMetricCostsCount

        int getMetricCostsCount()
         Metrics to update when the selected methods are called, and the associated
         cost applied to each metric.
        
         The key of the map is the metric name, and the values are the amount
         increased for the metric against which the quota limits are defined.
         The value must not be negative.
         
        map<string, int64> metric_costs = 2;
      • containsMetricCosts

        boolean containsMetricCosts​(java.lang.String key)
         Metrics to update when the selected methods are called, and the associated
         cost applied to each metric.
        
         The key of the map is the metric name, and the values are the amount
         increased for the metric against which the quota limits are defined.
         The value must not be negative.
         
        map<string, int64> metric_costs = 2;
      • getMetricCosts

        @Deprecated
        java.util.Map<java.lang.String,​java.lang.Long> getMetricCosts()
        Deprecated.
        Use getMetricCostsMap() instead.
      • getMetricCostsMap

        java.util.Map<java.lang.String,​java.lang.Long> getMetricCostsMap()
         Metrics to update when the selected methods are called, and the associated
         cost applied to each metric.
        
         The key of the map is the metric name, and the values are the amount
         increased for the metric against which the quota limits are defined.
         The value must not be negative.
         
        map<string, int64> metric_costs = 2;
      • getMetricCostsOrDefault

        long getMetricCostsOrDefault​(java.lang.String key,
                                     long defaultValue)
         Metrics to update when the selected methods are called, and the associated
         cost applied to each metric.
        
         The key of the map is the metric name, and the values are the amount
         increased for the metric against which the quota limits are defined.
         The value must not be negative.
         
        map<string, int64> metric_costs = 2;
      • getMetricCostsOrThrow

        long getMetricCostsOrThrow​(java.lang.String key)
         Metrics to update when the selected methods are called, and the associated
         cost applied to each metric.
        
         The key of the map is the metric name, and the values are the amount
         increased for the metric against which the quota limits are defined.
         The value must not be negative.
         
        map<string, int64> metric_costs = 2;