The Scalar class represents a scalar value that can have different data types.
Parameters
The type parameter specifying the data type of the scalar value. It contains types
corresponding to ProtoBuf types that ProtoBuf considers to be "Scalar Value Types", even though
some of them arguably do not conform to other definitions of what a scalar is. Source:
https://developers.google.com/protocol-buffers/docs/overview#scalar