packed property

  1. @TagNumber.new(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.new(2)
set packed (bool value)

Implementation

@$pb.TagNumber(2)
set packed($core.bool value) => $_setBool(1, value);