func (m *GetIsConfigurationRequest) ValidateFields(paths ...string) error {
	if len(paths) > 0 {
		return fmt.Errorf("message GetIsConfigurationRequest has no fields, but paths %s were specified", paths)
	}
	return nil
}
ValidateFields checks the field values on GetIsConfigurationRequest with the
rules defined in the proto definition for this message. If any rules are
violated, an error is returned.
package ttnpb
import (
	"bytes"
	"errors"
	"fmt"
	"net"
	"net/mail"
	"net/url"
	"regexp"
	"strings"
	"time"
	"unicode/utf8"
	"github.com/gogo/protobuf/types"
)
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)
	_ = types.DynamicAny{}
)
var _identityserver_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}$")
func (m *AuthInfoResponse) ValidateFields(paths ...string) error {
	if m == nil {
		return nil
	}
	if len(paths) == 0 {
		paths = AuthInfoResponseFieldPathsNested
	}
	for name, subs := range _processPaths(append(paths[:0:0], paths...)) {
		_ = subs
		switch name {
		case "universal_rights":
			if v, ok := interface{}(m.GetUniversalRights()).(interface{ ValidateFields(...string) error }); ok {
				if err := v.ValidateFields(subs...); err != nil {
					return AuthInfoResponseValidationError{
						field:  "universal_rights",
						reason: "embedded message failed validation",
						cause:  err,
					}
				}
			}
		case "is_admin":
		case "access_method":
			if len(subs) == 0 {
				subs = []string{
					"api_key", "oauth_access_token", "user_session",
				}
			}
			for name, subs := range _processPaths(subs) {
				_ = subs
				switch name {
				case "api_key":
					w, ok := m.AccessMethod.(*AuthInfoResponse_ApiKey)
					if !ok || w == nil {
						continue
					}
					if v, ok := interface{}(m.GetApiKey()).(interface{ ValidateFields(...string) error }); ok {
						if err := v.ValidateFields(subs...); err != nil {
							return AuthInfoResponseValidationError{
								field:  "api_key",
								reason: "embedded message failed validation",
								cause:  err,
							}
						}
					}
				case "oauth_access_token":
					w, ok := m.AccessMethod.(*AuthInfoResponse_OauthAccessToken)
					if !ok || w == nil {
						continue
					}
					if v, ok := interface{}(m.GetOauthAccessToken()).(interface{ ValidateFields(...string) error }); ok {
						if err := v.ValidateFields(subs...); err != nil {
							return AuthInfoResponseValidationError{
								field:  "oauth_access_token",
								reason: "embedded message failed validation",
								cause:  err,
							}
						}
					}
				case "user_session":
					w, ok := m.AccessMethod.(*AuthInfoResponse_UserSession)
					if !ok || w == nil {
						continue
					}
					if v, ok := interface{}(m.GetUserSession()).(interface{ ValidateFields(...string) error }); ok {
						if err := v.ValidateFields(subs...); err != nil {
							return AuthInfoResponseValidationError{
								field:  "user_session",
								reason: "embedded message failed validation",
								cause:  err,
							}
						}
					}
				}
			}
		default:
			return AuthInfoResponseValidationError{
				field:  name,
				reason: "invalid field path",
			}
		}
	}
	return nil
}
type AuthInfoResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e AuthInfoResponseValidationError) Field() string { return e.field }
func (e AuthInfoResponseValidationError) Reason() string { return e.reason }
func (e AuthInfoResponseValidationError) Cause() error { return e.cause }
func (e AuthInfoResponseValidationError) Key() bool { return e.key }
func (e AuthInfoResponseValidationError) ErrorName() string { return "AuthInfoResponseValidationError" }
func (e AuthInfoResponseValidationError) Error() string {
	cause := ""
	if e.cause != nil {
		cause = fmt.Sprintf(" | caused by: %v", e.cause)
	}
	key := ""
	if e.key {
		key = "key for "
	}
	return fmt.Sprintf(
		"invalid %sAuthInfoResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = AuthInfoResponseValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = AuthInfoResponseValidationError{}