// Code generated by protoc-gen-validate. DO NOT EDIT.
// source: pb/artistinfoArtwork.proto

package artistInfoArtwork

import (
	"bytes"
	"errors"
	"fmt"
	"net"
	"net/mail"
	"net/url"
	"regexp"
	"sort"
	"strings"
	"time"
	"unicode/utf8"

	"google.golang.org/protobuf/types/known/anypb"
)

// ensure the imports are used
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{}
	_ = sort.Sort
)

// Validate checks the field values on ArtworkCommonNoParams with the rules
// defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *ArtworkCommonNoParams) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkCommonNoParams with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// ArtworkCommonNoParamsMultiError, or nil if none found.
func (m *ArtworkCommonNoParams) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkCommonNoParams) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	if len(errors) > 0 {
		return ArtworkCommonNoParamsMultiError(errors)
	}

	return nil
}

// ArtworkCommonNoParamsMultiError is an error wrapping multiple validation
// errors returned by ArtworkCommonNoParams.ValidateAll() if the designated
// constraints aren't met.
type ArtworkCommonNoParamsMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkCommonNoParamsMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkCommonNoParamsMultiError) AllErrors() []error { return m }

// ArtworkCommonNoParamsValidationError is the validation error returned by
// ArtworkCommonNoParams.Validate if the designated constraints aren't met.
type ArtworkCommonNoParamsValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkCommonNoParamsValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkCommonNoParamsValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkCommonNoParamsValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkCommonNoParamsValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkCommonNoParamsValidationError) ErrorName() string {
	return "ArtworkCommonNoParamsValidationError"
}

// Error satisfies the builtin error interface
func (e ArtworkCommonNoParamsValidationError) 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 %sArtworkCommonNoParams.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkCommonNoParamsValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkCommonNoParamsValidationError{}

// Validate checks the field values on ArtworkUidRequest with the rules defined
// in the proto definition for this message. If any rules are violated, the
// first error encountered is returned, or nil if there are no violations.
func (m *ArtworkUidRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkUidRequest with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// ArtworkUidRequestMultiError, or nil if none found.
func (m *ArtworkUidRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkUidRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtworkUid

	if len(errors) > 0 {
		return ArtworkUidRequestMultiError(errors)
	}

	return nil
}

// ArtworkUidRequestMultiError is an error wrapping multiple validation errors
// returned by ArtworkUidRequest.ValidateAll() if the designated constraints
// aren't met.
type ArtworkUidRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkUidRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkUidRequestMultiError) AllErrors() []error { return m }

// ArtworkUidRequestValidationError is the validation error returned by
// ArtworkUidRequest.Validate if the designated constraints aren't met.
type ArtworkUidRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkUidRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkUidRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkUidRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkUidRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkUidRequestValidationError) ErrorName() string {
	return "ArtworkUidRequestValidationError"
}

// Error satisfies the builtin error interface
func (e ArtworkUidRequestValidationError) 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 %sArtworkUidRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkUidRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkUidRequestValidationError{}

// Validate checks the field values on ArtworkUidsRequest with the rules
// defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *ArtworkUidsRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkUidsRequest with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// ArtworkUidsRequestMultiError, or nil if none found.
func (m *ArtworkUidsRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkUidsRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	if len(errors) > 0 {
		return ArtworkUidsRequestMultiError(errors)
	}

	return nil
}

// ArtworkUidsRequestMultiError is an error wrapping multiple validation errors
// returned by ArtworkUidsRequest.ValidateAll() if the designated constraints
// aren't met.
type ArtworkUidsRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkUidsRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkUidsRequestMultiError) AllErrors() []error { return m }

// ArtworkUidsRequestValidationError is the validation error returned by
// ArtworkUidsRequest.Validate if the designated constraints aren't met.
type ArtworkUidsRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkUidsRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkUidsRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkUidsRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkUidsRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkUidsRequestValidationError) ErrorName() string {
	return "ArtworkUidsRequestValidationError"
}

// Error satisfies the builtin error interface
func (e ArtworkUidsRequestValidationError) 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 %sArtworkUidsRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkUidsRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkUidsRequestValidationError{}

// Validate checks the field values on CreateArtworkLockRecordReq with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *CreateArtworkLockRecordReq) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on CreateArtworkLockRecordReq with the
// rules defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// CreateArtworkLockRecordReqMultiError, or nil if none found.
func (m *CreateArtworkLockRecordReq) ValidateAll() error {
	return m.validate(true)
}

