public final class QuotaLimit
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Networking API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
QuotaLimit() |
| Modifier and Type | Method and Description |
|---|---|
QuotaLimit |
clone() |
Long |
getDefaultLimit()
Default number of tokens that can be consumed during the specified duration.
|
String |
getDescription()
Optional.
|
String |
getDisplayName()
User-visible display name for this limit.
|
String |
getDuration()
Duration of this limit in textual notation.
|
Long |
getFreeTier()
Free tier value displayed in the Developers Console for this limit.
|
Long |
getMaxLimit()
Maximum number of tokens that can be consumed during the specified duration.
|
String |
getMetric()
The name of the metric this quota limit applies to.
|
String |
getName()
Name of the quota limit.
|
String |
getUnit()
Specify the unit of the quota limit.
|
Map<String,Long> |
getValues()
Tiered limit values.
|
QuotaLimit |
set(String fieldName,
Object value) |
QuotaLimit |
setDefaultLimit(Long defaultLimit)
Default number of tokens that can be consumed during the specified duration.
|
QuotaLimit |
setDescription(String description)
Optional.
|
QuotaLimit |
setDisplayName(String displayName)
User-visible display name for this limit.
|
QuotaLimit |
setDuration(String duration)
Duration of this limit in textual notation.
|
QuotaLimit |
setFreeTier(Long freeTier)
Free tier value displayed in the Developers Console for this limit.
|
QuotaLimit |
setMaxLimit(Long maxLimit)
Maximum number of tokens that can be consumed during the specified duration.
|
QuotaLimit |
setMetric(String metric)
The name of the metric this quota limit applies to.
|
QuotaLimit |
setName(String name)
Name of the quota limit.
|
QuotaLimit |
setUnit(String unit)
Specify the unit of the quota limit.
|
QuotaLimit |
setValues(Map<String,Long> values)
Tiered limit values.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Long getDefaultLimit()
null for nonepublic QuotaLimit setDefaultLimit(Long defaultLimit)
defaultLimit - defaultLimit or null for nonepublic String getDescription()
null for nonepublic QuotaLimit setDescription(String description)
description - description or null for nonepublic String getDisplayName()
null for nonepublic QuotaLimit setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getDuration()
null for nonepublic QuotaLimit setDuration(String duration)
duration - duration or null for nonepublic Long getFreeTier()
null for nonepublic QuotaLimit setFreeTier(Long freeTier)
freeTier - freeTier or null for nonepublic Long getMaxLimit()
null for nonepublic QuotaLimit setMaxLimit(Long maxLimit)
maxLimit - maxLimit or null for nonepublic String getMetric()
null for nonepublic QuotaLimit setMetric(String metric)
metric - metric or null for nonepublic String getName()
null for nonepublic QuotaLimit setName(String name)
name - name or null for nonepublic String getUnit()
null for nonepublic QuotaLimit setUnit(String unit)
unit - unit or null for nonepublic Map<String,Long> getValues()
null for nonepublic QuotaLimit setValues(Map<String,Long> values)
values - values or null for nonepublic QuotaLimit set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic QuotaLimit clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.