public class QuotaRequestInfo extends OperationInfo
AllocateQuotaRequest to be obtained from the HTTP layer.SCC_CALLER_IP, SCC_REFERER, SCC_SERVICE_AGENT, SCC_USER_AGENT| Constructor and Description |
|---|
QuotaRequestInfo() |
QuotaRequestInfo(OperationInfo o) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.servicecontrol.v1.AllocateQuotaRequest |
asQuotaRequest(com.google.api.client.util.Clock clock)
Returns the
AllocateQuotaRequest instance corresponding to this instance. |
java.lang.String |
getClientIp() |
java.lang.String |
getConfigId() |
java.util.Map<java.lang.String,java.lang.Long> |
getMetricCosts() |
protected java.util.Map<java.lang.String,java.lang.String> |
getSystemLabels() |
QuotaRequestInfo |
setClientIp(java.lang.String clientIp) |
QuotaRequestInfo |
setConfigId(java.lang.String configId) |
QuotaRequestInfo |
setMetricCosts(java.util.Map<java.lang.String,java.lang.Long> metricCosts) |
asOperation, getApiKey, getConsumerProjectId, getOperationConsumerId, getOperationId, getOperationName, getReferer, getServiceName, isApiKeyValid, setApiKey, setApiKeyValid, setConsumerProjectId, setOperationId, setOperationName, setReferer, setServiceNamepublic QuotaRequestInfo()
public QuotaRequestInfo(OperationInfo o)
public QuotaRequestInfo setMetricCosts(java.util.Map<java.lang.String,java.lang.Long> metricCosts)
public java.util.Map<java.lang.String,java.lang.Long> getMetricCosts()
public QuotaRequestInfo setConfigId(java.lang.String configId)
public java.lang.String getConfigId()
public java.lang.String getClientIp()
public QuotaRequestInfo setClientIp(java.lang.String clientIp)
public com.google.api.servicecontrol.v1.AllocateQuotaRequest asQuotaRequest(com.google.api.client.util.Clock clock)
AllocateQuotaRequest instance corresponding to this instance.
The service name, operation ID and operation Name must all be set
clock - is used to determine the current timestampAllocateQuotaRequestjava.lang.IllegalStateException - if any required values are not set when this is called.protected java.util.Map<java.lang.String,java.lang.String> getSystemLabels()
getSystemLabels in class OperationInfo