public final class ObjectDefinition
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 Cloud Search 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 |
---|
ObjectDefinition() |
Modifier and Type | Method and Description |
---|---|
ObjectDefinition |
clone() |
java.lang.String |
getName()
Name for the object, which then defines its type.
|
ObjectOptions |
getOptions()
The optional object-specific options.
|
java.util.List<PropertyDefinition> |
getPropertyDefinitions()
The property definitions for the object.
|
ObjectDefinition |
set(java.lang.String fieldName,
java.lang.Object value) |
ObjectDefinition |
setName(java.lang.String name)
Name for the object, which then defines its type.
|
ObjectDefinition |
setOptions(ObjectOptions options)
The optional object-specific options.
|
ObjectDefinition |
setPropertyDefinitions(java.util.List<PropertyDefinition> propertyDefinitions)
The property definitions for the object.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getName()
null
for nonepublic ObjectDefinition setName(java.lang.String name)
name
- name or null
for nonepublic ObjectOptions getOptions()
null
for nonepublic ObjectDefinition setOptions(ObjectOptions options)
options
- options or null
for nonepublic java.util.List<PropertyDefinition> getPropertyDefinitions()
null
for nonepublic ObjectDefinition setPropertyDefinitions(java.util.List<PropertyDefinition> propertyDefinitions)
propertyDefinitions
- propertyDefinitions or null
for nonepublic ObjectDefinition set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ObjectDefinition clone()
clone
in class com.google.api.client.json.GenericJson