func (m *ResolverMeta) Validate() error {
	if m == nil {
		return nil
	}
	if !_ResolverMeta_AtRevision_Pattern.MatchString(m.GetAtRevision()) {
		return ResolverMetaValidationError{
			field:  "AtRevision",
			reason: "value does not match regex pattern \"^[0-9]+(\\\\.[0-9]+)?$\"",
		}
	}
	if m.GetDepthRemaining() <= 0 {
		return ResolverMetaValidationError{
			field:  "DepthRemaining",
			reason: "value must be greater than 0",
		}
	}
	return nil
}
Validate checks the field values on ResolverMeta with the rules defined in
the proto definition for this message. If any rules are violated, an error
is returned.
package dispatchv1
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 *DispatchCheckRequest) Validate() error {
	if m == nil {
		return nil
	}
	if m.GetMetadata() == nil {
		return DispatchCheckRequestValidationError{
			field:  "Metadata",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchCheckRequestValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if m.GetObjectAndRelation() == nil {
		return DispatchCheckRequestValidationError{
			field:  "ObjectAndRelation",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetObjectAndRelation()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchCheckRequestValidationError{
				field:  "ObjectAndRelation",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if m.GetSubject() == nil {
		return DispatchCheckRequestValidationError{
			field:  "Subject",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetSubject()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchCheckRequestValidationError{
				field:  "Subject",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	return nil
}
type DispatchCheckRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DispatchCheckRequestValidationError) Field() string { return e.field }
func (e DispatchCheckRequestValidationError) Reason() string { return e.reason }
func (e DispatchCheckRequestValidationError) Cause() error { return e.cause }
func (e DispatchCheckRequestValidationError) Key() bool { return e.key }
func (e DispatchCheckRequestValidationError) ErrorName() string {
	return "DispatchCheckRequestValidationError"
}
func (e DispatchCheckRequestValidationError) 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 %sDispatchCheckRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DispatchCheckRequestValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DispatchCheckRequestValidationError{}
func (m *DispatchCheckResponse) Validate() error {
	if m == nil {
		return nil
	}
	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchCheckResponseValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	return nil
}
type DispatchCheckResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DispatchCheckResponseValidationError) Field() string { return e.field }
func (e DispatchCheckResponseValidationError) Reason() string { return e.reason }
func (e DispatchCheckResponseValidationError) Cause() error { return e.cause }
func (e DispatchCheckResponseValidationError) Key() bool { return e.key }
func (e DispatchCheckResponseValidationError) ErrorName() string {
	return "DispatchCheckResponseValidationError"
}
func (e DispatchCheckResponseValidationError) 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 %sDispatchCheckResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DispatchCheckResponseValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DispatchCheckResponseValidationError{}
func (m *DispatchExpandRequest) Validate() error {
	if m == nil {
		return nil
	}
	if m.GetMetadata() == nil {
		return DispatchExpandRequestValidationError{
			field:  "Metadata",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchExpandRequestValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if m.GetObjectAndRelation() == nil {
		return DispatchExpandRequestValidationError{
			field:  "ObjectAndRelation",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetObjectAndRelation()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchExpandRequestValidationError{
				field:  "ObjectAndRelation",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	return nil
}
type DispatchExpandRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DispatchExpandRequestValidationError) Field() string { return e.field }
func (e DispatchExpandRequestValidationError) Reason() string { return e.reason }
func (e DispatchExpandRequestValidationError) Cause() error { return e.cause }
func (e DispatchExpandRequestValidationError) Key() bool { return e.key }
func (e DispatchExpandRequestValidationError) ErrorName() string {
	return "DispatchExpandRequestValidationError"
}
func (e DispatchExpandRequestValidationError) 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 %sDispatchExpandRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DispatchExpandRequestValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DispatchExpandRequestValidationError{}
func (m *DispatchExpandResponse) Validate() error {
	if m == nil {
		return nil
	}
	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchExpandResponseValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if v, ok := interface{}(m.GetTreeNode()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchExpandResponseValidationError{
				field:  "TreeNode",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	return nil
}
type DispatchExpandResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DispatchExpandResponseValidationError) Field() string { return e.field }
func (e DispatchExpandResponseValidationError) Reason() string { return e.reason }
func (e DispatchExpandResponseValidationError) Cause() error { return e.cause }
func (e DispatchExpandResponseValidationError) Key() bool { return e.key }
func (e DispatchExpandResponseValidationError) ErrorName() string {
	return "DispatchExpandResponseValidationError"
}
func (e DispatchExpandResponseValidationError) 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 %sDispatchExpandResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DispatchExpandResponseValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DispatchExpandResponseValidationError{}
func (m *DispatchLookupRequest) Validate() error {
	if m == nil {
		return nil
	}
	if m.GetMetadata() == nil {
		return DispatchLookupRequestValidationError{
			field:  "Metadata",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchLookupRequestValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if m.GetObjectRelation() == nil {
		return DispatchLookupRequestValidationError{
			field:  "ObjectRelation",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetObjectRelation()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchLookupRequestValidationError{
				field:  "ObjectRelation",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	if m.GetSubject() == nil {
		return DispatchLookupRequestValidationError{
			field:  "Subject",
			reason: "value is required",
		}
	}
	if v, ok := interface{}(m.GetSubject()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchLookupRequestValidationError{
				field:  "Subject",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	for idx, item := range m.GetDirectStack() {
		_, _ = idx, item
		if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DispatchLookupRequestValidationError{
					field:  fmt.Sprintf("DirectStack[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	for idx, item := range m.GetTtuStack() {
		_, _ = idx, item
		if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DispatchLookupRequestValidationError{
					field:  fmt.Sprintf("TtuStack[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type DispatchLookupRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DispatchLookupRequestValidationError) Field() string { return e.field }
func (e DispatchLookupRequestValidationError) Reason() string { return e.reason }
func (e DispatchLookupRequestValidationError) Cause() error { return e.cause }
func (e DispatchLookupRequestValidationError) Key() bool { return e.key }
func (e DispatchLookupRequestValidationError) ErrorName() string {
	return "DispatchLookupRequestValidationError"
}
func (e DispatchLookupRequestValidationError) 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 %sDispatchLookupRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DispatchLookupRequestValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DispatchLookupRequestValidationError{}
func (m *DispatchLookupResponse) Validate() error {
	if m == nil {
		return nil
	}
	if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok {
		if err := v.Validate(); err != nil {
			return DispatchLookupResponseValidationError{
				field:  "Metadata",
				reason: "embedded message failed validation",
				cause:  err,
			}
		}
	}
	for idx, item := range m.GetResolvedOnrs() {
		_, _ = idx, item
		if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return DispatchLookupResponseValidationError{
					field:  fmt.Sprintf("ResolvedOnrs[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}
	}
	return nil
}
type DispatchLookupResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}
func (e DispatchLookupResponseValidationError) Field() string { return e.field }
func (e DispatchLookupResponseValidationError) Reason() string { return e.reason }
func (e DispatchLookupResponseValidationError) Cause() error { return e.cause }
func (e DispatchLookupResponseValidationError) Key() bool { return e.key }
func (e DispatchLookupResponseValidationError) ErrorName() string {
	return "DispatchLookupResponseValidationError"
}
func (e DispatchLookupResponseValidationError) 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 %sDispatchLookupResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}
var _ error = DispatchLookupResponseValidationError{}
var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DispatchLookupResponseValidationError{}