@@ -22,13 +22,15 @@ import {FirebaseNamespaceInternals} from './firebase-namespace';
2222import { AppErrorCodes , FirebaseAppError } from './utils/error' ;
2323
2424import { Auth } from './auth/auth' ;
25+ import { MachineLearning } from './machine-learning/machine-learning' ;
2526import { Messaging } from './messaging/messaging' ;
2627import { Storage } from './storage/storage' ;
2728import { Database } from '@firebase/database' ;
2829import { DatabaseService } from './database/database' ;
2930import { Firestore } from '@google-cloud/firestore' ;
3031import { FirestoreService } from './firestore/firestore' ;
3132import { InstanceId } from './instance-id/instance-id' ;
33+
3234import { ProjectManagement } from './project-management/project-management' ;
3335import { SecurityRules } from './security-rules/security-rules' ;
3436
@@ -354,6 +356,19 @@ export class FirebaseApp {
354356 } ) ;
355357 }
356358
359+ /**
360+ * Returns the MachineLearning service instance associated with this app.
361+ *
362+ * @return {MachineLearning } The Machine Learning service instance of this app
363+ */
364+ public machineLearning ( ) : MachineLearning {
365+ return this . ensureService_ ( 'machine-learning' , ( ) => {
366+ const machineLearningService : typeof MachineLearning =
367+ require ( './machine-learning/machine-learning' ) . MachineLearning ;
368+ return new machineLearningService ( this ) ;
369+ } ) ;
370+ }
371+
357372 /**
358373 * Returns the ProjectManagement service instance associated with this app.
359374 *
0 commit comments