Package com.google.api
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 booleancontainsMetricCosts(String key)Metrics to update when the selected methods are called, and the associated cost applied to each metric.Map<String,Long>getMetricCosts()Deprecated.intgetMetricCostsCount()Metrics to update when the selected methods are called, and the associated cost applied to each metric.Map<String,Long>getMetricCostsMap()Metrics to update when the selected methods are called, and the associated cost applied to each metric.longgetMetricCostsOrDefault(String key, long defaultValue)Metrics to update when the selected methods are called, and the associated cost applied to each metric.longgetMetricCostsOrThrow(String key)Metrics to update when the selected methods are called, and the associated cost applied to each metric.StringgetSelector()Selects the methods to which this rule applies.com.google.protobuf.ByteStringgetSelectorBytes()Selects the methods to which this rule applies.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getSelector
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(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 Map<String,Long> getMetricCosts()
Deprecated.UsegetMetricCostsMap()instead.
-
getMetricCostsMap
Map<String,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(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(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;
-
-