JavaScript representation of fields with 64 bit integral types (int64, uint64, sint64, fixed64, sfixed64).

This is a subset of google.protobuf.FieldOptions.JSType, which defines JS_NORMAL, JS_STRING, and JS_NUMBER. Protobuf-ES uses BigInt by default, but will use String if [jstype = JS_STRING] is specified.

uint64 field_a = 1; // BigInt
uint64 field_b = 2 [jstype = JS_NORMAL]; // BigInt
uint64 field_b = 2 [jstype = JS_NUMBER]; // BigInt
uint64 field_b = 2 [jstype = JS_STRING]; // String

Enumeration Members

Enumeration Members

BIGINT: 0

Use JavaScript BigInt.

STRING: 1

Use JavaScript String.

Field option [jstype = JS_STRING].

Generated using TypeDoc