Class: Pack

Pack(value)

A packer of string, number, boolean, and message values to Protobuf `Any`.

Constructor

new Pack(value)

Parameters:
Name Type Description
value *
Source:

Methods

as(typenon-null) → {Any}

Parameters:
Name Type Description
type Type a type to pack the value encompassed in this packer to
Source:
Returns:
a new any instance with this packers value
Type
Any

asBool() → {Any}

Packs the encompassed value assuming its of a boolean type.
Source:
Returns:
a new any instance with this packers value
Type
Any

asDouble() → {Any}

Packs the encompassed value assuming its of a double type.
Source:
Returns:
a new any instance with this packers value
Type
Any

asFloat() → {Any}

Packs the encompassed value assuming its of a float type.
Source:
Returns:
a new any instance with this packers value
Type
Any

asInt32() → {Any}

Packs the encompassed value assuming its of an int32 type.
Source:
Returns:
a new any instance with this packers value
Type
Any

asInt64() → {Any}

Packs the encompassed value assuming its of an int64 type.
Source:
Returns:
a new any instance with this packers value
Type
Any

asString() → {Any}

Packs the encompassed value assuming its of a string type.
Source:
Returns:
a new any instance with this packers value
Type
Any

asUInt32() → {Any}

Packs the encompassed value assuming its of an unsigned int32 type.
Source:
Returns:
a new any instance with this packers value
Type
Any

asUInt64() → {Any}

Packs the encompassed value assuming its of an unsigned int64 type.
Source:
Returns:
a new any instance with this packers value
Type
Any