vapi metadata metamodel: primitive value
The
primitive_value
structure contains value of the constant element.Representation:
{
"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
}
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
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 | ||
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. |
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. |
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. |
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. |