Metadata_Metamodel_PrimitiveValue

Metadata_Metamodel_PrimitiveValue
Metadata_Metamodel_PrimitiveValue

The PrimitiveValue structure contains value of the constant element.

JSON Example
{
    "type": "string",
    "boolean_value": false,
    "double_value": "number",
    "long_value": 0,
    "string_value": "string"
}
type
Required

The PrimitiveValue.Type enumerated type defines the valid types for values in constant elements.
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.

boolean
boolean_value
Optional

Boolean value of the constant. This field is optional and it is only relevant when the value of PrimitiveValue.type is BOOLEAN.

number As double
double_value
Optional

Double value of the constant. This field is optional and it is only relevant when the value of PrimitiveValue.type is DOUBLE.

integer As int64
long_value
Optional

Long value of the constant. This field is optional and it is only relevant when the value of PrimitiveValue.type is LONG.

string
string_value
Optional

String value of the constant. This field is optional and it is only relevant when the value of PrimitiveValue.type is STRING.