func (m *Var) Validate() error {
	if m == nil {
		return nil
	}
	if l := len(m.GetVars()); l < 2 || l > 4 {
		return VarValidationError{
			field:  "Vars",
			reason: "value must contain between 2 and 4 items, inclusive",
		}
	}
	return nil
}
Validate checks the field values on Var with the rules defined in the proto
definition for this message. If any rules are violated, an error is returned.
package apisix
import (
	"bytes"
	"errors"
	"fmt"
	"net"
	"net/mail"
	"net/url"
	"regexp"
	"strings"
	"time"
	"unicode/utf8"
	"github.com/golang/protobuf/ptypes"
)
var (
	_ = bytes.MinRead
	_ = errors.New("")
	_ = fmt.Print
	_ = utf8.UTFMax
	_ = (*regexp.Regexp)(nil)
	_ = (*strings.Reader)(nil)
	_ = net.IPv4len
	_ = time.Duration(0)
	_ = (*url.URL)(nil)
	_ = (*mail.Address)(nil)
	_ = ptypes.DynamicAny{}
)
var _base_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")