func (m *CreateArtworkLockRecordReq) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtistUid

	// no validation rules for ArtworkUid

	// no validation rules for Status

	// no validation rules for LockTime

	if len(errors) > 0 {
		return CreateArtworkLockRecordReqMultiError(errors)
	}

	return nil
}

// CreateArtworkLockRecordReqMultiError is an error wrapping multiple
// validation errors returned by CreateArtworkLockRecordReq.ValidateAll() if
// the designated constraints aren't met.
type CreateArtworkLockRecordReqMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m CreateArtworkLockRecordReqMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m CreateArtworkLockRecordReqMultiError) AllErrors() []error { return m }

// CreateArtworkLockRecordReqValidationError is the validation error returned
// by CreateArtworkLockRecordReq.Validate if the designated constraints aren't met.
type CreateArtworkLockRecordReqValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e CreateArtworkLockRecordReqValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e CreateArtworkLockRecordReqValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e CreateArtworkLockRecordReqValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e CreateArtworkLockRecordReqValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e CreateArtworkLockRecordReqValidationError) ErrorName() string {
	return "CreateArtworkLockRecordReqValidationError"
}

// Error satisfies the builtin error interface
func (e CreateArtworkLockRecordReqValidationError) 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 %sCreateArtworkLockRecordReq.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = CreateArtworkLockRecordReqValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = CreateArtworkLockRecordReqValidationError{}

// Validate checks the field values on ArtworkLockActionRequest with the rules
// defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *ArtworkLockActionRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkLockActionRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// ArtworkLockActionRequestMultiError, or nil if none found.
func (m *ArtworkLockActionRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkLockActionRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtistUid

	// no validation rules for Lock

	// no validation rules for LockTime

	if len(errors) > 0 {
		return ArtworkLockActionRequestMultiError(errors)
	}

	return nil
}

// ArtworkLockActionRequestMultiError is an error wrapping multiple validation
// errors returned by ArtworkLockActionRequest.ValidateAll() if the designated
// constraints aren't met.
type ArtworkLockActionRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkLockActionRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkLockActionRequestMultiError) AllErrors() []error { return m }

// ArtworkLockActionRequestValidationError is the validation error returned by
// ArtworkLockActionRequest.Validate if the designated constraints aren't met.
type ArtworkLockActionRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkLockActionRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkLockActionRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkLockActionRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkLockActionRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkLockActionRequestValidationError) ErrorName() string {
	return "ArtworkLockActionRequestValidationError"
}

// Error satisfies the builtin error interface
func (e ArtworkLockActionRequestValidationError) 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 %sArtworkLockActionRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkLockActionRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkLockActionRequestValidationError{}

// Validate checks the field values on GetArtworkLockRecordsRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *GetArtworkLockRecordsRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on GetArtworkLockRecordsRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// GetArtworkLockRecordsRequestMultiError, or nil if none found.
func (m *GetArtworkLockRecordsRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *GetArtworkLockRecordsRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtistUid

	// no validation rules for QueryType

	// no validation rules for AuditStatus

	if len(errors) > 0 {
		return GetArtworkLockRecordsRequestMultiError(errors)
	}

	return nil
}

// GetArtworkLockRecordsRequestMultiError is an error wrapping multiple
// validation errors returned by GetArtworkLockRecordsRequest.ValidateAll() if
// the designated constraints aren't met.
type GetArtworkLockRecordsRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m GetArtworkLockRecordsRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m GetArtworkLockRecordsRequestMultiError) AllErrors() []error { return m }

// GetArtworkLockRecordsRequestValidationError is the validation error returned
// by GetArtworkLockRecordsRequest.Validate if the designated constraints
// aren't met.
type GetArtworkLockRecordsRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e GetArtworkLockRecordsRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e GetArtworkLockRecordsRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e GetArtworkLockRecordsRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e GetArtworkLockRecordsRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e GetArtworkLockRecordsRequestValidationError) ErrorName() string {
	return "GetArtworkLockRecordsRequestValidationError"
}

// Error satisfies the builtin error interface
func (e GetArtworkLockRecordsRequestValidationError) 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 %sGetArtworkLockRecordsRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = GetArtworkLockRecordsRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = GetArtworkLockRecordsRequestValidationError{}

