public final class RestResource 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RestResource() |
| Modifier and Type | Method and Description |
|---|---|
RestResource |
clone() |
Map<String,RestMethod> |
getMethods()
Methods on this resource.
|
Map<String,RestResource> |
getResources()
Sub-resources on this resource.
|
RestResource |
set(String fieldName,
Object value) |
RestResource |
setMethods(Map<String,RestMethod> methods)
Methods on this resource.
|
RestResource |
setResources(Map<String,RestResource> resources)
Sub-resources on this resource.
|
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 Map<String,RestMethod> getMethods()
null for nonepublic RestResource setMethods(Map<String,RestMethod> methods)
methods - methods or null for nonepublic Map<String,RestResource> getResources()
null for nonepublic RestResource setResources(Map<String,RestResource> resources)
resources - resources or null for nonepublic RestResource set(String fieldName, Object value)
set in class GenericJsonpublic RestResource clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.