func (m *Metadata) Validate() error {
	if m == nil {
		return nil
	}

	if err := m._validateUuid(m.GetId()); err != nil {
		return MetadataValidationError{
			field:  "Id",
			reason: "value must be a valid UUID",
			cause:  err,
		}
	}

	if l := utf8.RuneCountInString(m.GetName()); l < 5 || l > 10 {
		return MetadataValidationError{
			field:  "Name",
			reason: "value length must be between 5 and 10 runes, inclusive",
		}
	}

	// no validation rules for CreationTimestamp

	return nil
}
// Validate checks the field values on Metadata with the rules defined in the
// proto definition for this message. If any rules are violated, an error is returned.
Validate checks the field values on Metadata with the rules defined in the
proto definition for this message. If any rules are violated, an error is returned.
// Validate checks the field values on Metadata with the rules defined in the // proto definition for this message . If any rules are violated an error is returned .
func (m *Metadata) Validate() error {
	if m == nil {
		return nil
	}
	if err := m._validateUuid(m.GetId()); err != nil {
		return MetadataValidationError{
			field:  "Id",
			reason: "value must be a valid UUID",
			cause:  err,
		}
	}
	if l := utf8.RuneCountInString(m.GetName()); l < 5 || l > 10 {
		return MetadataValidationError{
			field:  "Name",
			reason: "value length must be between 5 and 10 runes, inclusive",
		}
	}
	return nil
}
func ( m * Metadata ) Validate ( ) error { if m == nil { return nil } if err := m . _validateUuid ( m . GetId ( ) ) ; err != nil { return MetadataValidationError { field : " " , reason : " " , cause : err , } } if l := utf8 . RuneCountInString ( m . GetName ( ) ) ; l < 5 || l > 10 { return MetadataValidationError { field : " " , reason : " " , } } return nil }
Validate checks the field values on Metadata with the rules defined in the
proto definition for this message.
Validate checks the field values on Metadata with the rules defined in the proto definition for this message .
// no validation rules for CreationTimestamp