public void updateTaskDef ( TaskDef taskDef ) { Preconditions . checkNotNull ( taskDef , "Task definition cannot be null" ) ; stub . updateTask ( MetadataServicePb . UpdateTaskRequest . newBuilder ( ) . setTask ( protoMapper . toProto ( taskDef ) ) . build ( ) ) ; }
Updates an existing task definition