code: func (q *Quantity) QuantityProto() *QuantityProto {
  	if q == nil {
  		return &QuantityProto{}
  	}
  	p := &QuantityProto{
  		Format: q.Format,
  	}
  	if q.Amount != nil {
  		p.Scale = int32(q.Amount.Scale())
  		p.Bigint = q.Amount.UnscaledBig().Bytes()
  	}
  	return p
  }
docs: // ProtoTime returns the Time as a new ProtoTime value.