packed property

  1. @TagNumber(2)
bool get packed

The packed option can be enabled for repeated primitive fields to enable a more efficient representation on the wire. Rather than repeatedly writing the tag and type for each element, the entire array is encoded as a single length-delimited blob. In proto3, only explicit setting it to false will avoid using packed encoding. This option is prohibited in Editions, but the repeated_field_encoding feature can be used to control the behavior.

Implementation

@$pb.TagNumber(2)
$core.bool get packed => $_getBF(1);
  1. @TagNumber(2)
set packed (bool v)

Implementation

@$pb.TagNumber(2)
set packed($core.bool v) { $_setBool(1, v); }