discovery
v1
|
#include <json_schema.h>
Classes | |
class | JsonSchemaVariantMap |
Public Member Functions | |
JsonSchemaVariant (const Json::Value &storage) | |
JsonSchemaVariant (Json::Value *storage) | |
virtual | ~JsonSchemaVariant () |
const StringPiece | GetTypeName () const |
bool | has_discriminant () const |
void | clear_discriminant () |
const StringPiece | get_discriminant () const |
void | set_discriminant (const StringPiece &value) |
bool | has_map () const |
void | clear_map () |
const client::JsonCppArray< JsonSchemaVariantMap > | get_map () const |
client::JsonCppArray< JsonSchemaVariantMap > | mutable_map () |
Static Public Member Functions | |
static JsonSchemaVariant * | New () |
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.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'discriminant
' attribute.
|
inline |
Clears the 'map
' attribute.
|
inline |
Get the value of the 'discriminant
' attribute.
|
inline |
Get a reference to the value of the 'map
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_discovery_api::JsonSchemaVariant
|
inline |
Determine if the 'discriminant
' attribute was set.
discriminant
' attribute was set.
|
inline |
Determine if the 'map
' attribute was set.
map
' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'map
' property.
The map of discriminant value to schema to use for parsing..
|
static |
Creates a new default instance.
|
inline |
Change the 'discriminant
' attribute.
The name of the type discriminant property.
[in] | value | The new value. |