public final class Type
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 |
---|
Type() |
Modifier and Type | Method and Description |
---|---|
Type |
clone() |
java.util.List<Field> |
getFields()
The list of fields.
|
java.lang.String |
getName()
The fully qualified message name.
|
java.util.List<java.lang.String> |
getOneofs()
The list of types appearing in `oneof` definitions in this type.
|
java.util.List<Option> |
getOptions()
The protocol buffer options.
|
SourceContext |
getSourceContext()
The source context.
|
java.lang.String |
getSyntax()
The source syntax.
|
Type |
set(java.lang.String fieldName,
java.lang.Object value) |
Type |
setFields(java.util.List<Field> fields)
The list of fields.
|
Type |
setName(java.lang.String name)
The fully qualified message name.
|
Type |
setOneofs(java.util.List<java.lang.String> oneofs)
The list of types appearing in `oneof` definitions in this type.
|
Type |
setOptions(java.util.List<Option> options)
The protocol buffer options.
|
Type |
setSourceContext(SourceContext sourceContext)
The source context.
|
Type |
setSyntax(java.lang.String syntax)
The source syntax.
|
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<Field> getFields()
null
for nonepublic Type setFields(java.util.List<Field> fields)
fields
- fields or null
for nonepublic java.lang.String getName()
null
for nonepublic Type setName(java.lang.String name)
name
- name or null
for nonepublic java.util.List<java.lang.String> getOneofs()
null
for nonepublic Type setOneofs(java.util.List<java.lang.String> oneofs)
oneofs
- oneofs or null
for nonepublic java.util.List<Option> getOptions()
null
for nonepublic Type setOptions(java.util.List<Option> options)
options
- options or null
for nonepublic SourceContext getSourceContext()
null
for nonepublic Type setSourceContext(SourceContext sourceContext)
sourceContext
- sourceContext or null
for nonepublic java.lang.String getSyntax()
null
for nonepublic Type setSyntax(java.lang.String syntax)
syntax
- syntax or null
for nonepublic Type set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Type clone()
clone
in class com.google.api.client.json.GenericJson