GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Constructor and Description |
---|
MockGoogleProtoClientRequest(AbstractGoogleProtoClient client,
String method,
String uriTemplate,
com.google.protobuf.MessageLite message,
Class<T> responseClass) |
Modifier and Type | Method and Description |
---|---|
MockGoogleProtoClient |
getAbstractGoogleClient()
Returns the Google client.
|
MockGoogleProtoClientRequest<T> |
setDisableGZipContent(boolean disableGZipContent)
Sets whether to disable GZip compression of HTTP content.
|
MockGoogleProtoClientRequest<T> |
setRequestHeaders(HttpHeaders headers)
Sets the HTTP headers used for the Google client request.
|
getMessage, queue, set
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, newExceptionOnError, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
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 MockGoogleProtoClientRequest(AbstractGoogleProtoClient client, String method, String uriTemplate, com.google.protobuf.MessageLite message, Class<T> responseClass)
client
- Google clientmethod
- HTTP MethoduriTemplate
- URI template for the path relative to the base URL. If it starts with a "/"
the base path from the base URL will be stripped out. The URI template can also be a full
URL. URI template expansion is done using UriTemplate.expand(String, String, Object,
boolean)
message
- message to serialize or null
for noneresponseClass
- response class to parse intopublic MockGoogleProtoClient getAbstractGoogleClient()
AbstractGoogleClientRequest
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
getAbstractGoogleClient
in class AbstractGoogleProtoClientRequest<T>
public MockGoogleProtoClientRequest<T> setDisableGZipContent(boolean disableGZipContent)
AbstractGoogleClientRequest
By default it is false
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setDisableGZipContent
in class AbstractGoogleProtoClientRequest<T>
public MockGoogleProtoClientRequest<T> setRequestHeaders(HttpHeaders headers)
AbstractGoogleClientRequest
These headers are set on the request after AbstractGoogleClientRequest.buildHttpRequest()
is called, this means
that HttpRequestInitializer.initialize(com.google.api.client.http.HttpRequest)
is called first.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setRequestHeaders
in class AbstractGoogleProtoClientRequest<T>
Copyright © 2010–2021 Google. All rights reserved.