maximum property

  1. @TagNumber(4)
Value get maximum

Sets the field to the maximum of its current value and the given value.

This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.

Implementation

@$pb.TagNumber(4)
$0.Value get maximum => $_getN(3);
  1. @TagNumber(4)
set maximum (Value v)

Implementation

@$pb.TagNumber(4)
set maximum($0.Value v) {
  setField(4, v);
}