1. Types
2. vapi
3. metadata
4. metamodel

## vapi metadata metamodel: primitive value

The `primitive_value` structure contains value of the constant element.

### Representations:

- JSON
- XML

{
"boolean_value": true,
"double_value": 1.5,
"long_value": 1,
"string_value": "string",
"type": "BOOLEAN"
}
<?xml version="1.0" ?>
<ns0:PrimitiveValue xmlns:ns0="http://vmware.com/vapi/metadata/metamodel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<long_value>1</long_value>
<double_value>1.5</double_value>
<string_value>string</string_value>
<type>BOOLEAN</type>
<boolean_value>true</boolean_value>
</ns0:PrimitiveValue>

#### 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.