func (e PlaygroundEvaluateResponseValidationError) ErrorName() string {
	return "PlaygroundEvaluateResponseValidationError"
}
ErrorName returns error name.
package responsev1
import (
	"bytes"
	"errors"
	"fmt"
	"net"
	"net/mail"
	"net/url"
	"regexp"
	"strings"
	"time"
	"unicode/utf8"
	"google.golang.org/protobuf/types/known/anypb"
	effectv1 "github.com/cerbos/cerbos/api/genpb/cerbos/effect/v1"
)
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)
	_ = anypb.Any{}
	_ = effectv1.Effect(0)
)
func (m *CheckResourceSetResponse) Validate() error {
	if m == nil {
		return nil
	}
	for key, val := range m.GetResourceInstances() {
		_ = val
		if v, ok := interface{}(val).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return CheckResourceSetResponseValidationError{
					field:  fmt.Sprintf("ResourceInstances[%v]", key),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	if v, ok := interface{}(m.GetMeta()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return CheckResourceSetResponseValidationError{
				field:  "Meta",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	return nil
}
type CheckResourceSetResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e CheckResourceSetResponseValidationError) Field() string { return e.field }
func (e CheckResourceSetResponseValidationError) Reason() string { return e.reason }
func (e CheckResourceSetResponseValidationError) Cause() error { return e.cause }
func (e CheckResourceSetResponseValidationError) Key() bool { return e.key }
func (e CheckResourceSetResponseValidationError) ErrorName() string {
	return "CheckResourceSetResponseValidationError"
}
func (e CheckResourceSetResponseValidationError) 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 %sCheckResourceSetResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = CheckResourceSetResponseValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = CheckResourceSetResponseValidationError{}
func (m *CheckResourceBatchResponse) Validate() error {
	if m == nil {
		return nil
	}
	for idx, item := range m.GetResults() {
		_, _ = idx, item
		if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return CheckResourceBatchResponseValidationError{
					field:  fmt.Sprintf("Results[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type CheckResourceBatchResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e CheckResourceBatchResponseValidationError) Field() string { return e.field }
func (e CheckResourceBatchResponseValidationError) Reason() string { return e.reason }
func (e CheckResourceBatchResponseValidationError) Cause() error { return e.cause }
func (e CheckResourceBatchResponseValidationError) Key() bool { return e.key }
func (e CheckResourceBatchResponseValidationError) ErrorName() string {
	return "CheckResourceBatchResponseValidationError"
}
func (e CheckResourceBatchResponseValidationError) 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 %sCheckResourceBatchResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = CheckResourceBatchResponseValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = CheckResourceBatchResponseValidationError{}
func (m *PlaygroundFailure) Validate() error {
	if m == nil {
		return nil
	}
	for idx, item := range m.GetErrors() {
		_, _ = idx, item
		if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return PlaygroundFailureValidationError{
					field:  fmt.Sprintf("Errors[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type PlaygroundFailureValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e PlaygroundFailureValidationError) Field() string { return e.field }
func (e PlaygroundFailureValidationError) Reason() string { return e.reason }
func (e PlaygroundFailureValidationError) Cause() error { return e.cause }
func (e PlaygroundFailureValidationError) Key() bool { return e.key }
func (e PlaygroundFailureValidationError) ErrorName() string {
	return "PlaygroundFailureValidationError"
}
func (e PlaygroundFailureValidationError) 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 %sPlaygroundFailure.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = PlaygroundFailureValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = PlaygroundFailureValidationError{}
func (m *PlaygroundValidateResponse) Validate() error {
	if m == nil {
		return nil
	}
	switch m.Outcome.(type) {
	case *PlaygroundValidateResponse_Failure:
		if v, ok := interface{}(m.GetFailure()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return PlaygroundValidateResponseValidationError{
					field:  "Failure",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	case *PlaygroundValidateResponse_Success:
		if v, ok := interface{}(m.GetSuccess()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return PlaygroundValidateResponseValidationError{
					field:  "Success",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type PlaygroundValidateResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e PlaygroundValidateResponseValidationError) Field() string { return e.field }
func (e PlaygroundValidateResponseValidationError) Reason() string { return e.reason }
func (e PlaygroundValidateResponseValidationError) Cause() error { return e.cause }
func (e PlaygroundValidateResponseValidationError) Key() bool { return e.key }
func (e PlaygroundValidateResponseValidationError) ErrorName() string {
	return "PlaygroundValidateResponseValidationError"
}
func (e PlaygroundValidateResponseValidationError) 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 %sPlaygroundValidateResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = PlaygroundValidateResponseValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = PlaygroundValidateResponseValidationError{}
func (m *PlaygroundEvaluateResponse) Validate() error {
	if m == nil {
		return nil
	}
	switch m.Outcome.(type) {
	case *PlaygroundEvaluateResponse_Failure:
		if v, ok := interface{}(m.GetFailure()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return PlaygroundEvaluateResponseValidationError{
					field:  "Failure",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	case *PlaygroundEvaluateResponse_Success:
		if v, ok := interface{}(m.GetSuccess()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return PlaygroundEvaluateResponseValidationError{
					field:  "Success",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type PlaygroundEvaluateResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e PlaygroundEvaluateResponseValidationError) Field() string { return e.field }
func (e PlaygroundEvaluateResponseValidationError) Reason() string { return e.reason }
func (e PlaygroundEvaluateResponseValidationError) Cause() error { return e.cause }
func (e PlaygroundEvaluateResponseValidationError) Key() bool { return e.key }