// Validate checks the field values on ArtistLockInfo with the rules defined in
// the proto definition for this message. If any rules are violated, the first
// error encountered is returned, or nil if there are no violations.
func (m *ArtistLockInfo) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtistLockInfo with the rules defined
// in the proto definition for this message. If any rules are violated, the
// result is a list of violation errors wrapped in ArtistLockInfoMultiError,
// or nil if none found.
func (m *ArtistLockInfo) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtistLockInfo) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtistUid

	// no validation rules for ArtworkUid

	// no validation rules for Status

	// no validation rules for LockTime

	// no validation rules for CreatedAt

	// no validation rules for UpdatedAt

	// no validation rules for DeletedAt

	// no validation rules for BaseAuditStatus

	// no validation rules for BaseAuditMark

	// no validation rules for BaseAuditMark2

	// no validation rules for SupplementAuditStatus

	// no validation rules for SupplementAuditMark

	// no validation rules for SupplementAuditMark2

	// no validation rules for AuditFlowIndex

	// no validation rules for BaseEditable

	// no validation rules for SupplementEditable

	if len(errors) > 0 {
		return ArtistLockInfoMultiError(errors)
	}

	return nil
}

// ArtistLockInfoMultiError is an error wrapping multiple validation errors
// returned by ArtistLockInfo.ValidateAll() if the designated constraints
// aren't met.
type ArtistLockInfoMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtistLockInfoMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtistLockInfoMultiError) AllErrors() []error { return m }

// ArtistLockInfoValidationError is the validation error returned by
// ArtistLockInfo.Validate if the designated constraints aren't met.
type ArtistLockInfoValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtistLockInfoValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtistLockInfoValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtistLockInfoValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtistLockInfoValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtistLockInfoValidationError) ErrorName() string { return "ArtistLockInfoValidationError" }

// Error satisfies the builtin error interface
func (e ArtistLockInfoValidationError) 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 %sArtistLockInfo.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtistLockInfoValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtistLockInfoValidationError{}

// Validate checks the field values on ArtworkLockList with the rules defined
// in the proto definition for this message. If any rules are violated, the
// first error encountered is returned, or nil if there are no violations.
func (m *ArtworkLockList) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkLockList with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// ArtworkLockListMultiError, or nil if none found.
func (m *ArtworkLockList) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkLockList) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	for idx, item := range m.GetData() {
		_, _ = idx, item

		if all {
			switch v := interface{}(item).(type) {
			case interface{ ValidateAll() error }:
				if err := v.ValidateAll(); err != nil {
					errors = append(errors, ArtworkLockListValidationError{
						field:  fmt.Sprintf("Data[%v]", idx),
						reason: "embedded message failed validation",
						cause:  err,
					})
				}
			case interface{ Validate() error }:
				if err := v.Validate(); err != nil {
					errors = append(errors, ArtworkLockListValidationError{
						field:  fmt.Sprintf("Data[%v]", idx),
						reason: "embedded message failed validation",
						cause:  err,
					})
				}
			}
		} else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return ArtworkLockListValidationError{
					field:  fmt.Sprintf("Data[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}

	}

	if len(errors) > 0 {
		return ArtworkLockListMultiError(errors)
	}

	return nil
}

// ArtworkLockListMultiError is an error wrapping multiple validation errors
// returned by ArtworkLockList.ValidateAll() if the designated constraints
// aren't met.
type ArtworkLockListMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkLockListMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkLockListMultiError) AllErrors() []error { return m }

// ArtworkLockListValidationError is the validation error returned by
// ArtworkLockList.Validate if the designated constraints aren't met.
type ArtworkLockListValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkLockListValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkLockListValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkLockListValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkLockListValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkLockListValidationError) ErrorName() string { return "ArtworkLockListValidationError" }

// Error satisfies the builtin error interface
func (e ArtworkLockListValidationError) 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 %sArtworkLockList.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkLockListValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkLockListValidationError{}

// Validate checks the field values on ArtworkUidList with the rules defined in
// the proto definition for this message. If any rules are violated, the first
// error encountered is returned, or nil if there are no violations.
func (m *ArtworkUidList) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkUidList with the rules defined
// in the proto definition for this message. If any rules are violated, the
// result is a list of violation errors wrapped in ArtworkUidListMultiError,
// or nil if none found.
func (m *ArtworkUidList) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkUidList) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	if len(errors) > 0 {
		return ArtworkUidListMultiError(errors)
	}

	return nil
}

