#include <json_schema.h>
◆ JsonSchema() [1/2]
google_discovery_api::JsonSchema::JsonSchema |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ JsonSchema() [2/2]
google_discovery_api::JsonSchema::JsonSchema |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~JsonSchema()
google_discovery_api::JsonSchema::~JsonSchema |
( |
| ) |
|
|
virtual |
◆ clear_additional_properties()
void google_discovery_api::JsonSchema::clear_additional_properties |
( |
| ) |
|
|
inline |
Clears the 'additionalProperties
' attribute.
◆ clear_annotations()
void google_discovery_api::JsonSchema::clear_annotations |
( |
| ) |
|
|
inline |
Clears the 'annotations
' attribute.
◆ clear_default()
void google_discovery_api::JsonSchema::clear_default |
( |
| ) |
|
|
inline |
Clears the 'default
' attribute.
◆ clear_description()
void google_discovery_api::JsonSchema::clear_description |
( |
| ) |
|
|
inline |
Clears the 'description
' attribute.
◆ clear_enum()
void google_discovery_api::JsonSchema::clear_enum |
( |
| ) |
|
|
inline |
Clears the 'enum
' attribute.
◆ clear_enum_descriptions()
void google_discovery_api::JsonSchema::clear_enum_descriptions |
( |
| ) |
|
|
inline |
Clears the 'enumDescriptions
' attribute.
◆ clear_format()
void google_discovery_api::JsonSchema::clear_format |
( |
| ) |
|
|
inline |
Clears the 'format
' attribute.
◆ clear_id()
void google_discovery_api::JsonSchema::clear_id |
( |
| ) |
|
|
inline |
Clears the 'id
' attribute.
◆ clear_items()
void google_discovery_api::JsonSchema::clear_items |
( |
| ) |
|
|
inline |
Clears the 'items
' attribute.
◆ clear_location()
void google_discovery_api::JsonSchema::clear_location |
( |
| ) |
|
|
inline |
Clears the 'location
' attribute.
◆ clear_maximum()
void google_discovery_api::JsonSchema::clear_maximum |
( |
| ) |
|
|
inline |
Clears the 'maximum
' attribute.
◆ clear_minimum()
void google_discovery_api::JsonSchema::clear_minimum |
( |
| ) |
|
|
inline |
Clears the 'minimum
' attribute.
◆ clear_pattern()
void google_discovery_api::JsonSchema::clear_pattern |
( |
| ) |
|
|
inline |
Clears the 'pattern
' attribute.
◆ clear_properties()
void google_discovery_api::JsonSchema::clear_properties |
( |
| ) |
|
|
inline |
Clears the 'properties
' attribute.
◆ clear_read_only()
void google_discovery_api::JsonSchema::clear_read_only |
( |
| ) |
|
|
inline |
Clears the 'readOnly
' attribute.
◆ clear_ref()
void google_discovery_api::JsonSchema::clear_ref |
( |
| ) |
|
|
inline |
Clears the '$ref
' attribute.
◆ clear_repeated()
void google_discovery_api::JsonSchema::clear_repeated |
( |
| ) |
|
|
inline |
Clears the 'repeated
' attribute.
◆ clear_required()
void google_discovery_api::JsonSchema::clear_required |
( |
| ) |
|
|
inline |
Clears the 'required
' attribute.
◆ clear_type()
void google_discovery_api::JsonSchema::clear_type |
( |
| ) |
|
|
inline |
Clears the 'type
' attribute.
◆ clear_variant()
void google_discovery_api::JsonSchema::clear_variant |
( |
| ) |
|
|
inline |
Clears the 'variant
' attribute.
◆ get_additional_properties()
const JsonSchema google_discovery_api::JsonSchema::get_additional_properties |
( |
| ) |
const |
Get a reference to the value of the 'additionalProperties
' attribute.
◆ get_annotations()
Get a reference to the value of the 'annotations
' attribute.
◆ get_default()
const StringPiece google_discovery_api::JsonSchema::get_default |
( |
| ) |
const |
|
inline |
Get the value of the 'default
' attribute.
◆ get_description()
const StringPiece google_discovery_api::JsonSchema::get_description |
( |
| ) |
const |
|
inline |
Get the value of the 'description
' attribute.
◆ get_enum()
const client::JsonCppArray<string > google_discovery_api::JsonSchema::get_enum |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'enum
' attribute.
◆ get_enum_descriptions()
const client::JsonCppArray<string > google_discovery_api::JsonSchema::get_enum_descriptions |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'enumDescriptions
' attribute.
◆ get_format()
const StringPiece google_discovery_api::JsonSchema::get_format |
( |
| ) |
const |
|
inline |
Get the value of the 'format
' attribute.
◆ get_id()
const StringPiece google_discovery_api::JsonSchema::get_id |
( |
| ) |
const |
|
inline |
Get the value of the 'id
' attribute.
◆ get_items()
const JsonSchema google_discovery_api::JsonSchema::get_items |
( |
| ) |
const |
Get a reference to the value of the 'items
' attribute.
◆ get_location()
const StringPiece google_discovery_api::JsonSchema::get_location |
( |
| ) |
const |
|
inline |
Get the value of the 'location
' attribute.
◆ get_maximum()
const StringPiece google_discovery_api::JsonSchema::get_maximum |
( |
| ) |
const |
|
inline |
Get the value of the 'maximum
' attribute.
◆ get_minimum()
const StringPiece google_discovery_api::JsonSchema::get_minimum |
( |
| ) |
const |
|
inline |
Get the value of the 'minimum
' attribute.
◆ get_pattern()
const StringPiece google_discovery_api::JsonSchema::get_pattern |
( |
| ) |
const |
|
inline |
Get the value of the 'pattern
' attribute.
◆ get_properties()
const client::JsonCppAssociativeArray<JsonSchema > google_discovery_api::JsonSchema::get_properties |
( |
| ) |
const |
Get a reference to the value of the 'properties
' attribute.
◆ get_read_only()
bool google_discovery_api::JsonSchema::get_read_only |
( |
| ) |
const |
|
inline |
Get the value of the 'readOnly
' attribute.
◆ get_ref()
const StringPiece google_discovery_api::JsonSchema::get_ref |
( |
| ) |
const |
|
inline |
Get the value of the '$ref
' attribute.
◆ get_repeated()
bool google_discovery_api::JsonSchema::get_repeated |
( |
| ) |
const |
|
inline |
Get the value of the 'repeated
' attribute.
◆ get_required()
bool google_discovery_api::JsonSchema::get_required |
( |
| ) |
const |
|
inline |
Get the value of the 'required
' attribute.
◆ get_type()
const StringPiece google_discovery_api::JsonSchema::get_type |
( |
| ) |
const |
|
inline |
Get the value of the 'type
' attribute.
◆ get_variant()
Get a reference to the value of the 'variant
' attribute.
◆ GetTypeName()
const StringPiece google_discovery_api::JsonSchema::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_additional_properties()
bool google_discovery_api::JsonSchema::has_additional_properties |
( |
| ) |
const |
|
inline |
Determine if the 'additionalProperties
' attribute was set.
- Returns
- true if the '
additionalProperties
' attribute was set.
◆ has_annotations()
bool google_discovery_api::JsonSchema::has_annotations |
( |
| ) |
const |
|
inline |
Determine if the 'annotations
' attribute was set.
- Returns
- true if the '
annotations
' attribute was set.
◆ has_default()
bool google_discovery_api::JsonSchema::has_default |
( |
| ) |
const |
|
inline |
Determine if the 'default
' attribute was set.
- Returns
- true if the '
default
' attribute was set.
◆ has_description()
bool google_discovery_api::JsonSchema::has_description |
( |
| ) |
const |
|
inline |
Determine if the 'description
' attribute was set.
- Returns
- true if the '
description
' attribute was set.
◆ has_enum()
bool google_discovery_api::JsonSchema::has_enum |
( |
| ) |
const |
|
inline |
Determine if the 'enum
' attribute was set.
- Returns
- true if the '
enum
' attribute was set.
◆ has_enum_descriptions()
bool google_discovery_api::JsonSchema::has_enum_descriptions |
( |
| ) |
const |
|
inline |
Determine if the 'enumDescriptions
' attribute was set.
- Returns
- true if the '
enumDescriptions
' attribute was set.
◆ has_format()
bool google_discovery_api::JsonSchema::has_format |
( |
| ) |
const |
|
inline |
Determine if the 'format
' attribute was set.
- Returns
- true if the '
format
' attribute was set.
◆ has_id()
bool google_discovery_api::JsonSchema::has_id |
( |
| ) |
const |
|
inline |
Determine if the 'id
' attribute was set.
- Returns
- true if the '
id
' attribute was set.
◆ has_items()
bool google_discovery_api::JsonSchema::has_items |
( |
| ) |
const |
|
inline |
Determine if the 'items
' attribute was set.
- Returns
- true if the '
items
' attribute was set.
◆ has_location()
bool google_discovery_api::JsonSchema::has_location |
( |
| ) |
const |
|
inline |
Determine if the 'location
' attribute was set.
- Returns
- true if the '
location
' attribute was set.
◆ has_maximum()
bool google_discovery_api::JsonSchema::has_maximum |
( |
| ) |
const |
|
inline |
Determine if the 'maximum
' attribute was set.
- Returns
- true if the '
maximum
' attribute was set.
◆ has_minimum()
bool google_discovery_api::JsonSchema::has_minimum |
( |
| ) |
const |
|
inline |
Determine if the 'minimum
' attribute was set.
- Returns
- true if the '
minimum
' attribute was set.
◆ has_pattern()
bool google_discovery_api::JsonSchema::has_pattern |
( |
| ) |
const |
|
inline |
Determine if the 'pattern
' attribute was set.
- Returns
- true if the '
pattern
' attribute was set.
◆ has_properties()
bool google_discovery_api::JsonSchema::has_properties |
( |
| ) |
const |
|
inline |
Determine if the 'properties
' attribute was set.
- Returns
- true if the '
properties
' attribute was set.
◆ has_read_only()
bool google_discovery_api::JsonSchema::has_read_only |
( |
| ) |
const |
|
inline |
Determine if the 'readOnly
' attribute was set.
- Returns
- true if the '
readOnly
' attribute was set.
◆ has_ref()
bool google_discovery_api::JsonSchema::has_ref |
( |
| ) |
const |
|
inline |
Determine if the '$ref
' attribute was set.
- Returns
- true if the '
$ref
' attribute was set.
◆ has_repeated()
bool google_discovery_api::JsonSchema::has_repeated |
( |
| ) |
const |
|
inline |
Determine if the 'repeated
' attribute was set.
- Returns
- true if the '
repeated
' attribute was set.
◆ has_required()
bool google_discovery_api::JsonSchema::has_required |
( |
| ) |
const |
|
inline |
Determine if the 'required
' attribute was set.
- Returns
- true if the '
required
' attribute was set.
◆ has_type()
bool google_discovery_api::JsonSchema::has_type |
( |
| ) |
const |
|
inline |
Determine if the 'type
' attribute was set.
- Returns
- true if the '
type
' attribute was set.
◆ has_variant()
bool google_discovery_api::JsonSchema::has_variant |
( |
| ) |
const |
|
inline |
Determine if the 'variant
' attribute was set.
- Returns
- true if the '
variant
' attribute was set.
◆ mutable_additionalProperties()
JsonSchema google_discovery_api::JsonSchema::mutable_additionalProperties |
( |
| ) |
|
Gets a reference to a mutable value of the 'additionalProperties
' property.
If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_annotations()
Gets a reference to a mutable value of the 'annotations
' property.
Additional information about this property.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_enum()
client::JsonCppArray<string > google_discovery_api::JsonSchema::mutable_enum |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'enum
' property.
Values this parameter may take (if it is an enum).
- Returns
- The result can be modified to change the attribute value.
◆ mutable_enumDescriptions()
client::JsonCppArray<string > google_discovery_api::JsonSchema::mutable_enumDescriptions |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'enumDescriptions
' property.
The descriptions for the enums. Each position maps to the corresponding value in the "enum" array.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_items()
JsonSchema google_discovery_api::JsonSchema::mutable_items |
( |
| ) |
|
Gets a reference to a mutable value of the 'items
' property.
If this is a schema for an array, this property is the schema for each element in the array.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_properties()
client::JsonCppAssociativeArray<JsonSchema > google_discovery_api::JsonSchema::mutable_properties |
( |
| ) |
|
Gets a reference to a mutable value of the 'properties
' property.
If this is a schema for an object, list the schema for each property of this object.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_variant()
Gets a reference to a mutable value of the 'variant
' property.
In a variant data type, the value of one property is used to determine how to interpret the entire entity. Its value must exist in a map of descriminant values to schema names.
- Returns
- The result can be modified to change the attribute value.
◆ New()
JsonSchema * google_discovery_api::JsonSchema::New |
( |
| ) |
|
|
static |
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_default()
void google_discovery_api::JsonSchema::set_default |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'default
' attribute.
The default value of this property (if one exists).
- Parameters
-
◆ set_description()
void google_discovery_api::JsonSchema::set_description |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'description
' attribute.
A description of this object.
- Parameters
-
◆ set_format()
void google_discovery_api::JsonSchema::set_format |
( |
const StringPiece & |
value | ) |
|
|
inline |
◆ set_id()
void google_discovery_api::JsonSchema::set_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'id
' attribute.
Unique identifier for this schema.
- Parameters
-
◆ set_location()
void google_discovery_api::JsonSchema::set_location |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'location
' attribute.
Whether this parameter goes in the query or the path for REST requests.
- Parameters
-
◆ set_maximum()
void google_discovery_api::JsonSchema::set_maximum |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'maximum
' attribute.
The maximum value of this parameter.
- Parameters
-
◆ set_minimum()
void google_discovery_api::JsonSchema::set_minimum |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'minimum
' attribute.
The minimum value of this parameter.
- Parameters
-
◆ set_pattern()
void google_discovery_api::JsonSchema::set_pattern |
( |
const StringPiece & |
value | ) |
|
|
inline |
◆ set_read_only()
void google_discovery_api::JsonSchema::set_read_only |
( |
bool |
value | ) |
|
|
inline |
Change the 'readOnly
' attribute.
The value is read-only, generated by the service. The value cannot be modified by the client. If the value is included in a POST, PUT, or PATCH request, it is ignored by the service.
- Parameters
-
◆ set_ref()
void google_discovery_api::JsonSchema::set_ref |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the '$ref
' attribute.
A reference to another schema. The value of this property is the "id" of another schema.
- Parameters
-
◆ set_repeated()
void google_discovery_api::JsonSchema::set_repeated |
( |
bool |
value | ) |
|
|
inline |
Change the 'repeated
' attribute.
Whether this parameter may appear multiple times.
- Parameters
-
◆ set_required()
void google_discovery_api::JsonSchema::set_required |
( |
bool |
value | ) |
|
|
inline |
Change the 'required
' attribute.
Whether the parameter is required.
- Parameters
-
◆ set_type()
void google_discovery_api::JsonSchema::set_type |
( |
const StringPiece & |
value | ) |
|
|
inline |
The documentation for this class was generated from the following files:
- google/discovery_api/json_schema.h
- google/discovery_api/json_schema.cc