public final class Response
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 Control 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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Response() |
Modifier and Type | Method and Description |
---|---|
Response |
clone() |
String |
getBackendLatency()
The amount of time it takes the backend service to fully respond to a request.
|
Long |
getCode()
The HTTP response status code, such as `200` and `404`.
|
Map<String,String> |
getHeaders()
The HTTP response headers.
|
Long |
getSize()
The HTTP response size in bytes.
|
String |
getTime()
The timestamp when the `destination` service sends the last byte of the response.
|
Response |
set(String fieldName,
Object value) |
Response |
setBackendLatency(String backendLatency)
The amount of time it takes the backend service to fully respond to a request.
|
Response |
setCode(Long code)
The HTTP response status code, such as `200` and `404`.
|
Response |
setHeaders(Map<String,String> headers)
The HTTP response headers.
|
Response |
setSize(Long size)
The HTTP response size in bytes.
|
Response |
setTime(String time)
The timestamp when the `destination` service sends the last byte of the response.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getBackendLatency()
null
for nonepublic Response setBackendLatency(String backendLatency)
backendLatency
- backendLatency or null
for nonepublic Long getCode()
null
for nonepublic Response setCode(Long code)
code
- code or null
for nonepublic Map<String,String> getHeaders()
null
for nonepublic Response setHeaders(Map<String,String> headers)
headers
- headers or null
for nonepublic Long getSize()
null
for nonepublic Response setSize(Long size)
size
- size or null
for nonepublic String getTime()
null
for nonepublic Response setTime(String time)
time
- time or null
for nonepublic Response set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Response clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.