// ArtworkUidListMultiError is an error wrapping multiple validation errors
// returned by ArtworkUidList.ValidateAll() if the designated constraints
// aren't met.
type ArtworkUidListMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkUidListMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkUidListMultiError) AllErrors() []error { return m }

// ArtworkUidListValidationError is the validation error returned by
// ArtworkUidList.Validate if the designated constraints aren't met.
type ArtworkUidListValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkUidListValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkUidListValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkUidListValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkUidListValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkUidListValidationError) ErrorName() string { return "ArtworkUidListValidationError" }

// Error satisfies the builtin error interface
func (e ArtworkUidListValidationError) 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 %sArtworkUidList.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkUidListValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkUidListValidationError{}

// Validate checks the field values on DeleteArtworkRecordRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *DeleteArtworkRecordRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on DeleteArtworkRecordRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// DeleteArtworkRecordRequestMultiError, or nil if none found.
func (m *DeleteArtworkRecordRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *DeleteArtworkRecordRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	if len(errors) > 0 {
		return DeleteArtworkRecordRequestMultiError(errors)
	}

	return nil
}

// DeleteArtworkRecordRequestMultiError is an error wrapping multiple
// validation errors returned by DeleteArtworkRecordRequest.ValidateAll() if
// the designated constraints aren't met.
type DeleteArtworkRecordRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m DeleteArtworkRecordRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m DeleteArtworkRecordRequestMultiError) AllErrors() []error { return m }

// DeleteArtworkRecordRequestValidationError is the validation error returned
// by DeleteArtworkRecordRequest.Validate if the designated constraints aren't met.
type DeleteArtworkRecordRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e DeleteArtworkRecordRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e DeleteArtworkRecordRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e DeleteArtworkRecordRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e DeleteArtworkRecordRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e DeleteArtworkRecordRequestValidationError) ErrorName() string {
	return "DeleteArtworkRecordRequestValidationError"
}

// Error satisfies the builtin error interface
func (e DeleteArtworkRecordRequestValidationError) 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 %sDeleteArtworkRecordRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = DeleteArtworkRecordRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = DeleteArtworkRecordRequestValidationError{}

// Validate checks the field values on GetArtworkLockHistoryRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *GetArtworkLockHistoryRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on GetArtworkLockHistoryRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// GetArtworkLockHistoryRequestMultiError, or nil if none found.
func (m *GetArtworkLockHistoryRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *GetArtworkLockHistoryRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtistUid

	if len(errors) > 0 {
		return GetArtworkLockHistoryRequestMultiError(errors)
	}

	return nil
}

// GetArtworkLockHistoryRequestMultiError is an error wrapping multiple
// validation errors returned by GetArtworkLockHistoryRequest.ValidateAll() if
// the designated constraints aren't met.
type GetArtworkLockHistoryRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m GetArtworkLockHistoryRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m GetArtworkLockHistoryRequestMultiError) AllErrors() []error { return m }

// GetArtworkLockHistoryRequestValidationError is the validation error returned
// by GetArtworkLockHistoryRequest.Validate if the designated constraints
// aren't met.
type GetArtworkLockHistoryRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e GetArtworkLockHistoryRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e GetArtworkLockHistoryRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e GetArtworkLockHistoryRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e GetArtworkLockHistoryRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e GetArtworkLockHistoryRequestValidationError) ErrorName() string {
	return "GetArtworkLockHistoryRequestValidationError"
}

// Error satisfies the builtin error interface
func (e GetArtworkLockHistoryRequestValidationError) 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 %sGetArtworkLockHistoryRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = GetArtworkLockHistoryRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = GetArtworkLockHistoryRequestValidationError{}

// Validate checks the field values on GetArtworkLockDetailRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *GetArtworkLockDetailRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on GetArtworkLockDetailRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// GetArtworkLockDetailRequestMultiError, or nil if none found.
func (m *GetArtworkLockDetailRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *GetArtworkLockDetailRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtworkUid

	if len(errors) > 0 {
		return GetArtworkLockDetailRequestMultiError(errors)
	}

	return nil
}

