func (agentMessage *AgentMessage) Validate() error {
	if agentMessage.HeaderLength == 0 {
		return errors.New("HeaderLength cannot be zero")
	}
	if agentMessage.MessageType == "" {
		return errors.New("MessageType is missing")
	}
	if agentMessage.CreatedDate == 0 {
		return errors.New("CreatedDate is missing")
	}
	return nil
}
// Validate returns error if the message is invalid
Validate returns error if the message is invalid
// Validate returns error if the message is invalid
func (agentMessage *AgentMessage) Validate() error {
	if agentMessage.HeaderLength == 0 {
		return errors.New("HeaderLength cannot be zero")
	}
	if agentMessage.MessageType == "" {
		return errors.New("MessageType is missing")
	}
	if agentMessage.CreatedDate == 0 {
		return errors.New("CreatedDate is missing")
	}
	return nil
}
func ( agentMessage * AgentMessage ) Validate ( ) error { if agentMessage . HeaderLength == 0 { return errors . New ( " " ) } if agentMessage . MessageType == " " { return errors . New ( " " ) } if agentMessage . CreatedDate == 0 { return errors . New ( " " ) } return nil }
Validate returns error if the message is invalid
Validate returns error if the message is invalid