func (*MessageWithFieldOne) scanValues(columns []string) ([]interface{}, error) {
	values := make([]interface{}, len(columns))
	for i := range columns {
		switch columns[i] {
		case messagewithfieldone.FieldID, messagewithfieldone.FieldFieldOne:
			values[i] = new(sql.NullInt64)
		default:
			return nil, fmt.Errorf("unexpected column %q for type MessageWithFieldOne", columns[i])
		}
	}
	return values, nil
}
scanValues returns the types for scanning values from sql.Rows.
package ent
import (
	"fmt"
	"strings"
	"entgo.io/contrib/entproto/internal/entprototest/ent/messagewithfieldone"
	"entgo.io/ent/dialect/sql"
)
type MessageWithFieldOne struct {
	config `json:"-"`
	ID int `json:"id,omitempty"`
	FieldOne int32 `json:"field_one,omitempty"`
}