// GetArtworkLockDetailRequestMultiError is an error wrapping multiple
// validation errors returned by GetArtworkLockDetailRequest.ValidateAll() if
// the designated constraints aren't met.
type GetArtworkLockDetailRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m GetArtworkLockDetailRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m GetArtworkLockDetailRequestMultiError) AllErrors() []error { return m }

// GetArtworkLockDetailRequestValidationError is the validation error returned
// by GetArtworkLockDetailRequest.Validate if the designated constraints
// aren't met.
type GetArtworkLockDetailRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e GetArtworkLockDetailRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e GetArtworkLockDetailRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e GetArtworkLockDetailRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e GetArtworkLockDetailRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e GetArtworkLockDetailRequestValidationError) ErrorName() string {
	return "GetArtworkLockDetailRequestValidationError"
}

// Error satisfies the builtin error interface
func (e GetArtworkLockDetailRequestValidationError) 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 %sGetArtworkLockDetailRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = GetArtworkLockDetailRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = GetArtworkLockDetailRequestValidationError{}

// Validate checks the field values on ArtworkPreviewInfo with the rules
// defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *ArtworkPreviewInfo) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkPreviewInfo with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// ArtworkPreviewInfoMultiError, or nil if none found.
func (m *ArtworkPreviewInfo) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkPreviewInfo) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtistUuid

	// no validation rules for ArtworkName

	// no validation rules for Length

	// no validation rules for Width

	// no validation rules for Ruler

	// no validation rules for ArtistPhoto

	// no validation rules for HdPic

	// no validation rules for ArtworkUid

	// no validation rules for CreatedDate

	// no validation rules for LockStatus

	// no validation rules for BaseAuditStatus

	// no validation rules for BaseAuditMark

	// no validation rules for BaseAuditMark2

	// no validation rules for SupplementAuditStatus

	// no validation rules for SupplementAuditMark

	// no validation rules for SupplementAuditMark2

	// no validation rules for AuditFlowIndex

	// no validation rules for CreatedAt

	// no validation rules for UpdatedAt

	// no validation rules for DeletedAt

	if len(errors) > 0 {
		return ArtworkPreviewInfoMultiError(errors)
	}

	return nil
}

// ArtworkPreviewInfoMultiError is an error wrapping multiple validation errors
// returned by ArtworkPreviewInfo.ValidateAll() if the designated constraints
// aren't met.
type ArtworkPreviewInfoMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkPreviewInfoMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkPreviewInfoMultiError) AllErrors() []error { return m }

// ArtworkPreviewInfoValidationError is the validation error returned by
// ArtworkPreviewInfo.Validate if the designated constraints aren't met.
type ArtworkPreviewInfoValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkPreviewInfoValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkPreviewInfoValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkPreviewInfoValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkPreviewInfoValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkPreviewInfoValidationError) ErrorName() string {
	return "ArtworkPreviewInfoValidationError"
}

// Error satisfies the builtin error interface
func (e ArtworkPreviewInfoValidationError) 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 %sArtworkPreviewInfo.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkPreviewInfoValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkPreviewInfoValidationError{}

// Validate checks the field values on GetArtworkLockHistoryResponse with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *GetArtworkLockHistoryResponse) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on GetArtworkLockHistoryResponse with
// the rules defined in the proto definition for this message. If any rules
// are violated, the result is a list of violation errors wrapped in
// GetArtworkLockHistoryResponseMultiError, or nil if none found.
func (m *GetArtworkLockHistoryResponse) ValidateAll() error {
	return m.validate(true)
}

func (m *GetArtworkLockHistoryResponse) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	for idx, item := range m.GetGroupList() {
		_, _ = idx, item

		if all {
			switch v := interface{}(item).(type) {
			case interface{ ValidateAll() error }:
				if err := v.ValidateAll(); err != nil {
					errors = append(errors, GetArtworkLockHistoryResponseValidationError{
						field:  fmt.Sprintf("GroupList[%v]", idx),
						reason: "embedded message failed validation",
						cause:  err,
					})
				}
			case interface{ Validate() error }:
				if err := v.Validate(); err != nil {
					errors = append(errors, GetArtworkLockHistoryResponseValidationError{
						field:  fmt.Sprintf("GroupList[%v]", idx),
						reason: "embedded message failed validation",
						cause:  err,
					})
				}
			}
		} else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return GetArtworkLockHistoryResponseValidationError{
					field:  fmt.Sprintf("GroupList[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}

	}

	if len(errors) > 0 {
		return GetArtworkLockHistoryResponseMultiError(errors)
	}

	return nil
}

// GetArtworkLockHistoryResponseMultiError is an error wrapping multiple
// validation errors returned by GetArtworkLockHistoryResponse.ValidateAll()
// if the designated constraints aren't met.
type GetArtworkLockHistoryResponseMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m GetArtworkLockHistoryResponseMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m GetArtworkLockHistoryResponseMultiError) AllErrors() []error { return m }

