MetadataMetamodelPrimitiveValue

The PrimitiveValue structure contains value of the constant element.


Properties

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.


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.

Possible values are: BOOLEANDOUBLELONGSTRING

JSON Example

{
	"type": "BOOLEAN"
}

Feedback

Was this page helpful?