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

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

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

	if _, ok := Status_name[int32(m.GetStatus())]; !ok {
		return SyncDetailsValidationError{
			field:  "Status",
			reason: "value must be one of the defined enum values",
		}
	}

	return nil
}
// Validate checks the field values on SyncDetails 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 SyncDetails 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 SyncDetails with the rules defined in // the proto definition for this message . If any rules are violated an error // is returned .
func (m *SyncDetails) Validate() error {
	if m == nil {
		return nil
	}
	if err := m._validateUuid(m.GetId()); err != nil {
		return SyncDetailsValidationError{
			field:  "Id",
			reason: "value must be a valid UUID",
			cause:  err,
		}
	}
	if l := utf8.RuneCountInString(m.GetName()); l < 5 || l > 10 {
		return SyncDetailsValidationError{
			field:  "Name",
			reason: "value length must be between 5 and 10 runes, inclusive",
		}
	}
	if _, ok := Status_name[int32(m.GetStatus())]; !ok {
		return SyncDetailsValidationError{
			field:  "Status",
			reason: "value must be one of the defined enum values",
		}
	}
	return nil
}
func ( m * SyncDetails ) Validate ( ) error { if m == nil { return nil } if err := m . _validateUuid ( m . GetId ( ) ) ; err != nil { return SyncDetailsValidationError { field : " " , reason : " " , cause : err , } } if l := utf8 . RuneCountInString ( m . GetName ( ) ) ; l < 5 || l > 10 { return SyncDetailsValidationError { field : " " , reason : " " , } } if _ , ok := Status_name [ int32 ( m . GetStatus ( ) ) ] ; ! ok { return SyncDetailsValidationError { field : " " , reason : " " , } } return nil }
Validate checks the field values on SyncDetails with the rules defined in
the proto definition for this message.
Validate checks the field values on SyncDetails with the rules defined in the proto definition for this message .