public final class JsonSchema
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 API Discovery Service. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonSchema.Annotations
Additional information about this property.
|
static class |
JsonSchema.Variant
In a variant data type, the value of one property is used to determine how to interpret the
entire entity.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
JsonSchema() |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema |
clone() |
java.lang.String |
get$ref()
A reference to another schema.
|
JsonSchema |
getAdditionalProperties()
If this is a schema for an object, this property is the schema for any additional properties
with dynamic keys on this object.
|
JsonSchema.Annotations |
getAnnotations()
Additional information about this property.
|
java.lang.String |
getDefault()
The default value of this property (if one exists).
|
java.lang.String |
getDescription()
A description of this object.
|
java.util.List<java.lang.String> |
getEnum()
Values this parameter may take (if it is an enum).
|
java.util.List<java.lang.String> |
getEnumDescriptions()
The descriptions for the enums.
|
java.lang.String |
getFormat()
An additional regular expression or key that helps constrain the value.
|
java.lang.String |
getId()
Unique identifier for this schema.
|
JsonSchema |
getItems()
If this is a schema for an array, this property is the schema for each element in the array.
|
java.lang.String |
getLocation()
Whether this parameter goes in the query or the path for REST requests.
|
java.lang.String |
getMaximum()
The maximum value of this parameter.
|
java.lang.String |
getMinimum()
The minimum value of this parameter.
|
java.lang.String |
getPattern()
The regular expression this parameter must conform to.
|
java.util.Map<java.lang.String,JsonSchema> |
getProperties()
If this is a schema for an object, list the schema for each property of this object.
|
java.lang.Boolean |
getReadOnly()
The value is read-only, generated by the service.
|
java.lang.Boolean |
getRepeated()
Whether this parameter may appear multiple times.
|
java.lang.Boolean |
getRequired()
Whether the parameter is required.
|
java.lang.String |
getType()
The value type for this schema.
|
JsonSchema.Variant |
getVariant()
In a variant data type, the value of one property is used to determine how to interpret the
entire entity.
|
JsonSchema |
set(java.lang.String fieldName,
java.lang.Object value) |
JsonSchema |
set$ref(java.lang.String $ref)
A reference to another schema.
|
JsonSchema |
setAdditionalProperties(JsonSchema additionalProperties)
If this is a schema for an object, this property is the schema for any additional properties
with dynamic keys on this object.
|
JsonSchema |
setAnnotations(JsonSchema.Annotations annotations)
Additional information about this property.
|
JsonSchema |
setDefault(java.lang.String default__)
The default value of this property (if one exists).
|
JsonSchema |
setDescription(java.lang.String description)
A description of this object.
|
JsonSchema |
setEnum(java.util.List<java.lang.String> enum__)
Values this parameter may take (if it is an enum).
|
JsonSchema |
setEnumDescriptions(java.util.List<java.lang.String> enumDescriptions)
The descriptions for the enums.
|
JsonSchema |
setFormat(java.lang.String format)
An additional regular expression or key that helps constrain the value.
|
JsonSchema |
setId(java.lang.String id)
Unique identifier for this schema.
|
JsonSchema |
setItems(JsonSchema items)
If this is a schema for an array, this property is the schema for each element in the array.
|
JsonSchema |
setLocation(java.lang.String location)
Whether this parameter goes in the query or the path for REST requests.
|
JsonSchema |
setMaximum(java.lang.String maximum)
The maximum value of this parameter.
|
JsonSchema |
setMinimum(java.lang.String minimum)
The minimum value of this parameter.
|
JsonSchema |
setPattern(java.lang.String pattern)
The regular expression this parameter must conform to.
|
JsonSchema |
setProperties(java.util.Map<java.lang.String,JsonSchema> properties)
If this is a schema for an object, list the schema for each property of this object.
|
JsonSchema |
setReadOnly(java.lang.Boolean readOnly)
The value is read-only, generated by the service.
|
JsonSchema |
setRepeated(java.lang.Boolean repeated)
Whether this parameter may appear multiple times.
|
JsonSchema |
setRequired(java.lang.Boolean required)
Whether the parameter is required.
|
JsonSchema |
setType(java.lang.String type)
The value type for this schema.
|
JsonSchema |
setVariant(JsonSchema.Variant variant)
In a variant data type, the value of one property is used to determine how to interpret the
entire entity.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String get$ref()
null for nonepublic JsonSchema set$ref(java.lang.String $ref)
$ref - $ref or null for nonepublic JsonSchema getAdditionalProperties()
null for nonepublic JsonSchema setAdditionalProperties(JsonSchema additionalProperties)
additionalProperties - additionalProperties or null for nonepublic JsonSchema.Annotations getAnnotations()
null for nonepublic JsonSchema setAnnotations(JsonSchema.Annotations annotations)
annotations - annotations or null for nonepublic java.lang.String getDefault()
null for nonepublic JsonSchema setDefault(java.lang.String default__)
default__ - default__ or null for nonepublic java.lang.String getDescription()
null for nonepublic JsonSchema setDescription(java.lang.String description)
description - description or null for nonepublic java.util.List<java.lang.String> getEnum()
null for nonepublic JsonSchema setEnum(java.util.List<java.lang.String> enum__)
enum__ - enum__ or null for nonepublic java.util.List<java.lang.String> getEnumDescriptions()
null for nonepublic JsonSchema setEnumDescriptions(java.util.List<java.lang.String> enumDescriptions)
enumDescriptions - enumDescriptions or null for nonepublic java.lang.String getFormat()
null for nonepublic JsonSchema setFormat(java.lang.String format)
format - format or null for nonepublic java.lang.String getId()
null for nonepublic JsonSchema setId(java.lang.String id)
id - id or null for nonepublic JsonSchema getItems()
null for nonepublic JsonSchema setItems(JsonSchema items)
items - items or null for nonepublic java.lang.String getLocation()
null for nonepublic JsonSchema setLocation(java.lang.String location)
location - location or null for nonepublic java.lang.String getMaximum()
null for nonepublic JsonSchema setMaximum(java.lang.String maximum)
maximum - maximum or null for nonepublic java.lang.String getMinimum()
null for nonepublic JsonSchema setMinimum(java.lang.String minimum)
minimum - minimum or null for nonepublic java.lang.String getPattern()
null for nonepublic JsonSchema setPattern(java.lang.String pattern)
pattern - pattern or null for nonepublic java.util.Map<java.lang.String,JsonSchema> getProperties()
null for nonepublic JsonSchema setProperties(java.util.Map<java.lang.String,JsonSchema> properties)
properties - properties or null for nonepublic java.lang.Boolean getReadOnly()
null for nonepublic JsonSchema setReadOnly(java.lang.Boolean readOnly)
readOnly - readOnly or null for nonepublic java.lang.Boolean getRepeated()
null for nonepublic JsonSchema setRepeated(java.lang.Boolean repeated)
repeated - repeated or null for nonepublic java.lang.Boolean getRequired()
null for nonepublic JsonSchema setRequired(java.lang.Boolean required)
required - required or null for nonepublic java.lang.String getType()
null for nonepublic JsonSchema setType(java.lang.String type)
type - type or null for nonepublic JsonSchema.Variant getVariant()
null for nonepublic JsonSchema setVariant(JsonSchema.Variant variant)
variant - variant or null for nonepublic JsonSchema set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic JsonSchema clone()
clone in class com.google.api.client.json.GenericJson