public final class Request
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Request() |
| Modifier and Type | Method and Description |
|---|---|
Request |
clone() |
Auth |
getAuth()
The request authentication.
|
Map<String,String> |
getHeaders()
The HTTP request headers.
|
String |
getHost()
The HTTP request `Host` header value.
|
String |
getId()
The unique ID for a request, which can be propagated to downstream systems.
|
String |
getMethod()
The HTTP request method, such as `GET`, `POST`.
|
String |
getOrigin()
The values from Origin header from the HTTP request, such as
"https://console.cloud.google.com".
|
String |
getPath()
The HTTP URL path, excluding the query parameters.
|
String |
getProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c",
"webrtc", "tcp", "udp", "quic".
|
String |
getQuery()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first
line of the HTTP request.
|
String |
getReason()
A special parameter for request reason.
|
String |
getScheme()
The HTTP URL scheme, such as `http` and `https`.
|
Long |
getSize()
The HTTP request size in bytes.
|
String |
getTime()
The timestamp when the `destination` service receives the last byte of the request.
|
Request |
set(String fieldName,
Object value) |
Request |
setAuth(Auth auth)
The request authentication.
|
Request |
setHeaders(Map<String,String> headers)
The HTTP request headers.
|
Request |
setHost(String host)
The HTTP request `Host` header value.
|
Request |
setId(String id)
The unique ID for a request, which can be propagated to downstream systems.
|
Request |
setMethod(String method)
The HTTP request method, such as `GET`, `POST`.
|
Request |
setOrigin(String origin)
The values from Origin header from the HTTP request, such as
"https://console.cloud.google.com".
|
Request |
setPath(String path)
The HTTP URL path, excluding the query parameters.
|
Request |
setProtocol(String protocol)
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c",
"webrtc", "tcp", "udp", "quic".
|
Request |
setQuery(String query)
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first
line of the HTTP request.
|
Request |
setReason(String reason)
A special parameter for request reason.
|
Request |
setScheme(String scheme)
The HTTP URL scheme, such as `http` and `https`.
|
Request |
setSize(Long size)
The HTTP request size in bytes.
|
Request |
setTime(String time)
The timestamp when the `destination` service receives the last byte of the request.
|
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 Auth getAuth()
null for nonepublic Request setAuth(Auth auth)
auth - auth or null for nonepublic Map<String,String> getHeaders()
null for nonepublic Request setHeaders(Map<String,String> headers)
headers - headers or null for nonepublic String getHost()
null for nonepublic Request setHost(String host)
host - host or null for nonepublic String getId()
null for nonepublic Request setId(String id)
id - id or null for nonepublic String getMethod()
null for nonepublic Request setMethod(String method)
method - method or null for nonepublic String getOrigin()
null for nonepublic Request setOrigin(String origin)
origin - origin or null for nonepublic String getPath()
null for nonepublic Request setPath(String path)
path - path or null for nonepublic String getProtocol()
null for nonepublic Request setProtocol(String protocol)
protocol - protocol or null for nonepublic String getQuery()
null for nonepublic Request setQuery(String query)
query - query or null for nonepublic String getReason()
null for nonepublic Request setReason(String reason)
reason - reason or null for nonepublic String getScheme()
null for nonepublic Request setScheme(String scheme)
scheme - scheme or null for nonepublic Long getSize()
null for nonepublic Request setSize(Long size)
size - size or null for nonepublic String getTime()
null for nonepublic Request setTime(String time)
time - time or null for nonepublic Request set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Request clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.