public class Discovery.Apis.List extends DiscoveryRequest<DirectoryList>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
List()
Retrieve the list of APIs supported at this endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getName()
Only include APIs with the given name.
|
Boolean |
getPreferred()
Return only the preferred version of an API.
|
boolean |
isPreferred()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
Discovery.Apis.List |
set(String parameterName,
Object value) |
Discovery.Apis.List |
setAlt(String alt)
Data format for the response.
|
Discovery.Apis.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Discovery.Apis.List |
setKey(String key)
API key.
|
Discovery.Apis.List |
setName(String name)
Only include APIs with the given name.
|
Discovery.Apis.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Discovery.Apis.List |
setPreferred(Boolean preferred)
Return only the preferred version of an API.
|
Discovery.Apis.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Discovery.Apis.List |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Discovery.Apis.List |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected List()
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Discovery.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<DirectoryList>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<DirectoryList>IOExceptionpublic Discovery.Apis.List setAlt(String alt)
DiscoveryRequestsetAlt in class DiscoveryRequest<DirectoryList>public Discovery.Apis.List setFields(String fields)
DiscoveryRequestsetFields in class DiscoveryRequest<DirectoryList>public Discovery.Apis.List setKey(String key)
DiscoveryRequestsetKey in class DiscoveryRequest<DirectoryList>public Discovery.Apis.List setOauthToken(String oauthToken)
DiscoveryRequestsetOauthToken in class DiscoveryRequest<DirectoryList>public Discovery.Apis.List setPrettyPrint(Boolean prettyPrint)
DiscoveryRequestsetPrettyPrint in class DiscoveryRequest<DirectoryList>public Discovery.Apis.List setQuotaUser(String quotaUser)
DiscoveryRequestsetQuotaUser in class DiscoveryRequest<DirectoryList>public Discovery.Apis.List setUserIp(String userIp)
DiscoveryRequestsetUserIp in class DiscoveryRequest<DirectoryList>public String getName()
public Discovery.Apis.List setName(String name)
public Boolean getPreferred()
public Discovery.Apis.List setPreferred(Boolean preferred)
public boolean isPreferred()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Return only the preferred version of an API.
public Discovery.Apis.List set(String parameterName, Object value)
set in class DiscoveryRequest<DirectoryList>Copyright © 2011–2022 Google. All rights reserved.