public final class RestDescription extends 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 API Discovery Service. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
RestDescription.Auth
Authentication information.
|
static class |
RestDescription.Icons
Links to 16x16 and 32x32 icons representing the API.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RestDescription() |
| Modifier and Type | Method and Description |
|---|---|
RestDescription |
clone() |
RestDescription.Auth |
getAuth()
Authentication information.
|
String |
getBasePath()
[DEPRECATED] The base path for REST requests.
|
String |
getBaseUrl()
[DEPRECATED] The base URL for REST requests.
|
String |
getBatchPath()
The path for REST batch requests.
|
String |
getCanonicalName()
Indicates how the API name should be capitalized and split into various parts.
|
String |
getDescription()
The description of this API.
|
String |
getDiscoveryVersion()
Indicate the version of the Discovery API used to generate this doc.
|
String |
getDocumentationLink()
A link to human readable documentation for the API.
|
String |
getEtag()
The ETag for this response.
|
Boolean |
getExponentialBackoffDefault()
Enable exponential backoff for suitable methods in the generated clients.
|
List<String> |
getFeatures()
A list of supported features for this API.
|
RestDescription.Icons |
getIcons()
Links to 16x16 and 32x32 icons representing the API.
|
String |
getId()
The ID of this API.
|
String |
getKind()
The kind for this response.
|
List<String> |
getLabels()
Labels for the status of this API, such as labs or deprecated.
|
Map<String,RestMethod> |
getMethods()
API-level methods for this API.
|
String |
getName()
The name of this API.
|
String |
getOwnerDomain()
The domain of the owner of this API.
|
String |
getOwnerName()
The name of the owner of this API.
|
String |
getPackagePath()
The package of the owner of this API.
|
Map<String,JsonSchema> |
getParameters()
Common parameters that apply across all apis.
|
String |
getProtocol()
The protocol described by this document.
|
Map<String,RestResource> |
getResources()
The resources in this API.
|
String |
getRevision()
The version of this API.
|
String |
getRootUrl()
The root URL under which all API services live.
|
Map<String,JsonSchema> |
getSchemas()
The schemas for this API.
|
String |
getServicePath()
The base path for all REST requests.
|
String |
getTitle()
The title of this API.
|
String |
getVersion()
The version of this API.
|
Boolean |
getVersionModule() |
RestDescription |
set(String fieldName,
Object value) |
RestDescription |
setAuth(RestDescription.Auth auth)
Authentication information.
|
RestDescription |
setBasePath(String basePath)
[DEPRECATED] The base path for REST requests.
|
RestDescription |
setBaseUrl(String baseUrl)
[DEPRECATED] The base URL for REST requests.
|
RestDescription |
setBatchPath(String batchPath)
The path for REST batch requests.
|
RestDescription |
setCanonicalName(String canonicalName)
Indicates how the API name should be capitalized and split into various parts.
|
RestDescription |
setDescription(String description)
The description of this API.
|
RestDescription |
setDiscoveryVersion(String discoveryVersion)
Indicate the version of the Discovery API used to generate this doc.
|
RestDescription |
setDocumentationLink(String documentationLink)
A link to human readable documentation for the API.
|
RestDescription |
setEtag(String etag)
The ETag for this response.
|
RestDescription |
setExponentialBackoffDefault(Boolean exponentialBackoffDefault)
Enable exponential backoff for suitable methods in the generated clients.
|
RestDescription |
setFeatures(List<String> features)
A list of supported features for this API.
|
RestDescription |
setIcons(RestDescription.Icons icons)
Links to 16x16 and 32x32 icons representing the API.
|
RestDescription |
setId(String id)
The ID of this API.
|
RestDescription |
setKind(String kind)
The kind for this response.
|
RestDescription |
setLabels(List<String> labels)
Labels for the status of this API, such as labs or deprecated.
|
RestDescription |
setMethods(Map<String,RestMethod> methods)
API-level methods for this API.
|
RestDescription |
setName(String name)
The name of this API.
|
RestDescription |
setOwnerDomain(String ownerDomain)
The domain of the owner of this API.
|
RestDescription |
setOwnerName(String ownerName)
The name of the owner of this API.
|
RestDescription |
setPackagePath(String packagePath)
The package of the owner of this API.
|
RestDescription |
setParameters(Map<String,JsonSchema> parameters)
Common parameters that apply across all apis.
|
RestDescription |
setProtocol(String protocol)
The protocol described by this document.
|
RestDescription |
setResources(Map<String,RestResource> resources)
The resources in this API.
|
RestDescription |
setRevision(String revision)
The version of this API.
|
RestDescription |
setRootUrl(String rootUrl)
The root URL under which all API services live.
|
RestDescription |
setSchemas(Map<String,JsonSchema> schemas)
The schemas for this API.
|
RestDescription |
setServicePath(String servicePath)
The base path for all REST requests.
|
RestDescription |
setTitle(String title)
The title of this API.
|
RestDescription |
setVersion(String version)
The version of this API.
|
RestDescription |
setVersionModule(Boolean versionModule) |
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 RestDescription.Auth getAuth()
null for nonepublic RestDescription setAuth(RestDescription.Auth auth)
auth - auth or null for nonepublic String getBasePath()
null for nonepublic RestDescription setBasePath(String basePath)
basePath - basePath or null for nonepublic String getBaseUrl()
null for nonepublic RestDescription setBaseUrl(String baseUrl)
baseUrl - baseUrl or null for nonepublic String getBatchPath()
null for nonepublic RestDescription setBatchPath(String batchPath)
batchPath - batchPath or null for nonepublic String getCanonicalName()
null for nonepublic RestDescription setCanonicalName(String canonicalName)
canonicalName - canonicalName or null for nonepublic String getDescription()
null for nonepublic RestDescription setDescription(String description)
description - description or null for nonepublic String getDiscoveryVersion()
null for nonepublic RestDescription setDiscoveryVersion(String discoveryVersion)
discoveryVersion - discoveryVersion or null for nonepublic String getDocumentationLink()
null for nonepublic RestDescription setDocumentationLink(String documentationLink)
documentationLink - documentationLink or null for nonepublic String getEtag()
null for nonepublic RestDescription setEtag(String etag)
etag - etag or null for nonepublic Boolean getExponentialBackoffDefault()
null for nonepublic RestDescription setExponentialBackoffDefault(Boolean exponentialBackoffDefault)
exponentialBackoffDefault - exponentialBackoffDefault or null for nonepublic List<String> getFeatures()
null for nonepublic RestDescription setFeatures(List<String> features)
features - features or null for nonepublic RestDescription.Icons getIcons()
null for nonepublic RestDescription setIcons(RestDescription.Icons icons)
icons - icons or null for nonepublic String getId()
null for nonepublic RestDescription setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic RestDescription setKind(String kind)
kind - kind or null for nonepublic List<String> getLabels()
null for nonepublic RestDescription setLabels(List<String> labels)
labels - labels or null for nonepublic Map<String,RestMethod> getMethods()
null for nonepublic RestDescription setMethods(Map<String,RestMethod> methods)
methods - methods or null for nonepublic String getName()
null for nonepublic RestDescription setName(String name)
name - name or null for nonepublic String getOwnerDomain()
null for nonepublic RestDescription setOwnerDomain(String ownerDomain)
ownerDomain - ownerDomain or null for nonepublic String getOwnerName()
null for nonepublic RestDescription setOwnerName(String ownerName)
ownerName - ownerName or null for nonepublic String getPackagePath()
null for nonepublic RestDescription setPackagePath(String packagePath)
packagePath - packagePath or null for nonepublic Map<String,JsonSchema> getParameters()
null for nonepublic RestDescription setParameters(Map<String,JsonSchema> parameters)
parameters - parameters or null for nonepublic String getProtocol()
null for nonepublic RestDescription setProtocol(String protocol)
protocol - protocol or null for nonepublic Map<String,RestResource> getResources()
null for nonepublic RestDescription setResources(Map<String,RestResource> resources)
resources - resources or null for nonepublic String getRevision()
null for nonepublic RestDescription setRevision(String revision)
revision - revision or null for nonepublic String getRootUrl()
null for nonepublic RestDescription setRootUrl(String rootUrl)
rootUrl - rootUrl or null for nonepublic Map<String,JsonSchema> getSchemas()
null for nonepublic RestDescription setSchemas(Map<String,JsonSchema> schemas)
schemas - schemas or null for nonepublic String getServicePath()
null for nonepublic RestDescription setServicePath(String servicePath)
servicePath - servicePath or null for nonepublic String getTitle()
null for nonepublic RestDescription setTitle(String title)
title - title or null for nonepublic String getVersion()
null for nonepublic RestDescription setVersion(String version)
version - version or null for nonepublic Boolean getVersionModule()
null for nonepublic RestDescription setVersionModule(Boolean versionModule)
versionModule - versionModule or null for nonepublic RestDescription set(String fieldName, Object value)
set in class GenericJsonpublic RestDescription clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.