public final class RestMethod 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 |
RestMethod.MediaUpload
Media upload parameters.
|
static class |
RestMethod.Request
The schema for the request.
|
static class |
RestMethod.Response
The schema for the response.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RestMethod() |
| Modifier and Type | Method and Description |
|---|---|
RestMethod |
clone() |
String |
getDescription()
Description of this method.
|
Boolean |
getEtagRequired()
Whether this method requires an ETag to be specified.
|
String |
getFlatPath()
The URI path of this REST method in (RFC 6570) format without level 2 features ({+var}).
|
String |
getHttpMethod()
HTTP method used by this method.
|
String |
getId()
A unique ID for this method.
|
RestMethod.MediaUpload |
getMediaUpload()
Media upload parameters.
|
List<String> |
getParameterOrder()
Ordered list of required parameters, serves as a hint to clients on how to structure their
method signatures.
|
Map<String,JsonSchema> |
getParameters()
Details for all parameters in this method.
|
String |
getPath()
The URI path of this REST method.
|
RestMethod.Request |
getRequest()
The schema for the request.
|
RestMethod.Response |
getResponse()
The schema for the response.
|
List<String> |
getScopes()
OAuth 2.0 scopes applicable to this method.
|
Boolean |
getSupportsMediaDownload()
Whether this method supports media downloads.
|
Boolean |
getSupportsMediaUpload()
Whether this method supports media uploads.
|
Boolean |
getSupportsSubscription()
Whether this method supports subscriptions.
|
Boolean |
getUseMediaDownloadService()
Indicates that downloads from this method should use the download service URL (i.e.
|
RestMethod |
set(String fieldName,
Object value) |
RestMethod |
setDescription(String description)
Description of this method.
|
RestMethod |
setEtagRequired(Boolean etagRequired)
Whether this method requires an ETag to be specified.
|
RestMethod |
setFlatPath(String flatPath)
The URI path of this REST method in (RFC 6570) format without level 2 features ({+var}).
|
RestMethod |
setHttpMethod(String httpMethod)
HTTP method used by this method.
|
RestMethod |
setId(String id)
A unique ID for this method.
|
RestMethod |
setMediaUpload(RestMethod.MediaUpload mediaUpload)
Media upload parameters.
|
RestMethod |
setParameterOrder(List<String> parameterOrder)
Ordered list of required parameters, serves as a hint to clients on how to structure their
method signatures.
|
RestMethod |
setParameters(Map<String,JsonSchema> parameters)
Details for all parameters in this method.
|
RestMethod |
setPath(String path)
The URI path of this REST method.
|
RestMethod |
setRequest(RestMethod.Request request)
The schema for the request.
|
RestMethod |
setResponse(RestMethod.Response response)
The schema for the response.
|
RestMethod |
setScopes(List<String> scopes)
OAuth 2.0 scopes applicable to this method.
|
RestMethod |
setSupportsMediaDownload(Boolean supportsMediaDownload)
Whether this method supports media downloads.
|
RestMethod |
setSupportsMediaUpload(Boolean supportsMediaUpload)
Whether this method supports media uploads.
|
RestMethod |
setSupportsSubscription(Boolean supportsSubscription)
Whether this method supports subscriptions.
|
RestMethod |
setUseMediaDownloadService(Boolean useMediaDownloadService)
Indicates that downloads from this method should use the download service URL (i.e.
|
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 String getDescription()
null for nonepublic RestMethod setDescription(String description)
description - description or null for nonepublic Boolean getEtagRequired()
null for nonepublic RestMethod setEtagRequired(Boolean etagRequired)
etagRequired - etagRequired or null for nonepublic String getFlatPath()
null for nonepublic RestMethod setFlatPath(String flatPath)
flatPath - flatPath or null for nonepublic String getHttpMethod()
null for nonepublic RestMethod setHttpMethod(String httpMethod)
httpMethod - httpMethod or null for nonepublic String getId()
null for nonepublic RestMethod setId(String id)
id - id or null for nonepublic RestMethod.MediaUpload getMediaUpload()
null for nonepublic RestMethod setMediaUpload(RestMethod.MediaUpload mediaUpload)
mediaUpload - mediaUpload or null for nonepublic List<String> getParameterOrder()
null for nonepublic RestMethod setParameterOrder(List<String> parameterOrder)
parameterOrder - parameterOrder or null for nonepublic Map<String,JsonSchema> getParameters()
null for nonepublic RestMethod setParameters(Map<String,JsonSchema> parameters)
parameters - parameters or null for nonepublic String getPath()
null for nonepublic RestMethod setPath(String path)
path - path or null for nonepublic RestMethod.Request getRequest()
null for nonepublic RestMethod setRequest(RestMethod.Request request)
request - request or null for nonepublic RestMethod.Response getResponse()
null for nonepublic RestMethod setResponse(RestMethod.Response response)
response - response or null for nonepublic List<String> getScopes()
null for nonepublic RestMethod setScopes(List<String> scopes)
scopes - scopes or null for nonepublic Boolean getSupportsMediaDownload()
null for nonepublic RestMethod setSupportsMediaDownload(Boolean supportsMediaDownload)
supportsMediaDownload - supportsMediaDownload or null for nonepublic Boolean getSupportsMediaUpload()
null for nonepublic RestMethod setSupportsMediaUpload(Boolean supportsMediaUpload)
supportsMediaUpload - supportsMediaUpload or null for nonepublic Boolean getSupportsSubscription()
null for nonepublic RestMethod setSupportsSubscription(Boolean supportsSubscription)
supportsSubscription - supportsSubscription or null for nonepublic Boolean getUseMediaDownloadService()
null for nonepublic RestMethod setUseMediaDownloadService(Boolean useMediaDownloadService)
useMediaDownloadService - useMediaDownloadService or null for nonepublic RestMethod set(String fieldName, Object value)
set in class GenericJsonpublic RestMethod clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.