// GetArtworkLockHistoryResponseValidationError is the validation error
// returned by GetArtworkLockHistoryResponse.Validate if the designated
// constraints aren't met.
type GetArtworkLockHistoryResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e GetArtworkLockHistoryResponseValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e GetArtworkLockHistoryResponseValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e GetArtworkLockHistoryResponseValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e GetArtworkLockHistoryResponseValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e GetArtworkLockHistoryResponseValidationError) ErrorName() string {
	return "GetArtworkLockHistoryResponseValidationError"
}

// Error satisfies the builtin error interface
func (e GetArtworkLockHistoryResponseValidationError) 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 %sGetArtworkLockHistoryResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = GetArtworkLockHistoryResponseValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = GetArtworkLockHistoryResponseValidationError{}

// Validate checks the field values on ArtworkLockRecord with the rules defined
// in the proto definition for this message. If any rules are violated, the
// first error encountered is returned, or nil if there are no violations.
func (m *ArtworkLockRecord) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on ArtworkLockRecord with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// ArtworkLockRecordMultiError, or nil if none found.
func (m *ArtworkLockRecord) ValidateAll() error {
	return m.validate(true)
}

func (m *ArtworkLockRecord) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for LockGroup

	for idx, item := range m.GetDataList() {
		_, _ = idx, item

		if all {
			switch v := interface{}(item).(type) {
			case interface{ ValidateAll() error }:
				if err := v.ValidateAll(); err != nil {
					errors = append(errors, ArtworkLockRecordValidationError{
						field:  fmt.Sprintf("DataList[%v]", idx),
						reason: "embedded message failed validation",
						cause:  err,
					})
				}
			case interface{ Validate() error }:
				if err := v.Validate(); err != nil {
					errors = append(errors, ArtworkLockRecordValidationError{
						field:  fmt.Sprintf("DataList[%v]", idx),
						reason: "embedded message failed validation",
						cause:  err,
					})
				}
			}
		} else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
			if err := v.Validate(); err != nil {
				return ArtworkLockRecordValidationError{
					field:  fmt.Sprintf("DataList[%v]", idx),
					reason: "embedded message failed validation",
					cause:  err,
				}
			}
		}

	}

	if len(errors) > 0 {
		return ArtworkLockRecordMultiError(errors)
	}

	return nil
}

// ArtworkLockRecordMultiError is an error wrapping multiple validation errors
// returned by ArtworkLockRecord.ValidateAll() if the designated constraints
// aren't met.
type ArtworkLockRecordMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m ArtworkLockRecordMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m ArtworkLockRecordMultiError) AllErrors() []error { return m }

// ArtworkLockRecordValidationError is the validation error returned by
// ArtworkLockRecord.Validate if the designated constraints aren't met.
type ArtworkLockRecordValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e ArtworkLockRecordValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e ArtworkLockRecordValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e ArtworkLockRecordValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e ArtworkLockRecordValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e ArtworkLockRecordValidationError) ErrorName() string {
	return "ArtworkLockRecordValidationError"
}

// Error satisfies the builtin error interface
func (e ArtworkLockRecordValidationError) 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 %sArtworkLockRecord.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = ArtworkLockRecordValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = ArtworkLockRecordValidationError{}

// Validate checks the field values on UpdateArtworkAuditStatusRequest with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *UpdateArtworkAuditStatusRequest) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on UpdateArtworkAuditStatusRequest with
// the rules defined in the proto definition for this message. If any rules
// are violated, the result is a list of violation errors wrapped in
// UpdateArtworkAuditStatusRequestMultiError, or nil if none found.
func (m *UpdateArtworkAuditStatusRequest) ValidateAll() error {
	return m.validate(true)
}

