vapi metadata metamodel: constant value
The
constant_value
structure contains the metamodel information of the constant element.Representation:
{
"list_value" : [
{
"string_value" : "string",
"boolean_value" : true,
"type" : "BOOLEAN",
"double_value" : 1.5,
"long_value" : 1
},
{
"string_value" : "string",
"boolean_value" : true,
"type" : "BOOLEAN",
"double_value" : 1.5,
"long_value" : 1
}
],
"primitive_value" : {
"string_value" : "string",
"boolean_value" : true,
"type" : "BOOLEAN",
"double_value" : 1.5,
"long_value" : 1
},
"category" : "PRIMITIVE"
}
"list_value" : [
{
"string_value" : "string",
"boolean_value" : true,
"type" : "BOOLEAN",
"double_value" : 1.5,
"long_value" : 1
},
{
"string_value" : "string",
"boolean_value" : true,
"type" : "BOOLEAN",
"double_value" : 1.5,
"long_value" : 1
}
],
"primitive_value" : {
"string_value" : "string",
"boolean_value" : true,
"type" : "BOOLEAN",
"double_value" : 1.5,
"long_value" : 1
},
"category" : "PRIMITIVE"
}
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
category | string | Category of the type of constant value. Defines enumeration values for the valid kinds of values. Value is one of: PRIMITIVE: Indicates the type of constant value is primitive. LIST: Indicates the type of constant value is a list. |
primitive_value.type | string | Type of the constant value. Defines the valid types for values in constant elements. Value is one of: BOOLEAN: Indicates the value is a boolean (true or false). DOUBLE: Indicates the value is a double (64 bit floating number). LONG: Indicates the value is a long (64 bit signed integer). STRING: Indicates the value is a string (a variable length sequence of characters). The encoding is UTF8. |
list_value[].type | string | Type of the constant value. Defines the valid types for values in constant elements. Value is one of: BOOLEAN: Indicates the value is a boolean (true or false). DOUBLE: Indicates the value is a double (64 bit floating number). LONG: Indicates the value is a long (64 bit signed integer). STRING: Indicates the value is a string (a variable length sequence of characters). The encoding is UTF8. |
Optional | ||
primitive_value | primitive_value | Primitive value of the constant element. Optional. It is only relevant when category has value PRIMITIVE. This field is optional and it is only relevant when the value of category is PRIMITIVE. |
primitive_value.boolean_value | boolean | Boolean value of the constant. Optional. It is only relevant when type has value BOOLEAN. This field is optional and it is only relevant when the value of type is BOOLEAN. |
primitive_value.double_value | double | Double value of the constant. Optional. It is only relevant when type has value DOUBLE. This field is optional and it is only relevant when the value of type is DOUBLE. |
primitive_value.long_value | long | Long value of the constant. Optional. It is only relevant when type has value LONG. This field is optional and it is only relevant when the value of type is LONG. |
primitive_value.string_value | string | String value of the constant. Optional. It is only relevant when type has value STRING. This field is optional and it is only relevant when the value of type is STRING. |
list_value | primitive_value[] | List value of the constant element. Optional. It is only relevant when category has value LIST. This field is optional and it is only relevant when the value of category is LIST. |
list_value[].boolean_value | boolean | Boolean value of the constant. Optional. It is only relevant when type has value BOOLEAN. This field is optional and it is only relevant when the value of type is BOOLEAN. |
list_value[].double_value | double | Double value of the constant. Optional. It is only relevant when type has value DOUBLE. This field is optional and it is only relevant when the value of type is DOUBLE. |
list_value[].long_value | long | Long value of the constant. Optional. It is only relevant when type has value LONG. This field is optional and it is only relevant when the value of type is LONG. |
list_value[].string_value | string | String value of the constant. Optional. It is only relevant when type has value STRING. This field is optional and it is only relevant when the value of type is STRING. |