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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Type() |
Modifier and Type | Method and Description |
---|---|
Type |
clone() |
String |
getEdition()
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
List<Field> |
getFields()
The list of fields.
|
String |
getName()
The fully qualified message name.
|
List<String> |
getOneofs()
The list of types appearing in `oneof` definitions in this type.
|
List<Option> |
getOptions()
The protocol buffer options.
|
SourceContext |
getSourceContext()
The source context.
|
String |
getSyntax()
The source syntax.
|
Type |
set(String fieldName,
Object value) |
Type |
setEdition(String edition)
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
Type |
setFields(List<Field> fields)
The list of fields.
|
Type |
setName(String name)
The fully qualified message name.
|
Type |
setOneofs(List<String> oneofs)
The list of types appearing in `oneof` definitions in this type.
|
Type |
setOptions(List<Option> options)
The protocol buffer options.
|
Type |
setSourceContext(SourceContext sourceContext)
The source context.
|
Type |
setSyntax(String syntax)
The source syntax.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getEdition()
null
for nonepublic Type setEdition(String edition)
edition
- edition or null
for nonepublic Type setFields(List<Field> fields)
fields
- fields or null
for nonepublic String getName()
null
for nonepublic Type setName(String name)
name
- name or null
for nonepublic List<String> getOneofs()
null
for nonepublic Type setOneofs(List<String> oneofs)
oneofs
- oneofs or null
for nonepublic List<Option> getOptions()
null
for nonepublic Type setOptions(List<Option> options)
options
- options or null
for nonepublic SourceContext getSourceContext()
null
for nonepublic Type setSourceContext(SourceContext sourceContext)
sourceContext
- sourceContext or null
for nonepublic String getSyntax()
null
for nonepublic Type setSyntax(String syntax)
syntax
- syntax or null
for nonepublic Type set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Type clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.