func (e DecodedZookie_V1ZookieValidationError) ErrorName() string {
	return "DecodedZookie_V1ZookieValidationError"
}
ErrorName returns error name.
package implv1
import (
	"bytes"
	"errors"
	"fmt"
	"net"
	"net/mail"
	"net/url"
	"regexp"
	"strings"
	"time"
	"unicode/utf8"
	"google.golang.org/protobuf/types/known/anypb"
)
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{}
)
func (m *DecodedZookie) Validate() error {
	if m == nil {
		return nil
	}
	switch m.VersionOneof.(type) {
	case *DecodedZookie_V1:
		if v, ok := interface{}(m.GetV1()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DecodedZookieValidationError{
					field:  "V1",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	case *DecodedZookie_V2:
		if v, ok := interface{}(m.GetV2()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DecodedZookieValidationError{
					field:  "V2",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type DecodedZookieValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DecodedZookieValidationError) Field() string { return e.field }
func (e DecodedZookieValidationError) Reason() string { return e.reason }
func (e DecodedZookieValidationError) Cause() error { return e.cause }
func (e DecodedZookieValidationError) Key() bool { return e.key }
func (e DecodedZookieValidationError) ErrorName() string { return "DecodedZookieValidationError" }
func (e DecodedZookieValidationError) 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 %sDecodedZookie.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DecodedZookieValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DecodedZookieValidationError{}
func (m *DecodedZedToken) Validate() error {
	if m == nil {
		return nil
	}
	switch m.VersionOneof.(type) {
	case *DecodedZedToken_DeprecatedV1Zookie:
		if v, ok := interface{}(m.GetDeprecatedV1Zookie()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DecodedZedTokenValidationError{
					field:  "DeprecatedV1Zookie",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	case *DecodedZedToken_V1:
		if v, ok := interface{}(m.GetV1()).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DecodedZedTokenValidationError{
					field:  "V1",
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type DecodedZedTokenValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DecodedZedTokenValidationError) Field() string { return e.field }
func (e DecodedZedTokenValidationError) Reason() string { return e.reason }
func (e DecodedZedTokenValidationError) Cause() error { return e.cause }
func (e DecodedZedTokenValidationError) Key() bool { return e.key }
func (e DecodedZedTokenValidationError) ErrorName() string { return "DecodedZedTokenValidationError" }
func (e DecodedZedTokenValidationError) 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 %sDecodedZedToken.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DecodedZedTokenValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DecodedZedTokenValidationError{}
func (m *DocComment) Validate() error {
	if m == nil {
		return nil
	}
	return nil
}
type DocCommentValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DocCommentValidationError) Field() string { return e.field }
func (e DocCommentValidationError) Reason() string { return e.reason }
func (e DocCommentValidationError) Cause() error { return e.cause }
func (e DocCommentValidationError) Key() bool { return e.key }
func (e DocCommentValidationError) ErrorName() string { return "DocCommentValidationError" }
func (e DocCommentValidationError) 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 %sDocComment.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DocCommentValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DocCommentValidationError{}
func (m *RelationMetadata) Validate() error {
	if m == nil {
		return nil
	}
	return nil
}
type RelationMetadataValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e RelationMetadataValidationError) Field() string { return e.field }
func (e RelationMetadataValidationError) Reason() string { return e.reason }
func (e RelationMetadataValidationError) Cause() error { return e.cause }
func (e RelationMetadataValidationError) Key() bool { return e.key }
func (e RelationMetadataValidationError) ErrorName() string { return "RelationMetadataValidationError" }
func (e RelationMetadataValidationError) 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 %sRelationMetadata.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = RelationMetadataValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = RelationMetadataValidationError{}
func (m *DecodedZookie_V1Zookie) Validate() error {
	if m == nil {
		return nil
	}
	return nil
}
type DecodedZookie_V1ZookieValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DecodedZookie_V1ZookieValidationError) Field() string { return e.field }
func (e DecodedZookie_V1ZookieValidationError) Reason() string { return e.reason }
func (e DecodedZookie_V1ZookieValidationError) Cause() error { return e.cause }
func (e DecodedZookie_V1ZookieValidationError) Key() bool { return e.key }