| Package | Description |
|---|---|
| com.google.api.services.discovery.model |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema |
JsonSchema.clone() |
JsonSchema |
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 |
JsonSchema.getItems()
If this is a schema for an array, this property is the schema for each element in the array.
|
JsonSchema |
JsonSchema.set(String fieldName,
Object value) |
JsonSchema |
JsonSchema.set$ref(String $ref)
A reference to another schema.
|
JsonSchema |
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 |
JsonSchema.setAnnotations(JsonSchema.Annotations annotations)
Additional information about this property.
|
JsonSchema |
JsonSchema.setDefault(String default__)
The default value of this property (if one exists).
|
JsonSchema |
JsonSchema.setDescription(String description)
A description of this object.
|
JsonSchema |
JsonSchema.setEnum(List<String> enum__)
Values this parameter may take (if it is an enum).
|
JsonSchema |
JsonSchema.setEnumDescriptions(List<String> enumDescriptions)
The descriptions for the enums.
|
JsonSchema |
JsonSchema.setFormat(String format)
An additional regular expression or key that helps constrain the value.
|
JsonSchema |
JsonSchema.setId(String id)
Unique identifier for this schema.
|
JsonSchema |
JsonSchema.setItems(JsonSchema items)
If this is a schema for an array, this property is the schema for each element in the array.
|
JsonSchema |
JsonSchema.setLocation(String location)
Whether this parameter goes in the query or the path for REST requests.
|
JsonSchema |
JsonSchema.setMaximum(String maximum)
The maximum value of this parameter.
|
JsonSchema |
JsonSchema.setMinimum(String minimum)
The minimum value of this parameter.
|
JsonSchema |
JsonSchema.setPattern(String pattern)
The regular expression this parameter must conform to.
|
JsonSchema |
JsonSchema.setProperties(Map<String,JsonSchema> properties)
If this is a schema for an object, list the schema for each property of this object.
|
JsonSchema |
JsonSchema.setReadOnly(Boolean readOnly)
The value is read-only, generated by the service.
|
JsonSchema |
JsonSchema.setRepeated(Boolean repeated)
Whether this parameter may appear multiple times.
|
JsonSchema |
JsonSchema.setRequired(Boolean required)
Whether the parameter is required.
|
JsonSchema |
JsonSchema.setType(String type)
The value type for this schema.
|
JsonSchema |
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.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,JsonSchema> |
RestDescription.getParameters()
Common parameters that apply across all apis.
|
Map<String,JsonSchema> |
RestMethod.getParameters()
Details for all parameters in this method.
|
Map<String,JsonSchema> |
JsonSchema.getProperties()
If this is a schema for an object, list the schema for each property of this object.
|
Map<String,JsonSchema> |
RestDescription.getSchemas()
The schemas for this API.
|
| Modifier and Type | Method and Description |
|---|---|
JsonSchema |
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 |
JsonSchema.setItems(JsonSchema items)
If this is a schema for an array, this property is the schema for each element in the array.
|
| Modifier and Type | Method and Description |
|---|---|
RestDescription |
RestDescription.setParameters(Map<String,JsonSchema> parameters)
Common parameters that apply across all apis.
|
RestMethod |
RestMethod.setParameters(Map<String,JsonSchema> parameters)
Details for all parameters in this method.
|
JsonSchema |
JsonSchema.setProperties(Map<String,JsonSchema> properties)
If this is a schema for an object, list the schema for each property of this object.
|
RestDescription |
RestDescription.setSchemas(Map<String,JsonSchema> schemas)
The schemas for this API.
|
Copyright © 2011–2022 Google. All rights reserved.