public final class Api
extends com.google.api.client.json.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 Service Consumer Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Api() |
Modifier and Type | Method and Description |
---|---|
Api |
clone() |
java.util.List<Method> |
getMethods()
The methods of this interface, in unspecified order.
|
java.util.List<Mixin> |
getMixins()
Included interfaces.
|
java.lang.String |
getName()
The fully qualified name of this interface, including package name followed by the interface's
simple name.
|
java.util.List<Option> |
getOptions()
Any metadata attached to the interface.
|
SourceContext |
getSourceContext()
Source context for the protocol buffer service represented by this message.
|
java.lang.String |
getSyntax()
The source syntax of the service.
|
java.lang.String |
getVersion()
A version string for this interface.
|
Api |
set(java.lang.String fieldName,
java.lang.Object value) |
Api |
setMethods(java.util.List<Method> methods)
The methods of this interface, in unspecified order.
|
Api |
setMixins(java.util.List<Mixin> mixins)
Included interfaces.
|
Api |
setName(java.lang.String name)
The fully qualified name of this interface, including package name followed by the interface's
simple name.
|
Api |
setOptions(java.util.List<Option> options)
Any metadata attached to the interface.
|
Api |
setSourceContext(SourceContext sourceContext)
Source context for the protocol buffer service represented by this message.
|
Api |
setSyntax(java.lang.String syntax)
The source syntax of the service.
|
Api |
setVersion(java.lang.String version)
A version string for this interface.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<Method> getMethods()
null
for nonepublic Api setMethods(java.util.List<Method> methods)
methods
- methods or null
for nonepublic java.util.List<Mixin> getMixins()
null
for nonepublic Api setMixins(java.util.List<Mixin> mixins)
mixins
- mixins or null
for nonepublic java.lang.String getName()
null
for nonepublic Api setName(java.lang.String name)
name
- name or null
for nonepublic java.util.List<Option> getOptions()
null
for nonepublic Api setOptions(java.util.List<Option> options)
options
- options or null
for nonepublic SourceContext getSourceContext()
null
for nonepublic Api setSourceContext(SourceContext sourceContext)
sourceContext
- sourceContext or null
for nonepublic java.lang.String getSyntax()
null
for nonepublic Api setSyntax(java.lang.String syntax)
syntax
- syntax or null
for nonepublic java.lang.String getVersion()
null
for nonepublic Api setVersion(java.lang.String version)
version
- version or null
for nonepublic Api set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Api clone()
clone
in class com.google.api.client.json.GenericJson