public class ReportRequestInfo extends OperationInfo
ReportRequest to be obtained from the HTTP layer.
Also provides methods for converting that info into protocol buffer messages used in the caching
and transport layers.| Modifier and Type | Class and Description |
|---|---|
static class |
ReportRequestInfo.ErrorCause
Enumerates the reported causes of errors.
|
static class |
ReportRequestInfo.ReportedPlatforms
ReportedPlatform enumerates the platforms that may be reported.
|
static class |
ReportRequestInfo.ReportedProtocols
ReportedProtocols enumerates the protocols that may be reported.
|
SCC_CALLER_IP, SCC_REFERER, SCC_SERVICE_AGENT, SCC_USER_AGENT| Constructor and Description |
|---|
ReportRequestInfo()
Default constructor,
Does not initialize the fields of the base
OperationInfo. |
ReportRequestInfo(OperationInfo o)
A copy constructor that initializes the
OperationInfo fields from a base instance. |
asOperation, getApiKey, getConsumerProjectId, getOperationConsumerId, getOperationId, getOperationName, getReferer, getServiceName, getSystemLabels, isApiKeyValid, setApiKey, setApiKeyValid, setConsumerProjectId, setOperationId, setOperationName, setReferer, setServiceNamepublic ReportRequestInfo()
OperationInfo.public ReportRequestInfo(OperationInfo o)
OperationInfo fields from a base instance.o - an {code OperationInfo}public com.google.api.servicecontrol.v1.ReportRequest asReportRequest(ReportingRule rules, com.google.api.client.util.Clock clock)
LogEntry from the instance.rules - ReportingRulesclock - ClockReportRequestpublic com.google.api.servicecontrol.v1.LogEntry.Builder asLogEntry(java.lang.String name,
long timestampMillis)
LogEntry from the instance.name - the name of logtimestampMillis - the timestamp of the log in millisecondsLogEntry.Builderpublic java.lang.String getApiName()
public ReportRequestInfo setApiName(java.lang.String apiName)
public java.lang.String getApiMethod()
public ReportRequestInfo setApiMethod(java.lang.String apiMethod)
public java.lang.String getApiVersion()
public ReportRequestInfo setApiVersion(java.lang.String apiVersion)
public java.lang.String getAuthIssuer()
public ReportRequestInfo setAuthIssuer(java.lang.String authIssuer)
public java.lang.String getAuthAudience()
public ReportRequestInfo setAuthAudience(java.lang.String authAudience)
public long getBackendTimeMillis()
public ReportRequestInfo setBackendTimeMillis(long backendTimeMillis)
public ReportRequestInfo.ErrorCause getErrorCause()
public ReportRequestInfo setErrorCause(ReportRequestInfo.ErrorCause errorCause)
public java.lang.String getLocation()
public ReportRequestInfo setLocation(java.lang.String location)
public java.lang.String getLogMessage()
public ReportRequestInfo setLogMessage(java.lang.String logMessage)
public java.lang.String getMethod()
public ReportRequestInfo setMethod(java.lang.String method)
public long getOverheadTimeMillis()
public ReportRequestInfo setOverheadTimeMillis(long overheadTimeMillis)
public ReportRequestInfo.ReportedPlatforms getPlatform()
public ReportRequestInfo setPlatform(ReportRequestInfo.ReportedPlatforms platform)
public java.lang.String getProducerProjectId()
public ReportRequestInfo setProducerProjectId(java.lang.String producerProjectId)
public ReportRequestInfo.ReportedProtocols getProtocol()
public ReportRequestInfo setProtocol(ReportRequestInfo.ReportedProtocols protocol)
public long getRequestSize()
public ReportRequestInfo setRequestSize(long requestSize)
public long getRequestTimeMillis()
public ReportRequestInfo setRequestTimeMillis(long requestTimeMillis)
public int getResponseCode()
public ReportRequestInfo setResponseCode(int responseCode)
public long getResponseSize()
public ReportRequestInfo setResponseSize(long responseSize)
public java.lang.String getUrl()
public ReportRequestInfo setUrl(java.lang.String url)