func (m *UpdateArtworkAuditStatusRequest) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for ArtworkUid

	// no validation rules for AuditStatus

	// no validation rules for AuditMark

	// no validation rules for AuditMark2

	// no validation rules for FlowIndex

	if len(errors) > 0 {
		return UpdateArtworkAuditStatusRequestMultiError(errors)
	}

	return nil
}

// UpdateArtworkAuditStatusRequestMultiError is an error wrapping multiple
// validation errors returned by UpdateArtworkAuditStatusRequest.ValidateAll()
// if the designated constraints aren't met.
type UpdateArtworkAuditStatusRequestMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m UpdateArtworkAuditStatusRequestMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m UpdateArtworkAuditStatusRequestMultiError) AllErrors() []error { return m }

// UpdateArtworkAuditStatusRequestValidationError is the validation error
// returned by UpdateArtworkAuditStatusRequest.Validate if the designated
// constraints aren't met.
type UpdateArtworkAuditStatusRequestValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e UpdateArtworkAuditStatusRequestValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e UpdateArtworkAuditStatusRequestValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e UpdateArtworkAuditStatusRequestValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e UpdateArtworkAuditStatusRequestValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e UpdateArtworkAuditStatusRequestValidationError) ErrorName() string {
	return "UpdateArtworkAuditStatusRequestValidationError"
}

// Error satisfies the builtin error interface
func (e UpdateArtworkAuditStatusRequestValidationError) 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 %sUpdateArtworkAuditStatusRequest.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = UpdateArtworkAuditStatusRequestValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = UpdateArtworkAuditStatusRequestValidationError{}

// Validate checks the field values on CheckArtworkEditableResponse with the
// rules defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *CheckArtworkEditableResponse) Validate() error {
	return m.validate(false)
}

// ValidateAll checks the field values on CheckArtworkEditableResponse with the
// rules defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// CheckArtworkEditableResponseMultiError, or nil if none found.
func (m *CheckArtworkEditableResponse) ValidateAll() error {
	return m.validate(true)
}

func (m *CheckArtworkEditableResponse) validate(all bool) error {
	if m == nil {
		return nil
	}

	var errors []error

	// no validation rules for Editable

	if len(errors) > 0 {
		return CheckArtworkEditableResponseMultiError(errors)
	}

	return nil
}

// CheckArtworkEditableResponseMultiError is an error wrapping multiple
// validation errors returned by CheckArtworkEditableResponse.ValidateAll() if
// the designated constraints aren't met.
type CheckArtworkEditableResponseMultiError []error

// Error returns a concatenation of all the error messages it wraps.
func (m CheckArtworkEditableResponseMultiError) Error() string {
	var msgs []string
	for _, err := range m {
		msgs = append(msgs, err.Error())
	}
	return strings.Join(msgs, "; ")
}

// AllErrors returns a list of validation violation errors.
func (m CheckArtworkEditableResponseMultiError) AllErrors() []error { return m }

// CheckArtworkEditableResponseValidationError is the validation error returned
// by CheckArtworkEditableResponse.Validate if the designated constraints
// aren't met.
type CheckArtworkEditableResponseValidationError struct {
	field  string
	reason string
	cause  error
	key    bool
}

// Field function returns field value.
func (e CheckArtworkEditableResponseValidationError) Field() string { return e.field }

// Reason function returns reason value.
func (e CheckArtworkEditableResponseValidationError) Reason() string { return e.reason }

// Cause function returns cause value.
func (e CheckArtworkEditableResponseValidationError) Cause() error { return e.cause }

// Key function returns key value.
func (e CheckArtworkEditableResponseValidationError) Key() bool { return e.key }

// ErrorName returns error name.
func (e CheckArtworkEditableResponseValidationError) ErrorName() string {
	return "CheckArtworkEditableResponseValidationError"
}

// Error satisfies the builtin error interface
func (e CheckArtworkEditableResponseValidationError) 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 %sCheckArtworkEditableResponse.%s: %s%s",
		key,
		e.field,
		e.reason,
		cause)
}

var _ error = CheckArtworkEditableResponseValidationError{}

var _ interface {
	Field() string
	Reason() string
	Key() bool
	Cause() error
	ErrorName() string
} = CheckArtworkEditableResponseValidationError{}
