function writeMetric(prefix, proto, node) {
  if (!(proto)) {
    return;
  }
  if (proto.hasValue()) {
    $(prefix + '_value', node).text(proto.getValue());
  }
  if (proto.getUnits) {
    // proto.ord.Percentage doesn't have units.
    setSelector($(prefix + '_units', node), proto.getUnits());
  }
  if (proto.hasPrecision()) {
    $(prefix + '_precision', node).text(proto.getPrecision());
  }
}
/**
 * Packs a (value, units, precision) tuple into form elements.
 * @param {string} prefix The prefix for element attributes.
 * @param {!jspb.Message} proto A protocol buffer with `value`, `precision`,
 *     and`units` fields.
 * @param {!Node} node The target node for the tuple.
 */
Packs a (value, units, precision) tuple into form elements.
@param {string} prefix The prefix for element attributes.
Packs a ( value units precision ) tuple into form elements . @param { string } prefix The prefix for element attributes .
function writeMetric(prefix, proto, node) {
  if (!(proto)) {
    return;
  }
  if (proto.hasValue()) {
    $(prefix + '_value', node).text(proto.getValue());
  }
  if (proto.getUnits) {
    setSelector($(prefix + '_units', node), proto.getUnits());
  }
  if (proto.hasPrecision()) {
    $(prefix + '_precision', node).text(proto.getPrecision());
  }
}
function writeMetric ( prefix , proto , node ) { if ( ! ( proto ) ) { return ; } if ( proto . hasValue ( ) ) { $ ( prefix + '_value' , node ) . text ( proto . getValue ( ) ) ; } if ( proto . getUnits ) { setSelector ( $ ( prefix + '_units' , node ) , proto . getUnits ( ) ) ; } if ( proto . hasPrecision ( ) ) { $ ( prefix + '_precision' , node ) . text ( proto . getPrecision ( ) ) ; } }
Packs a (value, units, precision) tuple into form elements.
Packs a ( value units precision ) tuple into form elements .
// proto.ord.Percentage doesn't have units.